Skip to content

Instantly share code, notes, and snippets.

@zxjinn
Created March 11, 2015 04:10
Show Gist options
  • Save zxjinn/b199fa4bfcc32fe83435 to your computer and use it in GitHub Desktop.
Save zxjinn/b199fa4bfcc32fe83435 to your computer and use it in GitHub Desktop.
XenServer manual administration scripts
#!/bin/bash
if [ -z $1 ]; then
echo "pass VM name as param"
exit 1
fi
xe vm-param-set uuid=$(xe vm-list name-label=$1 | head -n1 | awk {'print $NF'}) other-config:auto_poweron=true
#!/bin/bash
if [ -z $1 ]; then
echo "must pass unzipped patch filename"
exit 1
fi
for patchname in "$@"; do xe patch-pool-apply uuid=$(xe patch-upload file-name=${patchname}) ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment