SNMP Communities


Communities are used in SNMPv1 as a method of controlling access to information. You can create a community using the following command:


CLI network-admin@Leaf1 > snmp-community-create community-string name-string community-type read-only|read-write


To create a SNMP community string named, snmp-group, with read-only privileges, use the following command:


CLI network-admin@Leaf1 > snmp-community-create community-string snmp-group community-type read-only


To modify the SNMP community, snmp-group, to read-write, use the following command:


CLI network-admin@Leaf1 > snmp-community-modify community-string snmp-group community-type read-write

 

To display information about the SNMP community, snmp-group, use the following command:


CLI network-admin@Leaf1 > snmp-community-show community-string snmp-group


switch           community-string          community-type

------           ----------------          --------------

pleiades24       snmp-group                read-only

 

To delete the SNMP community, snmp-group, use the following command:


CLI network-admin@Leaf1 > snmp-community-delete community-string snmp-group