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`
echo "Memory Results:"
echo "----------------------"
echo "Avai Mem: $memory GB"
echo "Free Mem: $freemem GB"
echo "Used Mem: $usedmem GB"


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
There are no attachments for this article.
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
Tuning AIX Network Performance
Viewed 3218 times since Tue, May 22, 2018
Problems with NFS on an AIX Reboot? Then Go Single
Viewed 5915 times since Wed, May 30, 2018
AIX FC Performance improvements for IBM AIX FC and FCoE device driver stacks
Viewed 4971 times since Fri, Jan 31, 2020
Check connection (rsh or nimsh) between NIM server and LPAR
Viewed 8725 times since Thu, Feb 21, 2019
Recovery AIX system when hang on boot (554 code error).
Viewed 14569 times since Thu, Feb 21, 2019
Mount CD/DVD & ISO image in AIX 6.1
Viewed 3512 times since Tue, Jul 17, 2018
AIX Changing ’defined’ or ’missing’ hard disk states to ’Available’ in IBM Smart Analytics System for AIX environment
Viewed 8287 times since Wed, May 22, 2019
Using AIX VG mirroring in combination with hardware snapshots
Viewed 4308 times since Sat, May 25, 2019
How to Use the Linux lsof Command
Viewed 10739 times since Sun, Jun 30, 2019
SSH Essentials: Working with SSH Servers, Clients, and Keys
Viewed 3817 times since Wed, Jun 27, 2018