In aix ( later versions ) I want an simple healthcheck script starting with topas

Posted on 2012-08-31
Medium Priority
Last Modified: 2012-09-05
as always, we get system reported having problems that are simply not

For the aix systems, topas does a good job telling me it is healthy and up.  

Problem is I have to go to the screen and type topas, snag the screen and paste it in the ticket.   I need few simple commands to show aix is health that can be scripted.  

Question by:TIMFOX123
LVL 68

Accepted Solution

woolmilkporc earned 2000 total points
ID: 38360174
Few simple commands?

In order to get a snapshot of the last 5 seconds of your system's activty
you could try these:

# Disks sorted by "kbps":
iostat -d | head -4 ; iostat 5 1| tail +8 |sort -k6,rn
# LPAR CPU consumption:
lparstat 5 1
# Virtual memory (paging):
vmstat 5 1

Some more commands:

There's still

uptime # Load average, 1-, 5-, 15-minute intervals

# NIC activity, lo0 dismissed:
netstat -i | egrep -v "lo0|link"

# The ten processes consuming the biggest share of the CPU:
ps -e -o pid=,comm=,pcpu= | sort -k3,rn | head -10

# Filesystems sorted by percent capacity used:
df -Pm |head -1; df -Pm | tail +2 | sort -k5,rn

# Details of all your Volume Groups:
lsvg | lsvg -i

# Your paging space(s):
lsps -a; lsps -s

LVL 25

Expert Comment

ID: 38360486
Additionally,  I would check errpt regularly for hardware/software issues.
I would recommend looking into Tivoli Monitoring
http://www-01.ibm.com/software/tivoli/products/monitor/ or any open source monitoring tool like nagios http://www.nagios.org/ which would alert you if there is a problem with the
server, services or file-systems. You need to activate SNMP in the AIX servers

Author Closing Comment

ID: 38369600
wmp wins again


Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
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 Month13 days, 23 hours left to enroll

807 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