Operating System - HP-UX
1830895 Members
2403 Online
110017 Solutions
New Discussion

Re: How can I monitor all disk,cpu,io,memory activities at some period of time ?

 
SOLVED
Go to solution
Wiboon Tanakitpaisal
Occasional Advisor

How can I monitor all disk,cpu,io,memory activities at some period of time ?

How can I monitor all disk,cpu,io,memory activities at some period of time ?

Many Thanks
Hi everybody
5 REPLIES 5
Marcel Boon
Trusted Contributor

Re: How can I monitor all disk,cpu,io,memory activities at some period of time ?

Hello,

There is a program and that is called:
HP OpenView GlancePlus and
Glanceplus Pak 2000.

You can find this information on:
http://www.openview.hp.com/products/glanceplus/

You need a codeword for this program but
there is trial version on the CD:
HP UX Application Software (cd4)

Have a nice day!
See the man pages
Wiboon Tanakitpaisal
Occasional Advisor

Re: How can I monitor all disk,cpu,io,memory activities at some period of time ?

glance plus on my machine has expired.
Do you have another method to monitor all of this events ?
Hi everybody
CHRIS_ANORUO
Honored Contributor
Solution

Re: How can I monitor all disk,cpu,io,memory activities at some period of time ?

GlancePlus Pak is a very good monitoring tool.
You can also use this script with your cron.
#!/sbin/sh
DATE=`date +%Y%m%d`
LOGFILE=/tmp/vmslog.$DATE
touch $LOGFILE
echo "VMSTAT" >> $logfile
echo "`date +%H:%M` ` vmstat 5 5 |tail -1` " >> $LOGFILE
echo "SAR" >> $LOGFILE
echo "`date +%H:%M` `sar 5 5|tail -1 `" >> $LOGFILE
echo "SAR -B" >> $LOGFILE
echo "`date +%H:%M` `sar -b 5 5|tail -1 `" >> $LOGFILE
echo "SAR -M" >> $LOGFILE
echo "`date +%H:%M` `sar -M 5 5|tail -1 `" >> $LOGFILE
echo "SAR -D" >> $LOGFILE
echo "`date +%H:%M` `sar -d 5 5|tail -1 `" >> $LOGFILE
echo "NEW UPDATE" >> $LOGFILE
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
alberto vasquez
Trusted Contributor

Re: How can I monitor all disk,cpu,io,memory activities at some period of time ?

The "sar" tool is extremely well-suited for this type of task. The easiest way of doing this is to run the command:

sar -A &

This will keep a log of the system performance, polled every interval, and store this in the file /var/adm/sa/sa
, where
is the 2 digits of the day of the month. (ie, 01-31). Generally, a 300 second (5 minute) interval is recommended.

You can embed this in a shell script and/or a cron job to suit your needs.
Ted Flanders_1
Advisor

Re: How can I monitor all disk,cpu,io,memory activities at some period of time ?

Try the command: top
It will give you real time readings of the following
CPU TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND