netstat count option
Dmitry Banschikov
ubique at peterhost.ru
Wed Apr 21 09:16:20 UTC 2010
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.
--
Dmitry Banshchikov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-netstat
Type: application/octet-stream
Size: 2327 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20100421/d2046cf0/patch-netstat.obj
More information about the freebsd-hackers
mailing list