吾在庐山
for I in $(cat <<eof | cat PTtile192.168.1.xx pool只填写一个主机ip就好192.168.1.xxeof);do {[ "$I" = "PTtile" ] && echo -e "HostName:\t\tCPU_NUMBER:\tUTILISATION:" || ssh $I "#xe host-list params=
11==----------------根据快照名备份----------------------#!/bin/shbackup_date=`date +%Y-%m-%d`echo backup_date: $backup_date########更改此处快照名##########snap_name=2016-06-06########更改备份目录#########snap_path_name=/
查看所有vm和主机的对应关系主机后有vm台数------------------for I in $(cat <<eof | cat PTtile192.168.1.xxx pool只添加master就可以了eof);do {[ "$I" = "PTtile" ] && echo -e "Host and VMlist" || ssh $I "for XX in&nbs
9==显示列表中的xenserver的总内存,可用内存,可用内存比【易读版】-----------------------for I in $(cat <<eof | cat PTtile192.168.1.xxx192.168.1.xxxeof);do {[ "$I" = "PTtile" ] && echo -e "NameLabel:\t\tIpAddress:\
列出所有的vm虚拟机xe vm-list | grep name-label | sort | awk -F : '{print $2}'xe vm-list params=name-label --minimal |awk -F, '{for (i=1;i<=NF;i++) {printf $i"\n"}}' |sort列出所有running的vm虚拟机xe vm-list p
全部操作是基于宿主机的全部设置开启自启动for i in `xe vm-list params=uuid --minimal|sed 's/,/ /g'`;do xe vm-param-set uuid=$i other-config:auto_poweron=true;done全部设置关闭自启动for i in `xe vm-list params=uuid --minimal|sed 's/,
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号