Enhanced ifconfig, anyone?

From: Thomas Carter (T.Carter_at_nanobots.com)
Date: 08/30/05


Date: Tue, 30 Aug 2005 16:37:18 GMT


        I would be interested to have a version of ifconfig such that the number
of bytes received and transmitted at a given interface, since the moment
that interface was brought up, are accumulated as 64-bit quantities - I
would want for those counters not to wrap around after 4 gigabytes only.

        I had a quick look into the ifconfig code, and the counters above are
defined as unsigned long long - which is a 64-bit quantity in my Linux
box. The thing is, I have so far been unable to find where those counters
are updated. I thought that it would have been ifconfig itself's job to do
so, but I wonder if it just gets that info from the kernel - in which
case, doing what I want would very likely be much more tricky.

        Any ideas?



Relevant Pages

  • Re: SNMP High Capacity Counters
    ... ifHC* counters but it does not. ... interface statistics from the kernel. ... I don't know what happened to this but it sounds usable for interface statistics too. ...
    (freebsd-net)
  • Re: SNMP High Capacity Counters
    ... ifHC* counters but it does not. ... interface statistics from the kernel. ... It does really support them for Linux and Solaris. ...
    (freebsd-net)
  • Re: SNMP High Capacity Counters
    ... ifHC* counters but it does not. ... interface statistics from the kernel. ... You might look at the IF-MIB implementation of bsnmp (it is in the base system). ...
    (freebsd-net)
  • Re: simple, but over-reboot network interfaces monitoring tool
    ... ..but I do not see any total bytes in/out counters. ... Ahother thing I wonder what if I reboot machine. ... Interface over a period of time. ... the dailiy average speed (which MRTG gives you) and putting it through ...
    (uk.comp.os.linux)
  • Re: [PATCH][1/7] perfctr-2.7.2 for 2.6.6-mm2: core
    ... Any chance to do a proper fs-based interface ala oprofile? ... counter interfaces in the kernel. ... The per-process counters API needs to express: ... Read the control data from the state. ...
    (Linux-Kernel)