Link to home
Start Free TrialLog in
Avatar of bkreynolds48
bkreynolds48

asked on

aix unix memory check

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?

thanks
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

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:
http://www.ibm.com/developerworks/aix/library/au-nmon_analyser/

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

vmstat 2 1800 > vmstat.out

Try the various flags of vmstat, if required.
ASKER CERTIFIED SOLUTION
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
vmstat 3600 ?
Avatar of bkreynolds48
bkreynolds48

ASKER

thanks much :)