Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 35 lines (26 sloc) 0.651 kb
#!/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-remove uuid=${INSTALLATION_UUID} param-name=${configmap} param-key=${configkey} || true
${XE} host-param-set uuid=${INSTALLATION_UUID} ${configmap}-${configkey}=${iqn}
Jump to Line
Something went wrong with that request. Please try again.