AIXThis forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You are going to have to explain what you want in more detail. Since most of us here don't have access to AIX, you should provide an example or two of the output of those tools, what you need to get from them, and how the output needs to be formatted.
Most likely what you want can be done with a simple awk script, but it all depends on the details.
I would also start by checking the documentation on those programs and seeing if they can be configured to output only the data you want from them, or at least give it easily parseable formatting.
Your question is a little unclear. Are you trying to monitor when memory usage reaches those levels, and then perform some action (an alert email or something)?
Firstly you need to keep in mind that AIX automatically uses memory which is not used for computational work, as filesystem cache. It is therefor very common to see high overall memory usage at close to 100%, without any issues as a result of this. To monitor for problems you will therefore have to look at more than just total memory used. You need to look at the computational vs file/client memory separately, and also need to look at paging activity (both paging space usage and number of paging space IOs).
For scripting purposes a good starting point might be too look at the "svmon" command rather than nmon (assuming you are running nmon interactively).
Not sure what you want to do with memory monitoring. I assume since you call out 90% used or 100MB free, you want something that sends an alert when the thresholds are met. In that case, I'd suggest noodling around with AIX's mkcondition and mkcondresp commands. You can basically create a mechanism that will, for example, use sendmail to alert you when an OS related condition is met such as the amount of memory usage, CPU utilization, paging space filling up, etc...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.