The Simple Network Management Protocol (SNMP) communicates management information between a network management station (NMS) and a device, such as a router, so that the NMS can manage the device. If the NMS and device use different SNMP versions, the NMS cannot manage the device.
To resolve this problem, configure SNMP proxy on a device between the NMS and device to be managed, as shown in Figure 1. In the following description, the device on which SNMP proxy needs to be configured is referred to as a middle-point device.
The NMS manages the middle-point device and managed device as an independent network element, reducing the number of managed network elements and management costs.
An SNMP proxy can work between one or more NMSs and multiple network elements.
In Figure 2, the middle-point device allows you to manage the network access, configurations, and system software version of the managed device. The network element management information base (MIB) files loaded to the NMS include the MIB tables of both the middle-point device and managed device. After you configure SNMP proxy on the middle-point device, the middle-point device automatically forwards SNMP requests from the NMS to the managed device and forwards SNMP responses from the managed device to the NMS.
Figure 3 shows the SNMP proxy schematic diagram.
The process in which an NMS uses a middle-point device to query the MIB information of a managed device is as follows:
The NMS sends an SNMP request that contains the MIB object ID of the managed device to the middle-point device.
Upon receipt, the middle-point device searches its proxy table for a forwarding entry based on the engine ID.
The middle-point device forwards the encapsulated request to the managed device and waits for a response.
After the middle-point device receives a response from the managed device, the middle-point device forwards the response to the NMS.
If the middle-point device fails to receive a response within a specified period, the middle-point device drops the SNMP request.
The process in which a managed device uses a middle-point device to send a notification to an NMS is as follows:
Upon receipt, the middle-point device searches its proxy table for a forwarding entry based on the engine ID.
The middle-point device forwards the encapsulated notification to the NMS.
If the notification is sent as an inform by the managed device, the middle-point device forwards the notification to the NMS and waits for a response after forwarding the notification to the NMS. If the middle-point device does not receive any response from the NMS within a specified period, the middle-point device drops the notification.