Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Apr 2010 09:47:04 -0500
From:      Brandon Gooch <jamesbrandongooch@gmail.com>
To:        Dmitry Banschikov <ubique@peterhost.ru>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: netstat count option
Message-ID:  <q2z179b97fb1004210747m8e86bcafve8053d132402f396@mail.gmail.com>
In-Reply-To: <20100421130101.1d9511f1@amnesiac.pht>
References:  <20100421130101.1d9511f1@amnesiac.pht>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Apr 21, 2010 at 4:01 AM, Dmitry Banschikov <ubique@peterhost.ru> wr=
ote:
> 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
> =A0 =A0 =A0 =A0 =A0 =A0input =A0 =A0 =A0 =A0(Total) =A0 =A0 =A0 =A0 =A0 o=
utput
> =A0 packets =A0errs =A0 =A0 =A0bytes =A0 =A0packets =A0errs =A0 =A0 =A0by=
tes colls
> =A0 =A0 =A0 =A015 =A0 =A0 0 =A0 =A0 =A0 2268 =A0 =A0 =A0 =A0 13 =A0 =A0 0=
 =A0 =A0 =A0 1190 =A0 =A0 0
> =A0 =A0 =A0 =A0 4 =A0 =A0 0 =A0 =A0 =A0 =A0240 =A0 =A0 =A0 =A0 =A05 =A0 =
=A0 0 =A0 =A0 =A0 =A0278 =A0 =A0 0
> #
>
> Option -c [count] is simillar to the same option in iostat utility.
> In linux -c means continious output:
> =A0 -c, --continuous
> =A0 =A0 =A0 This will cause netstat to print the selected information eve=
ry second continuously.

This seems pretty useful, perhaps you should file a PR?

http://www.freebsd.org/send-pr.html

-Brandon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?q2z179b97fb1004210747m8e86bcafve8053d132402f396>