If you want to automate this, then you would most likely want to do this via a script so that you don't need human interaction. I would recommend setting up a SSH key pair between a machine that notices that power is on UPS and the cluster. For additional security, I would recommend setting up sudo on the cluster. But a short shell script that will do this follows:
cat << EOF | /usr/bin/isi config
shutdown all
yes
EOF
borninpa wrote:
How do do a shutdown when unit goes onto UPS. DO I need to write a script to do this from a monitoring PC or something like that?
I would rather be notified of UPS failure and manually initiate this shutdown process, imagine an RCA explaining a bug in the script that took everything offline. Oopss ☺
Agreed. Just providing a method. However if you know your UPS battery is going to die in 10 minutes, I would rather have a graceful shutdown than a hard down. Everyone has different needs.
dynamox wrote:
I would rather be notified of UPS failure and manually initiate this shutdown process, imagine an RCA explaining a bug in the script that took everything offline. Oopss ☺
dynamox
11 Legend
•
20419 Posts
•
87439 Points
815
0
Posted February 8th, 2013 13:00
Under Cluster > Cluster Management ..there is an option to shutdown cluster