Hello,
I have several C structures stored in my server, something like this:
typedef struct
{
blablabla;
} struct_a;
typedef struct
{
blablabla;
struct_a* struct_list; (an array of struct_a)
} struct_b;
What I would like is to recover all struct_b from a GET request, that is,
assign ids like:
x.1 //struct_b
x.1.1 // 1st struct_a
x.1.1.1 // 1st field of 1struct_a
x.1.1.2 // 2nd field of 1struct_a
x.1.2 // 2nd struct_a
x.1.2.1 // 1st field of 2struct_a
x.1.2.2 // 2nd field of 2struct_a
and so on... ¿Is it possible to define something like that on a MIB file?
On the other hand, I fill all my stored status structures in a data
collector thread, every 10 seconds (i get the data from a socket); then when
I get a SNMP GET request I need to get the last stored value (for each var)
and reply with it to the SNMP request; what could be the ideal way to do
this? ¿Should I store my values in rows in different tables (using net-snmp
table API) and update the values every time I get new data?
Thank you so much for your help and time; I don't know what I could do
without net-snmp and your support
BR
Raúl
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders