[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


aix unix memory check

Posted on 2014-08-26
Medium Priority
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
  • 2
LVL 68

Expert Comment

ID: 40286239
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

woolmilkporc earned 2000 total points
ID: 40286377
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 62

Expert Comment

ID: 40287263
vmstat 3600 ?

Author Closing Comment

ID: 40287812
thanks much :)

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses
Course of the Month19 days, 17 hours left to enroll

872 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