Saturday, January 3, 2015

How to probe HBA on redhat?

How to probe Linux HBA ?

#!/bin/ksh
for i in `systool -c fc_host | grep "^    Device =" | awk '{print $3}' |awk -F\" '{print $2}'`
do
echo "echo \"- - -\" > /sys/class/scsi_host/$i/scan"
done

for i in `systool -c fc_host | grep "^    Device =" | awk '{print $3}' |awk -F\" '{print $2}'`; do echo "echo \"- - -\" > /sys/class/scsi_host/$i/scan"; done

No comments:

Post a Comment