aix unix memory check

Posted on 2014-08-26
Last Modified: 2014-08-27
I need a script that will show me what is going on in memory on an aix 6.0 system

I can run topas - then hit "~" - then hit "m" and get what is going on in memory but need something that produces the same information in a script

is there a way to script this and get the same information as this plus a short history - say the last hour or so?

Question by:bkreynolds48
    LVL 68

    Expert Comment

    Unfortunately it's not really possible to record nmon's output to a file the way you desire.
    ("topas" followed by "-" is in fact "nmon").
    You can try for yourself (to see that the output isn't really readable):

    export NMON="m"; nmon -b -B -c 3 >> nmon_m.out

    The above will produce just 3 samples, I think that will be enough for our purpose.

    nmon has a builtin recording facility, but that's a very comprehensive thing.
    If you're interested, here is more:

    How about good old "vmstat"? Its output can easily be recorded.

    vmstat 2 1800 > vmstat.out

    Try the various flags of vmstat, if required.
    LVL 68

    Accepted Solution

    After running this:

    export NMON="m"; nmon -b -B -c 3 >> nmon_m.out

    you can run this

    grep -Ei "used|free|total|page|max"  nmon_m.out

    so you can read the output a bit better.
    LVL 61

    Expert Comment

    vmstat 3600 ?
    LVL 1

    Author Closing Comment

    thanks much :)

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
    Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now