Created
March 11, 2015 04:10
-
-
Save zxjinn/b199fa4bfcc32fe83435 to your computer and use it in GitHub Desktop.
XenServer manual administration scripts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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