- Timestamp:
- 05/30/06 13:54:09 (2 years ago)
- Location:
- stats
- Files:
-
- 7 added
- 2 modified
-
dates (modified) (1 diff)
-
disk_act.sh (modified) (1 diff)
-
iostat.tproj (added)
-
iostat.tproj/Makefile (added)
-
iostat.tproj/Makefile.postamble (added)
-
iostat.tproj/Makefile.preamble (added)
-
iostat.tproj/PB.project (added)
-
iostat.tproj/iostat.8 (added)
-
iostat.tproj/iostat.c (added)
Legend:
- Unmodified
- Added
- Removed
-
stats/dates
r396 r504 1 1136862810 Apache build 1 1136862810 Apache build (edgcm) 2 2 1136944630 Upgrade to 10.4.4 3 3 1140028127 Upgrade to 10.4.5 4 4 1140140234 Install Xcode2.2, gdl and gnuplot 5 1141339167 Fink upgrade to gcc-4.1.0 6 1141504014 Apache build (edgcm) 7 1141529590 Run modelE (gouda) -
stats/disk_act.sh
r277 r504 1 1 #!/bin/bash 2 2 3 ibytes=`/usr/sbin/netstat -I lo0 -i -b | grep lo0 | head -n1 | cut -c57-69`4 obytes=`/usr/sbin/netstat -I lo0 -i -b | grep lo0 | head -n1 | cut -c83-95` 3 xfer=`./iostat.tproj/iostat -dI disk0 | tail -n1` 4 # echo $xfer 5 5 6 ibytes=`echo $ibytes | sed s/\ *//`7 obytes=`echo $obytes | sed s/\ *//`6 read=`echo $xfer | cut -d" " -f1` 7 write=`echo $xfer | cut -d" " -f2` 8 8 9 /sw/bin/rrdtool update ./disk_act.rrd "N:$ibytes:$obytes" 9 # echo $read $write 10 /sw/bin/rrdtool update ./disk_act.rrd "N:$read:$write"
