Hi All Guys....
root> df -k|grep /u0
/dev/vx/dsk/oradg/u02vol 12582912 8717924 3744252 70% /u02
/dev/vx/dsk/oradg/u01vol 8796160 5563610 3131556 64% /u01
/dev/vx/dsk/oradg/u04vol 10035200 1247888 8519534 13% /u04
/dev/vx/dsk/oradg/u03vol 12582912 2524060 9744542 21% /u03
root> df -k|grep /u0|awk '{ print $4 }'
3744252
3132546
8519534
9744542
----------------------------------------------------
check_oracle_filesystem.ksh
----------------------------------------------------
#!/bin/ksh
for i in `df -k|grep /u0|awk '{ print $4 }'`
do
# Convert the file size to a numeric value
filesize=`expr i`
# If any filesystem has less than 4000000k, issue an alert
if [ $filesize -lt 4000000 ]
then
echo "Call Fauzi" | mailx -r
oraadm@juwpkl.gov.my -s "Oracle filesystem $i has less than 4000000k free"\
adzuan@nc.com.my
fi
done
--------------------------------------------------------------------------------------------------------------
Based on that script, it will display at subject header of the email with " Oracle 3744252 3132546 has less than 4000000k free
My question is, how to display the Partition Name (mounted on) to be display at subject header???