On Thursday 2011-09-01 21:47, Bob Miller wrote: >> You should get something like this: >> >> RX: bytes packets errors dropped overrun mcast >> 714301652 713443 0 0 0 3494 >> TX: bytes packets errors dropped carrier collsns >> 79328329 501677 0 0 2 0 >> >> Stats show actual data sent/received (since reboot) including layer2 >> headers. Gathered data should exacly match your isp stats. >> >When I ran the command I found my numbers didn't add up to even close to >what bandwidth usage should have been since last reboot, and a bit of >investigation says that is because the byte count will wrap. On 32 bit it may. >This will >require some creativity to use this tool properly, but should provide at >least some of the answers I seek. Don't try to parse that. While ip(8) in general is more parser-friendly than the old tools, and while ip also has an -o option that is even more parser-friendly, it fails to DTRT with statistics. You can use /sys/class/net for probably the most parser-friendly interface. -- To unsubscribe from this list: send the line "unsubscribe netfilter" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html