Sets the community string and associates it with the user-defined group name to restrict the access of MIB for SNMPv1 and SNMPv2c requests.
None
Global configuration mode
Use a no form of this command to remove an community string or the group from the community.
The maximum number of SNMP communities supported is 256.
The following example adds the community string named public and associates the group name named user with it.
device(config)# snmp-server community public groupname user