Network Management Protocol (SNMP) Commands
875
OL-32830-01 Command Line Interface Reference Guide
45
Example
The following example creates a filter that includes all objects in the MIB-II system
group except for sysServices (System 7) and all objects for interface 1 in the
MIB-II interfaces group (this format depends on the parameters define din ifEntry).
switchxxxxxx(config)#
snmp-server filter
f1 system included
switchxxxxxx(config)#
snmp-server filter
f2 system.7 excluded
switchxxxxxx(config)#
snmp-server filter
f3 ifEntry.*.1 included
45.13 show snmp filters
To display the defined SNMP filters, use the show snmp filters Privileged EXEC
mode command.
Syntax
show snmp filters [
filtername
]
Parameters
filtername—Specifies the filter name. (Length: 1–30 characters)
Default Configuration
If filtername is not defined, all filters are displayed.
Command Mode
Privileged EXEC mode
Example
The following example displays the configured SNMP filters.
switchxxxxxx#
show snmp filters user-filter
Name
OID Tree
Type
------------
user-filter
user-filter
user-filter
---------------------
1.3.6.1.2.1.1
1.3.6.1.2.1.1.7
1.3.6.1.2.1.2.2.1.*.1
---------
Included
Excluded
Included
Summary of Contents for 300 Series
Page 2: ......