Snmp-Agent Usm-User V3 - H3C s3100 series Command Manual

Hide thumbs Also See for s3100 series:
Table of Contents

Advertisement

<Sysname> system-view
[Sysname] acl number 2001
[Sysname-acl-basic-2001] rule permit source 1.1.1.1 0.0.0.0
[Sysname-acl-basic-2001] rule deny source any
[Sysname-acl-basic-2001] quit
[Sysname] snmp-agent sys-info version v2c
[Sysname] snmp-agent group v2c readCom
[Sysname] snmp-agent usm-user v2c userv2c readCom acl 2001
Specify the SNMP version of the NMS with an IP address 1.1.1.1 as SNMPv2c, fill the write community
name field with userv2c. Then the NMS can access the agent.

snmp-agent usm-user v3

Syntax
snmp-agent usm-user v3 user-name group-name [ [ cipher ] authentication-mode { md5 | sha }
auth-password [ privacy-mode { des56 | aes128 } priv-password ] ] [ acl acl-number ]
undo snmp-agent usm-user v3 user-name group-name { local | engineid engineid-string }
View
System view
Parameters
user-name: Username, a string of 1 to 32 characters.
group-name: Name of the group corresponding to the user, a string of 1 to 32 characters.
cipher: Specifies the authentication password (auth-password) or encryption password (priv-password)
to be in cipher text. The cipher text password can be calculated using the snmp-agent
calculate-password command.
authentication-mode: Specifies the security mode as authentication required. If you do not specify this
keyword, neither authentication nor encryption is performed.
md5: Uses HMAC MD5 algorithm for authentication.
sha: Uses HMAC SHA algorithm for authentication, which is securer than MD5.
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.
privacy: Specifies the security mode as encrypted.
des56: Specifies the encryption protocol as Data Encryption Standard (DES).
aes128: Specifies the encryption protocol as Advanced Encryption Standard (AES), which is securer
than DES.
priv-password: Encryption 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.
acl-number: Binds a user with an ACL, where acl-number represents ACL number, in the range 2000 to
2999. Using ACLs can restrict the source addresses of SNMP messages, namely, permitting or refusing
1-27

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents