hpng98
16th July 2004, 05:56
How to check TOTAL data usage ?
TOTAL application usage ?
onstat -d will list each chunck usage,I need only TOTAL .

Thanks.

pwinter
11th August 2004, 16:12
As part of a general monitoring program to control logins, show who's running what, kill sleeping licenses, check the logical logs, etc. I include the following script which totals the amount of free space available............


onstat -d | grep /dev/links/data | grep -v grep | tr -s " " "," > tmp8
cut -d , -f 6 tmp8 > tmp9
b=0
for a in `cat tmp9`
do
b=`expr $b + $a`
done
echo "Total Free blocks available "$b

(It's not elegant, but I'm not a programmer!)

Regards,
Paul