Hi,
I am new to Net-SNMP. Please help me in getting my MIB table integrated to SNMP
agent.
I have done the following
1. Executed mib2c -c mib2c.iterate_access.conf MYMIB::myTable
myTable has following entries rowStatus - Integer, name - DisplayString,
age - Integer. and the key is "name"
2. Used C++ map to store my table in memory with name as key and the whole
structure as value.
My problem is the generated code doesn't gives me a method to directly access
the data from map using index when I issue a get request. Instead it gives
"get_first" and "get_next" function calls to iterate through the table. I think
this is very much inefficient because I can directly access my data if I get
the index (name) and the column name of the table in the handler function. Same
case for set request also. If I get an Index (name) that does not exist in
table, I will create a new one.
Can anyone please let me know how can I get the index and the column name in
the table handler function that I registered during table registration. It
would also be fine if I get the index and column some way in my user code.
Thanks in advance,
Jayesh KM
Add more friends to your messenger and enjoy! Go to
http://messenger.yahoo.com/invite/------------------------------------------------------------------------------
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-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