Example

The following example shows an S- K- or 7100-Series device configuration using the steps in Configuring Secure Community Names.

System(su)->set snmp access gAdmin security-model usm privacy exact read vSecured write vSecured notify vSecured
System(su)->set snmp access gReadOnlyV1V2C security-model v1   exact read vUnsecured
System(su)->set snmp access gReadOnlyV1V2C security-model v2c  exact read vUnsecured
System(su)->set snmp access gReadWriteV1V2C security-model v1  exact read vUnsecured write vUnsecured
System(su)->set snmp access gReadWriteV1V2C security-model v2c exact read vUnsecured write vUnsecured
System(su)->set snmp community cnPrivate securityname sn_v1v2c_rw
System(su)->set snmp community cnPublic securityname sn_v1v2c_ro
System(su)->set snmp group gReadOnlyV1V2C user sn_v1v2c_ro security-model v1
System(su)->set snmp group gReadWriteV1V2C user sn_v1v2c_rw security-model v1
System(su)->set snmp group gReadOnlyV1V2C user sn_v1v2c_ro security-model v2c
System(su)->set snmp group gReadWriteV1V2C user sn_v1v2c_rw security-model v2c
System(su)->set snmp group gAdmin user it-admin security-model usm
System(su)->set snmp user it-admin authentication sha auth_key privacy priv_key
System(su)->set snmp view viewname vSecured subtree 1
System(su)->set snmp view viewname vSecured subtree 0.0
System(su)->set snmp view viewname vUnsecured subtree 1
System(su)->set snmp view viewname vUnsecured subtree 0.0
System(su)->set snmp view viewname vUnsecured subtree 1.3.6.1.6.3.15 excluded
System(su)->set snmp view viewname vUnsecured subtree 1.3.6.1.6.3.16 excluded
System(su)->set snmp view viewname vUnsecured subtree 1.3.6.1.6.3.18.1.1 excluded