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 1 , this errorindex is
used to remove the faulty OID and retry the request.

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) :-

 status = snmp_synch_response(ss, pdu, &response);

I debugged further to see the functions called by
snmp_synch_response(ss, pdu, &response)

but I am having a tough time finding it so far. Maybe I am missing
something. Please let me know for any suggestions. That would be
really helpful.

Regards

Nishant
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to