Operating System - HP-UX
1827284 Members
3567 Online
109717 Solutions
New Discussion

How to extract data from glance/gpm

 
Shivkumar
Super Advisor

How to extract data from glance/gpm

Hi Folks,

Is it possible to extract data in text/asci
format to view from Glance/Gpm tool on hpux 11i ?

Thanks,
Shiv
5 REPLIES 5
Pete Randall
Outstanding Contributor

Re: How to extract data from glance/gpm

Check the "-adviser_only" option and the Examples in the glance man page.


Pete

Pete
harry d brown jr
Honored Contributor

Re: How to extract data from glance/gpm

I think you need the OpenView Performance Agent. Once that is done, you can find the extract info here: /opt/perf/paperdocs/ovpa/C/users.pdf

live free or die
harry d brown jr
Live Free or Die
RAC_1
Honored Contributor

Re: How to extract data from glance/gpm

I used to as follows.
The glance/pv collects data from mwa agent. The data is kept in /var/opt/perf/datafiles.
The difference between glance and pv is that the former gives the picture at that point of time, while the later can store the data and give you historical data.

You can manage without PV. Everyday, use extract command to extract data from datafiles and store them somewhere. now you analyse this data later n, draw graphs etc. You will have to extract data before datafiles are rotated. (this is defined in parm file)

If you do not want to use extract, you can use glance in adviser mode at perodic intervals and store data.

Read the man pages of extract, glance carefully. It has all the details you require.

Anil
There is no substitute to HARDWORK
Rick Garland
Honored Contributor

Re: How to extract data from glance/gpm

Using the extract utility is a good method of getting this info. If you like you can forward to HP for further analysis - depends on your contract.

Attached is an OVPA-extract script that has been in use for long time. Uses the extract utility.

Do read the man on extract as there are lots of options. You will gain an understanding of the options I am using here as well.

NOTE, modify this script for your environment.

Rob van Buiten
Regular Advisor

Re: How to extract data from glance/gpm

I use:


OPTION=g ## g=PROCESS LIST
INTERVAL=5 ## 5 is std
ITERATIONS=200 ## 200 is max ! (glance will do "$ITERATIONS + 1" prints)
LOGFILE=/var/tmp/glance/glance.${OPTION}.`date '+%m%d.%X'`

glance -${OPTION} -j ${INTERVAL} -iterations ${ITERATIONS} -f ${LOGFILE}


PME.