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 build a NIM Server on AIX 6.1 from the Scratch :: Part 1
Viewed 4368 times since Thu, Nov 29, 2018
Authenticate AIX using MS DC’s kerberos servers (Active Directory)
Viewed 1872 times since Thu, Feb 21, 2019
SNAP
Viewed 1501 times since Mon, Sep 17, 2018
How to clear/clean/erase/delete/reset network adapter configuration on AIX?
Viewed 11887 times since Thu, Nov 29, 2018
How to Investigate a System Reboot
Viewed 4114 times since Mon, Jul 16, 2018
Getting list users and groups in AIX
Viewed 2770 times since Mon, May 28, 2018
AIX Errpt - Diag - Alog
Viewed 3106 times since Wed, Mar 20, 2019
AIX: How to determine which application created the OS core file
Viewed 2065 times since Mon, Jun 11, 2018
How to Use the Linux lsof Command
Viewed 10737 times since Sun, Jun 30, 2019
AIX oslevel version OS
Viewed 4249 times since Wed, Apr 17, 2019