Switch 7700 Command reference Guide, v2.0

Table Of Contents
298 CHAPTER 7: USING QOS/ACL COMMANDS
Example
Creates a new SNMP group: MyCompany, and perform the ACL control to the
group through ACL 21. (Suppose ACL 21 has been defined.)
[SW7700]snmp-agent group v1 MyCompany acl 21
snmp-agent usm-user Syntax
snmp-agent usm-user { v1 | v2c } user-name group-name [ acl
acl-number ]
undo snmp-agent usm-user { v1 | v2c } user-name group-name
snmp-agent usm-user v3 user-name group-name [ authentication-mode {
md5 | sha } auth-password ] [ acl acl-number ]
undo snmp-agent usm-user v3 user-name group-name { local | engineid
engineid-string }
View
System view
Parameter
username: Specify the user name, ranging from 1 to 32 bytes.
groupname: Specify the group name corresponding to that user, a character string
at the length ranging from 1 to 32 bytes.
v1: Configure to use V1 safe mode.
v2c: Configure to use V2c safe mode.
v3: Configure to use V3 safe mode.
authentication-mode: Specify the safety level as authentication required.
md5: Specify the authentication protocol as HMAC-MD5-96.
sha: Specify the authentication protocol as HMAC-SHA-96.
authpassword: Specify the authentication password with a character string,
ranging from 1 to 64 bytes.
local: Local entity user.
engineid: Specify the related engine ID of the user.
acl acl-number: the number of basic ACL, ranging from 1 to 99.
Description
Use the snmp-agent usm-user command to add a new user to a SNMP group,
and perform the ACL control to the user through the parameter
acl
acl-number
.