Command Reference SNMP Commands
remove a user from an SNMP group.
snmp-server user username groupname { v1 | v2c | v3 [ encrypted ] [ auth { md5 | sha }
auth-password ] [ priv des56 priv-password ] } [ access { [ ipv6 ipv6_aclname ] [ aclnum |
aclname } ] ]
no snmp-server user username groupname { v1 | v2c | v3 }
Name of the user on the host that connects to the agent.
Name of the group to which the user belongs.
Specifies the SNMP version. But only SNMPv3 supports the following
security parameters.
Specifies whether the password appears in cipher text.
In cipher text format, you need to enter continuous hexadecimal
numeric characters. Note that the authentication password of MD5
has a length of 16 bytes, while that of SHA has a length of 20 bytes.
Two characters make a byte. The encrypted key can be used only by
the local SNMP engine on the switch.
Specifies which authentication level should be used.
Password string (no more than 32 characters) used by the
authentication protocol. The system will change the password to the
corresponding authentication key.
Encryption mode. des56 refers to 56-bit DES encryption protocol.
priv-password: password string (no more than 32 characters) used for
encryption. The system will change the password to the
corresponding encryption key.
Enables the MD5 authentication protocol. While the sha enables the
SHA authentication protocol.
Access list number, which specifies the IPV4 addresses that are
permitted to access the MIB.
Name of the access list, which specifies the IPV4 addresses that are
permitted to access the MIB.
Name of the IPv6 access list, which specifies the IPv6 addresses that
are permitted to access the MIB.
Global configuration mode.
The following example configures an SNMPv3 user with MD5 authentication and DES encryption:
Ruijie(config)# snmp-server user user-2 mib2user v3 auth md5 authpassstr priv