Command Reference SNMP Commands
Defaults
All communities are read only by default.
Command
mode
Global configuration mode
Usage Guide
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, run the no snmp-server command.
Configuration
Examples
The following example restricts the access to the MIB using 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
Related
Commands
Command Description
access-list
Defines the access list.
Platform
Description
N/A
snmp-server contact
Use this command to specify the SNMP system contact in global configuration mode. Use the no
form of this command to delete the system contact.
snmp-server contact text
no snmp-server contact
Parameter
Description
Parameter Description
text
Character string describing the system contact.
Defaults
N/A
Command
mode
Global configuration mode
Usage Guide
N/A
Configuration
The following example specifies the SNMP system contract to i-net800@i-net.com.cn: