Previous page Next page

Creating or Modifying a Community String for the Switch

To create or modify a community string to access the switch, use the following CLI command:

(configure)# snmp-server community <community-string> group <groupname> [<ip-addr> [notify]]

Table 5-8 defines the command keywords and variables.

Table 5-8. snmp-server community
Field
Definition
<community-string>
The name of the community string. The community string can range from 1 to 26 characters.

IMPORTANT: Important: Do not assign a community string and SNMPv3 user the same name.


<groupname>
Name of the group to which you are assigning the community string.

IMPORTANT: Important: Do not assign the community string to a group that requires authentication or encryption. Community strings do not support authentication or encryption.


<ip-addr>
The IP address from which the community string is valid. Trap messages are sent to this IP address if you enter the notify option.
[notify]
Sends trap messages to the IP address that you specify.


Previous page Next page