AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
 View Only
Expand all | Collapse all

Scirpt to record the vmstat, iostat or lsps

  • 1.  Scirpt to record the vmstat, iostat or lsps

    Posted Mon December 11, 2006 04:41 PM

    Originally posted by: SystemAdmin


    Currently I am using the lsps and vmstat (or svmon) manually monitoring the paging space activity, Can anyone provide a simple script (or example of script) to record the states of the paging space, say monitoring the activity during a certain hours? Never write a script on the AIX, so I am asking your help. thanks.
    #AIX-Forum


  • 2.  Re: Scirpt to record the vmstat, iostat or lsps

    Posted Tue December 12, 2006 07:40 AM

    Originally posted by: SystemAdmin


    Rather than re-invent the wheel I'd strongly suggest you take the easy way out on this. Use a tool called nmon which will give you what you're asking for and much more besides with a minimum of effort. Look at

    http://www-128.ibm.com/developerworks/aix/library/au-analyze_aix/

    for details. Once you've got it installed you can run it all day long as a cron job

    0 0 * * * /usr/sbin/startnmon

    where the script looks something like

    /usr/sbin/nmon -F "/var/nmon/`uname -n`.`date +%a%d%b%Y`.out"

    The output is a csv file and nmon comes with an analyzer program that you run on Windows to produce all the graphs.

    HTH

    Jim Lane
    #AIX-Forum