[lkml]   [2008]   [May]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH updated] net: add ability to clear per-interface network statistics via procfs
David Miller wrote:
> From: James Cammarata <>
> Date: Fri, 16 May 2008 10:18:14 -0500
> We saw your initial patch posting, you don't need to send this
> again.
> netdev added to CC:
>>From: James Cammarata <>
>> Added the ability to write to /proc/net/dev in order to clear the
>> interface counters for a given interface. The ability to zero out
>> counters (especially the error counters) is extremely useful when
>> troubleshooting interface issues. Now diffed against, and
>> added some sanity checking.
>> echo 'net clear-stats ifdev' > /proc/net/dev
>>Where "ifdev" is the device name you wish to clear.

I don't wish to suggest I don't like the change - I've used similar
features on "other oses" in the past, but when something like this has
come-up in the past, haven't there been concerns about MIBs and SNMP and

rick jones - beforeafter - subtract one
set of stats from another...

 \ /
  Last update: 2008-05-16 22:11    [W:0.087 / U:13.276 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site