RE: User defined error

"Pamidipati Suresh-G20238" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi
 
SNMP error codes are defined in PDU definition in RFC 1905 (Protocol
Operations for SNMPv2). The header file
"include/net-snmp/library/snmp.h" has these definitions.
I am not sure if user defined errors can be sent in response to snmp
requests.
 
Regards,
Suresh.
 
 
 
 

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
valantina arumugam
Sent: Wednesday, July 11, 2007 10:59 AM
To: [email protected]
Subject: User defined error


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
<http://in.rd.yahoo.com/tagline_mail_1/*http://help.yahoo.com/l/in/yahoo
/mail/yahoomail/tools/tools-08.html/> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.