Skip to main content
Solved

How to stop and start cluster with script

  • April 24, 2025
  • 1 reply
  • 100 views

Forum|alt.badge.img+1

We should type ‘I Agree’ when shutting down a cluster, so if is it possible to shutdown a cluster with script, or any method to bypass the manual confirmation?

Best answer by headbigger

I found the answer as below, you can add it in your script:


yes "I agree" | cluster stop

echo -e "I agree" | cluster stop   (Tested in real nutanix cluster)
 

This topic has been closed for replies.

1 reply

Forum|alt.badge.img+1
  • Author
  • Voyager
  • 1 reply
  • Answer
  • April 24, 2025

I found the answer as below, you can add it in your script:


yes "I agree" | cluster stop

echo -e "I agree" | cluster stop   (Tested in real nutanix cluster)