SNMP Configuration Commands 489
Example
Configure the IP address of the VLAN interface 1 as the source address for
transmitting the Trap packets.
<SW5500>system-view
System View: return to User View with Ctrl+Z.
[SW5500]snmp-agent trap source vlan-interface 1
snmp-agent usm-user Syntax
snmp-agent usm-user { v1 | v2c }
username groupname
[ acl
acl-list
]
undo snmp-agent usm-user { v1 | v2c }
username groupname
snmp-agent usm-user v3
username groupname
[ authentication-mode {
md5 | sha }
authpassstring
[ privacy-mode { des56
privpassstring
}]]
[ acl
acl-list
]
undo snmp-agent usm-user v3
username groupname
{ local | engineid
engine-id
}
View
System view
Parameter
username
: Enter the user name, up to 32 characters in length.
groupname
: Enter the group name corresponding to that user, up to 32 characters
in length.
v1: Specifies the use of V1 safe mode.
v2c: Specifies the use of V2c safe mode.
v3: Specifies the use of V3 safe mode.
authentication-mode: Specifies the use of authentication.
md5: Specifies that the MD5 algorithm is used in authentication. MD5
authentication uses a128-bit password. The computation speed of MD5 is faster
than that of SHA
sha: Specifies that the SHA algorithm is used in authentication. SHA
authentication uses a 160-bit password. The computation speed of SHA is slower
than that of MD5, but SHA offers higher security.
authpassstring
: Enter the authentication password, up to 64 characters in
length.
privacy-mode: Specifies the use of authentication and encryption.
des 56: Specifies that the DES encryption algorithm is used. Must be entered if
you enter the
privacy-mode parameter.