netstat count option
Brandon Gooch
jamesbrandongooch at gmail.com
Wed Apr 21 14:47:07 UTC 2010
On Wed, Apr 21, 2010 at 4:01 AM, Dmitry Banschikov <ubique at peterhost.ru> wrote:
> Hello,
>
> I wrote small patch to the netstat utility.
> The patch allows to specify how many times, the display output should be continue,
> in case of option -w.
> Usage:
> # ./netstat -w2 -c2
> input (Total) output
> packets errs bytes packets errs bytes colls
> 15 0 2268 13 0 1190 0
> 4 0 240 5 0 278 0
> #
>
> Option -c [count] is simillar to the same option in iostat utility.
> In linux -c means continious output:
> -c, --continuous
> This will cause netstat to print the selected information every second continuously.
This seems pretty useful, perhaps you should file a PR?
http://www.freebsd.org/send-pr.html
-Brandon
More information about the freebsd-hackers
mailing list