Community names and values
The
snmp-server
command enables you to add SNMP communities with either default or specific access attributes, and to delete specific communities.
Syntax
show snmp-server <COMMUNITY-STRING>
Description
This command lists the data for currently configured SNMP community names along with trap receivers and the setting for authentication traps.
show snmp-server
Lists the data for all communities in a switch; that is, both the default "public" community name and another community named "blue-team."
show snmp-server public
To list the data for only one community, such as the "public" community, use the above command with the community name included. For example:
switch# show snmp-server public