Good norning to all ... poking aroung in the
sources... i have noticed the following declarations
#define LABEL       1
#define SUBTREE     2
#define SYNTAX      3
#define OBJID       (4 | SYNTAX_MASK)
#define OCTETSTR    (5 | SYNTAX_MASK)
#define INTEGER     (6 | SYNTAX_MASK)
#define NETADDR     (7 | SYNTAX_MASK)
#define IPADDR      (8 | SYNTAX_MASK)
#define COUNTER     (9 | SYNTAX_MASK)
#define GAUGE       (10 | SYNTAX_MASK)
#define TIMETICKS   (11 | SYNTAX_MASK)
#define KW_OPAQUE   (12 | SYNTAX_MASK)
#define NUL         (13 | SYNTAX_MASK)
#define SEQUENCE    14
#define OF          15          /* SEQUENCE OF */
#define OBJTYPE     16
#define ACCESS      17
#define READONLY    18
#define READWRITE   19
#define WRITEONLY   20
#ifdef NOACCESS
#undef NOACCESS                 /* agent 'NOACCESS'
token */
#endif

Can u plz me explain what SYNTAX_MASK stands for?
I am curious about learning what variable can store
the types Integer32,Cauge,Counter... After trying a
little i have noticed that a simple integer value
returned correctly results...

I need to fetch the values for a bunch of oids... the
most under the ifIndex section and at least all of the
ip section...

What i already know is the add_null_var method
        pdu = snmp_pdu_create(SNMP_MSG_GET);
        /* Add variable to the snmp packet */
        snmp_add_null_var(pdu, oidvalue,length_myoid);
        status = snmp_synch_response(sess_handle, pdu,
&response);
Do u think that the best way for fetching all these
oids is to make a loop with snmp_add_null_var calls..
or do u have anything else in mind? Have a nice day :)


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to