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
Create volume groups on AIX - Normal Big Scalable
Viewed 6643 times since Thu, Feb 21, 2019
AIX, System Admin↑ The chrctcp command
Viewed 2978 times since Fri, Apr 19, 2019
Top 4 Reasons for Node Reboot or Node Eviction in Real Application Cluster (RAC) Environment
Viewed 87181 times since Thu, Jun 21, 2018
View mksysb content & restore individual files
Viewed 1781 times since Tue, Jul 17, 2018
AIX Undocumented AIX command lquerypv
Viewed 3524 times since Tue, Jul 17, 2018
AIX - How to monitor memory usage
Viewed 5159 times since Fri, Jun 8, 2018
Mirroring session (TTY) on AIX using portmir
Viewed 9252 times since Thu, Feb 21, 2019
AIX Resolving "missing" or "removed" disks in AIX LVM
Viewed 4389 times since Tue, Aug 6, 2019
AIX TCP connection status
Viewed 16560 times since Mon, Jul 29, 2019
O’Reilly’s CD bookshelf
Viewed 12174 times since Wed, Jun 27, 2018