Warning: this code is provided on a best effort basis and is not in any way officially supported or sanctioned by Cohesity. The code is intentionally kept simple to retain value as example code. The code in this repository is provided as-is and the author accepts no liability for damages resulting from its use.
This script starts the Cohesity cluster services.
You can download the scripts using the following commands:
# download commands
curl -O https://raw.githubusercontent.com/bseltz-cohesity/scripts/master/python/stopCluster/stopCluster.py
curl -O https://raw.githubusercontent.com/bseltz-cohesity/scripts/master/python/pyhesity.py
chmod +x strikeReport.py
# end download commands- stopCluster.py: the main powershell script
- pyhesity.py: the Cohesity REST API helper module
Place both files in a folder together and run the main script like so:
./stopCluster.py -s nodeIp \
-u myusername \
-d mydomain.net- -s, --server: DNS or IP of a Cohesity node
- -u, --username: username to authenticate to Cohesity cluster
- -d, --domain: (optional) domain of username, defaults to local