Wednesday, August 8, 2018

AIX: How to determine / identify volume serial for Infinibox (Infinidat) w/o HPT

How to list / identify serial number of volume from Infinibox (Infinidat) without Host Power Tools?

This command can be used to determine / list serial number of disk located on Infinibox in AIX:

for i in `lsdev -Cc disk | grep INFINIDAT | awk '{ print $1}'`
do
echo $i "\c"

lsattr -El $i -a unique_id | awk '{ print $2 }' | cut -c 5-34
done 







Enjoy IT!

1 comment:

  1. Good stuff as always!

    I use something similar for SVC LUNs:
    for i in $(lsdev -C -c disk -s fcp -t 2145 -F name)
    do
    echo $i "\c"
    lsattr -E -l $i -a unique_id -F value | cut -c 6-37
    done

    ReplyDelete