# Assign the NMS read and write access to the objects under the interface node (OID 220.127.116.11.2.1.2), and
deny its access to any other MIB objects. Set the user name to managev3user, authentication protocol to
MD5, authentication key to authkey, the privacy protocol to DES56, and the privacy password to prikey.
[Sysname] undo snmp-agent mib-view ViewDefault
[Sysname] snmp-agent mib-view included test interfaces
[Sysname] snmp-agent group v3 managev3group read-view test write-view test
[Sysname] snmp-agent usm-user v3 managev3user managev3group authentication-mode md5
authkey privacy-mode des56 prikey
# Configure contact person and physical location information for the agent.
[Sysname] snmp-agent sys-info contact Mr.Wang-Tel:3306
[Sysname] snmp-agent sys-info location telephone-closet,3rd-floor
# Enable traps, specify the NMS at 18.104.22.168 as a trap destination, and set the username managev3user for
[Sysname] snmp-agent trap enable
[Sysname] snmp-agent target-host trap address udp-domain 22.214.171.124 params securityname
managev3user v3 privacy
Configuring the SNMP NMS
Specify the SNMP version for the NMS as v3.
Create two SNMP users: managev3user and public.
Enable both authentication and privacy functions
Use MD5 for authentication and DES for encryption.
Set the authentication key to authenkey and the privacy key to prikey.
Set the timeout time and maximum number of retries.
For information about configuring the NMS, see the manual for the NMS.
The SNMP settings on the agent and the NMS must match.
Verify the configuration
After the configuration, an SNMP connection is established between the NMS and the agent. The
NMS can get and configure the values of some parameters on the agent through MIB nodes.
Execute the shutdown or undo shutdown command to an idle interface on the agent, and the NMS
receives the corresponding trap.
SNMP logging configuration example
An agent (126.96.36.199/24) connects to an NMS, as shown in
Configure the agent to log the SNMP operations performed by the NMS.