> However, every var in the response has a type of 128 and the values are
> all null.  I know that the values I'm trying to retrieve are handled by 
> an subagent that isn't running so I expect a failure but why is that
> failure indicated by weird types and null values rather than a failed
> status?

Which version of SNMP are you using?
SNMPv1 or SNMPv2c/3 ?
I'm guessing the latter.

The SNMPv2 protocol (as used in SNMPv2c and SNMPv3) does *not*
regard missing values as an error.  It reports them using special
"exception" values - noSuchObject, noSuchInstance and (for GetNext
requests) endOfMibView.

A type of 128 is 'noSuchObject'


>  Is it because snmpd thinks ONE of the values might be valid
> so the status of the overall request is success even though,
> as it happens, every value is invalid? 

No.
It's telling you that it's got the information that you asked about.
You asked about this list of objects, and it's telling you that
they are all missing.


An error would mean
   "I couldn't find out what you wanted to know, because of this object"

So *all* you would know is that this particular object wasn't valid.
You'd know *nothing* about any of the other objects you asked about.
They might exist, or they might not (or a mixture of the two).

You would need to remove the offending varbind and try again - to either
get an answer for everything, or another (individual) failure.

That was one of the differences introduced between SNMPv1 and SNMPv2.
Missing values are not longer regarded as failures - just missing values.

Dave



-------------------------------------------------------
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite!  GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org
_______________________________________________
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

Reply via email to