Listing community names and values (CLI)

This command lists the data for currently configured SNMP community names (along with trap receivers and the setting for authentication traps—see SNMP notifications).


show snmp-server [< community-string >]


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

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

switch# show snmp-server public