On Fri, 24 Feb 2006 16:53:52 +0100 Malcolm wrote:
MT> -I note that the kernel statistics are read in the file kernel_sunos5.c via
MT> kstats. ifInoctets is derived from ipackets (amultiplied by 308 to get
MT> octets presumably) . So I therefore gather for the ifHCinoctets counter
MT> ipackets64 would have to be read.

If such a structure can be read, great. But it isn't necessary. The code takes
care of using a 32 bit counter and watching for it to wrap, and updating the
hc counters.

MT> -I note also there is an interface.c file in both /mibII and in
MT> /mibgroup/if-mib/data_access. The comparable FreeBSD patches modifies
MT> interface.c, so presumably the same must be done for solaris.

as Dave said, ignore mibII, except as a reference for how the old code got the
32bit values. Really, you could just cut-n-paste that code into the right
places in the new solaris if-mib/data_access functions, and it should just
work.

MT> Could someone possibly point me in a general direction ?  I would be
MT> grateful for any tid-bits.

If you have an IRC client, come pester me in the net-snmp irc channel. You'll
get much more timelier responses there.

-- 
NOTE: messages sent directly to me, instead of the lists, will be deleted
      unless they are requests for paid consulting services.

Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>

You are lost in a twisty maze of little standards, all different. 


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to