User's Manual

Table Of Contents
90
Users Manual of CS-6306R
4.3.1.3 Configuration example
a) Example 1
snmp-server community public RO
snmp-server community private RW
snmp-server host 192.168.10.2 public
The above example shows:
how to set the community string public that can only read all MIB variables.
how to set the community string private that can read and write all MIB variables.
You can use the community string public to read MIB variables in the system. You can also use the
community string private to read MIB variables and write writable MIB variables in the system.
The above command specifies the community string public to send traps to 192.168.10.2 when a system
requires to send traps. For example, when a port of a system is in the down state, the system will send a
linkdown trap information to 192.168.10.2.
b) Example 2
snmp-server engineID remote 90.0.0.3 80000523015a000003
snmp-server group getter v3 auth
snmp-server group setter v3 priv write v-write
snmp-server user get-user getter v3 auth sha 12345678
snmp-server user set-user setter v3 encrypted auth md5 12345678
snmp-server user notifier getter remote 90.0.0.3 v3 auth md5 abcdefghi
snmp-server host 90.0.0.3 informs version v3 auth notifier
snmp-server view v-write internet included
The above example shows how to use SNMPv3 to manage devices. Group getter can browse device
information, while group setter can set devices. User get-user belongs to group getter while user
set-user belongs to group setter.
For user get-user, its security level is authenticate but not encrypt, its password is 12345678, and it
uses the sha arithmetic to summarize the password.
For user set-user, its security level is authenticate and encrypt, its password is 12345678, and it uses
the md5 arithmetic to summarize the password.
When key events occur at a device, use username notifier to send inform messages to host 90.0.0.3 of
the administrator.