User-based security model (USM) community strings associate a community string with an SNMPv3 access group and its view. The access granted with a community string is restricted to the scope of the configured group.
By default, the 7705 SAR implementation of SNMP uses SNMPv3. To implement SNMPv1 and SNMPv2c, USM community strings must be explicitly configured.
Use the following CLI syntax to configure USM community options:
config>system>security>snmp
usm-community community-string [hash | hash2] group group-name
The following example displays USM community string command usage. The group ‟testgroup” was configured in the config>system>security>snmp>access CLI context.
config>system>security>snmp# usm-community "test" hash2 group "testgroup"
The following example displays the SNMP community configuration:
ALU-1>config>system>security>snmp# info
----------------------------------------------
view testview subtree 1
mask ff
exit
view testview subtree 1.3.6.1.2
mask ff type excluded
exit
access group testgroup security-model usm security-level auth-no
-privacy read testview write testview notify testview
community "private" hash2 rwa version both
community "public" hash r version v2c
usm-community "test" group "testgroup"
----------------------------------------------
ALU-1>config>system>security>snmp#