Configure SNMP Basic Functions
Configuration Condition
None
Enable SNMP Service
If the device is enabled with the SNMP service, the device can manage and configure via the SNMP network management software.
Table 8–3 Enable the SNMP service
Step
|
Command
|
Description
|
Enter the global configuration mode
|
config terminal
|
-
|
Enable the SNMP service
|
snmp-server start [ rfc ]
|
Mandatory
By default, the SNMP service is disabled.
|
Configure MIB View
Use the view-based access control model to judge whether the associated management object of one operation is permitted by the view. Only the management objects permitted by the view can be permitted to access.
Table 8–4 Configure the MIB view
Step
|
Command
|
Description
|
Enter the global configuration mode
|
config terminal
|
-
|
Configure the MIB view
|
snmp-server view view-name oid-string { include | exclude }
|
Mandatory
By default, the SNMP view name is Default.
|
Configure the system startup time type got in MIB
|
snmp-server mib2 sysuptime { snmp-agent-uptime | system-uptime }
|
Mandatory
By default, it is system- uptime.
|
Configure Manager Contact Information
The manager contact information is one information node in the SNMP protocol. The network management software can get the information via SNMP.
Table 8–5 Configure the manager contact mode
Step
|
Command
|
Description
|
Enter the global configuration mode
|
config terminal
|
-
|
Configure the manager contact information
|
snmp-server contact contact-line
|
Mandatory
|
Configure Device Physical Location Information
The device physical location information is one information node in the SNMP protocol. The network management software can get the information via SNMP.
Table 8–6 Configure the physical location information of the device
Step
|
Command
|
Description
|
Enter the global configuration mode
|
config terminal
|
-
|
Configure the physical location information of the device
|
snmp-server location location
|
Mandatory
|