Script to show Total, Free and Used Memory on AIX

Just Copy and Paste:

(memory=`prtconf -m | awk 'BEGIN {FS=" "} {print $3/1024}'`
usedmem=`svmon -G | grep memory | awk 'BEGIN {FS=" "} {print $3/256/1024}'`
freemem=`echo $memory-$usedmem | bc -l`
clear
echo
echo "Memory Results:"
echo "----------------------"
echo
echo "Avai Mem: $memory GB"
echo "Free Mem: $freemem GB"
echo "Used Mem: $usedmem GB"
echo
echo)

Result:

Memory Results:
----------------------

Avai Mem: 2 GB
Free Mem: 0.69649 GB
Used Mem: 1.30351 GB
0 (0)
Article Rating (No Votes)
Rate this article
Attachments
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
AIX, Networking Etherchannel failover testing
Viewed 3481 times since Fri, Apr 19, 2019
Technology level update on AIX using smit_update and alt_disk_install method
Viewed 6666 times since Sun, Jun 30, 2019
AIX check the HBA status
Viewed 17872 times since Tue, May 22, 2018
7 Tips – Tuning Command Line History in Bash
Viewed 6277 times since Fri, Jul 5, 2019
How to set Kernel Parameters in AIX ?
Viewed 16114 times since Tue, Jul 2, 2019
How to deal with performance monitoring in AIX ?
Viewed 8391 times since Fri, May 25, 2018
Monitoring Events with AIX Audit
Viewed 5206 times since Wed, May 30, 2018
AIX, System Admin↑ The chrctcp command
Viewed 3635 times since Fri, Apr 19, 2019
My LPAR always boots into SMS. Why?
Viewed 4500 times since Tue, Apr 16, 2019
Creating Normal,Big,Scalable VG on AIX
Viewed 16000 times since Fri, Feb 1, 2019