mac

Commands for Basic Switch Configuration
75
this user.
Command Mode: Global Mode.
Parameter: <user-string> is the user name containing 1-32 characters.
<group-string> is the name of the group the user belongs to, containing
1-32 characters.
authPriv use DES for the packet encryption.
authNoPriv not use DES for the packet encryption.
auth perform packet authentication.
md5 packet authentication using HMAC MD5 algorithm.
sha packet authentication using HMAC SHA algorithm.
<word > user password, containing 8-32 character.
<num-std> is the access-class number for standard numeric ACL, ranging
between 1-99;
<name> is the access-class name for standard ACL, the character string
length is ranging between 1-32;
<ipv6-num-std> is the access-class number for standard numeric IPv6 ACL,
ranging between 500-599;
<name> is the access-class name for standard IPv6 ACL, the character
string length is ranging between 1-32.
Usage Guide: If the encryption and authentication is not selected, the default settings
will be no encryption and no authentication. If the encryption is selected, the
authentication must be done. When deleting a user, if correct username and incorrect
group name is inputted, the user can still be deleted.
Example:
Add a new user tester in the UserGroup with an encryption safety level and HMAC md5
for authentication, the password is hellohello
Switch (config)#snmp-server user tester UserGroup authPriv auth md5 hellohello
Delete an User
Switch (config)#no snmp-server user tester
1.4.22 snmp-server view
Command: snmp-server view <view-string> <oid-string> {include | exclude}
no snmp-server view <view-string> [ <oid-string> ]
Function: This command is used to create or renew the view information; the “no" form
of this command deletes the view information.
Command Mode: Global Mode.