Systat FreeBSD
From Teknologisk videncenter
systat -- display system statistics Lots of things whats going on can be seen. Se man page
Examples
==Traffic in/out
[root@mars ~]#<input>systat -ifstat 2</input>
Interface status - refresh every 2 seconds.
/0 /1 /2 /3 /4 /5 /6 /7 /8 /9 /10
Load Average
Interface Traffic Peak Total
lo0 in 0.000 KB/s 0.000 KB/s 331.698 MB
out 0.000 KB/s 0.000 KB/s 331.741 MB
vr1 in 0.116 KB/s 0.278 KB/s 2.662 GB
out 0.356 KB/s 1.074 KB/s 3.245 GB
em1 in 0.116 KB/s 0.116 KB/s 3.868 GB
out 0.000 KB/s 0.000 KB/s 1.558 GB
em0 in 0.000 KB/s 0.000 KB/s 1.196 GB
out 0.000 KB/s 0.000 KB/s 3.981 GB
Pigs - CPU idle and processes consuming a lot of CPU time
[root@mars ~]#<input>systat -pigs 2</input>
<source lang=cli
/0 /1 /2 /3 /4 /5 /6 /7 /8 /9 /10 Load Average
/0% /10 /20 /30 /40 /50 /60 /70 /80 /90 /100
root idle: cpu3 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX root idle: cpu1 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX root idle: cpu0 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX root idle: cpu2 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX www httpd XX </source>