From: Joe Philip (joe.philip@verizon.net)
Date: Thu Apr 08 2004 - 15:57:10 EDT
Thanks to David Totsch and Martin Lodahl for pointing me to the right direction.
I got the process command name from the glance window using help. Then, by Martin's advise, I looked at examples in /opt/perf sub directories. I found some syntax example and I used something very similar to what David suggested.
----- Original Message -----
From: Totsch, David Lee
To: Joe Philip
Sent: Thursday, April 08, 2004 11:31 AM
Subject: RE: [HPADM] glance to print the output to a file
Joe:
Take a look at the files in /opt/perf/paperdocs/gp/C for more information.
Here is the syntax you seek:
PROCESS LOOP
{
PRINT GBL_STATDATE," ",GBL_STATTIME," ",PROC_PROC_ID," ",PROC_PROC_NAME,PROC_MEM_RES
}
glance will print the data as it starts, so with 1 iteration, the j 3600 only makes glance wait to exit...
Also, looping is very resource intensive, so be careful (if you put more than 1 iteration and the interval is too short, you may not catch all of the processes...
-dlt-
-----Original Message-----
From: hpux-admin-owner@DutchWorks.nl [mailto:hpux-admin-owner@DutchWorks.nl]On Behalf Of Joe Philip
Sent: Wednesday, April 07, 2004 7:33 PM
To: hpux-admin@dutchworks.nl
Subject: [HPADM] glance to print the output to a file
I am trying to print the pids and the resident memory (RSS) taken by that process to an output file.
I have the syntax like this:
glance -iterations 1 -j 3600 -adviser_only -syntax adviser_file > output
However, I haven't got the syntax to put in the adviser file.
What are the parameter names to put in the adviser file to get the values for pid and the memory?
-- ---> Please post QUESTIONS and SUMMARIES only!! <--- To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl Name: hpux-admin@dutchworks.nl Owner: owner-hpux-admin@dutchworks.nl Archives: ftp.dutchworks.nl:/pub/digests/hpux-admin (FTP, browse only) http://www.dutchworks.nl/htbin/hpsysadmin (Web, browse & search)
This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:40 EDT