Configuring LinkUp and LinkDown Traps for a Subset of Interfaces
DETAILED STEPS
Command or Action
Step 1
configure
Step 2
snmp-server interface subset subset-number
regular-expression expression
Example:
RP/0/RSP0/CPU0:router(config)# snmp-server
interface subset 10
regular-expression
"^Gig[a-zA-Z]+[0-9/]+\."
RP/0/RSP0/CPU0:router(config-snmp-if-subset)#
Step 3
notification linkupdown disable
Example:
RP/0/RSP0/CPU0:router(config-snmp-if-subset)#
notification linkupdown disable
Step 4
commit
Step 5
show snmp interface notification subset
subset-number
Example:
RP/0/RSP0/CPU0:router# show snmp interface
notification subset 10
Step 6
show snmp interface notification regular-expression
expression
Example:
RP/0/RSP0/CPU0:router# show snmp interface
notification
regular-expression
"^Gig[a-zA-Z]+[0-9/]+\."
Step 7
show snmp interface notification type
interface-path-id
Example:
RP/0/RSP0/CPU0:router# show snmp interface
notification
tengige 0/4/0/3.10
Cisco ASR 9000 Series Aggregation Services Router System Management Configuration Guide, Release 5.1.x
374
Purpose
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.
Refer to the Understanding Regular Expressions, Special
Characters, and Patterns module in Cisco ASR 9000 Series
Aggregation Services Router Getting Started Guide for more
information regarding regular expressions.
Disables linkUp and linkDown traps for all interfaces being
configured. To enable previously disabled interfaces, use the no
form of this command.
(Optional)
Displays the linkUp and linkDown notification status for all
interfaces identified by the subset priority.
(Optional)
Displays the linkUp and linkDown notification status for all
interfaces identified by the regular expression.
(Optional)
Displays the linkUp and linkDown notification status for the
specified interface.
Implementing SNMP