Thursday, August 15, 2013

CPU and Memory Reports HP UX

Hi Friends,

To find detailed view and reports of CPU, memory, disk utilization, file system usage, application, disk io, swap etc. there is very good utility in HP UX. I did it in HP UX 11.31, not aware of other  version. need to check more on it.
EXTRACT utilty, which is making use of scopeux behind is very good extract utility. It can bring out report of more than a month. 
Reading man page of extract can help you to choose multiple option for individual CPU or other parameter. We used the global option which brings detailed report. U can extract the same data in excel sheet and choose according to your requirement. And create graphs for your monthly report. 

€ the configuration file for export is in /var/opt/perf/Parms 
€ the services which need to be restarted  are
#/opt/perf/bin/perfstat :- command to check the o/p of performance status
#/sbin/init.d/ovpa stop
# /sbin/init.d/ovpa start
The command to take out report one month is :-


#extract -xp -g -b today-30 -e today -f /tmp/reports.out --  to bring out 30 days report from current date.

#/usr/bin/uuencode /tmp/reports.out /tmp/reports.out |mailx -m -s "mem1" xyz@xyz.com

(using above command you can mail yourself the reports.out file or any attachment/file..)

would like to show how the o/p of data in graph format can be viewed in excel sheet after it is extracted on excel sheet.

CPU :-



similarly Memory, File system usage, etc reports can be taken out.


 Thanks & Love Sharing
Amit Chopra

 



 

1 comment:

cloudmasters said...

thanks amit bhai you help me to get last 10 days utilization report . great work bhai