2-32
Cisco MDS 9000 Family NX-OS Interfaces Configuration Guide
OL-29284-01, Release 6.x
Chapter 2 Configuring Interfaces
Configuring Interfaces
Configuring a Port Monitor Policy
Detailed Steps
To configure a port monitor policy, follow these steps:
Command Purpose
Step 1
switch# config t
Enters configuration mode.
Step 2
switch(config)# port-monitor name
policyname
Specifies the policy name and enters the port
monitoring policy configuration mode.
switch(config)# no port-monitor name
policyname
Removes the policy.
switch# config t
Enters configuration mode.
Step 3
switch(config-port-monitor)# port-type
access-port
Applies the policy to the access ports.
switch(config-port-monitor)# port-type trunks
Applies the policy to the trunk ports.
switch(config-port-monitor)# port-type all
Applies the policy to all ports.
Step 4
switch(config-port-monitor)# counter
credit-loss-reco poll-interval
seconds
percentage1
event
event-id
delta
rising-threshold
percentage1
event
event-id
Specifies the delta credit loss recovery counter,
poll interval in seconds, the thresholds in
percentage, and the event IDs of events.
Step 5
switch(config-port-monitor)# monitor counter
err-pkt-from-port
1
switch(config-port-monitor)# counter
err-pkt-from-port
1
poll-interval
seconds
delta rising-threshold
eventcount1
event
event-id
falling-threshold
2
eventcount2
event
event-id
Activates the err-pkt-from-port counter.
Specifies the delta err-pkt-from-port counter,
poll interval in seconds, the thresholds in
percentage, and the event IDs of events.
Step 6
switch(config-port-monitor)# monitor counter
err-pkt-from-xbar
1
switch(config-port-monitor)# counter
err-pkt-from-xbar
1
poll-interval
seconds
delta rising-threshold
eventcount1
event
event-id
Activates the err-pkt-from-xbar counter.
Specifies the delta err-pkt-from-xbar counter,
poll interval in seconds, the thresholds in the
count of error frame events, and the event IDs of
events.
Step 7
switch(config-port-monitor)# monitor counter
err-pkt-to-xbar
1
switch(config-port-monitor)# counter
err-pkt-to-xbar
1
poll-interval
seconds
delta
rising-threshold
eventcount1
event
event-id
falling-threshold
2
eventcount2
event
event-id
Activates the err-pkt-to-xbar counter.
Specifies the delta err-pkt-to-xbar counter, poll
interval in seconds, the thresholds in the count of
error frame events, and the event IDs of events.
Step 8
switch(config-port-monitor)# counter
invalid-crc poll-interval
seconds
delta
rising-threshold
percentage1
event
event-id
falling-threshold
2
percentage2
event
event-id
Specifies the delta invalid CRC, poll interval in
seconds, the thresholds in percentage, and the
event IDs of events to be triggered.
Step 9
switch(config-port-monitor)# counter
invalid-words poll-interval
seconds
delta
rising-threshold
percentage1
event
event-id
falling-threshold
2
percentage2
event
event-id
Specifies the delta invalid words, poll interval in
seconds, the thresholds in percentage, and the
event IDs of events to be triggered.