Configuring for Network Management Applications

Using SNMP Tools To Manage the Switch

CLI: Viewing and Configuring SNMP Community Names

Community Name Commands

Page

 

 

show snmp-server [<community-string>]

13-16

[no] snmp-server

13-17

[community <community-str>]

13-17

[host <community-str> <ip-addr>]

13-22

[<none debug all not-info critical>]

 

[enable traps <authentication>

13-23

 

 

Listing Community Names and Values. This command lists the data for currently configured SNMP community names (along with trap receivers and the setting for authentication traps — see “SNMP Notification and Traps” on page 13-18).

Syntax: show snmp-server [<community-string>]

This example lists the data for all communities in a switch; that is, both the default HPswitch "public" community name and another community named "blue-team"

Default

Community and

Settings

Non-Default

Community and

Settings

Trap Receiver Data (See page 13-18.)

Figure 13-7. Example of the SNMP Community Listing with Two Communities

To list the data for only one community, such as the "public" community, use the above command with the community name included. For example:

HPswitch# show snmp-server public

13-16