Use the following configuration statements to configure community strings for traditional access control:
- snmp community community {
- authorization (read-only|read-write);
- clients clients;
- oid oid;
- }
To configure community strings:
- [edit]
- user@host# edit snmp community community
To specify read-only access:
- [edit snmp community community]
- user@host# set authorization read-only
To specify read and write access:
- [edit snmp community community]
- user@host# set authorization read-write
- [edit snmp community community]
- user@host# set clients clients
By default, all clients are allowed.
- [edit snmp community community]
- user@host# set oid oid
[edit snmp community community] user@host# show