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

Syntax:


show snmp-server [< community-string >]

Example:

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

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