Displaying snmp status, Table 22-4 – Cisco 15327 User Manual

Page 380

Advertising
background image

22-14

Ethernet Card Software Feature and Configuration Guide, R7.2

Chapter 22 Configuring SNMP

Displaying SNMP Status

This example shows how to allow read-only access for all objects to members of access list 4 that use
the comaccess community string. No other SNMP managers have access to any objects. SNMP
authentication failure traps are sent by SNMPv2c to the host cisco.com using the community string
“public.”

ML_Series(config)# snmp-server community comaccess ro 4

ML_Series(config)# snmp-server enable traps snmp authentication

ML_Series(config)# snmp-server host cisco.com version 2c public

This example shows how to send Entity MIB traps to the host cisco.com. The community string is
restricted. The second line specifies the destination of these traps and overwrites any previous
snmp-server host commands for the host cisco.com.

ML_Series(config)# snmp-server enable traps

ML_Series(config)# snmp-server host cisco.com restricted

This example shows how to enable the ML-Series card to send all traps to the host myhost.cisco.com
using the community string “public.”

ML_Series(config)# snmp-server enable traps

ML_Series(config)# snmp-server host myhost.cisco.com public

Displaying SNMP Status

To display SNMP input and output statistics, including the number of illegal community string entries,
errors, and requested variables, use the show snmp privileged EXEC command.You can also use the
other privileged EXEC commands in

Table 22-4

to display SNMP information. For information about

the fields in the output displays, see the Cisco IOS Configuration Fundamentals Command Reference,
Release 12.2
.

Table 22-4

Commands for Displaying SNMP Information

Feature

Default Setting

show snmp

Displays SNMP statistics.

show snmp group

Displays information about each SNMP group on the network.

show snmp pending Displays information about pending SNMP requests.

show snmp sessions Displays information about the current SNMP sessions.

show snmp user

Displays information about each SNMP user name in the SNMP users table.

Advertising