specified-engineid engineid: Uses a user-defined engine ID to calculate the encrypted key. The engineid
argument specifies an SNMP engine ID as a hexadecimal string. It must comprise an even number of
hexadecimal characters, in the range of 10 to 64. All-zero and all-F strings are invalid.
Usage guidelines
Make sure the SNMP agent is enabled before you execute the snmp-agent calculate-password
command.
Use this command to calculate encrypted authentication and privacy keys when you create SNMPv3
users by using the snmp-agent usm-user v3 command.
The converted key is valid only under the engine ID specified for key conversion.
Examples
# Use the local engine and the MD5 algorithm to convert the plaintext key authkey to an encrypted key.
<Sysname> system-view
[Sysname] snmp-agent calculate-password authkey mode md5 local-engineid
The encrypted key is: 09659EC5A9AE91BA189E5845E1DDE0CC
Related commands
•
snmp-agent local-engineid
snmp-agent usm-user v3
•
snmp-agent community
Use the snmp-agent community command to configure an SNMP community.
Use the undo snmp-agent community command to delete an SNMP community.
Syntax
snmp-agent community { read | write } community-name [ acl acl-number | mib-view view-name ] *
undo snmp-agent community { read | write } community-name
Default
No SNMP community exists.
Views
System view
Predefined user roles
network-admin
Parameters
read: Assigns the specified community the read only access to MIB objects. A read-only community can
only inquire MIB information.
write: Assigns the specified community the read and write access to MIB objects. A read and write
community can configure MIB information.
community-name: Sets a community name, a string of 1 to 32 characters.
acl acl-number: Specifies a basic ACL to filter NMSs by source IP address. The acl-number argument
represents a basic ACL number in the range of 2000 to 2999. In the specified community, only the NMSs
with the IP addresses permitted in the ACL can access the SNMP agent.
100