and Managing

Switch

Monitoring

the

 

 

Configuring for Network Management Applications

SNMP Communities

CLI: Viewing and Configuring Community Names

Community Name Commands Used in This Section

show snmp-server [<community-string>]

below

snmp-server

page 8-9

[contact <contact-str>]

page 8-9

[location <location-str>]

page 8-9

[community <community-str>]

page 8-9

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

page 8-12

[<none debug all not-info critical>]

 

[enable traps <authentication>

page 8-12

 

 

Listing Current Community Names and Values

Listing Community Names. This command lists the data forcurrently con- figured SNMP community names (along with trap receivers and the setting for authentication traps — see “Trap Receivers and Authentication Traps” on page 8-10).

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 8-10.)

Figure 8-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:

8-8

Page 188
Image 188
HP 2500 CLI Viewing and Configuring Community Names, Listing Current Community Names and Values, Community community-str