[HPADM] Summary - Glance or top output to a file

From: R Scott Murray (rmurray7_at_csc.com)
Date: 05/08/03

  • Next message: Shaw, Matthew: "[HPADM] RE: find - limit search"
    To: hpux-admin@DutchWorks.nl
    Date: Thu, 8 May 2003 14:40:07 -0400
    
    

    This list rules! Thanks for all the responses.

    It was pointed out that MeasureWare is ideal for this.

    Special thanks to Chris Medaglia for this response.

    ===================================
    With top you can use:

    top -d 1 -n 1024 -f /tmp/topout

    The -d 1 means 1 screen, -n 1024 means up to 1024 processes shown (this is
    unlimited), and -f /tmp/topout means to send the output to that file.

    With glance you can use:

    glance -f /tmp/gout -adviser_only -bootup -iterations 2 > /dev/null

    The -f /tmp/gout means to send the output to /tmp/gout, -advisor_only and
    -bootup are required to send the output to a file, and -iterations is how
    many screen shots (minimum 2). You need to output to /dev/null so it won't
    try to display. There is a -syntax <filename> command line option that
    tells
    where to look for advisor syntax. If you don't specify anything, it
    defaults
    to the syntax in /var/opt/perf/adviser.syntax.

    See the top and glance man pages for more info.
    =================================
    Dave Antoch wrote

    # top -s $SAMPLE_RATE -q -n $NUM_OF_LINES -f $OUTPUTFILE
    That will result in a usable text output file with the top
    $NUM_OF_LINES processes displayed
    ===================================

    Scott Murray
    Newark, Delaware

    --
                 ---> 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: Shaw, Matthew: "[HPADM] RE: find - limit search"