Configuration Guide Configuring SNMP
priv: Messages sent by users in the group need to be verified and confidentiality of transmitted data is
required. This configuration is valid for SNMPv3 only.
readview: Associates one read-only view.
writeview: Associates one read/write view.
aclnum: ACL number. The specified ACL is associated and the range of IPv4 NMS addresses from which
access to the MIB is allowed is specified.
aclname: ACL name. The specified ACL is associated and the range of IPv4 NMS addresses from which
access to the MIB is allowed is specified.
ipv6-aclname: IPv6 ACL name. The specified ACL is associated and the range of IPv6 NMS addresses from
which access to the MIB is allowed is specified.
Global configuration mode
Associate certain users with a group and associate the group with a view. Users in a group have the same
access permission. In this way, you can determine whether managed objects associated with an operation
are in the allowable range of a view. Only managed objects in the range of a view can be accessed.
 Configuring an Authentication Name and Access Permission
snmp-server community [ 0 | 7 ] string [ view view-name ] [ [ ro | rw ] [ host ipaddr ] ] [ ipv6 ipv6-aclname]
[ aclnum | aclname ]
0: Indicates that the input community string is a plaintext string.
7: Indicates that the input community string is a ciphertext string.
string: Community string, which is equivalent to the communication password between the NMS and the
SNMP agent.
view-name: Specifies a view name for view-based management.
ro: Indicates that the NMS can only read variables of the MIB.
rw: The NMS can read and write variables of the MIB.
aclnum: ACL number. The specified ACL is associated and the range of IPv4 NMS addresses from which
access to the MIB is allowed is specified.
aclname: ACL name. The specified ACL is associated and the range of IPv4 NMS addresses from which
access to the MIB is allowed is specified.
ipv6-aclname: ACL name. The specified ACL is associated and the range of IPv6 NMS addresses from
which access to the MIB is allowed is specified.
ipaddr: Associates NMS addresses and specifies NMS addresses for accessing the MIB.
Global configuration mode
This command is the first important command for enabling the SNMP agent function. It specifies community
attributes and NMS scope where access to the MIB is allowed.
To disable the SNMP agent function, run the no snmp-server command.
 Configuring an SNMP User
snmp-server user username groupname { v1 | v2c | v3 [ encrypted ] [ auth { md5 | sha } auth-password ]