Re: PDU error code

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On Fri, 2005-12-09 at 17:15 +0800, Jim Su wrote: 
>    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. 

No.

> 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?

No.

Each SNMP request is handled separately, and has no knowledge of
any other request sent to the same agent.

The only place that knows whether a given agent responded at all
is the application sending the probes.  If you need this sort of
behaviour, then *you* are going to have to code it.  There isn't
a short cut.


Dave


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.