show snmp

Displays various SNMP statistics.
Syntax
show snmp [ engineid | group | server | user ]
Parameters
engineid
Displays local and remote SNMP engine IDs.
group
Displays SNMP groups.
server
Displays SNMP server status and trap information
user
Displays SNMPv3 users details.
Modes

User EXEC mode

The show snmp engineid command displays the following information:

When the SNMP server is disabled, the following warning message is displayed: "SNMP is disabled. Please enable SNMP to run show snmp commands."

Output field Description
Local SNMP Engine ID The engine ID that identifies the source or destination of the packet.
Engine Boots The number of times that the SNMP engine reinitialized itself with the same ID. If the engine ID is modified, the boot count is reset to 0.
Engine time The current time with the SNMP agent.

The show snmpgroup command displays the following information:

Output field Description
groupname The SNMP group name configured using the snmp-server group command.
Security model Indicates which version of SNMP is used for authentication. SNMP version 3 uses a User-Based Security model (RFC 2574) for authentication and privacy services. SNMP version 1 and version 2 use community strings to authenticate SNMP access to management modules. This method can still be used for authentication.
Security level
  • none - If the security model shows v1 or v2, then security level is blank. User names are not used to authenticate users; community strings are used instead.
  • noauthNoPriv - If the security model shows v3 and user authentication is by user name only.
  • authNoPriv - If the security model shows v3 and user authentication is by user name and the MD5 or SHA algorithm.
Examples

The following example displays output of the show snmpengineid command.

device# show snmp engineid
Local SNMP Engine ID: 800007c703748ef88315c0
Engine Boots: 24
Engine time: 1586246

The following example displays output of the show snmpgroup command.

device# show snmp group
groupname = 1n
security model = v3
security level = authNoPriv
ACL id = 1
readview = r
writeview = exit
notifyview = n

groupname = d3
security model = v3
security level = authNoPriv
ACL id = 3
readview = all
writeview = all
notifyview = all

groupname = d4
security model = v3
security level = authNoPriv
ACL id = 3
readview = <none>
writeview = <none>
notifyview = 3

The following example displays output of the show snmpserver command.

device# show snmp server
       Status: Enabled

      Contact: XYZ
     Location: CopyCenter

Max Ifindex per module: 64

Traps
                   Cold start: Enable
                      Link up: Enable
                    Link down: Enable
               Authentication: Enable
         Power supply failure: Enable
                  Fan failure: Enable
             Fan speed change: Enable
              Module inserted: Enable
               Module removed: Enable
Redundant module state change: Enable
          Temperature warning: Enable
                 STP new root: Enable
          STP topology change: Enable
             MAC notification: Enable
        MAC-AUTH notification: Enable
                         VSRP: Enable
                          MRP: Enable
                         UDLD: Enable
                          VRF: Enable
                     link-oam: Enable
                          cfm: Enable
                      nlp-phy: Enable

 Total Trap-Receiver Entries: 0

The following example displays output of the show snmpuser command.

device# show snmp user
username = bob
ACL id = 2
group = admin
security model = v3
group ACL id = 0
authtype = md5
authkey = 3aca18d90b8d172760e2dd2e8f59b7fe
privtype = des, privkey = 1088359afb3701730173a6332d406eec
engine ID= 800007c70300e052ab0000
History
Release version Command history
08.0.90 This command was modified to display BGP BFD session information for neighbors.
08.0.92a The output for this command was modified so that the MD5 password is not displayed in clear text when enable password-display is configured.
09.0.00 The output for the command was modified to include a warning message when the SNMP server is disabled.