SNMP
CLI Commands for Configuring SNMPv3 Targets
To create a notification target, use the snmp‐server targets command from the CLI configuration mode. To assign a filter to a target, use the snmp‐server filter‐assignment command. To view the current SNMP targets, use the show snmp target command from the CLI Executive mode. To view filter assignment to targets, use the show snmp filter‐assignments command.
Example
RoamAbout
RoamAbout 4102#show snmp target
Host ID | : mytraps |
User | : chris |
IP Address | : 192.168.1.33 |
UDP Port | : 162 |
=============================
RoamAbout 4102#show snmp
HostID FilterID
mytraps trapfilter
RoamAbout 4102#
CLI Commands for Configuring SNMPv3 Trap Filters
To create a notification filter, use the snmp‐server filter command from the CLI configuration mode. Use the command more than once with the same filter ID to build a filter that includes or excludes multiple MIB objects. To view the current SNMP filters, use the show snmp filter command from the CLI Executive mode.
Example
RoamAbout
.1.3.6.1.2.1.2.2.1.1.23
RoamAbout 4102(config)#exit
RoamAbout 4102#show snmp filter
Filter: trapfilter
Type: include
Subtree: iso
Type: exclude
Subtree: iso.3.6.1.2.1.2.2.1.1.23
=============================
RoamAbout 4102#