Switch Management Commands 2100
The community name may include any printable characters except a question
mark. Enclose the string in double quotes to include spaces within the name.
The surrounding quotes are not used as part of the name. The CLI does not
filter illegal characters and may accept entries up to the first illegal character
or reject the entry entirely.
Example
The following example configures community access string public to permit
administrative access to SNMP at an administrative station with IP address
192.168.1.20.
console(config)# snmp-server community public su ipaddress 192.168.1.20
snmp-server community-group
Use the snmp-server community-group command in Global Configuration
mode to map the internal security name for SNMP v1 and SNMP v2 security
models to the group name. To remove the specified community string, use
the no form of this command.
Syntax
snmp-server community-group community-string group-name [ipaddress ip-
address]
• community-string — Community string that acts like a password and
permits access to the SNMP protocol. (Range: 1-20 characters)
• group-name — Name of a previously defined group. The group defines
the objects available to the community. (Range: 1-30 characters)
• ip-address — Management station IP address. The default is any IP
address. Both IPv4 and IPv6 addresses are accepted.
Default Configuration
No community group is defined.
Command Mode
Global Configuration mode