-
-
Save burningTyger/2922540 to your computer and use it in GitHub Desktop.
Powering off a ReadyNas Drive from the command line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#use this script to turn off your ReadyNas file server from your command line without using the browser. | |
#Add your ReadyNas host IP, username and password and then call your script from the terminal. | |
#you might have to install curl which is used to contact the server. | |
host='readynas_ip' | |
user='username' | |
pass='password' | |
curl -u $user:$pass -k "https://$host/get_handler?PAGE=System&OUTER_TAB=tab_shutdown&INNER_TAB=NONE&shutdown_option1=1&command=poweroff&OPERATION=set" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment