The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
This document describes the Multilayer Data Switch (MDS) port-monitor feature.
Cisco recommends that you have knowledge of these topics:
The information in this document is based on Multilayer Data Switch feature on Cisco MDS 9000 Series Multilayer Switches.
The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, ensure that you understand the potential impact of any command.
MDS port-monitor is a monitoring service that runs in MDS switches. It monitors 22 Fibre Channel (FC) counters(up from 17 starting in NX-OS 8.5(1)) and 2 system counters on MDS 9700 director switches. This article is updated to include the many enhancements made in NX-OS 8.5(1). This includes all NX-OS 9.x releases.
Theses are port-monitor features:
The definition of each counter contains these elements:
Port-monitor works on a rising-threshold and falling-threshold basis. When a counter reaches or exceeds the rising-threshold specified a rising-threshold alert is generated once. If the counter remains over the falling-threshold in subsequent polling intervals no further alerts are generated. Once the counter reaches a value that is less than the falling-threshold a falling-threshold alert is generated once. Consequently, the time of the event (or problem) is between the rising and falling thresholds.
Here are explanations of each counter and sample policies that can be used to get started.
These are descriptions of the counters that are included in the policy:
Note: Currently, as of NX-OS 9.4(1) port-monitor only monitors FC ports. There is no monitoring for Ethernet, Virtual Fibre Channel (VFC), or Fibre Channel over IP (FCIP) ports.
lr-rx
lr-tx
credit-loss-reco
timeout-discards
tx-credit-not-available
tx-discards
slowport-count
slowport-oper-delay
txwait
tx-datarate
rx-datarate
err-pkt-from-port
err-pkt-to-xbar
err-pkt-from-xbar
link-loss
sync-loss
signal-loss
invalid-words
invalid-crc
These counters are new in NX-OS 8.5(1) and 9.x:
tx-datarate-burst
rx-datarate-burst
input-errors
sfp-rx-power-low-warn
sfp-tx-power-low-warn
Note: The err-pkt-* counters are for internal CRC detection and can only be specified on one policy, regardless of the policy port-type or logical-type.
In order to have the MDS 9700 take automatic action when it detects internal CRC drops, the hardware fabric crc threshold <xxx>
command can be used. For more information, consult this documentation:
These are the default rmon event levels in the switch:
rmon event 1 log trap public description FATAL(1) owner PMON@FATAL rmon event 2 log trap public description CRITICAL(2) owner PMON@CRITICAL rmon event 3 log trap public description ERROR(3) owner PMON@ERROR rmon event 4 log trap public description WARNING(4) owner PMON@WARNING rmon event 5 log trap public description INFORMATION(5) owner PMON@INFO
These correspond to the event x values in these port-monitor counter definitions. The counters are categorized with the event severity values:
Note: Differentiation of event levels by severity give a visual distinction to the alerts as viewed in DCNM. It is highly recommended.
Ports are classified as either logical-type core or logical-type edge.
You can check a port classification via the show interface
or the show interface brief
commands:
MDS9710-1# show interface fc9/1 fc9/1 is trunking Port description is ISL to F241-15-10-9706-2 fc6/1 Hardware is Fibre Channel, SFP is long wave laser cost reduced Port WWN is 22:01:54:7f:ee:ea:6f:00 Peer port WWN is 21:41:00:2a:6a:a4:b2:80 Admin port mode is auto, trunk mode is on snmp link state traps are enabled Port mode is TE Port vsan is 1 Admin Speed is auto max 32 Gbps Operating Speed is 32 Gbps Rate mode is dedicated Port flow-control is R_RDY Transmit B2B Credit is 500 Receive B2B Credit is 500 B2B State Change Number is 14 Receive data field Size is 2112 Beacon is turned off fec is enabled by default Logical type is core Trunk vsans (admin allowed and active) (1-2,100,209,237-238,802,2237) Trunk vsans (up) (1,100,209,237) Trunk vsans (isolated) (2,238,802,2237) Trunk vsans (initializing) () 5 minutes input rate 1184 bits/sec,148 bytes/sec, 1 frames/sec 5 minutes output rate 768 bits/sec,96 bytes/sec, 1 frames/sec 14079 frames input,1229484 bytes 0 discards,0 errors 0 invalid CRC/FCS,0 unknown class 0 too long,0 too short 14079 frames output,764364 bytes 0 discards,0 errors 0 input OLS,0 LRR,0 NOS,0 loop inits 0 output OLS,0 LRR, 0 NOS, 0 loop inits 500 receive B2B credit remaining 500 transmit B2B credit remaining 500 low priority transmit B2B credit remaining Interface last changed at Tue Mar 27 16:26:56 2018 Last clearing of "show interface" counters : never MDS9710-1#
MDS9710-1# show interface brief ----------------------------------------------------------------------------------------- Interface Vsan Admin Admin Status SFP Oper Oper Port Logical Mode Trunk Mode Speed Channel Type Mode (Gbps) ----------------------------------------------------------------------------------------- fc1/1 1 auto on sfpAbsent -- -- -- -- -- ...snip fc1/8 1 E auto trunking swl TE 16 149 core ...snip fc9/15 1 auto on sfpAbsent -- -- -- -- -- fc9/16 1 auto off up swl F 4 -- edge fc9/17 237 auto off up swl F 4 -- edge
In general, you must not use portguard with slow drain type counters (txwait, timeout-discards, credit-loss-reco, tx-credit-not-available, and so on) on logical-type core ports. This is because the problem is not normally on these ports, but on the actual edge (F) ports where the end devices are connected. If portguard is done on core ports for slow drain type counters, then typically all of the ports in the port-channel (E or F) end up getting errordisabled or flapped. This is because the MDS loads balance all exchanges across all port-channel members and as a result, all the member ports can be affected.
These examples are the new logical-type specification which is available on NX-OS 8.1(1). Prior to 8.1(1), port-type access|trunk must be used.
Note: counter tx-slowport-count is only available on MDS 9500s. It is not included in these policies.
The portguard feature is a very powerful feature to enable the switch to automatically handle certain error conditions. Consider these points:
DIRL — Initiate Dynamic Ingress Rate Limiting
FPIN — Initiate Fabric Performance Impact Notifications
cong-isolate-recover — Congestion Isolation with automatic recovery
Starting many years ago Cisco introduced a pre-built into NX-OS port-monitor policy called slowdrain. This policy has minimal counters and is only for logical-type edge ports. It has changed over the last couple of years to accommodate congestion troubleshooting. This policy cannot be modified.
F241-16-10-9132T-1# show port-monitor slowdrain
Policy Name : slowdrain
Admin status : Active
Oper status : Active
Port type : All Edge Ports
-------------------------------------------------------- ----------------------------------------------------------------------
Counter Threshold Interval Rising Threshold event Falling Threshold event Warning Threshold PMON Portguard
------- --------- -------- ---------------- ----- ------------------ ----- --------------------- --------------
Credit Loss Reco Delta 1 1 4 0 4 Not enabled Not enabled
TX Credit Not Available Delta 1 10% 4 0% 4 Not enabled Not enabled
-------------------------------------------------------- ----------------------------------------------------------------------
F241TS.14.09-9220i-1# show port-monitor slowdrain
Policy Name : slowdrain
Admin status : Active
Oper status : Active
Port type : All Edge Ports
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
| Counter | Threshold | Interval | Warning | Thresholds | Rising/Falling actions | Congestion-signal |
| | Type | (Secs) |--------------------|---------------------|-------------------------------------------------|-------------------|
| | | | Threshold | Alerts | Rising | Falling | Event | Alerts | PortGuard | Warning | Alarm |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
| Credit Loss Reco | Delta | 1 | none | n/a | 1 | 0 | 4 | syslog,rmon | none | n/a | n/a |
| TX Credit Not Available | Delta | 1 | none | n/a | 10% | 0% | 4 | syslog,rmon | none | n/a | n/a |
| TX Datarate | Delta | 10 | none | n/a | 80% | 70% | 4 | syslog,obfl | none | n/a | n/a |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
F241-15-09-9710-1# show port-monitor slowdrain
Policy Name : slowdrain
Admin status : Active
Oper status : Active
Port type : All Edge Ports
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
| Counter | Threshold | Interval | Warning | Thresholds | Rising/Falling actions | Congestion-signal |
| | Type | (Secs) |--------------------|---------------------|-------------------------------------------------|-------------------|
| | | | Threshold | Alerts | Rising | Falling | Event | Alerts | PortGuard | Warning | Alarm |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
| Credit Loss Reco | Delta | 1 | none | n/a | 1 | 0 | 4 | syslog,rmon | none | n/a | n/a |
| TX Credit Not Available | Delta | 1 | none | n/a | 10% | 0% | 4 | syslog,rmon | none | n/a | n/a |
| TX Datarate | Delta | 10 | none | n/a | 80% | 70% | 4 | syslog,obfl | none | n/a | n/a |
| TXWait | Delta | 1 | none | n/a | 30% | 10% | 4 | syslog,rmon | none | n/a | n/a |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
Only an active policy can exist for each logical-type setting. That is, if logical-type all is configured in the policy then no other policies can be made active until that policy is deactivated. If a logical-type core or edge policy is configured, then another of the same logical-type cannot also be made active.
The poll-intervals are in seconds.
Several counters are configured as percentages of the polling interval. These are txwait, tx-credit-not-available, tx-datarate, and rx-datarate. For example, with txwait, if a value of 10 is configured with a polling-interval of 1 (second) then it is 10% of 1 second which is 100ms. If there is a total txwait accumulation of 100ms over the 1 second polling-interval then txwait can alert.
This policy alerts under the next conditions:
Note: The two policies are similar except the logical-type core policy has somewhat higher thresholds
port-monitor name CorePorts logical-type core counter link-loss poll-interval 60 delta rising-threshold 3 event 2 falling-threshold 0 event 2 counter sync-loss poll-interval 60 delta rising-threshold 3 event 2 falling-threshold 0 event 2 counter signal-loss poll-interval 60 delta rising-threshold 3 event 2 falling-threshold 0 event 2 counter invalid-words poll-interval 60 delta rising-threshold 5 event 3 falling-threshold 0 event 3 counter invalid-crc poll-interval 60 delta rising-threshold 5 event 3 falling-threshold 0 event 3 counter tx-discards poll-interval 60 delta rising-threshold 100 event 3 falling-threshold 10 event 3 counter lr-rx poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 1 event 2 counter lr-tx poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 1 event 2 counter timeout-discards poll-interval 60 delta rising-threshold 100 event 3 falling-threshold 10 event 3 counter credit-loss-reco poll-interval 60 delta rising-threshold 1 event 2 falling-threshold 0 event 2 counter tx-credit-not-available poll-interval 1 delta rising-threshold 10 event 4 falling-threshold 0 event 4 counter tx-datarate poll-interval 10 delta rising-threshold 80 event 4 falling-threshold 70 event 4 counter err-pkt-to-xbar poll-interval 300 delta rising-threshold 3 event 3 falling-threshold 0 event 3 counter err-pkt-from-xbar poll-interval 300 delta rising-threshold 3 event 3 falling-threshold 0 event 3 counter tx-slowport-oper-delay poll-interval 1 absolute rising-threshold 80 event 4 falling-threshold 0 event 4 counter txwait poll-interval 1 delta rising-threshold 20 event 4 falling-threshold 0 event 4 monitor counter err-pkt-to-xbar monitor counter err-pkt-from-xbar
no monitor counter err-pkt-from-port no monitor counter state-change no monitor counter rx-datarate port-monitor activate CorePorts
port-monitor name EdgePorts logical-type edge counter link-loss poll-interval 60 delta rising-threshold 3 event 4 falling-threshold 0 event 4 counter sync-loss poll-interval 60 delta rising-threshold 3 event 4 falling-threshold 0 event 4 counter signal-loss poll-interval 60 delta rising-threshold 3 event 4 falling-threshold 0 event 4 counter invalid-words poll-interval 60 delta rising-threshold 5 event 3 falling-threshold 0 event 3 counter invalid-crc poll-interval 60 delta rising-threshold 5 event 3 falling-threshold 0 event 3 counter tx-discards poll-interval 60 delta rising-threshold 50 event 3 falling-threshold 10 event 3 counter lr-rx poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 1 event 2 counter lr-tx poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 1 event 2 counter timeout-discards poll-interval 60 delta rising-threshold 50 event 3 falling-threshold 10 event 3 counter credit-loss-reco poll-interval 60 delta rising-threshold 4 event 2 falling-threshold 0 event 2 counter tx-credit-not-available poll-interval 1 delta rising-threshold 10 event 4 falling-threshold 0 event 4 counter tx-datarate poll-interval 10 delta rising-threshold 80 event 4 falling-threshold 79 event 4 counter tx-slowport-oper-delay poll-interval 1 absolute rising-threshold 50 event 4 falling-threshold 0 event 4 counter txwait poll-interval 1 delta rising-threshold 20 event 4 falling-threshold 0 event 4 no monitor counter err-pkt-from-port no monitor counter err-pkt-to-xbar no monitor counter err-pkt-from-xbar no monitor counter state-change no monitor counter rx-datarate port-monitor activate EdgePorts
Note: Invalid-words are not necessarily needed since the MDS monitors all ports for bit errors but it is included to ensure it is covered.
port-monitor name AllPorts logical-type all counter link-loss poll-interval 60 delta rising-threshold 3 event 4 falling-threshold 0 event 4
counter sync-loss poll-interval 60 delta rising-threshold 3 event 4 falling-threshold 0 event 4
counter signal-loss poll-interval 60 delta rising-threshold 3 event 4 falling-threshold 0 event 4 counter invalid-words poll-interval 60 delta rising-threshold 5 event 3 falling-threshold 1 event 3
counter invalid-crc poll-interval 60 delta rising-threshold 5 event 3 falling-threshold 0 event 3 counter tx-discards poll-interval 60 delta rising-threshold 50 event 3 falling-threshold 10 event 3 counter lr-rx poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 1 event 2 counter lr-tx poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 1 event 2 counter timeout-discards poll-interval 60 delta rising-threshold 50 event 3 falling-threshold 10 event 3 counter credit-loss-reco poll-interval 60 delta rising-threshold 1 event 2 falling-threshold 0 event 2 counter tx-credit-not-available poll-interval 1 delta rising-threshold 10 event 4 falling-threshold 0 event 4 counter tx-datarate poll-interval 10 delta rising-threshold 80 event 4 falling-threshold 70 event 4 counter err-pkt-to-xbar poll-interval 300 delta rising-threshold 3 event 3 falling-threshold 0 event 3 counter err-pkt-from-xbar poll-interval 300 delta rising-threshold 3 event 3 falling-threshold 0 event 3 counter tx-slowport-oper-delay poll-interval 1 absolute rising-threshold 80 event 4 falling-threshold 0 event 4 counter txwait poll-interval 1 delta rising-threshold 10 event 4 falling-threshold 0 event 4 monitor counter err-pkt-to-xbar monitor counter err-pkt-from-xbar
no monitor counter err-pkt-from-port no monitor counter state-change no monitor counter rx-datarate port-monitor activate AllPorts
Ports can be shut down (error disabled) or flapped upon reaching the rising-threshold via the portguard errordisable | flap
parameter. This can be used for both ISLs and F port connections to N-Port Virtualizer (NPV) switches (logical-type core) as well as regular end device F ports (logical-type edge). However, if it is desired to take a portguard action for a counter related to slow drain, then that must normally only be done on a logical-type edge policy.
The logical-type core policy is the same as the previous CorePorts policy except it can error-disable the port for these next conditions:
Because the ports are shutdown (error disabled), the event level has been raised from 4 (warning) to 2 (error) on any port with portguard errordisable
:
port-monitor name CorePorts_w_Portguard logical-type core counter link-loss poll-interval 60 delta rising-threshold 4 event 2 falling-threshold 0 event 2 portguard errordisable
counter sync-loss poll-interval 60 delta rising-threshold 4 event 2 falling-threshold 0 event 2 portguard errordisable
counter signal-loss poll-interval 60 delta rising-threshold 4 event 2 falling-threshold 0 event 2 portguard errordisable counter invalid-words poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 1 event 3 portguard errordisable
counter invalid-crc poll-interval 60 delta rising-threshold 10 event 2 falling-threshold 0 event 3 portguard errordisable counter tx-discards poll-interval 60 delta rising-threshold 100 event 3 falling-threshold 10 event 3 counter lr-rx poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 1 event 2 counter lr-tx poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 1 event 2 counter timeout-discards poll-interval 60 delta rising-threshold 100 event 3 falling-threshold 10 event 3 counter credit-loss-reco poll-interval 60 delta rising-threshold 1 event 2 falling-threshold 0 event 2 counter tx-credit-not-available poll-interval 1 delta rising-threshold 10 event 4 falling-threshold 0 event 4 counter tx-datarate poll-interval 10 delta rising-threshold 80 event 4 falling-threshold 70 event 4 counter err-pkt-to-xbar poll-interval 300 delta rising-threshold 3 event 3 falling-threshold 0 event 3 counter err-pkt-from-xbar poll-interval 300 delta rising-threshold 3 event 3 falling-threshold 0 event 3 counter tx-slowport-oper-delay poll-interval 1 absolute rising-threshold 80 event 4 falling-threshold 0 event 4 counter txwait poll-interval 1 delta rising-threshold 20 event 4 falling-threshold 0 event 4 monitor counter err-pkt-to-xbar monitor counter err-pkt-from-xbar
no monitor counter err-pkt-from-port no monitor counter state-change no monitor counter rx-datarate port-monitor activate CorePorts_w_portguard
The logical-type edge policy is the same as the previous EdgePorts policy except it can errordisable
a port under these conditions:
Because the ports are shutdown (error disabled), the event level has been raised from 4 (warning) to 2 (error) on any port with portguard errordisable
:
port-monitor name EdgePorts_w_Portguard logical-type edge counter link-loss poll-interval 60 delta rising-threshold 6 event 2 falling-threshold 0 event 2 portguard errordisable counter sync-loss poll-interval 60 delta rising-threshold 6 event 2 falling-threshold 0 event 2 portguard errordisable
counter signal-loss poll-interval 60 delta rising-threshold 6 event 2 falling-threshold 0 event 2 portguard errordisable
counter invalid-crc poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 0 event 3 portguard errordisable counter invalid-words poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 0 event 3 portguard errordisable
counter tx-discards poll-interval 60 delta rising-threshold 50 event 2 falling-threshold 10 event 3 portguard errordisable counter lr-rx poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 1 event 2 counter lr-tx poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 1 event 2 counter timeout-discards poll-interval 60 delta rising-threshold 50 event 2 falling-threshold 10 event 3 portguard errordisable counter credit-loss-reco poll-interval 60 delta rising-threshold 4 event 2 falling-threshold 0 event 2 portguard errordisable counter tx-credit-not-available poll-interval 1 delta rising-threshold 10 event 4 falling-threshold 0 event 4 counter tx-datarate poll-interval 10 delta rising-threshold 80 event 4 falling-threshold 70 event 4 counter tx-slowport-oper-delay poll-interval 1 absolute rising-threshold 50 event 4 falling-threshold 0 event 4 counter txwait poll-interval 1 delta rising-threshold 20 event 4 falling-threshold 0 event 4 no monitor counter err-pkt-from-port no monitor counter err-pkt-to-xbar no monitor counter err-pkt-from-xbar no monitor counter state-change no monitor counter rx-datarate port-monitor activate EdgePorts_w_Portguard
These policies are the same as the previous pre NX-OS 8.5(1) policies except they include the next policies as well.
New counters monitored:
port-monitor name CorePorts
logical-type core
counter link-loss poll-interval 60 delta rising-threshold 3 event 2 falling-threshold 0 event 4 alerts syslog rmon
counter sync-loss poll-interval 60 delta rising-threshold 3 event 2 falling-threshold 0 event 4 alerts syslog rmon
counter signal-loss poll-interval 60 delta rising-threshold 3 event 2 falling-threshold 0 event 4 alerts syslog rmon
counter invalid-words poll-interval 60 delta rising-threshold 5 event 3 falling-threshold 0 event 4 alerts syslog rmon
counter invalid-crc poll-interval 60 delta rising-threshold 5 event 3 falling-threshold 0 event 4 alerts syslog rmon
no monitor counter state-change
counter tx-discards poll-interval 60 delta rising-threshold 100 event 3 falling-threshold 10 event 4 alerts syslog rmon
counter lr-rx poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 1 event 4 alerts syslog rmon
counter lr-tx poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 1 event 4 alerts syslog rmon
counter timeout-discards poll-interval 60 delta rising-threshold 100 event 3 falling-threshold 10 event 4 alerts syslog rmon
counter credit-loss-reco poll-interval 60 delta rising-threshold 1 event 2 falling-threshold 0 event 4 alerts syslog rmon
counter tx-credit-not-available poll-interval 1 delta rising-threshold 10 event 4 falling-threshold 0 event 4 alerts syslog rmon
no monitor counter rx-datarate
counter tx-datarate poll-interval 10 delta rising-threshold 80 event 4 falling-threshold 70 event 4 alerts syslog rmon obfl
no monitor counter err-pkt-from-port
monitor counter err-pkt-to-xbar
counter err-pkt-to-xbar poll-interval 300 delta rising-threshold 5 event 4 falling-threshold 0 event 4 alerts syslog rmon
monitor counter err-pkt-from-xbar
counter err-pkt-from-xbar poll-interval 300 delta rising-threshold 5 event 4 falling-threshold 0 event 4 alerts syslog rmon
counter tx-slowport-oper-delay poll-interval 1 absolute rising-threshold 80 event 4 falling-threshold 0 event 4 alerts syslog rmon
counter txwait poll-interval 1 delta rising-threshold 20 event 4 falling-threshold 0 event 4 alerts syslog rmon
monitor counter sfp-tx-power-low-warn
counter sfp-tx-power-low-warn poll-interval 600 delta rising-threshold 1 event 4 falling-threshold 0 event 4 alerts syslog rmon percentage 80
monitor counter sfp-rx-power-low-warn
counter sfp-rx-power-low-warn poll-interval 600 delta rising-threshold 1 event 4 falling-threshold 0 event 4 alerts syslog rmon percentage 80
counter rx-datarate-burst poll-interval 10 delta rising-threshold 5 event 4 falling-threshold 1 event 4 alerts syslog rmon obfl datarate 90
counter tx-datarate-burst poll-interval 10 delta rising-threshold 5 event 4 falling-threshold 1 event 4 alerts syslog rmon obfl datarate 90
counter input-errors poll-interval 60 delta rising-threshold 5 event 4 falling-threshold 1 event 4 alerts syslog rmon
port-monitor name EdgePorts
logical-type edge
counter link-loss poll-interval 60 delta rising-threshold 3 event 4 falling-threshold 0 event 4 alerts syslog rmon
counter sync-loss poll-interval 60 delta rising-threshold 3 event 4 falling-threshold 0 event 4 alerts syslog rmon
counter signal-loss poll-interval 60 delta rising-threshold 3 event 4 falling-threshold 0 event 4 alerts syslog rmon
counter invalid-words poll-interval 60 delta rising-threshold 5 event 3 falling-threshold 0 event 4 alerts syslog rmon
counter invalid-crc poll-interval 60 delta rising-threshold 5 event 3 falling-threshold 0 event 4 alerts syslog rmon
no monitor counter state-change
counter tx-discards poll-interval 60 delta rising-threshold 50 event 3 falling-threshold 10 event 4 alerts syslog rmon
counter lr-rx poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 1 event 4 alerts syslog rmon
counter lr-tx poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 1 event 4 alerts syslog rmon
counter timeout-discards poll-interval 60 delta rising-threshold 50 event 3 falling-threshold 10 event 4 alerts syslog rmon
counter credit-loss-reco poll-interval 60 delta rising-threshold 4 event 2 falling-threshold 0 event 4 alerts syslog rmon
counter tx-credit-not-available poll-interval 1 delta rising-threshold 10 event 4 falling-threshold 0 event 4 alerts syslog rmon
no monitor counter rx-datarate
counter tx-datarate poll-interval 10 delta rising-threshold 80 event 4 falling-threshold 79 event 4 alerts syslog rmon obfl
no monitor counter err-pkt-from-port
no monitor counter err-pkt-to-xbar
no monitor counter err-pkt-from-xbar
counter tx-slowport-oper-delay poll-interval 1 absolute rising-threshold 50 event 4 falling-threshold 0 event 4 alerts syslog rmon
counter txwait poll-interval 1 delta rising-threshold 20 event 4 falling-threshold 0 event 4 alerts syslog rmon
monitor counter sfp-tx-power-low-warn
counter sfp-tx-power-low-warn poll-interval 600 delta rising-threshold 1 event 4 falling-threshold 0 event 4 alerts syslog rmon percentage 80
monitor counter sfp-rx-power-low-warn
counter sfp-rx-power-low-warn poll-interval 600 delta rising-threshold 1 event 4 falling-threshold 0 event 4 alerts syslog rmon percentage 80
counter rx-datarate-burst poll-interval 10 delta rising-threshold 5 event 4 falling-threshold 1 event 4 alerts syslog rmon obfl datarate 90
counter tx-datarate-burst poll-interval 10 delta rising-threshold 5 event 4 falling-threshold 1 event 4 alerts syslog rmon obfl datarate 90
counter input-errors poll-interval 60 delta rising-threshold 5 event 4 falling-threshold 1 event 4 alerts syslog rmon
port-monitor activate EdgePorts
port-monitor name AllPorts
logical-type all
counter link-loss poll-interval 60 delta rising-threshold 3 event 4 falling-threshold 0 event 4 alerts syslog rmon
counter sync-loss poll-interval 60 delta rising-threshold 3 event 4 falling-threshold 0 event 4 alerts syslog rmon
counter signal-loss poll-interval 60 delta rising-threshold 3 event 4 falling-threshold 0 event 4 alerts syslog rmon
counter invalid-words poll-interval 60 delta rising-threshold 5 event 3 falling-threshold 1 event 4 alerts syslog rmon
counter invalid-crc poll-interval 60 delta rising-threshold 5 event 3 falling-threshold 0 event 4 alerts syslog rmon
no monitor counter state-change
counter tx-discards poll-interval 60 delta rising-threshold 50 event 3 falling-threshold 10 event 4 alerts syslog rmon
counter lr-rx poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 1 event 4 alerts syslog rmon
counter lr-tx poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 1 event 4 alerts syslog rmon
counter timeout-discards poll-interval 60 delta rising-threshold 50 event 3 falling-threshold 10 event 4 alerts syslog rmon
counter credit-loss-reco poll-interval 60 delta rising-threshold 1 event 2 falling-threshold 0 event 4 alerts syslog rmon
counter tx-credit-not-available poll-interval 1 delta rising-threshold 10 event 4 falling-threshold 0 event 4 alerts syslog rmon
no monitor counter rx-datarate
counter tx-datarate poll-interval 10 delta rising-threshold 80 event 4 falling-threshold 70 event 4 alerts syslog rmon obfl
no monitor counter err-pkt-from-port
monitor counter err-pkt-to-xbar
counter err-pkt-to-xbar poll-interval 300 delta rising-threshold 5 event 4 falling-threshold 0 event 4 alerts syslog rmon
monitor counter err-pkt-from-xbar
counter err-pkt-from-xbar poll-interval 300 delta rising-threshold 5 event 4 falling-threshold 0 event 4 alerts syslog rmon
counter tx-slowport-oper-delay poll-interval 1 absolute rising-threshold 80 event 4 falling-threshold 0 event 4 alerts syslog rmon
counter txwait poll-interval 1 delta rising-threshold 10 event 4 falling-threshold 0 event 4 alerts syslog rmon
monitor counter sfp-tx-power-low-warn
counter sfp-tx-power-low-warn poll-interval 600 delta rising-threshold 1 event 4 falling-threshold 0 event 4 alerts syslog rmon percentage 80
monitor counter sfp-rx-power-low-warn
counter sfp-rx-power-low-warn poll-interval 600 delta rising-threshold 1 event 4 falling-threshold 0 event 4 alerts syslog rmon percentage 80
counter rx-datarate-burst poll-interval 10 delta rising-threshold 5 event 4 falling-threshold 1 event 4 alerts syslog rmon obfl datarate 90
counter tx-datarate-burst poll-interval 10 delta rising-threshold 5 event 4 falling-threshold 1 event 4 alerts syslog rmon obfl datarate 90
counter input-errors poll-interval 60 delta rising-threshold 5 event 4 falling-threshold 1 event 4 alerts syslog rmon
port-monitor activate AllPorts
Ports can be shut down (error disabled) or flapped upon reaching the rising-threshold via the portguard errordisable | flap
parameter. This can be used for both ISLs and F port connections to N-Port Virtualizer (NPV) switches (logical-type core) as well as regular end device F ports (logical-type edge). However, if it is desired to take a portguard action for a counter related to slow drain, then that must normally only be done on a logical-type edge policy.
The logical-type core policy is the same as the previous CorePorts policy except it is errordisable under these next conditions:
Because the ports are shutdown (error disabled), the event level has been raised from 4 (warning) to 2 (error) on any port with portguard errordisable:
port-monitor name CorePorts_w_Portguard
logical-type core
counter link-loss poll-interval 60 delta rising-threshold 4 event 2 falling-threshold 0 event 2 alerts syslog rmon portguard errordisable
counter sync-loss poll-interval 60 delta rising-threshold 4 event 2 falling-threshold 0 event 2 alerts syslog rmon portguard errordisable
counter signal-loss poll-interval 60 delta rising-threshold 4 event 2 falling-threshold 0 event 2 alerts syslog rmon portguard errordisable
counter invalid-words poll-interval 60 delta rising-threshold 10 event 3 falling-threshold 1 event 2 alerts syslog rmon portguard errordisable
counter invalid-crc poll-interval 60 delta rising-threshold 10 event 3 falling-threshold 0 event24 alerts syslog rmon portguard errordisable
no monitor counter state-change
counter tx-discards poll-interval 60 delta rising-threshold 100 event 3 falling-threshold 10 event 4 alerts syslog rmon
counter lr-rx poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 1 event 4 alerts syslog rmon
counter lr-tx poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 1 event 4 alerts syslog rmon
counter timeout-discards poll-interval 60 delta rising-threshold 100 event 3 falling-threshold 10 event 4 alerts syslog rmon
counter credit-loss-reco poll-interval 60 delta rising-threshold 1 event 2 falling-threshold 0 event 4 alerts syslog rmon
counter tx-credit-not-available poll-interval 1 delta rising-threshold 10 event 4 falling-threshold 0 event 4 alerts syslog rmon
no monitor counter rx-datarate
counter tx-datarate poll-interval 10 delta rising-threshold 80 event 4 falling-threshold 70 event 4 alerts syslog rmon obfl
no monitor counter err-pkt-from-port
monitor counter err-pkt-to-xbar
counter err-pkt-to-xbar poll-interval 300 delta rising-threshold 5 event 4 falling-threshold 0 event 4 alerts syslog rmon
monitor counter err-pkt-from-xbar
counter err-pkt-from-xbar poll-interval 300 delta rising-threshold 5 event 4 falling-threshold 0 event 4 alerts syslog rmon
counter tx-slowport-oper-delay poll-interval 1 absolute rising-threshold 80 event 4 falling-threshold 0 event 4 alerts syslog rmon
counter txwait poll-interval 1 delta rising-threshold 20 event 4 falling-threshold 0 event 4 alerts syslog rmon
monitor counter sfp-tx-power-low-warn
counter sfp-tx-power-low-warn poll-interval 600 delta rising-threshold 1 event 4 falling-threshold 0 event 4 alerts syslog rmon percentage 80
monitor counter sfp-rx-power-low-warn
counter sfp-rx-power-low-warn poll-interval 600 delta rising-threshold 1 event 4 falling-threshold 0 event 4 alerts syslog rmon percentage 80
counter rx-datarate-burst poll-interval 10 delta rising-threshold 5 event 4 falling-threshold 1 event 4 alerts syslog rmon obfl datarate 90
counter tx-datarate-burst poll-interval 10 delta rising-threshold 5 event 4 falling-threshold 1 event 4 alerts syslog rmon obfl datarate 90
counter input-errors poll-interval 60 delta rising-threshold 10 event 4 falling-threshold 1 event 2 alerts syslog rmon portguard errordisable
port-monitor activate CorePorts_w_Portguard
The logical-type edge policy is the same as the previous EdgePorts policy except it can errordisable
a port under these conditions:
port-monitor name EdgePorts_w_Portguard
logical-type edge
counter link-loss poll-interval 60 delta rising-threshold 4 event 2 falling-threshold 0 event 2 alerts syslog rmon portguard errordisable
counter sync-loss poll-interval 60 delta rising-threshold 4 event 2 falling-threshold 0 event 2 alerts syslog rmon portguard errordisable
counter signal-loss poll-interval 60 delta rising-threshold 4 event 2 falling-threshold 0 event 2 alerts syslog rmon portguard errordisable
counter invalid-words poll-interval 60 delta rising-threshold 10 event 3 falling-threshold 0 event 2 alerts syslog rmon portguard errordisable
counter invalid-crc poll-interval 60 delta rising-threshold event 10 falling-threshold 0 event 2 alerts syslog rmon portguard errordisable
no monitor counter state-change
counter tx-discards poll-interval 60 delta rising-threshold 50 event 3 falling-threshold 10 event 2 alerts syslog rmon portguard errordisable
counter lr-rx poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 1 event 4 alerts syslog rmon
counter lr-tx poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 1 event 4 alerts syslog rmon
counter timeout-discards poll-interval 60 delta rising-threshold 50 event 3 falling-threshold 10 event 2 alerts syslog rmon portguard errordisable
counter credit-loss-reco poll-interval 60 delta rising-threshold 4 event 2 falling-threshold 0 event 2 alerts syslog rmon portguard errordisable
counter tx-credit-not-available poll-interval 1 delta rising-threshold 10 event 4 falling-threshold 0 event 4 alerts syslog rmon
no monitor counter rx-datarate
counter tx-datarate poll-interval 10 delta rising-threshold 80 event 4 falling-threshold 70 event 4 alerts syslog rmon obfl
no monitor counter err-pkt-from-port
no monitor counter err-pkt-to-xbar
no monitor counter err-pkt-from-xbar
counter tx-slowport-oper-delay poll-interval 1 absolute rising-threshold 50 event 4 falling-threshold 0 event 4 alerts syslog rmon
counter txwait poll-interval 1 delta rising-threshold 20 event 4 falling-threshold 0 event 4 alerts syslog rmon
monitor counter sfp-tx-power-low-warn
counter sfp-tx-power-low-warn poll-interval 600 delta rising-threshold 1 event 4 falling-threshold 0 event 4 alerts syslog rmon percentage 80
monitor counter sfp-rx-power-low-warn
counter sfp-rx-power-low-warn poll-interval 600 delta rising-threshold 1 event 4 falling-threshold 0 event 4 alerts syslog rmon percentage 80
counter rx-datarate-burst poll-interval 10 delta rising-threshold 5 event 4 falling-threshold 1 event 4 alerts syslog rmon obfl datarate 90
counter tx-datarate-burst poll-interval 10 delta rising-threshold 5 event 4 falling-threshold 1 event 4 alerts syslog rmon obfl datarate 90
counter input-errors poll-interval 60 delta rising-threshold 10 event 4 falling-threshold 1 event 2 alerts syslog rmon portguard errordisable
port-monitor activate EdgePorts_w_Portguard
There is currently no verification procedure available for this configuration.
There is currently no specific troubleshooting information available for this configuration.
Revision | Publish Date | Comments |
---|---|---|
3.0 |
28-Mar-2024 |
Updated several counters, event levels, and threshold values for 8.5(1) and later. |
2.0 |
12-Jan-2022 |
Updated several counters, event levels, and threshold values. |
1.0 |
02-Sep-2015 |
Initial Release |