Syntax
snmp-agent
undo snmp-agent
Default
SNMP agent is disabled.
Views
System view
Predefined user roles
network-admin
Usage guidelines
The snmp-agent command is optional for an SNMP configuration task. The SNMP agent is automatically
enabled when you perform any command that begins with snmp-agent except for the snmp-agent
calculate-password command.
Examples
# Enable the SNMP agent.
<Sysname> system-view
[Sysname] snmp-agent
snmp-agent calculate-password
Use the snmp-agent calculate-password command to convert a plaintext key to an encrypted key for
authentication or encryption in SNMPv3.
Syntax
snmp-agent calculate-password plain-password mode { md5 | sha } { local-engineid |
specified-engineid engineid }
Views
System view
Predefined user roles
network-admin
Parameters
plain-password: Specifies a plaintext authentication or privacy key.
mode: Specifies the same authentication mode as configured in the snmp-agent usm-user v3 command.
MD5 is faster than SHA- 1 , while SHA- 1 provides higher security than MD5.
md5: Converts the plaintext authentication key to an encrypted key for MD5 authentication, or
•
converts the plaintext privacy key to an encrypted key for AES or DES encryption used in
conjunction with MD5.
sha: Converts the plaintext authentication key to an encrypted key for SHA- 1 authentication, or
•
converts the plaintext privacy key to an encrypted key for AES or DES encryption used in
conjunction with SHA- 1 authentication.
local-engineid: Uses the local engine ID to calculate the encrypted key. You can configure the local
engine ID by using the snmp-agent local-engineid command.
99