1832831 Members
2999 Online
110047 Solutions
New Discussion

netstat -in Ipkts Opkts

 
j773303
Super Advisor

netstat -in Ipkts Opkts

Does anyone knows how to clear Ipkts and Opkts of netstat -in outputs? Thanks.
Hero
1 REPLY 1
Jim Keeble
Trusted Contributor

Re: netstat -in Ipkts Opkts

I don't know of a way, other than to reboot.

If you use the interval option, it will show you the totals on the first line and the stats for the preceding interval from then on ...

# netstat -in 10
(lan0)->input output (Total)-> input output
packets packets packets packets
1572822 499555 1948889 875622
15 3 17 5
1 1 3 3
2 1 4 3

Lanadmin can clear the stats at the link layer, but not at the IP layer.

Hope this helps.