192
Usage guidelines
Make sure the SNMP agent is enabled before you execute the
snmp-agent calculate-password
command.
For security purposes, use this command to calculate digests for ciphertext 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 SHA-1 algorithm to calculate a digest for the ciphertext key converted
from the plaintext key
authkey
.
<Sysname> system-view
[Sysname] snmp-agent calculate-password authkey mode sha local-engineid
The encrypted key is: 09659EC5A9AE91BA189E5845E1DDE0CC
Related commands
snmp-agent
local-engineid
snmp-agent
usm-user
v3
snmp-agent community
Use
snmp-agent
community
to configure an SNMPv1 or SNMPv2c community.
Use
undo
snmp-agent
community
to delete an SNMPv1 or SNMPv2c community.
Syntax
In VACM mode:
snmp-agent
community
{
read
|
write
} [
simple
|
cipher
]
community-name
[
mib-view
view-name
] [
acl
{
ipv4-acl-number
|
name
ipv4-acl-name
} |
acl ipv6
{
ipv6-acl-number
|
name
ipv6-acl-name
}
] *
undo
snmp-agent
community
[
cipher
]
community-name
In RBAC mode:
snmp-agent
community
[
simple
|
cipher
]
community-name
user-role
role-name
[
acl
{
ipv4-acl-number
|
name
ipv4-acl-name
} |
acl ipv6
{
ipv6-acl-number
|
name
ipv6-acl-name
} ] *
undo
snmp-agent
community
[
cipher
]
community-name
Default
No SNMPv1 or SNMPv2c communities exist.
Views
System view
Predefined user roles
network-admin