Chapter 2 Configuring Interfaces

Configuring Interfaces

Activating a Port Monitor Policy

Detailed Steps

To activate a port monitor policy, follow these steps:

 

Command

Purpose

Step 1

 

 

switch# config t

Enters configuration mode.

Step 2

 

 

switch(config)# port-monitor activate

Activates the specified port monitor policy.

 

policyname

 

 

 

 

 

switch(config)# port-monitor activate

Activates the default port monitor policy.

 

 

 

 

switch(config)# no port-monitor activate

Deactivates the specified port monitoring policy.

 

policyname

 

 

 

 

Configuring a Port Monitor Port Guard

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

 

Step 3

 

 

switch(config-port-monitor)# counter

Specifies the delta link loss, poll interval in

 

 

 

link-loss poll-interval seconds delta

seconds, the thresholds in percentage, and the

 

 

 

rising-threshold percentage1 event event-id

event IDs of events to be triggered. It also

 

 

 

falling-threshold percentage2 event event-id

 

 

 

specifies that the port is flappped (is up or down)

 

 

 

portguard flap

 

 

 

when the event occurs.

 

 

 

 

Step 4

 

 

switch(config-port-monitor)# counter

Specifies the delta link loss, poll interval in

 

 

 

link-loss poll-interval seconds delta

seconds, the thresholds in percentage, and the

 

 

 

rising-threshold percentage1 event event-id

event IDs of events to be triggered. It also

 

 

 

falling-threshold percentage2 event event-id

 

 

 

specifies that the interface is down (error

 

 

 

portguard errordisable

 

 

 

disabled) when the event occurs.

 

 

 

 

 

 

 

 

 

 

 

 

Note

By default, the port monitor port guard is disabled. To enable this feature, you must explicitly configure

 

 

 

the port monitor port guard feature on a particular counter by performing Step 3 or Step 4.

 

 

 

 

 

Configuring Port Group Monitor

This section includes the following topics:

Enabling Port Group Monitor, page 2-35

Configuring a Port Group Monitor Policy, page 2-35

 

Cisco MDS 9000 Family NX-OS Interfaces Configuration Guide

2-34

OL-29284-01, Release 6.x

Page 56
Image 56
Cisco Systems DSC9148D8G48PK9 manual Configuring a Port Monitor Port Guard, Configuring Port Group Monitor