BladeSystem Forums have moved here
To make BladeSystem information easier to find, we have moved the BladeSystem forums here, to Servers and Operating Systems.
Showing results for 
Search instead for 
Do you mean 


Frequent Advisor


Help Needed for Script to Monitor System use and capacity
Honored Contributor

Re: Script-Help

You have use bdf to get disk resource usage, vmstat to get virtual memory and iostat as well.


while [ 1 ]
date >> /tmp/systemusage.log
bdf >> /tmp/systemusage.log
vmstat >> /tmp/systemusage.log

# Sleep for 5 minutes
sleep 300

exit 0

# Track report as,
tail -f /tmp/systemusage.log

Easy to suggest when don't know about the problem!
Honored Contributor

Re: Script-Help

I run this through cron.
bdf | grep -Ee "8[5-9]%|9[0-9]%|100%" |grep -v ":" >> /tmp/bdf.status
status=`/usr/bin/grep [/] /tmp/bdf.status|wc -l`
if [ $status -gt 0 ] 2>/dev/null;then
/usr/bin/mailx -s "BDF status(above 85 %) of servers as on `date`"
sysadm < /tmp/bdf.status
There is no substitute to HARDWORK
Honored Contributor

Re: Script-Help

Get SEP's script from the above given thread..

"A ship in the harbor is safe, but that is not what ships are built for"
Honored Contributor

Re: Script-Help

To give more effective solution,

a) Which system resource you want to monitor?
b) Is it runnable by schedular or background process?
c) Reporting by mail / log file generation?


PS: check your profile. It is very week on assigning points :)

Easy to suggest when don't know about the problem!