VMware vSphere PowerCLI 如何关闭host
vmware vSphere PowerCLI 关闭host主机的命令?可否做一个在关闭host主机前检查虚拟机是否还有在运行,如有就关闭虚拟机操作系统。
然后再关闭host主机。 米有人知道的? 没有人知道吗? 本帖最后由 TiGi 于 4-13-2012 09:50 编辑
知道的人肯定很多。
但是估计知道的人都不愿意回答。
———————————————
安装了“vSphere PowerCLI”之后,有个“vSphere PowerCLI Cmdlets Reference”,自己去看吧!总不至于遇到个问题就来发帖咨询?
———————————————
几乎不用“vSphere PowerCLI”,但是刚才看“vSphere PowerCLI Cmdlets Reference”后,找到了相关的命令。
不知道是否这个指令,提供一些参考:
Example 1 --------------
Stop-xxxxxxxxxx 10.23.112.235 -Confirm
##Shutdowns the specified host after user confirmation.##
此外有个参数:
Force SwitchParameter Indicate that you want to stop the hosts even if they are not in a maintenance mode.—— 就这段说明就可以知道应该和关闭主机有关了。 {:6_278:}
页:
[1]