Experience case of failure to read device OID node using snmpget

2023-12-27 20:00:08 Published
  • 0 Followed
  • 0Collected ,4118Browsed

Network Topology

Any H3C V7 version device and a PC can be directly connected to the device and can communicate with each other.

Problem Description

There are some nodes on the device. When we use SNMPGET, it prompts "No Such Instance currently exists at this OID", but the correct information can be obtained through SNMPWALK.

SNMPGET:


SNMPWALK:


Process Analysis

Both snmpwalk and snmpget can be used to obtain OID values, but they have the following differences:

1. SNMPWALK is the traversal of OID values (for example, if there are N nodes under a certain OID value, then the values of these N nodes are traversed one by one. If a walk is performed on the OID value of a certain leaf node, the obtained data will be incorrect, because it will consider that the node is the parent node of some nodes, and traverse it, when in fact the node no longer has any child nodes. Then it will retrieve the value of the next leaf node at the same level as the requested child node, rather than the value of the current requested child node.)

2. SNMPGET retrieves the value of a specific OID. (Applicable when the OID value is a leaf node.)

So when the read OID is a parent node, an error message will appear when using SNMPGET.


Solution

If the information being read is a parent node, use SNMPWALK; if the information being read is a child node, use SNMPGET.

Please rate this case:   
0 Comments

No Comments

Add Comments: