Bluehost.com Web Hosting $6.95

Retrieving scalar objects

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 ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-07-2005
Sridhar S
 
Posts: n/a
Default Retrieving scalar objects

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 08:04 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0