Operating System - HP-UX
1833777 Members
2055 Online
110063 Solutions
New Discussion

system activity reports on HP-UX 11i v2

 
SOLVED
Go to solution
sheevm
Regular Advisor

system activity reports on HP-UX 11i v2

Hi All,

I need to generate some data about memory, CPU and disk access usage. Can anyone give me some help on how to set this up?

Thanks
RAJIM
be good and do good
7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: system activity reports on HP-UX 11i v2

Shalom,

http://www.hpux.ws/system.perf.sh

It runs background and meets your question criteria.

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
Tim Nelson
Honored Contributor

Re: system activity reports on HP-UX 11i v2

Put entries in cron for sa1 and sa2
#0 * * * 1-5 /usr/lbin/sa/sa1 600 6
#59 23 * * 1-5 /usr/lbin/sa/sa2 -A -i 600
sa1 gathers binary stats every hour
sa2 converts to reports.
check out man pages for sa1 for additional details.



NMory
Respected Contributor

Re: system activity reports on HP-UX 11i v2

RAJIM:

You can use Glance...

To generate reports you can check the man pages of Glance (#man glance) to get report into a file.

http://h21007.www2.hp.com/dspp/files/unprotected/UsingGlance.pdf

http://ovweb.external.hp.com/ovnsmdps/pdf/gp_igh_10.99.pdf


LN
sheevm
Regular Advisor

Re: system activity reports on HP-UX 11i v2

Hi,

Thanks for the responses. I like to know if anyone out there has implemented glance script to collect the system statistics CPU/MEM...etc would like to share with me?

Thanks
Rajim
be good and do good
Ninad_1
Honored Contributor
Solution

Re: system activity reports on HP-UX 11i v2

Hi Rajim,

This is a script which I had written to collect stats data for sar, glance, iostat, netstat and ftp the stats files to a server.
This lacks a lot of validity checks asuuming the required directories, user etc are created.
You may choose to use this script with the required functions only and may add the validity checks if required.
Please feel free for any comments/suggestions as well

Regards,
Ninad
sheevm
Regular Advisor

Re: system activity reports on HP-UX 11i v2

Thanks Ninad, Appreciate you sharing this.
be good and do good
Geoff Wild
Honored Contributor

Re: system activity reports on HP-UX 11i v2

Add to root's cron:

# performance
55 23 * * 1-5 /opt/perf/bin/extract -xp -r /home/gwild/zgbltemplate -g -b today 7:00 -e today 18:00 -f stdout | /bin/mailx -s 'svr003 performance report' sysadm >/dev/null 2>&1


Contents of /home/gwild/zgbltemplate

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_CPU_SYS_MODE_UTIL
GBL_CPU_USER_MODE_UTIL
GBL_CPU_SYSCALL_UTIL
GBL_CPU_INTERRUPT_UTIL
GBL_PRI_QUEUE
GBL_CPU_CSWITCH_UTIL
GBL_SWAP_SPACE_UTIL
GBL_DISK_UTIL_PEAK
GBL_DISK_SUBSYSTEM_QUEUE
GBL_MEM_UTIL
GBL_MEM_CACHE_HIT_PCT
GBL_MEM_PAGEOUT_RATE
GBL_MEM_SWAPOUT_RATE
GBL_MEM_QUEUE
GBL_NET_PACKET_RATE
GBL_NET_OUTQUEUE
GBL_NETWORK_SUBSYSTEM_QUEUE


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.