NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

Bob245's avatar
Bob245
Guide
May 08, 2019
Solved

How to shutdown my ReadyNAS Pro 4 (RNDP4000) OS6.10.0

Hello everybody.
Thanks to Guru StephenB I succesfully upgraded my ReadyNas RNDP4000 to OS6.10.0.
I am very satisfied with this update.
I activated SSH and would like to find the command to remotely turn off the NAS.
With other NAS (of other brands) I use a batch that creates the ssh connection (for example with the putty.exe)
and then I pass the poweroff command.
Below is the batch line that I use (invented password)
putty.exe admin@192.168.10.96 -pw ??12345678?? -m c:\poweroff\command.txt
In the file c:\poweroff\command.txt there is the simple command POWEROFF.
For the Netgear this shutdown system does not work. Can you give me advice always staying with SSH?
Thanks a lot
 
 
 
 

  • Bob245 wrote:

    putty.exe admin@192.168.10.96 -pw ??12345678?? -m c:\poweroff\command.txt

    Always use root when logging in with ssh.

     

    You might consider using rnutil -rn_shutdown for the NAS.  Rnutil will shut down readynasd first, and then shut down the system. 

     

     

     

7 Replies

Replies have been turned off for this discussion
  • Sandshark's avatar
    Sandshark
    Sensei - Experienced User

    Poweroff should work.  Try poweroff --help to see the options.

    • Bob245's avatar
      Bob245
      Guide

      Hello,

      the linux version present in my ReadyNAS OS6 is similar to other NAS that i use but I am not capable to poweroff it with batch.

      on netgear nas there is Linux NAS01 4.4.163.x86_64.1 #1 SMP Wed Mar 20 17:57:45 UTC 2019 x86_64 GNU/Linux

      on other brand there is Linux NAS00 4.14.24-qnap #1 SMP Sat Mar 23 10:47:59 CST 2019 x86_64 GNU/Linux

      Someone are capable to make a poweroff for readynas by SSH?

      Thanks

  • StephenB's avatar
    StephenB
    Guru - Experienced User

    Bob245 wrote:

    putty.exe admin@192.168.10.96 -pw ??12345678?? -m c:\poweroff\command.txt

    Always use root when logging in with ssh.

     

    You might consider using rnutil -rn_shutdown for the NAS.  Rnutil will shut down readynasd first, and then shut down the system. 

     

     

     

    • Bob245's avatar
      Bob245
      Guide

      Hi,

      you are the best, now it work. Now the batch is this
      putty.exe admin@192.168.10.96 -pw ZxxxxxxxxxZ -m c:\poweroff\ReadyNAS.txt
      in the file c:\poweroff\ReadyNAS.txt there is the grace shutdown(no hypen need before rn_shutdown)
      rnutil rn_shutdown
      This upgrade os6.10.0 is fantastic: web screen very clear and simple to use, there is the hotfix automatic, iscsi work well and finally encryption (the key manage with usb key is very easy).

      Thanks a lot for you precious collaboration

      • StephenB's avatar
        StephenB
        Guru - Experienced User

        Bob245 wrote:


        putty.exe admin@192.168.10.96 -pw ZxxxxxxxxxZ -m c:\poweroff\ReadyNAS.txt


        Again, I recommend putty.exe root@192.168.10.96 -pw ZxxxxxxxxxZ -m c:\poweroff\ReadyNAS.txt

         

        Though it doesn't seem to matter for this particular command, in general you should always log in as root when you use ssh.  There are cases where running commands as admin can do damage to the OS partition (for instance, mis-setting file ownership and permissions).

         

NETGEAR Academy

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

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More