flipkart3

SNAPDEAL OFFERS

snapdeal2

Thursday, August 20, 2015

AIX SCRIPT TO COLLECT PV , VG , LV AND FILE SYSTEM INFO

ALL DOCUMENT ARE PROPERTY OF SHIVAKANT , DO NOT COPY IBM , AIX , HACMP , ARE REGISTERED TRADE MARK OF IBM, NETAPP IS REGISTERED TRADEMARK OF NETAPP
http://aix-administration.blogspot.com/p/index-of-posts-available-in-this-blog.html

Hey Guys i was looking into collecting Pv and VG information of a AIx System  and i just
 wanted a summary of few details i created script for the same and feel like sharing it , please test at your system and see if you like it .


echo "   LV NAME                             FILE SYSTEM       SIZE IN MB          PV NAME            VGNAME    "            

for x in $(lsvg -o )

do

pps=$( lsvg $x|grep "PP SIZE:"|awk '{print $6}')

lsvg -l $x |grep -vE "LV|N/A|:"|while read llv tp lp pp npp ds fs

do

b=

for dsk in $(lslv -m $llv|awk '{print $3}'|uniq|grep -v PV)

do

b=$b$dsk,

done



echo "   $llv                         $fs                          $(( $pps * $lp ))                 $b                           $x     "

done

done
 

Tuesday, April 21, 2015

AIX SHOW INSTALLED MEMORY IN GB

ALL DOCUMENT ARE PROPERTY OF SHIVAKANT , DO NOT COPY 
 IBM , AIX , HACMP , ARE REGISTERED TRADE MARK OF IBM, 
NETAPP IS REGISTERED TRADEMARK OF NETAPP 

http://aix-administration.blogspot.com/p/index-of-posts-available-in-this-blog.html

HERE IS A CUMULATIVE COMMAND TO SHOW AIX MEMORY INTO GB

  echo  $(( $(lsattr -El sys0 |grep -i realmem |awk '{print $2}')/1048576 )) GB

YOU MAY COPY AND PASTE ABOVE IN A FILE IN /usr/bin AND PROVIDE EXECUTABLE PERMISSION TO THAT FILE 

Amazon8

Total Pageviews