HP xw3400 User Manual page 104

User manual for linux
Hide thumbs Also See for xw3400:
Table of Contents

Advertisement

echo " Host numbers may thus be specified either directly on cmd line (deprecated) or"
echo " or with the --hosts=LIST parameter (recommended)."
echo "LIST: A[-B][,C[-D]]... is a comma separated list of single values and ranges"
echo " (No spaces allowed.)"
exit 0
fi
expandlist ()
{
list=$1
result=""
first=${list%%,*}
rest=${list#*,}
while test ! -z "$first"; do
beg=${first%%-*};
if test "$beg" = "$first"; then
result="$result $beg";
else
end=${first#*-}
result="$result `seq $beg $end`"
fi
test "$rest" = "$first" && rest=""
first=${rest%%,*}
rest=${rest#*,}
done
echo $result
}
if test ! -d /proc/scsi/; then
echo "Error: SCSI subsystem not active"
exit 1
fi
# defaults
unsetcolor
lunsearch="0"
idsearch=`seq 0 7`
channelsearch="0"
remove=""
optscan=1
if test -d /sys/class/scsi_host; then
findhosts_26
else
findhosts
fi
# Scan options
opt="$1"
while test ! -z "$opt" -a -z "${opt##-*}"; do
opt=${opt#-}
case "$opt" in
l) lunsearch=`seq 0 7` ;;
w) idsearch=`seq 0 15` ;;
c) channelsearch="0 1" ;;
r) remove=1 ;;
-remove)
remove=1 ;;
-hosts=*)
arg=${opt#-hosts=};
-channels=*)
arg=${opt#-channels=};channelsearch=`expandlist $arg` ;;
-ids=*)
arg=${opt#-ids=};
-luns=*)
arg=${opt#-luns=};
-color) setcolor ;;
-nooptscan) optscan=0 ;;
*) echo "Unknown option -$opt !" ;;
esac
shift
opt="$1"
done
# Hosts given ?
if test "@$1" != "@"; then
hosts=$*;
fi
echo "Scanning hosts $hosts channels $channelsearch for "
echo " SCSI target IDs " $idsearch ", LUNs " $lunsearch
test -z "$remove" || echo " and remove devices that have disappeared"
declare -i found=0
hosts=`expandlist $arg` ;;
idsearch=`expandlist $arg` ;;
lunsearch=`expandlist $arg` ;;
5

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xw4100Xw4300Xw4400Xw4550Xw4600Xw6000 ... Show all

Table of Contents