Hi all,
I am doing a agent coding which inturn depends on another layer to get
real time data . If something goes wrong with the underlying layer , it needs
to display that error message to the manager(client) instead of the general
SNMP error(ie. SNMP_ERR_GENERR ) .
So ,is there a provision to send user defined error string in net-snmp or
the SNMP standard itself doesn't support it ? In which RFC file, details about
these error codes are defined? I have looked into the some RFC file where i
couldn't find these details.
And in net-snmp-5.3.1/include/net-snmp/agent/mfd.h file there is something
like
/*----------------------------------------------------------------------
* 8 flags resevered for the user
*/
#define MFD_ROW_FLAG_USER_1 0x00000001 /* user flag 1 */
#define MFD_ROW_FLAG_USER_2 0x00000002 /* user flag 2 */
#define MFD_ROW_FLAG_USER_3 0x00000004 /* user flag 3 */
#define MFD_ROW_FLAG_USER_4 0x00000008 /* user flag 4 */
#define MFD_ROW_FLAG_USER_5 0x00000010 /* user flag 5 */
#define MFD_ROW_FLAG_USER_6 0x00000020 /* user flag 6 */
#define MFD_ROW_FLAG_USER_7 0x00000040 /* user flag 7 */
#define MFD_ROW_FLAG_USER_8 0x00000080 /* user flag 8 */
#define MFD_ROW_FLAG_USER_MASK 0x000000ff /* user flag mask */
Does these flags mean that there's a option to define our own error string
or something else??
I have seen in the other SNMP package - AdventNet which provides a
facility to send user defined error codes.
Thanks for your suggestions.
Thanks & Regards
Valantina
---------------------------------
Why delete messages? Unlimited storage is just a click away.-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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