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