Hi Greeting:
In the snmp.h file there is error code (listed in the following).
I would like to find out if it's possible from the error code returned from the
snmp_sess_synch_response() to tell the target device is DEFINITELY not
reachable.
For example, to poll the interfaces on the remote router (get one interface
index one at a time), most of the SNMP interface polling are successful (I
assume the error code is SNMP_ERR_NOERROR) but few of the interface polling (on
the same router) resulted in "TIMEOUT". In that case the remote device should
not be categorized as device failed. A device considered failure only if all
the interface polling failed. So can any of the error code provide this
information?
Thanks,
Jim
#########################
* in SNMPv1, SNMPsec, SNMPv2p, SNMPv2c, SNMPv2u, SNMPv2*, and SNMPv3 PDUs
*/
#define SNMP_ERR_NOERROR (0) /* XXX Used only for PDUs? */
#define SNMP_ERR_TOOBIG (1)
#define SNMP_ERR_NOSUCHNAME (2)
#define SNMP_ERR_BADVALUE (3)
#define SNMP_ERR_READONLY (4)
#define SNMP_ERR_GENERR (5)
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.13.13/195 - Release Date: 2005/12/8