[HPADM] Fw: Summary: glance to print the output to a file

From: Joe Philip (joe.philip_at_verizon.net)
Date: 04/08/04

  • Next message: Timothy A Reed: "[HPADM] upgrade 11.0 to 11.i install times"
    To: "hpadm" <hpux-admin@dutchworks.nl>
    Date: Thu, 8 Apr 2004 15:57:10 -0400
    
    

    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)
    

  • Next message: Timothy A Reed: "[HPADM] upgrade 11.0 to 11.i install times"

    Relevant Pages

    • RE: Need better string methods
      ... this is tooo complex for a non-programmer to expect ... > So redefine the problem, or look at it from a 90 degree angle. ... > redefine the syntax. ... Even though you (David) are ostensibly providing coding ...
      (comp.lang.python)
    • Re: A97: Cant import a text file to an Access 97 table?
      ... David, I appreciate the input. ... That's certainly not the syntax you were talking about and you'll find ... If you are correct, and I am ignorant of NT's CMD syntax, how about ... MS not hiding the file. ...
      (comp.databases.ms-access)
    • Re: forgetting my DCL: what am I missing?
      ... In article, David J Dachtera ... The CLI version supports the UN*X-like syntax as well. ... As I said in another post, I meant UNZIP. ...
      (comp.os.vms)
    • Re: forgetting my DCL: what am I missing?
      ... In article, David J Dachtera ... The CLI version supports the UN*X-like syntax as well. ... As I said in another post, I meant UNZIP. ...
      (comp.os.vms)
    • Re: How do I expose a static_cast?
      ... David ... >> however, due to this being a static cast, what is the syntax? ... > The A part of B objects is private, ... you cannot convert a B pointer into an A pointer. ...
      (comp.lang.cpp)