Stephen Hemminger wrote:
> On Wed, 10 Feb 2010 12:02:44 +0100
> Josef Moellers <[email protected]> wrote:
>
>> Dave Shield wrote:
>>> On 10 February 2010 09:23, Josef Moellers <[email protected]>
>>> wrote:
>>>> I'd like to amend the etherlike-mib code for Linux....
>>>> Any comment/objection while I locally write/test?
>>> Go right ahead.
>>> We look forward to seeing whatever you come up with.
>> The patch (against 5.5) is appended.
>>
>> Thanks in advance,
>>
>> Josef
>
> Ugh, I would prefer that you use one of the other API's
> to get information (like netlink IFLA_STATS) rather than open each sysfs
> file.
I agree that any method requiring less than opening a handful of files
is better, but I've tried to look into IFLA_STATS and I fail to make any
sense out of anything I've found to use it.
Anyone have a link to a decent description how to use IFLA_STATS?
> The other alternative is reading /proc/net/dev
Our original implementation (we provided an external agent) did just that.
However, somewhere I recall that /sys is preferred over /proc.
Josef
--
These are my personal views and not those of Fujitsu Technology Solutions!
Josef Möllers (Pinguinpfleger bei FTS)
If failure had no penalty success would not be a prize (T. Pratchett)
Company Details: http://de.ts.fujitsu.com/imprint.html
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders