Thanks Ajit for help I will try API in code and test. From: Ajit Ambekar [mailto:007aji...@gmail.com] Sent: Wednesday, August 12, 2015 3:29 PM To: Chauhan, Pushpendra Sin Cc: net-snmp-users@lists.sourceforge.net Subject: Re: Help regarding - tracing NETSNMP v3 and OID to Textual conversion for MIBs.
Hi, You can use the API snmp_set_do_debugging(1), and check for possible packet drop errors. On Wed, Aug 12, 2015 at 3:02 PM, Chauhan, Pushpendra Sin <pushpendra.sin.chau...@hp.com<mailto:pushpendra.sin.chau...@hp.com>> wrote: Hi All, We have an application which receive and process trap using NET-SNMP library. We are facing challenges to know the reasons of failure conditions. We would like to know if there are API’s to get the error code for below scenario or can these API’s be provided: - When a v3 trap is received and dropped; There is no way to find out the reason for rejection\drop of a trap. For Ex: Username is invalid, Password is invalid, Authentication parameters are not correct etc. - Our application load MIB files for the conversion of OID to human readable format using API snprint_objid, the return value of this API is an integer, which is number of character printed to input buffer. How to know the reason why was the conversion failed; Is the MIB file not present is the only reason? Can it be known loading of which MIB file failed? Please let us know what could be the possible APIs used in above scenarios in order to enhance tracing. Thanks & Regards, Pushpendra ------------------------------------------------------------------------------ _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net<mailto:Net-snmp-users@lists.sourceforge.net> Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users -- Ambekar Ajit Shivaji Mumbai.
------------------------------------------------------------------------------
_______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users