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
How to deal with performance monitoring in AIX ?
Viewed 7777 times since Fri, May 25, 2018
SSH-COPY-ID on AIX. SSH remote AIX’s box without password
Viewed 16751 times since Thu, Feb 21, 2019
Kerberos authentication configuration for AIX servers
Viewed 10872 times since Mon, Jun 25, 2018
AIX smtctl The smtctl command controls the enabling and disabling of processor simultaneous multithreading mode.
Viewed 15033 times since Fri, Jan 18, 2019
Restoring mksysb
Viewed 3469 times since Wed, May 30, 2018
How to check VLAN ID number on AIX?
Viewed 13348 times since Mon, May 28, 2018
View mksysb content & restore individual files
Viewed 1825 times since Tue, Jul 17, 2018
Awesome Command to show top 15 processes using memory on AIX
Viewed 23804 times since Thu, Nov 29, 2018
AIX perf how to
Viewed 18737 times since Tue, Aug 14, 2018
AIX WIKIS developerworks
Viewed 2331 times since Sun, Jun 17, 2018