This is a discussion on Retrieving scalar objects within the SNMP Users forums, part of the Networking and Network Related category; Hi, I am using Net-SNMP version 5.0.9. The attached file ifNumber_orig.c is the code that that ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
I am using Net-SNMP version 5.0.9. The attached file ifNumber_orig.c is the code that that generated by tool-kit and handler function is modified to retrieve the value of ifNumber from the back-end. With this file, if retrieving the value from the back-end fails then agent is not returning the next lexographically available object in the tree. At the manager end a SNMP walk stops with the error IF-MIB::ifNumber.0 = No Such Object available on this agent at this OID I modified the above file further. After handler registration, I registered scalar variable using API 'netsnmp_register_scalar'. I tried this API by looking at the 'mibII/icmp.c' file. With this code (ifNumber_modif.c) I am able to walk the whole tree, irrespective of get_ifNumber () API status. Please share your thoughts on this. Thanks SrIdhar ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/...net-snmp-users |