CLI Reference Guide SNMP Configuration Commands
Name of the ACL, which specifies the IPV4 address range of
the NMS that are permitted to access the MIB.
Name of the IPv6 ACL, which specifies the IPv6 address
range of the NMS that are permitted to access the MIB
IP address of the NMS accessing the MIB
All communities are read only by default.
Global configuration mode.
This command is the first important command to enable the SNMP agent function. It specifies the
community attribute, range of the NMSs that can access the MIB, and more.
To disable the SNMP agent function,use the no snmp-server command.
If the service password-encryption command is configured globally and the entered community
string is in plaintext, this command will display and store the community string as a ciphertext. In this
case, after the configuration of the service password-encryption command is removed, the
community string is still displayed and stored as a ciphertext rather than a plaintext.
The example below restricts the access to the MIB through the access list, which allows only the NMS
of the IP address 192.168.12.1 to access the MIB.
Ruijie(config)# access-list 2 permit 192.168.12.1
Ruijie(config)# access-list 2 deny any
Ruijie(config)# snmp-server community public ro 2
service password-encryption
Display the password in ciphertext.
snmp-server contact
Use this command to specify the SNMP system contact in global configuration mode. The no form of
this command is used to delete the system contact.
snmp-server contact text
no snmp-server contact
String describing the system contact.