Monitoring SNMP
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.
Establishing a Baseline
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
■ Use to establish a baseline for SNMP statistics.
■ The system implements the baseline by reading and storing the statistics at the
time the baseline is set and then subtracting this baseline whenever
baseline-relative statistics are retrieved.
■ To display statistics relative to the current baseline, use the delta keyword with
SNMP show commands.
■ SNMP operations (such as Get and Set) continue to use and report statistics from
the system counters.
■ See “Viewing SNMP Status” on page 240 for a sample display when you enter the
show snmp command. If you establish a baseline and then enter show snmp,
the statistics now have zero or low values.
■ Example
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
Monitoring SNMP ■ 239
Chapter 4: Configuring SNMP