Error codes

helge.fredriksen____4tel.no helge.fredriksen____4tel.no
Tue Oct 17 17:17:59 CEST 2000


Hi again!

We have a little delicate problem with returning errors from the
instrumentet code generated from agentgen. We are inserting code like this
in the get_request() skeleton routines:

Mib::requestList->error(req->get_transaction_id(), ind,
SNMP_ERROR_RESOURCE_UNAVAIL);

This works fine, we get Resource Unavailable back to the the console using
the UCD tools. However using the adventnet java API to receive such errors,
we instead get an incremented error code, starting at 64, beeing incremented
for each new error returned by such calls. 

Does it exist any other method for returning error codes from get calls?

What policy exist in the SNMP world for returning your own predefined
error-codes?

Yours sincerely,
Helge Fredriksen



More information about the AGENTPP mailing list