Skip to content

Instantly share code, notes, and snippets.

@burningTyger
Created June 13, 2012 07:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save burningTyger/2922540 to your computer and use it in GitHub Desktop.
Save burningTyger/2922540 to your computer and use it in GitHub Desktop.
Powering off a ReadyNas Drive from the command line
#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