Last active
December 14, 2015 00:49
-
-
Save bageljp/5001507 to your computer and use it in GitHub Desktop.
XenServer utils.
This file contains 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 | |
#------------------------- | |
# define | |
#------------------------- | |
OUTPUT="/var/log/messages" | |
LANG="C" | |
#------------------------ | |
# main | |
#------------------------ | |
date +"===========================================" >> ${OUTPUT} 2>&1 | |
date +"### XenServer Running VM list. ###" >> ${OUTPUT} 2>&1 | |
xe vm-list power-state=running >> ${OUTPUT} 2>&1 | |
date +"===========================================" >> ${OUTPUT} 2>&1 | |
date +"### XenServer Running VM summary list. ###" >> ${OUTPUT} 2>&1 | |
xe vm-list power-state=running | grep name-label | sort >> ${OUTPUT} 2>&1 | |
date +"===========================================" >> ${OUTPUT} 2>&1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment