A question bout API description.

2007-07-23 Thread 高翔
1.About snmp_sess_init(), May perform one time minimal library initialization., what is it mean?2.About snmp_read(), Each socket with it's fd set has a packet read from it and snmp_parse is called on the packet received. , what is it mean ?

problems with netsnmp_oid_stash_get_data

2007-07-23 Thread [EMAIL PROTECTED]
Hi all, I've problem with netsnmp_oid_stash_get_data api. I've insert in c++ source file: netsnmp_oid_stash_node *root = netsnmp_oid_stash_create_node(); oid suffix[]= {1,3,6,1,2,1,4,2,0}; netsnmp_oid_stash_get_data(root,suffix, anOID_len); but it returns me valure 0,

Re: Real time notifications?

2007-07-23 Thread Michael Leslie
Greetings, A little while back I implemented immediate trap reporting for link status specifically using the linux Netlink facilities. The patch is against an older version of net-snmp, but works well for our purposes. The monitor statement to which you refer is addressed in the patch, which

how to cleanly unregister a scalar (w/o memory leaks and such)?

2007-07-23 Thread Dirk Süsserott
Hi together, I've a question concerning the unregistration of scalars. I use the following code to register an int32_t as a scalar: - 8 --- int32_t *my_scalar = (int32_t*) malloc(sizeof(int32_t)); netsnmp_handler_registration *reg =

Re: Real time notifications?

2007-07-23 Thread Thomas Anders
Michael Leslie wrote: A little while back I implemented immediate trap reporting for link status specifically using the linux Netlink facilities. The patch is against an older version of net-snmp, but works well for our purposes. The monitor statement to which you refer is addressed in the

Re: Real time notifications? / netlink-based link state trap generation

2007-07-23 Thread Michael Leslie
Thomas Anders wrote: This patch looks quite useful. Would you mind submitting it to our patches tracker (http://www.net-snmp.org/patches) so it won't get lost? I take it that you aren't interested to supply a patch against latest SVN, though, so this is still left as an exercise to

neeed help in snmptrap conf file

2007-07-23 Thread manu kumar
Hi , can any one help me in creating snmptarp.conf file and I have my own xx.mib file , in that mib file contains a variables v1 and v2 .Now i have to gerate a snmptarp alrets when the varibles v1 and v2 values incerases 100 (v1100 i have to generate a snmptrap alret) How to Generate