NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
jtnn60
Mar 17, 2020Aspirant
Cannot perform a remote shutdown of a ReadyNAS using shell script and CURL
Based on various previous forum posts, I have developed the following shell script to use CURL to shutdown my ReadyNAS. I read about the need to add a csrfpId token due to a previous security fix to...
- Mar 22, 2020
I wrote up exactly how to perform remote shutdown of a ReadyNAS here:
StephenB
Mar 18, 2020Guru - Experienced User
Did you try using https in your script instead of http?
- jtnn60Mar 20, 2020Aspirant
StephenB wrote:Did you try using https in your script instead of http?
Of course! I get the same error in both situations.
- StephenBMar 20, 2020Guru - Experienced User
jtnn60 wrote:
StephenB wrote:
Did you try using https in your script instead of http?
Of course! I get the same error in both situations.
One option is install sshpass and switch to ssh - using rnutil rn_shutdown to do what you want. You'd of course need to enable ssh
# sshpass -f <(printf '%s\n' nas-admin-password) ssh root@nas-ip-address rnutil rn_shutdown
Note I haven't tested the above command (though ssh root@nas-ip-address rnutil rn_shutdown definely works if you type in the password.
- ThaRyeGuyMar 22, 2020AspirantPlease let me know if this works as I’d like to do this on my RN102 from Home Assistant as well (found the link to this thread from your thread over there)
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!