System Management Configuration Guide for Cisco 8000 Series Routers, Cisco IOS XR Releases

PDF

System Management Configuration Guide for Cisco 8000 Series Routers, Cisco IOS XR Releases

Configure linkUp and linkDown traps for a subset of interfaces

Want to summarize with AI?

Log in

Use this task to enable or disable SNMP linkUp and linkDown traps for a specific group of interfaces by specifying a regular expression. This approach streamlines monitoring and reduces unnecessary notifications at scale.


Enable or disable SNMP linkUp and linkDown interface notifications for only the interfaces you specify.

In large networks, enabling SNMP linkUp/linkDown traps for all interfaces can generate excessive notifications. Defining interface subsets lets you focus monitoring and reduce alert noise.

Before you begin

SNMP must be configured.

Procedure

1.

Define an interface subset using a regular expression.

Example:

Router(config)#snmp-server interface subset 10 regular-expression "^Gig[a-zA-Z]+[0-9/]+\."

Enters snmp-server interface mode for the interfaces identified by the regular expression.

The subset-number argument identifies the set of interfaces, and also assigns a priority to the subset in the event that an interface is included in more than one subset. Lower numbers have higher priority and their configuration takes precedent over interface subsets with higher numbers.

The expression argument must be entered surrounded by double quotes.

2.

Disable or enable linkUp and linkDown traps for all interfaces.

Example:

Router(config-snmp-if-subset)#notification linkupdown disable

To enable previously disabled interfaces, use the no form of this command.

3.

(Optional) Display the linkUp and linkDown notification status for all interfaces identified by the subset priority.

Example:

Router#show snmp interface notification subset 10
4.

(Optional) Display the linkUp and linkDown notification status for all interfaces identified by the regular expression.

Example:

Router#show snmp interface notification regular-expression "^Gig[a-zA-Z]+[0-9/]+\."
	
5.

(Optional) Displays the linkUp and linkDown notification status for the specified interface.

Example:

Router#show snmp interface notification tengige 0/4/0/3.10 

The device enables or disables SNMP linkUp and linkDown traps only for the specified group of interfaces, helping you streamline monitoring and avoid unnecessary notifications.