Operating System - HP-UX
1827808 Members
12436 Online
109969 Solutions
New Discussion

Re: need CPU/Memory Utilization

 
MSwift
Regular Advisor

need CPU/Memory Utilization

Greetings!

I need to get the CPU/Memory Utilization for a server (Lclass) running 11.0 for the last one week. what would be the easiet and quickest way to do this? Please help.

Thanks

Mike
7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: need CPU/Memory Utilization

Shalom,

sar is a great tool for this.

http://www.hpux.ws/?p=6

You can pull some good stuff out of the scripts there.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Mel Burslan
Honored Contributor

Re: need CPU/Memory Utilization

If you are looking for the past performance data, you need to check if the measureware agent (mwa) was running on your server during this time. If it was running, there should be logs under /var/opt/perf/datafiles, named log where is one or more of proc, dev, appl, glob, indx, tran.

Using the utility extract, you can pull all sorts of different data out of this system. Use of extract needs a bit getting used to but man page should be a good point to start playing with it.

If you do not have these files, there is no way that I know that you can have the data for the past week. But check root's crontab and see if sa1 and sa2 are scheduled to run periodically, which may help.

________________________________
UNIX because I majored in cryptology...
Prashanth Waugh
Esteemed Contributor

Re: need CPU/Memory Utilization

Hi,

Check on ur system u have set the path for sar and crontab entry for it using crontab -l.
/var/adm/sa/saxx

where xx is the date

Regards
Prashant
For success, attitude is equally as important as ability
MSwift
Regular Advisor

Re: need CPU/Memory Utilization

I have the SAR data, but with the SAR data how do i get the memory Utilization?

Thanks

Mike
Sharma Sanjeev
Respected Contributor

Re: need CPU/Memory Utilization

Hi Mike

1.You can Use GLANCE, Glance is fantastic.
2. you can use EXTRACT which will give the data
3. Perfview
etc

Regards
Sanjeev
Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE
Vishu
Trusted Contributor

Re: need CPU/Memory Utilization

Hi,

Sanjeev is right. Here is the procedure how you can extract your data.

Frist Create a template file at /tmp/moni

root # more moni
REPORT "MWA Export on !SYSTEM_ID"
FORMAT ASCII
HEADINGS ON
SEPARATOR="|"
SUMMARY=60
MISSING=0
DATA TYPE GLOBAL
YEAR
DATE
TIME
GBL_CPU_TOTAL_UTIL
GBL_MEM_UTIL
GBL_SWAP_SPACE_UTIL
GBL_MEM_CACHE_HIT_PCT
GBL_DISK_UTIL_PEAK
GBL_FS_SPACE_UTIL_PEAK

then do

# cd /opt/perf/bin
# ./extract -xp -r /tmp/moni -g -b today 16:02 -e today 16:08 -f stdout

man page of extract says.

extract -xt [d|w|m|y -offset] [-v][-gapkdzcntuy]
[-l ] [-f ]
[-b
Prashanth Waugh
Esteemed Contributor

Re: need CPU/Memory Utilization

Hi Mike,
u can check the cpu utilsation by using below command
sar -u -f /var/adm/sa/saxx

where xx is date
check tha man pages for sar for other option like mem,disk etc.

Regards
prashant
For success, attitude is equally as important as ability