Welcome to the Nutanix NEXT community. To get started please read our short welcome post. Thanks!
Could you install and use APC PowerChute as your shut down solution?
APC PowerChute for Nutanix - Provides graceful network-based shutdown of physical and virtual IT arc...
That's why there is a 'nohup sleep 20' before the actual cvm_shutdown command. 20 seconds should be enough time to run the allssh on all your nodes.
© Nutanix 2017