Re: Code location of errorindex (response->errindex)

2021-09-06 Thread Nishant Nayan
Thank you for the clarification. Is there a way to debug both snmpget and snmpagent ? I am querying a node (node 2) from node 1 using proxy pass, so in this case agent on node2 sends oid values / errindex of wrong oids to node 1 (snmpmanager) ? Thanks On Tue, 17 Aug 2021 at 02:35, Wes Hardaker w

Re: Code location of errorindex (response->errindex)

2021-08-16 Thread Wes Hardaker via Net-snmp-coders
Nishant Nayan writes: > I debugged in snmpget.c till the section where the request is performed. > The errindex is getting set after the below function call (as one of > the properties of &response) :- So the error index is not set by snmpget, but by the agent that snmpget is querying. snmpget

Code location of errorindex (response->errindex)

2021-08-12 Thread Nishant Nayan
Hi, I am trying to know the code location where 'errorindex' is set when we request a wrong OID. For example in below command :- snmpget -v1 -c cmty_remotehost1 localhost SNMPv2-MIB::sysName.1 SNMPv2-MIB::sysDescr.0 SNMPv2-MIB::sysObjectID.0 My first OID is wrong hence the errorindex would be