Monitoring Network Performance on Solaris using nicstat


To Monitor your Network performance on Linux or Solaris, you can use nicstat. It can provide data like packet per second, Kb per second, and utilization.

bash-3.00$ nicstat -i mac 1
Time       Int   rKb/s   wKb/s   rPk/s   wPk/s    rAvs    wAvs   %Util     Sat
09:29:51   mac   43.40   29.09  215.73  187.62  206.01  158.76    0.06    0.00
09:29:52   mac  912.04 1027.16 7157.00 7097.00  130.49  148.20    1.59    0.00
09:29:53   mac 1010.37 1133.48 7912.00 7829.00  130.77  148.25    1.76    0.00
09:29:54   mac  925.65 1044.82 7287.00 7197.00  130.08  148.66    1.61    0.00
09:29:55   mac 1018.24 1140.09 7978.00 7901.00  130.69  147.76    1.77    0.00
09:29:56   mac  962.31 1081.12 7542.00 7463.00  130.66  148.34    1.67    0.00
09:29:57   mac 1008.47 1130.27 7907.00 7835.00  130.60  147.72    1.75    0.00

To install nicstat:

  1. Download nicstat from here or here.
  2. Extract the zip file (if you download the zip file).
  3. Compile the nicstat.c using gcc
    /usr/sfw/bin/gcc nicstat.c -o nicstat -lkstat -lgen -lsocket -lrt
  4. it will create nicstat (executable) in the current directory.
  5. now you can start using nicstat. Just set your PATH environment variable to the nicstat directory.

References:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: