[Contents] [Prev] [Next] [Index] [Report an Error]


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 system. 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

Viewing SNMP Status

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
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 trap

host1#show snmp trap

Enabled Categories: Snmp, Link, Bulkstats, FileXfer, Bgp, Log, CliSecurity,
Ping, Ospf, AddressPool, AtmPing
SNMP authentication failure trap is enabled
Trap Source: fastEthernet 0/0
Trap Proxy: disabled
Global Trap Severity Level: 4 - warning
Trap PDUs sent: 0
Trap PDUs filtered: 53

Address         Security String                 Ver  Port  Trap Categories
--------------  ------------------------------  ---  ----- ----------------
10.5.0.200      private                        v2c  162
SnmpLinkInvEnvBstFxfBgpLogcliPingOspfTraceDvmrpDvmrpUniAdrPatmPing

Address          TrapSeverityFilter  TrapPDUsSent  TrapPDUsFiltered
---------------  ------------------  ------------  ----------------
10.5.0.200       5 - notice          0             0    

    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
--------------  ---------  ---------------------------
everything      included   1.3.6.1.
user            included   1.3.6.1.
user            excluded   1.3.6.1.4.1.2773.2.16.
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.

Output Filtering

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 Chapter 2, Command Line Interface, for details.


[Contents] [Prev] [Next] [Index] [Report an Error]