Configuring a Port Monitor Policy
SUMMARY STEPS
1.
switch# configure terminal
2.
switch(config)# port-monitor name policyname
3.
switch(config-port-monitor)# port-type all
4.
switch(config-port-monitor)# counter {credit-loss-reco | timeout-discards | tx-credit-not-available }
poll-interval seconds {absolute | delta} rising-threshold value1 event event-id1 falling-threshold value2
event event-id2
5.
switch(config-port-monitor)# [no] counter {credit-loss-reco | timeout-discards | tx-credit-not-available
} poll-interval seconds {absolute | delta} rising-threshold value1 event event-id1 falling-threshold
value2 event event-id2
DETAILED STEPS
PurposeCommand or Action
Enters global configuration mode.switch# configure terminal
Step 1
Specifies the policy name and enters the port monitor
policy configuration mode.
switch(config)# port-monitor name policyname
Step 2
Applies the policy to all ports.switch(config-port-monitor)# port-type all
Step 3
Specifies the poll interval in seconds, the thresholds in
absolute numbers, and the event IDs of events to be
triggered for the following reasons:
switch(config-port-monitor)# counter {credit-loss-reco |
timeout-discards | tx-credit-not-available } poll-interval
seconds {absolute | delta} rising-threshold value1 event
event-id1 falling-threshold value2 event event-id2
Step 4
• credit-loss-reco—Credit loss recovery
• timeout-discards—Timeout discards
• tx-credit-not-available—Average credit non-available
duration
Turns on monitoring for the specified counter.switch(config-port-monitor)# [no] counter
{credit-loss-reco | timeout-discards |
Step 5
The no form of this command turns off monitoring for the
specified counter.
tx-credit-not-available } poll-interval seconds {absolute
| delta} rising-threshold value1 event event-id1
falling-threshold value2 event event-id2
This example shows how to specify the poll interval and threshold for timeout discards:
switch# configure terminal
switch(config)# port-monitor cisco
switch(config-port-monitor)# counter timeout-discards poll-interval 10
This example show how to specify the poll interval and threshold for credit loss recovery:
switch# configure terminal
switch(config)# port-monitor cisco
Cisco Nexus 5000 Series NX-OS SAN Switching Configuration Guide, Release 5.2(1)N1(1)
300 OL-27583-01
Fibre Channel Slow Drain Device Detection and Congestion Avoidance- An Overview
Port Monitoring