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
#!/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