Command Manual (For Soliton) – SNMP-RMON
H3C S3100 Series Ethernet Switches
Chapter 1 SNMP Configuration Commands
1-14
Note:
An S3100 Ethernet switch provides the following functions to prevent attacks through
unused UDP ports.
z
Starting the SNMP agent opens UDP port used by SNMP agents and the UDP port
used by SNMP trap respectively.
z
Shutting down the SNMP agent closes UDP ports used by SNMP agents and SNMP
trap as well.
1.1.11 snmp-agent calculate-password
Syntax
snmp-agent calculate-password plain-password mode
{
md5
|
sha
}
{
local-engineid
|
specified-engineid engineid
}
View
System view
Parameters
plain-password
: The plain-text password to be encrypted, in the range 1 to 64
characters.
mode
: Specifies the authentication algorithm used to encrypt a plain text password.
md5
: Uses HMAC MD5 algorithm.
sha
: Uses HMAC SHA algorithm, which is securer than MD5 algorithm.
local-engineid
: Uses the local engine ID to calculate the key.
specified-engineid
: Uses the specified engine ID to calculate the key.
engineid
: A case-insensitive hexadecimal string used for key calculation. The system
capitalizes the string. The length of the string must be an even number and in the range
10 to 64 characters.
Description
Use the
snmp-agent calculate-password
command to encrypt a plain-text password
to generate a cipher-text one by using the specified encryption algorithm.
When creating an SNMPv3 user, if you specify an authentication or privacy password
as in cipher text, you need to use this command to generate a cipher text password by
using the specified algorithm, and copy the generated cipher text password to use.
The generated password is related to engine ID: password generated under an engine
ID can only take effect on this engine ID.