SNMPv1 and SNMPv2c community strings are used to define the relationship between an SNMP manager and agent. The community string acts like a password to allow access to the agent. The access granted with a community string is restricted to the scope of the configured group.
One or more of the following characteristics associated with the string can be specified:
read-only, read-write, and read-write-all permission for the MIB objects accessible to the community
assignment of a unique community string to the management router or management VPLS
the SNMP version: SNMPv1, SNMPv2c, or both
Default access features are preconfigured by the agent for SNMPv1 and SNMPv2c.
Use the following CLI syntax to configure community options:
config>system>security>snmp
community community-string [hash | hash2] access-permissions [version SNMP-version]
The following example displays community string command usage:
config>system>security# snmp
config>system>security>snmp# community private hash2 rwa version both
config>system>security>snmp# community public hash2 r version v2c
The following example displays the SNMP community configuration:
ALU-1>config>system>security>snmp# info
-------------------------------------------------------
community "uTdc9j48PBRkxn5DcSjchk" hash2 rwa version both
community "Lla.RtAyRW2" hash2 r version v2c
-------------------------------------------------------
ALU-1>config>system>security>snmp#