G'Day Folks,
I've just joined this mailing list and have been catching up on the
recent thread about a network utilization stats addition to netstat.
This sounds like an oppurtunity to get nicstat, or the look and feel
of nicstat, into Solaris. This is nicstat:
$ nicstat 1
Time Int rKB/s wKB/s rPk/s wPk/s rAvs wAvs %Util Sat
01:10:00 nge1 0.00 0.00 0.00 0.00 0.00 346.0 0.00 0.00
01:10:00 nge0 11.24 22.01 22.51 28.97 511.6 778.0 0.03 0.00
01:10:00 lo0 0.00 0.00 3.42 3.42 0.00 0.00 0.00 0.00
Time Int rKB/s wKB/s rPk/s wPk/s rAvs wAvs %Util Sat
01:10:01 nge1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
01:10:01 nge0 2437.3 583.9 20546.3 10300.5 121.5 58.05 2.47 0.00
01:10:01 lo0 0.00 0.00 1.99 1.99 0.00 0.00 0.00 0.00
Time Int rKB/s wKB/s rPk/s wPk/s rAvs wAvs %Util Sat
01:10:02 nge1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
01:10:02 nge0 2322.5 569.1 20057.3 10038.5 118.6 58.06 2.37 0.00
01:10:02 lo0 0.00 0.00 1.98 1.98 0.00 0.00 0.00 0.00
^C
$ nicstat -h
USAGE: nicstat [-hsz] [-i int[,int...]] | [interval [count]]
-h # help
-i interface # track interface only
-n # show non-local interfaces only (exclude lo0)
-s # summary output
-z # skip zero value lines
eg,
nicstat # print summary since boot only
nicstat 1 # print every 1 second
nicstat 1 5 # print 5 times only
nicstat -z 1 # print every 1 second, skip zero lines
nicstat -i hme0 1 # print hme0 only every 1 second
I wrote nicstat some years ago to fetch utilization on systems without
the SE Toolkit installed; also to emphasise the notion of performance
resource monitoring by utilization and by saturation, and as part of
an open source toolkit of kstat based programs. Both Tim Cook from
Sun PAE and myself currently develop the nicstat source.
nicstat has been used for years by customers in production, and has
had many subtle tweaks based on this experience (and a few more on
the todo list). Recently nicstat and its source code were published in
Solaris Performance and Tools, familiarizing more customers with
its form of output.
I (and many others) would like to see nicstat, or nicstat's style of
output, to be included in Solaris, either as a command or as a switch
to netstat. I don't see why this can't be its own tool - netstat is
already a kitchen sink of commands.
Having a prstat-style output would be handy in some situations, especially
due to project Crossbow, and could be a switch to nicstat. It is not what
is wanted as the default output from a performance tool - customers
like the default mpstat-style output of nicstat, and the ability to match on
specified interfaces (-i).
Recent versions of nicstat are here:
http://www.brendangregg.com/K9Toolkit/nicstat.c # C
http://www.brendangregg.com/K9Toolkit/nicstat # Perl
Tim and I were working on some updates...
Mike, please take a look at the nicstat code; if you can add the
features that you think are useful (a prstat-style output as a switch),
Tim and I can add our final updates - and we should have an awsome
tool that pleases everyone.
cheers,
Brendan
--
Brendan
[CA, USA]