Command Manual (For Soliton) – Login
H3C S3100 Series Ethernet Switches
Chapter 2 Commands for User Control
2-5
Examples
# Create an SNMP group named
h123
and apply ACL 2001 for network management
users (assuming that basic ACL 2001 already exists).
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] snmp-agent group v1 h123 acl 2001
2.1.6 snmp-agent usm-user
Syntax
For SNMPv1 and SNMPv2c:
snmp-agent usm-user
{
v1
|
v2c
}
user-name
group-name
[
acl
acl-number
]
undo snmp-agent usm-user
{
v1
|
v2c
}
user-name
group-name
For SNMPv3:
snmp
-
agent usm
-
user
v3
user-name
group-name
[ [
cipher
]
authentication
-
mode
{
md5
|
sha
}
auth-password
[
privacy
-
mode
{
aes128
|
des56
}
priv-password
] ] [
acl
acl-number
]
undo snmp
-
agent usm
-
user
v3
user-name
group-name
{
engineid
engineid-string
|
local
}
View
System view
Parameters
v1
: SNMPv1.
v2c
: SNMPv2c.
v3
: SNMPv3.
user-name
: User name, a string of 1 to 32 characters.
group-name
: Name of the group to which the user corresponds. This argument is a
string of 1 to 32 characters.
cipher
:
Specifies the authentication or encryption password to be in ciphertext.
authentication-mode
: Requires authentication. If this keyword is not provided, neither
authentication nor encryption is performed.
md5
: Adopts HMAC-MD5 algorithm.
sha
: Adopts HMAC-SHA algorithm.
auth-password
: Authentication password, a string of 1 to 64 characters in plain text, a
32-bit hexadecimal number in cipher text if MD5 algorithm is used, and a 40-bit
hexadecimal number in cipher text if SHA algorithm is used.