Script to show Total, Free and Used Memory on AIX
Article Number: 443 | Rating: Unrated | Last Updated: Thu, Nov 29, 2018 5:37 PM
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
Posted - Thu, Nov 29, 2018 5:37 PM. This article has been viewed 3565 times.
Filed Under:
AIX
There are no attachments for this article.
There are no comments for this article. Be the first to post a comment.
Related Articles

How To Mirror VG and Root VG
Viewed 3545 times since Mon, May 21, 2018
Using the AIX splitvg command
Viewed 4494 times since Mon, Jun 3, 2019
HOWTO: Copy a filesystem on AIX
Viewed 2665 times since Mon, May 28, 2018
How to set Kernel Parameters in AIX ?
Viewed 15340 times since Tue, Jul 2, 2019
AIX check the HBA status
Viewed 17109 times since Tue, May 22, 2018
AIX Health Check basic
Viewed 4925 times since Fri, Jun 8, 2018
AIX- Procedure to replace rootvg harddisk
Viewed 4824 times since Tue, Apr 16, 2019
vfcpmap on VIO Server
Viewed 9780 times since Tue, Jun 4, 2019