profile for Gajendra D Ambi on Stack Exchange, a network of free, community-driven Q&A sites

Tuesday, July 21, 2015

Shutting down hosts in maintenance mode the Power(ful)cli way with reason

So, how often those of you in the field doing implementation have to reboot production hosts or hosts in maintenance mode ? well very often. It is also painful to each time
right click on the host and hit shutdown
select all hosts and shutdown
then enter the reason for each host's shutdown on each host
hit confirm (yes) for each host.
Imagine doing this for 100 hosts.
Trust me I wouldn't want to do that.
So here I came up with this tiny script called EsxiPower to get those hosts either poweroff or reboot. Hopefully it helps a lot of you.

No comments:

Post a Comment