On 9 April 2010 07:41, Tony Thomas <[email protected]> wrote:
>                            When I do
> an SNMP v2c GET for the sysServices.0 (OID: 1.3.6.1.2.1.1.7.0) object (using
> a commercial MIB browser applicaiton), I get a 'noSuchInstance' error. Here
> I expect a 'noSuchObject' error as the sysServices is a scalar object
> (referred RFC1905 section 4.2.1).

>From the section you reference:

(2)  Otherwise, if the variable binding's name does not have an OBJECT
     IDENTIFIER prefix which exactly matches the OBJECT IDENTIFIER
     prefix of any (potential) variable accessible by this request, then
     its value field is set to `noSuchObject'.


The object identifier of the request has a prefix (.1.3.6.1.2.1.1.7)
which matches a variable that is potentially accessible.
The agent _does_ implement this particular object - but the
configuration is such that a value is not currently accessible.
If the configuration of the agent was tweaked slightly, then this
value could be retrieved.
  Hence (IMO), this clause does not apply, and processing falls
through to clause (3) - and the agent returns noSuchInstance.


>                          A GET request for entLastChangeTime.0
> (OID: 1.3.6.1.2.1.47.1.4.1) however returns noSuchObject error as expected.

Since the agent contains no code to implement this particular MIB object.
No amount of changes to the system being managed (short of installing
a "new" agent) will allow this OID to be processed successfully.


You could perhaps consider noSuchObject and noSuchInstance
as comparable to 5xx and 4xx error codes in various network protocols
(such as HTTP or SMTP).
    5xx/noSuchObject means   "no - and don't bother me again"
    4xx/noSuchInstance means "not quite - maybe try again later"

Dave

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to