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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
vmstat 3600 ?
ASKER
thanks much :)
("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.