понедельник, 23 февраля 2009 г.

источник бесперебойного питания и ESX \ ESXi

Уже пару раз писал на тему ESXi плюс бесперебойник - ИБП APC и ESXi и ESXi и APC ИБП.
Еще один вариант решения можно глянуть тут - ESX/ESXi APC/APCUPSD Host Shutdown VI Perl Toolkit Script (ghettoShutdown.pl/upsVIShutdown.pl).


ghettoShutdown.pl - This script initiates the shutdown of all VM(s) within an ESX/ESXi host excluding the virtual machine that’s monitoring the UPS device and then shutdowns the host. It accepts two commandline parameters: –sleep the duration in seconds to wait after a VM has initiated the shutdown before moving onto the next VM (shutdownVM() is non-blocking function) and –ups_vm the name of the displayName of your VM that is monotiring the UPS device [more details to come later].

upsVIShutdown.pl - This script is a wrapper which will hold the configurations of the order of hosts to shutdown. It may be used inconjunction with other UPS monitoring utility, though with our example, it’ll be placed in the apccontrol script to execute upon a power interuption.


Сам скрипт работает в VIMA, используя API для взаимодействия с ESX\ESXi.
Работать должен и с ESX, не только с ESXi. Отвечает за выключение ВМ и хоста в случае сбоя питания. За включение НЕ отвечает, надо настраивать автостарт.

0 коммент.:

Отправить комментарий

Примечание. Отправлять комментарии могут только участники этого блога.