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:
- Download nicstat from here or here.
- Extract the zip file (if you download the zip file).
- Compile the nicstat.c using gcc
/usr/sfw/bin/gcc nicstat.c -o nicstat -lkstat -lgen -lsocket -lrt - it will create nicstat (executable) in the current directory.
- now you can start using nicstat. Just set your PATH environment variable to the nicstat directory.
References:
- http://blogs.oracle.com/timc/entry/nicstat_the_solaris_and_linux
- http://www.thezonemanager.com/2010/03/measuring-network-throughput-via.html

