Originally posted by: SystemAdmin
Rather than re-invent the wheel I'd strongly suggest you take the easy way out on this. Use a tool called nmon which will give you what you're asking for and much more besides with a minimum of effort. Look at
http://www-128.ibm.com/developerworks/aix/library/au-analyze_aix/ for details. Once you've got it installed you can run it all day long as a cron job
0 0 * * * /usr/sbin/startnmon
where the script looks something like
/usr/sbin/nmon -F "/var/nmon/`uname -n`.`date +%a%d%b%Y`.out"
The output is a csv file and nmon comes with an analyzer program that you run on Windows to produce all the graphs.
HTH
Jim Lane
#AIX-Forum