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

Removes the policy.

 

policyname

 

 

 

 

 

 

 

switch# config t

 

Enters configuration mode.

Step 3

 

 

 

switch(config-port-monitor)#

port-type

Applies the policy to the access ports.

 

access-port

 

 

 

 

 

 

 

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

Specifies the delta credit loss recovery counter,

 

credit-loss-reco poll-interval seconds

poll interval in seconds, the thresholds in

 

percentage1 event event-id delta

percentage, and the event IDs of events.

 

rising-threshold percentage1 event event-id

 

 

Step 5

 

 

switch(config-port-monitor)# monitor counter

Activates the err-pkt-from-port counter.

 

err-pkt-from-port1

 

Specifies the delta err-pkt-from-port counter,

 

 

 

 

switch(config-port-monitor)# counter

poll interval in seconds, the thresholds in

 

err-pkt-from-port1poll-interval seconds

percentage, and the event IDs of events.

 

delta rising-threshold eventcount1 event

 

 

event-idfalling-threshold2eventcount2 event

 

 

event-id

 

 

Step 6

 

 

switch(config-port-monitor)# monitor counter

Activates the err-pkt-from-xbar counter.

 

err-pkt-from-xbar1

 

Specifies the delta err-pkt-from-xbar counter,

 

 

 

 

switch(config-port-monitor)# counter

poll interval in seconds, the thresholds in the

 

err-pkt-from-xbar1poll-interval seconds

count of error frame events, and the event IDs of

 

delta rising-threshold eventcount1 event

events.

 

event-id

 

 

 

 

Step 7

 

 

switch(config-port-monitor)# monitor counter

Activates the err-pkt-to-xbar counter.

 

err-pkt-to-xbar1

 

Specifies the delta err-pkt-to-xbar counter, poll

 

 

 

 

switch(config-port-monitor)# counter

interval in seconds, the thresholds in the count of

 

err-pkt-to-xbar1poll-interval seconds delta

error frame events, and the event IDs of events.

 

rising-threshold eventcount1 event event-id

 

 

falling-threshold2eventcount2 event event-id

 

Step 8

 

 

switch(config-port-monitor)# counter

Specifies the delta invalid CRC, poll interval in

 

invalid-crc poll-interval seconds delta

seconds, the thresholds in percentage, and the

 

rising-threshold percentage1 event event-id

event IDs of events to be triggered.

 

falling-threshold2percentage2 event event-id

Step 9

 

 

switch(config-port-monitor)# counter

Specifies the delta invalid words, poll interval in

 

invalid-words poll-interval seconds delta

seconds, the thresholds in percentage, and the

 

rising-threshold percentage1 event event-id

event IDs of events to be triggered.

 

falling-threshold2percentage2 event event-id

 

 

 

 

 

Cisco MDS 9000 Family NX-OS Interfaces Configuration Guide

2-32

OL-29284-01, Release 6.x

Page 54
Image 54
Cisco Systems DSC9148D8G48PK9 manual Configuring a Port Monitor Policy