Hi Guys,
I am using RHEL5 and my filesystem are on NetApp.
I am busy with the script that would alert me when the filesystem is above 90%.
Now I have this code that I found on the net:
df -h | awk '$4 >= "90%" {print $0}' | awk '{print $6"\t\t\t"$5}'
But my filesystem are like these:
>df -h
volumename:/vol/fas1_hostname_db/db_data2
100G 88G 13G 88% /u119
volumename:/vol/fas1__hostname_db/db_data3
100G 81G 20G 81% /u120
volumename:/vol/fas1_hostname_db/db_data4
100G 82G 19G 82% /u121
volumename:/vol/fas2_hostname_db/db_data5
250G 228G 23G 91% /u128
This command gives me this:
Linux:oracle:/home/db/scripts>df -h | awk '$4 >= "90%" {print $0}' | awk '{print $6"\t\t\t"$5}'
Mounted Use%
/u128
But I want something like these:
Mounted Use%
/u128 91%
How do I do that?
Please Help!!!!!!!!!
Thanks in advance...