NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

ONTAP Hardware

Shutdown Netapp FAS with SSH Script

lissylucky
2,877 Views

Hi all,

 

we want to shutdown our netapp storage if battery on our USV is getting low.

Does anyone have a SSH script to perform this shutdown?

 

We have an APC UPS and want to configure it that it performs this script, after shuttding down all VM's and ESXi Hosts.

 

Many thanks! 

1 REPLY 1

andris
2,768 Views

Though it doesn't cover your exact scenario, this KB might be useful:

https://kb.netapp.com/Advice_and_Troubleshooting/Data_Storage_Software/ONTAP_OS/How_to_perform_graceful_shutdown_and_power_up_of_all_ONTAP_nodes_in_a_...

The actual halt command is step 6.  If the UPS only covers an HA pair/chassis, you would specify the impacted nodes.

 

Since it's a script, a handy "set" option is to turn off confirmations. See:
http://docs.netapp.com/ontap-9/index.jsp?topic=%2Fcom.netapp.doc.dot-cm-cmpr-991%2Fset.html

 

 

 

Public