AIX Monitoring Tool - under preparing

[LEFT]Guy's
[/LEFT]

AIX Monitoring Tool - under preparing .....

I'm working to make and prepare tool to monitor AIX system and my idea it's based on the following outputs

I want command to give me shout outpous about the following ...

  • CPU load

[LEFT][/LEFT]

  • Memory load

[LEFT][/LEFT]

  • Used load

[LEFT][/LEFT]

  • Number of users

[LEFT][/LEFT]

  • Waiting

[LEFT][/LEFT]

  • Top of process

I want this outputs to be in one word ...

For example

CPU load (I want the outpot to be like the below only one word)
40%
or
number beads on the system load

I want the command to give me the percentage of load or the number of load

Please help me in this as all of these outputs will help me to achieve my program plan ...

[b]B]

There are plenty of tools that do that already. Also a number of users logged in on the system does not necessarily say anything about performance.
"In one word" - what does that mean?
On AIX with multiple CPUs and often SMT turned on, an average on CPU load does also not help that much.

To get a first impression I recommend running vmstat to see any bottlenecks.
It contains for CPU load an average for all CPUs on sys user idle and wait, as well shows you if it's paging in or out and also if it scans memory so it can free pages.
For top of process you might want to use topas which can also display the other stuff mentioned above.

Is this meant as an excercise in scripting or programming?

I want to design my tool by my self and I want your help to give me some result

CPU load
Suppose that this is the command AAA

$ AAA
40%

Memory load
Suppose that this is the command BBB

$BBB
60%

or to give me load number (1 output ) and the same will be for the all Used load , Number of users , Waiting , Top of process

Please refrain from formatting your whole posts in bold letters. Also start using code tags please. If you don't know code tags, I can send you a PM where it is explained, so let me know.

What do you want to write, a shell script/perl etc. parsing output of commands I already mentioned or a C program?

On AIX memory usage/load in % is kind of useless.

---------- Post updated at 03:25 PM ---------- Previous update was at 03:22 PM ----------

Also please refrain from asking technical questions via PM - you got an infraction for this. Please read the forum rules carefully - it might help for further posting here, ty:

The UNIX and Linux Forums - Forum Rules

You need to read in depth the manual pages of vmstat, iostat, netstat and lparstat to see if any of those will help you.

Before you embark on this I would first make sure you understand exactly what it is you want to display and what those numbers mean.

I, like many of the other replies, am not fully understanding what you are trying to do here. This data is available via existing tools.

But... if you are interested in rolling your own* you can write against the PerfStat API. Virtually all the performance stats on AIX come from this source. It is really easy to write against and the documentation on InfoCenter should be sufficient for anyone who can read/write C.

[* Insert disclaimer here: "Those who do not know of a Unix utility are destined to re-write it, badly."]

There is some sample source for the (netinterface portion of) LibPerfStat API here:

ifstat

(See a link to the source at the very bottom of the page)

The page also includes some commentary on syntax problems in the AIX supplied header files for LibPerfStat as encountered with GCC.