XenServer 6.x/7.x 更新patch script

#!/bin/bash
PATCH=(
XS70E002
XS70E003
XS70E004
XS70E006
XS70E007
XS70E008
XS70E009
XS70E010
XS70E011
XS70E012
XS70E013
XS70E014
XS70E015
XS70E016
XS70E017
XS70E019
XS70E020
XS70E021
XS70E022
XS70E023
)

for i in ${PATCH[@]};do
  PATCH_UUID=`xe patch-upload file-name=$i.xsupdate`
  echo $PATCH_UUID
  xe patch-pool-apply uuid=$PATCH_UUID
done

 

Facebook Comments Box

Leave a Reply