Hi dave,
 
     But what if I want to set some error explicitely while retriving some values using snmpget command. How would I set error in response pdu sent fom sub agent......
 
jigar

Dave Shield <[EMAIL PROTECTED]> wrote:
On Fri, 2005-05-27 at 08:22, jigar contractor wrote:

> I am setting error state at sub agent using function
> netsnmp_set_request_error to SNMP_ERR_RESOURCEUNAVAILABLE.

Note that this error is *only* applicable to SET requests.

> But whenever I am getting this value using snmpget command
> to retrieve this value. It is showing me the error
>
> Error in packet
> Reason: (noSuchName)

Yes - that's correct (for SNMPv1).
This is pretty much the only error that a v1 GET (or GETNEXT)
request would expect to receive.


> I don't know why I am not getting this output.. Some body
> help me to get this output

No - it would be inappropriate to return resourceUnavailable
to a GET request. Please re-read the specification of SNMP
processing.

Dave


Do You Yahoo!?
Yahoo! Small Business - Try our new Resources site!

Reply via email to