Need some help for AIX performance monitoring


 
Thread Tools Search this Thread
Operating Systems AIX Need some help for AIX performance monitoring
# 1  
Old 04-21-2011
Need some help for AIX performance monitoring

Hello
I am new user of AIX; I have only basic knowledge of the UNIX commands, and I want to create script that will monitor the performance and resources usage on AIX 6.1 machine.
Basically I wan to start a loop that will grab, every 10 seconds, the CPU usage, the memory usage, the disk usage, and the Network usage (especially the number of TCP connections that are not completely closed). And create an HTTP POST with all those information to send it to another machine on the same network.
I started the script after looking in some example in the internet, but I ma not sure if what I did until now is correct. Any help or ideas are welcome.

Thank you
Quote:
##############################################
# Script:
#################################################

#Script to monitor Machine resources.

# Start loop

#Get CPU usage
cpu_usage = vmstat 1 1 |tail -1 | awk {'print $14'}
cpu_user_usage = sar -u 1 1 |tail -1 | awk {'print $2'}

#Get memory (RAM) usage
mem_usage = svmon -G | tail -1 | awk {'print $3'}
((mem_usage = mem_usage / 256))

mem_total=`lsattr -El sys0 -a realmem | awk {'print $2'}`
((mem_total = mem_total / 1000))
((mem_free = mem_total - mem_usage))

#Get Disk usage


#Get Network usage


#Get Time


#Get machine name


#Create HTTP request params


#Send HTTP request to Monitoring machine


# end loop
# 2  
Old 04-22-2011
Well, for what you are trying to do - all except hostname, network and disk traffic can be covered with a simple vmstat -Iwt 10 - for network I would suggest you use netstat and for disks iostat with the options you want to capture.
Generally - you will generate a lot of network traffic if you really want to send the data via network every 10 sec and I personally could not see any use in this - particularly cpu usage on current virtualized systems is only a problem if you are exceeding your virtual capacity - but you will get a 100% busy system as soon as you exceed your entitlement.

Regards
zxmaus
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Performance Monitoring - RHEL 7.4

Have a question about doing some performance monitoring - how to approach it. This is on RHEL 7.4 We are moving a rather large application to new hardware in the future. I would like to find a way to compared performance on the new hardware at different stages and at different times. I'm... (4 Replies)
Discussion started by: Overcast451
4 Replies

2. Solaris

Performance / Batch monitoring

What tools can I use to look "deeper" into a process to see if the job is actually running or just hanging. What is the best method to accomplish this? SunOS 5.10 Generic_142900-14 sun4v sparc SUNW,T5240 (2 Replies)
Discussion started by: Harleyrci
2 Replies

3. Shell Programming and Scripting

Performance monitoring help needed.

How would i check for following? 1)open ports in my linux machine. 2)Hard disk read speed. 3)Hard disk write speed. (2 Replies)
Discussion started by: pinga123
2 Replies

4. AIX

How to do Performance monitoring and tuning in AIX

How to do Performance monitoring and tuning in AIX. (2 Replies)
Discussion started by: AIXlearner
2 Replies

5. Solaris

Performance Monitoring

Hi all, I am planning to give a presentation on performance measure. I have decided to focus on the commands which are used to know the performance of the server. I have a idea of prstat,vmstat,netstat, and iostat. Could anybody suggest me any other commands which are used for perforamance... (7 Replies)
Discussion started by: priky
7 Replies

6. UNIX for Dummies Questions & Answers

Unix Performance Monitoring

In the vmstat , there are many columns you can see. Can someone tell me what is the most important column that i need to be watched on, and what value or average value should i watch inorder to determine that im experiencing a cpu bottle neck. What should be my basis. or if you use glance ... (2 Replies)
Discussion started by: kaibiganmi
2 Replies

7. UNIX for Dummies Questions & Answers

Performance monitoring

Hello, I am trying to find a way to view current CPU and disk usage. I used to use nmon which worked fine but since an upgrade to our servers this is no longer available. I have tried to get it reinstalled to no avail! Are there any other commands you can use within unix which will allow me... (4 Replies)
Discussion started by: johnwilliams
4 Replies

8. UNIX for Advanced & Expert Users

Performance Monitoring

Hi all The place I work for is about to to place there database server under heavy load for testing and would like the effect recorded as much as possible. Can anyone point me in the right direction with respect to real time system monitoring. I am aware of of 'sar', vmstat etc and hope to... (2 Replies)
Discussion started by: silvaman
2 Replies

9. AIX

Performance monitoring

Hi All I am looking for a script that would collect statistics in a summarised format. CPU, Memory,Swap, Wait queue, Run queue and disk activity. Something that would allow me to profile the environment based on a 1 line output that I could run every 15 min. Thx Junaid (1 Reply)
Discussion started by: jhansrod
1 Replies

10. UNIX for Advanced & Expert Users

performance monitoring

hi, can any one tell me, is there is any way i can check the performance of my solaris 8 os on an Ent 3500. Other than top to check for the top most processes, how to make the calculations with vmstat, iostat, mpstat and nfsstat. Or is there any other tools that i can use? cheers. (3 Replies)
Discussion started by: i2admin
3 Replies
Login or Register to Ask a Question