#!/bin/ksh # # This script displays the EMC disk id, the hw. path and the corresponding device file # # /usr/sbin/ioscan -fnC disk|grep -v Class|grep -v =| \ awk '{if ($1=="disk"){A=$3}} {if ($1!="disk"){print A," "$2}}'>/tmp/s2 wait ./inq|grep EMC|awk '{print "echo \"",substr($5,4,3)," "$6" ""\c\"",";grep" ,$1,"/tmp/s2"}'>/tmp/s3 wait chmod 777 /tmp/s3 echo " "`hostname` echo "" /tmp/s3 |sort -k1,1 wait rm -f /tmp/s2 /tmp/s3