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
Topics: AIX, Networking, System Admin
Viewed 549 times since Fri, Apr 19, 2019
AIX Replacing a failed disk (rootvg)
Viewed 769 times since Tue, Jul 17, 2018
AIX disk queue depth tuning for performance
Viewed 392 times since Thu, Jan 16, 2020
How to build a NIM Server on AIX 6.1 from the Scratch :: Part 1
Viewed 775 times since Thu, Nov 29, 2018
How to know witch process is running in a particular port on AIX using KDB
Viewed 468 times since Thu, Nov 29, 2018
AIX - How to unlock and reset user’s account
Viewed 1144 times since Fri, Jun 8, 2018
AIX Password expiry /etc/passwd
Viewed 1278 times since Wed, Jul 3, 2019
AIX Creating a Volume Group
Viewed 526 times since Tue, Jul 17, 2018
What is OS Watcher Utility and How to use it for Database Troubleshooting ?
Viewed 2763 times since Thu, Jun 21, 2018
AIX Reviewing AIX Error and Boot Logs
Viewed 588 times since Wed, Mar 20, 2019