close
[root@xen710 ~]# more startvm.sh
#!/bin/bash
for i in {131..140}
do
vmname=`printf "w732a1159-%03d" $i`
echo start vm=$vmname force=true
xe vm-start vm=$vmname force=true
done
[root@xen710 ~]#
[root@xen710 ~]#
[root@xen710 ~]# more vmstop.sh
#!/bin/bash
for i in {001..130}
do
vmname=`printf "w732a1159-%03d" $i`
echo shutdown vm=$vmname force=true
xe vm-shutdown vm=$vmname force=true
done
[root@xen710 ~]# more rebootvm.sh
#!/bin/bash
for i in {001..130}
do
vmname=`printf "w732a1159-%03d" $i`
echo reboot vm=$vmname force=true
xe vm-reboot vm=$vmname force=true
done
全站熱搜
留言列表