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
My LPAR always boots into SMS. Why?
Viewed 3993 times since Tue, Apr 16, 2019
AIX - How to monitor memory usage
Viewed 5879 times since Fri, Jun 8, 2018
Migrating AIX User Environments
Viewed 2379 times since Wed, May 30, 2018
Kerberos, Active Directory and AIX
Viewed 6625 times since Mon, Jun 25, 2018
How to setup an user in AIX
Viewed 4215 times since Mon, May 28, 2018
AIX: How to manage network tuning parameters
Viewed 4119 times since Mon, Jun 11, 2018
AIX Not all filesets for 6100-07_AIX_ML were found
Viewed 3230 times since Tue, Jul 17, 2018
Setting new device attributes with chdef
Viewed 2420 times since Mon, Jun 3, 2019
AIX - How to get IP and MAC address of ethernet adapter in AIX
Viewed 26417 times since Fri, Jun 8, 2018
AIX - How to get network speed and statistic of ethernet adapter in AIX
Viewed 14794 times since Fri, Jun 8, 2018