CLI: Viewing and Configuring Community Names
Community Name Commands Used in This Section
show snmp-server [<community-string>]
snmp-server
[contact <contact-str>]
[location <location-str>]
[community <community-str>]
[host <community-str> <ip-addr>]
[enable traps <authentication>
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-9).
Syntax:
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."
SMC6624M(config)# show snmp-server
Default
Community and
SNMP Communities
Settings
Community Name
---------------- -------- ------------
public
red-team
Non-Default
Trap Receivers
Community and
Send Authentication Traps : No
Settings
Address
---------------------- ---------------- -------------------
Trap Receiver
Data (See page
8-9.)
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:
[<none | debug | all | not-info | critical>]
show snmp-server [<community-string>]
MIB View Write Access
Manager
Manager
Community
Configuring for Network Management Applications
below
page 8-8
page 8-8
page 8-8
page 8-8
page 8-11
page 8-11
Unrestricted
Unrestricted
Events Sent in Trap
SNMP Communities
8-7