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
Awesome Command to show top 15 processes using memory on AIX
Viewed 24968 times since Thu, Nov 29, 2018
IP configuration in AIX
Viewed 4106 times since Tue, Jul 17, 2018
AIX, Networking Etherchannel failover testing
Viewed 3915 times since Fri, Apr 19, 2019
How to clear/clean/erase/delete/reset network adapter configuration on AIX?
Viewed 13566 times since Thu, Nov 29, 2018
System Admin Mirrorvg without locking the volume group
Viewed 4021 times since Mon, May 21, 2018
AIX FC Performance improvements for IBM AIX FC and FCoE device driver stacks
Viewed 7308 times since Fri, Jan 31, 2020
Mirroring the rootvg Volume Group for AIX 4.1/4.2
Viewed 3942 times since Mon, May 21, 2018
Undocumented AIX command lquerypv
Viewed 4692 times since Mon, Jul 16, 2018
AIX 0516-404 allocp: This system cannot fulfill the allocation
Viewed 4263 times since Thu, Sep 20, 2018
AIX: How to determine which application created the OS core file
Viewed 3248 times since Mon, Jun 11, 2018