The user name is user1, the group name is group1, the user authentication mode is SHA, the authentication password is authkey123, the user encryption mode is aes128, the encryption password is prikey123, the read, write and notify view names are hardy, and the view includes the internet subtree.
huawei(config)#snmp-agent usm-user v3 user1 group1
authentication-mode sha authkey123 privacy-mode aes128 prikey123
huawei(config)#snmp-agent group v3 group1 privacy read-view hardy write-view hardy notify-view hardy
huawei(config)#snmp-agent mib-view hardy include internet
Set the SNMP version.
The SNMP version is SNMP V3.
NOTE:
The SNMP version must be the same as the SNMP version set on the U2000.
huawei(config)#snmp-agent sys-info version v3
Enable the function of sending traps.
On the MA5600T/MA5603T/MA5608T, enable the function of sending traps to the U2000.
huawei(config)#snmp-agent trap enable standard
Configure the IP address of the destination host for the traps.
The host name is huawei, the IP address of the host is 10.10.1.10/24 (IP address of the U2000), the trap parameter name is ABC, the SNMP version is V3, the parameter security name is user1 (when the SNMP V3 is used, the parameter security name is the USM user name), and the traps are authenticated and encrypted.
Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
Politically sensitive content
Content concerning pornography, gambling, and drug abuse
Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."