Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 34 lines (25 sloc) 546 Bytes
#!/bin/bash
#
# Copyright (c) Citrix Systems 2008. All rights reserved.
#
# Set the local non-pooled host to use a specific iSCSI IQN
set -e
XE="@BINDIR@/xe"
configmap="other-config"
configkey="iscsi_iqn"
if [ ! -f @INVENTORY@ ]; then
echo Error: Not a XenServer host
exit 1
fi
usage () {
echo Usage: $0 iscsi_iqn
echo Set the local non-pooled host to use a specific iSCSI IQN
exit 1
}
if [ -z "$1" ]; then
usage
else
iqn="$1"
fi
. @INVENTORY@
${XE} host-param-set uuid=${INSTALLATION_UUID} ${configmap}:${configkey}=${iqn}