How to return error to manager when object instance can not be retrieved after passing header_generic function in a subagent
Simon Saha <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <OF944ABABF.463F20B8-ON65257138.0028F2F8-65257138.0028FA83@flextronicssoftware.com> |
Dear Sir, I am building a sub-agent of a protocol stack. I have MIB objects whose value depend on some flag conditions in the stack. When I am performing getnext request on these objects the header_generic function checks the OID and places me to the right object instance, after that I am trying to retrieve the value from the stack. In case of failure I dont want to return NULL as it will take me to the next object and header_generic will be called again. This will lead to skip all objects dependent on a flag and requet sent from manager will time out. So instead I want to pass an error to the manager in the response. How can I do that? Please Help me in this reguard. Your's sincerely Simon Saha *********************** FSS-Unclassified *********************** "DISCLAIMER: This message is proprietary to Flextronics Software Systems Limited (FSS) and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error, please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. FSS accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus." ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ 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