AIX: Script to get Total Disk Size


Single Server

Total Disk Size (hdisk)

1
for i in `lspv |awk '{print $1}'`; do bootinfo -s $i; done |awk '{s+=$1} END {print s}' |while read x; do echo $x/1024|bc; done

Total Disk Size (hdiskpower)

1
for i in `lspv |grep hdiskpower |awk '{print $1}'`; do bootinfo -s $i; done |awk '{s+=$1} END {print s}' |while read x; do echo $x/1024|bc; done


Article Number: 264
Posted: Tue, Jun 12, 2018 9:07 AM
Last Updated: Tue, Jun 12, 2018 9:07 AM

Online URL: http://kb.ictbanking.net/article.php?id=264