This works remotely for all computers that are connected to the frontend. If a machine is not communicating you will need to turn it off manually.
1) to shutdown all compute nodes in root type: rocks run host compute "shutdown -h now"
2) to shutdown the head node type: shutdown -h now