Configuring for Network Management Applications

Using SNMP Tools To Manage the Switch

CLI: Viewing and Configuring Community Names

Community Name Commands

Page

 

 

show snmp-server [<community-string>]

10-6

[no] snmp-server

10-7

[community <community-str>]

10-7

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

10-10

[<none debug all not-info critical>]

 

[enable traps <authentication>

10-11

 

 

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 “Trap Receivers and Authentication Traps” on page 10-8).

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

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

Default

Community and

Settings

Non-Default

Community and

Settings

Trap Receiver Data (See page 10-8.)

Figure 10-3. 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

10-6