<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to reset network interface statistics/counters? in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/how-to-reset-network-interface-statistics-counters/m-p/4898361#M87136</link>
    <description>Rick,&lt;BR /&gt;&lt;BR /&gt;I did check both of these and did not see any switches to solve my problem... but then maybe I missed it. Do you know what the switch is to reset the interface counters?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Ross</description>
    <pubDate>Tue, 26 Apr 2005 17:01:26 GMT</pubDate>
    <dc:creator>Ross Minkov</dc:creator>
    <dc:date>2005-04-26T17:01:26Z</dc:date>
    <item>
      <title>How to reset network interface statistics/counters?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-reset-network-interface-statistics-counters/m-p/4898359#M87134</link>
      <description>&lt;BR /&gt;Hi Linux Gurus,&lt;BR /&gt;&lt;BR /&gt;How can I reset the interface statistics (or interface counters) for a Linux network interface without bringing the system down or editing /proc/net/dev directly? I used to support Tru64 UNIX and the netstat command had -z switch to zero (reset) the interface counters and the -I switch to specify the interface. I don't see this in the Linux netstat command. &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Ross</description>
      <pubDate>Tue, 26 Apr 2005 16:46:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-reset-network-interface-statistics-counters/m-p/4898359#M87134</guid>
      <dc:creator>Ross Minkov</dc:creator>
      <dc:date>2005-04-26T16:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to reset network interface statistics/counters?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-reset-network-interface-statistics-counters/m-p/4898360#M87135</link>
      <description>Check the 'mii-tool' or the 'ethtool' commands.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 26 Apr 2005 16:51:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-reset-network-interface-statistics-counters/m-p/4898360#M87135</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2005-04-26T16:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to reset network interface statistics/counters?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-reset-network-interface-statistics-counters/m-p/4898361#M87136</link>
      <description>Rick,&lt;BR /&gt;&lt;BR /&gt;I did check both of these and did not see any switches to solve my problem... but then maybe I missed it. Do you know what the switch is to reset the interface counters?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Ross</description>
      <pubDate>Tue, 26 Apr 2005 17:01:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-reset-network-interface-statistics-counters/m-p/4898361#M87136</guid>
      <dc:creator>Ross Minkov</dc:creator>
      <dc:date>2005-04-26T17:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to reset network interface statistics/counters?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-reset-network-interface-statistics-counters/m-p/4898362#M87137</link>
      <description>In all honesty, I'm unaware of a way to do this.&lt;BR /&gt;&lt;BR /&gt;But please, why do you want to do it?  I'm having trouble trying to understand why you'd want to reset the interface counters.&lt;BR /&gt;&lt;BR /&gt;In any case, if you do need some sort of re-settable counter, use IPTables based on an interface.</description>
      <pubDate>Tue, 26 Apr 2005 22:42:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-reset-network-interface-statistics-counters/m-p/4898362#M87137</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2005-04-26T22:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to reset network interface statistics/counters?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-reset-network-interface-statistics-counters/m-p/4898363#M87138</link>
      <description>&lt;BR /&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;  According to Linux network developers, the network counters are not supposed to be reset. If you really want to this you hack the kernel code to this. &lt;BR /&gt;&lt;BR /&gt;A simple but not so straight forward method is to stop the network interface remove the driver  and reload the driver back, this will reset counter values to 0.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Gopi</description>
      <pubDate>Wed, 27 Apr 2005 00:42:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-reset-network-interface-statistics-counters/m-p/4898363#M87138</guid>
      <dc:creator>Gopi Sekar</dc:creator>
      <dc:date>2005-04-27T00:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to reset network interface statistics/counters?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-reset-network-interface-statistics-counters/m-p/4898364#M87139</link>
      <description>Thanks Gopi.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; According to Linux network developers, the network counters are not supposed to be reset.&lt;BR /&gt;&lt;BR /&gt;Can you point me to some documentation that states that, please?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Ross</description>
      <pubDate>Wed, 27 Apr 2005 06:50:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-reset-network-interface-statistics-counters/m-p/4898364#M87139</guid>
      <dc:creator>Ross Minkov</dc:creator>
      <dc:date>2005-04-27T06:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to reset network interface statistics/counters?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-reset-network-interface-statistics-counters/m-p/4898365#M87140</link>
      <description>The following link is a message thread which states that.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://nylug.org/pipermail/nylug-talk/2005-February/025665.html" target="_blank"&gt;http://nylug.org/pipermail/nylug-talk/2005-February/025665.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;you can also accomplish the task by a simple shell program.&lt;BR /&gt;&lt;BR /&gt;if it is for RH then you can get network driver name from /etc/modprobe.conf&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Gopi</description>
      <pubDate>Wed, 27 Apr 2005 07:17:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-reset-network-interface-statistics-counters/m-p/4898365#M87140</guid>
      <dc:creator>Gopi Sekar</dc:creator>
      <dc:date>2005-04-27T07:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to reset network interface statistics/counters?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-reset-network-interface-statistics-counters/m-p/4898366#M87141</link>
      <description>There is no way to reset this bytes without restarting. The data is located at /proc/net/dev so it is not writeable. You clear the counters by unloading and reloading&lt;BR /&gt;a network driver module (ifconfig ethX down; rmmod ethX;insmod ethX;ifconfig ethX).&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Sergejs&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Apr 2005 07:54:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-reset-network-interface-statistics-counters/m-p/4898366#M87141</guid>
      <dc:creator>Sergejs Svitnevs</dc:creator>
      <dc:date>2005-04-27T07:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to reset network interface statistics/counters?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-reset-network-interface-statistics-counters/m-p/4898367#M87142</link>
      <description>Since the counters cannot be reset (just what would a remote monitor do if that happened?) you might try the beforeafter tool to get stats for an interval - take a snapshot "before" and one "after" and run them through beforeafter to get the "delta"&lt;BR /&gt;&lt;BR /&gt;ftp.cup.hp.com/dist/networking/tools/ - you will need to compile the .c file for linux - it is an hp-ux pa-risc binary at the moment.  might be good to do a bit of sanity checking on the output as it doesn't have tooooo much linux exposure.</description>
      <pubDate>Wed, 27 Apr 2005 10:14:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-reset-network-interface-statistics-counters/m-p/4898367#M87142</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2005-04-27T10:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to reset network interface statistics/counters?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-reset-network-interface-statistics-counters/m-p/4898368#M87143</link>
      <description>in linux there is a tool called iptraf that &lt;BR /&gt;can do stats of many types of network info, &lt;BR /&gt;per protocol, per interface, per etc. . . .&lt;BR /&gt;om debian you just as root type "apt-get install iptraf" in a terminal window.  In others, you resort to other methods, or get the source.  here is a link from freshmeat:&lt;BR /&gt;&lt;A href="http://freshmeat.net/projects/iptraf/" target="_blank"&gt;http://freshmeat.net/projects/iptraf/&lt;/A&gt;</description>
      <pubDate>Wed, 27 Apr 2005 12:57:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-reset-network-interface-statistics-counters/m-p/4898368#M87143</guid>
      <dc:creator>david moscrip</dc:creator>
      <dc:date>2005-04-27T12:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to reset network interface statistics/counters?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-reset-network-interface-statistics-counters/m-p/4898369#M87144</link>
      <description>Hi,&lt;BR /&gt;I don;t know if you guys find out the answer for this or not.  But here it is or atleast what I've been doing.&lt;BR /&gt;&lt;BR /&gt;service network restart&lt;BR /&gt;&lt;BR /&gt;Ian</description>
      <pubDate>Wed, 11 May 2005 16:44:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-reset-network-interface-statistics-counters/m-p/4898369#M87144</guid>
      <dc:creator>Ian Derringer</dc:creator>
      <dc:date>2005-05-11T16:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to reset network interface statistics/counters?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-reset-network-interface-statistics-counters/m-p/4898370#M87145</link>
      <description>It looks like you have to stop the network interface remove the driver and reload the driver back and this will reset counter values to 0.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Ross</description>
      <pubDate>Wed, 11 May 2005 17:13:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-reset-network-interface-statistics-counters/m-p/4898370#M87145</guid>
      <dc:creator>Ross Minkov</dc:creator>
      <dc:date>2005-05-11T17:13:10Z</dc:date>
    </item>
  </channel>
</rss>

