C
HAPTER
25
| SNMP Commands
– 641 –
EXAMPLES
This view includes MIB-2.
Console(config)#snmp-server view mib-2 1.3.6.1.2.1 included
Console(config)#
This view includes the MIB-2 interfaces table, ifDescr. The wild card is used
to select all the index values in this table.
Console(config)#snmp-server view ifEntry.2 1.3.6.1.2.1.2.2.1.*.2 included
Console(config)#
This view includes the MIB-2 interfaces table, and the mask selects all
index entries.
Console(config)#snmp-server view ifEntry.a 1.3.6.1.2.1.2.2.1.1.* included
Console(config)#
show snmp engine-
id
This command shows the SNMP engine ID.
COMMAND MODE
Privileged Exec
EXAMPLE
This example shows the default engine ID.
Console#show snmp engine-id
Local SNMP EngineID: 8000002a8000000000e8666672
Local SNMP EngineBoots: 1
Remote SNMP EngineID IP address
80000000030004e2b316c54321 192.168.1.19
Console#
Table 47: show snmp engine-id - display description
Field Description
Local SNMP engineID String identifying the engine ID.
Local SNMP engineBoots The number of times that the engine has (re-)initialized since
the snmp EngineID was last configured.
Remote SNMP engineID String identifying an engine ID on a remote device.
IP address IP address of the device containing the corresponding remote
SNMP engine.