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
Getting list users and groups in AIX
Viewed 3166 times since Mon, May 28, 2018
Troubleshooting Starts With Understanding Your Physical Disks’ Attributes
Viewed 3505 times since Sat, May 19, 2018
AIX Oracle tuning
Viewed 206648 times since Tue, Jul 2, 2019
AIX Encrypted File System
Viewed 5596 times since Tue, Jul 17, 2018
My LPAR always boots into SMS. Why?
Viewed 3386 times since Tue, Apr 16, 2019
Script to reset NIM state and deallocate resources
Viewed 2192 times since Thu, Feb 21, 2019
How to build a NIM Server on AIX 6.1 from the Scratch :: Part 1
Viewed 4680 times since Thu, Nov 29, 2018
0516-404 allocp: This system cannot fulfill the allocation request. [AIX]
Viewed 4849 times since Thu, Sep 20, 2018
The new VIOS performance advisor tool part util
Viewed 3030 times since Tue, Jun 4, 2019
Part 3, Tuning swap space settings AIX7
Viewed 8826 times since Wed, Jun 19, 2019