the litefile and litetree commands need the <noderange> argument,
xCATcmd() is updated by adding "<noderange></noderange>" git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5660 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
13b089ffd1
commit
eb756f9804
@ -51,16 +51,17 @@ GetSyncInfo () {
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
hn=`hostname`
|
||||
|
||||
|
||||
if [ -z $XCATSERVER ]; then
|
||||
hn=`hostname`
|
||||
echo "Cannot find the xCAT server for node $hn"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# request the list of files from xCAT:
|
||||
xCATCmd $XCATSERVER litefile \
|
||||
xCATCmd $XCATSERVER litefile $hn\
|
||||
| sed -e 's/<[^>]*>//g' \
|
||||
| egrep -v '^ *$' \
|
||||
| sed -e 's/^ *//' \
|
||||
@ -70,7 +71,7 @@ GetSyncInfo () {
|
||||
|
||||
# files will now be inside /.snapshot/tmpfs/synclist in the form:
|
||||
# options path
|
||||
xCATCmd $XCATSERVER litetree \
|
||||
xCATCmd $XCATSERVER litetree $hn\
|
||||
| sed -e 's/<[^>]*>//g' \
|
||||
| egrep -v '^ *$' \
|
||||
| sed -e 's/^ *//' \
|
||||
@ -81,7 +82,8 @@ GetSyncInfo () {
|
||||
xCATCmd () {
|
||||
# $1 is the xCAT server
|
||||
# $2 is the command
|
||||
echo "<xcatrequest>\n<command>${2}</command>\n</xcatrequest>" | LD_LIBRARY_PATH=/sysroot/lib64:/sysroot/usr/lib64 /sysroot/usr/bin/openssl s_client -quiet -connect ${1} -rand /bin/nice 2>/dev/null
|
||||
# $3 is the noderange
|
||||
echo "<xcatrequest>\n<command>${2}</command>\n<noderange>$hn</noderange>\n</xcatrequest>" | LD_LIBRARY_PATH=/sysroot/lib64:/sysroot/usr/lib64 /sysroot/usr/bin/openssl s_client -quiet -connect ${1} -rand /bin/nice 2>/dev/null
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user