To monitor the status of SNMP operations on your network, enter Privileged Exec mode. You can then establish a baseline and use the show commands to view statistics.
SNMP statistics are stored in system counters. The only way to reset the system counters is to reboot the router. You can, however, establish a baseline for SNMP statistics by setting a group of reference counters to zero.
baseline snmp
host1#baseline snmp
host1#show snmp
Contact: Joe Administrator
Location: Network Lab, Bldg 3 Floor 1
2 SNMP packets input
0 Bad SNMP version errors
0 Unknown community name
0 Illegal operation for community name supplied
0 Encoding errors
0 Number of requested variables
0 Number of altered variables
1 Get-request PDUs
1 Get-next PDUs
0 Set-request PDUs
0 Unknown security models
0 Unavailable contexts
2 SNMP packets out
0 Too big errors (Maximum packet size 1500)
1 No such name errors
0 Bad values errors
0 General errors
2 Get-response PDUs
0 SNMP trap PDUs
0 Invalid Message Report PDUs
0 Unknown PDU Handler Report PDUs
0 Unknown Context Report PDUs
0 Unsupported Security Level Report PDUs
0 Not in time Window Report PDUs
0 Unknown Username Report PDUs
0 Unknown Engine ID Report PDUs
0 Wrong Digest Report PDUs
0 Decryption Error Report PDUs
To view SNMP status on your network, use the following show commands.
show snmp
host1#show snmp
Contact: Joe Administrator
Location: Network Lab, Bldg 3 Floor 1
538 SNMP packets input
0 Bad SNMP version errors
0 Unknown community name
0 Illegal operation for community name supplied
0 Encoding errors
695 Number of requested variables
0 Number of altered variables
26 Get-request PDUs
512 Get-next PDUs
0 Set-request PDUs
0 Unknown security models
0 Unavailable contexts
538 SNMP packets out
0 Too big errors (Maximum packet size 1500)
10 No such name errors
0 Bad values errors
0 General errors
538 Get-response PDUs
0 SNMP trap PDUs
0 Invalid Message Report PDUs
0 Unknown PDU Handler Report PDUs
0 Unknown Context Report PDUs
0 Unsupported Security Level Report PDUs
0 Not in time Window Report PDUs
0 Unknown Username Report PDUs
0 Unknown Engine ID Report PDUs
0 Wrong Digest Report PDUs
0 Decryption Error Report PDUs
show snmp access
host1#show snmp access Group Name Model Level Read Write Notify ------------------ ----- ----- ----------- ----------- --------- admin usm priv everything everything everything mirror usm priv mirrorAdmin mirrorAdmin mirrorAdmin public usm none user none none private usm auth user user user
show snmp community
host1#show snmp community
Community View Priv AccList ------------------------------------------ ---- ------- admin@default everything rw 0 private@default user rw 0 public@default user ro 0
show snmp group
host1#show snmp group Group Name Storage Type ---------------------------------------- --------------- group1 Volatile group2 NonVolatile admin Permanent mirror Permanent public Permanent private Permanent
show snmp notificationLog
host1#show snmp notificationLog Global Age Out Value: 1440 minutes Global Entry Limit Value : 500 No notification log name information is available
show snmp trap
host1# show snmp trap
Enabled Categories: Bgp, Ospf, Sonet
SNMP authentication failure trap is disabled
Trap Source: FastEthernet 6/0, Trap Source Address:172.27.120.78
Trap Proxy: enabled
Global Trap Severity Level: 7 - debug
Trap Severity Level TrapCategories
------------------- -------------------
7 - debug ospf
Address Security String Ver Port Trap Categories
--------------- -------------------------------- --- ----- ----------------
192.168.1.10 public v1 162 BgpOspf
Address TrapSeverityFilter Ping Maximum Queue Queue Full
TimeOut QueueSize DrainRate discrd methd
--------------- ------------------ ------- --------- --------- -------------
192.168.1.10 2 - critical 1 32 0 dropLastIn
show snmp trap statistics
host1#show snmp trap statistics
Trap request(s):3112
Proxy trap request(s):0
Trap(s) discarded:4
No system memory:0
No queue resources:0
SNMP agent disabled:0
Global trap category disabled:4
Global minimum severity level:0
Trap(s) out:3108
Trap(s) proxied:0
Address TrapsDiscarded TrapsDiscrded TrapsDiscrded TrapsDiscrded
Severity/Category bad encoding Queue Full NoHostRespons
--------------- ----------------- ------------- ------------- -------------
1.1.1.1 1081 0 511 32
10.10.132.137 0 0 0 0
Address Trap PDUs
sentOut
--------------- ---------
1.1.1.1 536
10.10.132.137 3108
show snmp user
host1#show snmp user
User Auth Priv Group ------------------------ ---- ---- ------------------- josie md5 des admin nightfly md5 no private steelydan no no public
show snmp view
host1#show snmp view
View Name View Type Oid Tree -------------- --------- --------------------------- user included 1.3.6.1. user excluded 1.3.6.1.4.1.4874.2.2.16. user excluded 1.3.6.1.6.3.11. user excluded 1.3.6.1.6.3.12. user excluded 1.3.6.1.6.3.13. user excluded 1.3.6.1.6.3.14. user excluded 1.3.6.1.6.3.15. user excluded 1.3.6.1.6.3.16. user excluded 1.3.6.1.6.3.18. nothing excluded 1.3.6.1. everything included 1.3.6.1. everything excluded 1.3.6.1.4.1.4874.2.2.77. mirrorAdmin included 1.3.6.1.4.1.4874.2.2.77.
You can use the output filtering feature of the show commands to include or exclude lines of output based on a text string you specify. See Command-Line Interface, for details.