Currently I'm working on setting up a VIMA to handle shutting down hosts in the event of a power failure (Talking to an APC UPS)
Has anyone had much experience with Dell/EqualLogic's host scripting toolkit? I'm trying to create a script that will send the shutdown command to the PS5000 when apcupsd is triggered.
These arrays do not seem to be very UPS friendly, I've found no material anywhere about connecting these arrays to a UPS. (Strance as it's a very expensive piece of kit that should be shut down gracefully.)
I've managed to build up a basic understanding of the scripting from the examples provided with the toolkit. All the commands used seem to be commands which do not require confirmation. When I telnet in to the array I can shut it down by using the command "shutdown" but I need to confirm by trying "yes".
From what I understand about this toolkit it's just telnet wrapped up in perl. If a connection is open then will I be able to use somehting like this:
$remote->cmd("shutdown");
$remote->cmd("yes");
I previously tried sending a carriage return along with the command:
@result = $remote->cmd("shutdown\nyes") or print "Failed to shutdown\n", $remote->errmsg and exit 1;
but this did not work.
Any assistance would be greatly appreciated.