Dear list,
I'm developing an agent extension of Net-SNMP agent for an
electronic piece of equipment.
I have three kinds of OID variables to implement in the agent.
1. Variables always present and retrievable (read-only or read-
write). These are simple to manage.
2. Variables that are meaningful only if an optional hardware is
installed in the electronic equipment. In this case, if the optional
hardware is not present, I can't associate a value for related
variables. Should I return an error code to GET and SET requests?
Which error codes? SNMP_ERR_GENERR?
In the first I tried SNMP_ERR_RESOURCEUNAVAILABLE, but I think it is
for other purposes.
3. Variables that are related to hardware sub-sections in the
machine. What should I return if this sub-section stop communicating
with the agent (for a mulfunction)? Which error code to choose?
Thank for your help.
Giuseppe
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders