Configuring a Device to Communicate with an NMS Through SNMPv2c
Context
To allow a device to communicate with an NMS through SNMPv2c, configure SNMPv2c on the device. The SNMP parameters must be configured on both the managed device (agent) and NMS. This section describes only the SNMP configurations on the agent side. For details about SNMP configurations on an NMS, see the NMS operation guide.
Pre-configuration Tasks
Before configuring a device to communicate with an NMS through SNMPv2c, configure a routing protocol to ensure that at least one route exists between the switch and NMS.
Configuration Procedure
When you configure a device to communicate with the NMS through SNMPv2c, only Configuring Basic SNMPv2c Functions is mandatory. The other steps are optional and can be performed in any sequence.
The NMS using the specified community name can access the ViewDefault view, in which the internet MIB (OID: 1.3.6.1) can be operated.
The managed device sends traps generated by the modules that are enabled by default to the NMS.
To allow an NMS that uses a specified community name to manage specified objects on the device, perform the operations in Restricting Management Rights of the NMS.
To allow a specified module on the managed device to report traps to the NMS, perform the operations in Configuring the Trap/Inform Function.
- To allow the device to send traps to the NMS periodically, perform the operations in Configuring the Device to Send Heartbeat Traps to the NMS.
To modify SNMP packet transmission parameters, perform the operations in Enhancing the Reliability for Transmitting SNMP Packets.
If the NMS and managed device are both Huawei products, perform the operations in Enabling the SNMP Extended Error Code Function so that the managed device can send more types of error codes. More error codes facilitate your fault location and rectification.
- Configuring Basic SNMPv2c Functions
- (Optional) Restricting Management Rights of the NMS
- (Optional) Configuring the Trap/Inform Function
- (Optional) Configuring the Device to Send Heartbeat Traps to the NMS
- (Optional) Enhancing Reliability of SNMP Packet Transmission
- (Optional) Enabling the SNMP Extended Error Code Function
- (Optional) Enabling the SNMP Blacklist Function
- Verifying the Basic SNMPv2c Function Configuration