SSH Putty halt TS 451+

Don't miss a thing. Post your questions and discussion about other uncategorized NAS features here.
Post Reply
rjtt64
New here
Posts: 8
Joined: Wed Aug 22, 2018 6:44 pm

SSH Putty halt TS 451+

Post by rjtt64 »

Hi

I want to issue a halt command to my 451TS451+ . Firmware 4.5.2 1630
I connect via putty using the admin account. I can see the SSH connection in the log on the NAS
I type halt a the command prompt, nothing happens.
Other commands from the menu eg 1: show network settings all work
I can reboot the NAS down from qfinder
I can ssh into a different NAS, my 251 use halt and it shuts down just fine, from putty or from the command line.
Ive tried a heap of linux commands and none work

Code: Select all

http://qnap support.net/advance-support-2/
(remove whitespace to use this URL)

The background is Im trying to get an APC Smart UPS to gracefully shut down a windows 2012 server from powerchute, so connect via usb to the server then issue a script via ssh to the nas

Any ideas gratefully received..
Last edited by OneCD on Sun Apr 18, 2021 3:25 am, edited 1 time in total.
Reason: edited automangled link
User avatar
dolbyman
Guru
Posts: 35005
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: SSH Putty halt TS 451+

Post by dolbyman »

use a link shortener for links to that website..they get autobutchered

you can have the nas as ups master and use winNUT to shutdown your 2019 server ..as long long as both used networks are routable
rjtt64
New here
Posts: 8
Joined: Wed Aug 22, 2018 6:44 pm

Re: SSH Putty halt TS 451+

Post by rjtt64 »

dolbyman wrote: Sat Apr 17, 2021 9:58 pm use a link shortener for links to that website..they get autobutchered

you can have the nas as ups master and use winNUT to shutdown your 2019 server ..as long long as both used networks are routable
Thanks I'll have a look at that, and also for the url buterching tip! Still foxed as to how SSH halt doesnt work on one NAS but does on the other
User avatar
dolbyman
Guru
Posts: 35005
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: SSH Putty halt TS 451+

Post by dolbyman »

I would always go top bottom

hypervisor shuts down clients ..not the other way around

otherwise your clients have no time to gracefully shut down or hibernate/snapshot
User avatar
graemev
Know my way around
Posts: 199
Joined: Sun Feb 12, 2012 10:17 pm

Re: SSH Putty halt TS 451+

Post by graemev »

I tend to use poweroff

Code: Select all

[~] # type halt
halt is /sbin/halt
[~] # ls -l /sbin/halt 
lrwxrwxrwx 1 admin administrators 12 2021-04-21 17:00 /sbin/halt -> /bin/busybox*
[~] # power                                                                                                        
power_clean       power_management  poweroff          
[~] # type poweroff 
poweroff is /sbin/poweroff
[~] # ls -l /sbin/poweroff
lrwxrwxrwx 1 admin administrators 12 2021-04-21 17:00 /sbin/poweroff -> /bin/busybox*
[~] #
julyusito
New here
Posts: 9
Joined: Sat Jun 06, 2015 7:49 am

Re: SSH Putty halt TS 451+

Post by julyusito »

Hi,

Same here, all commands link to busybox.

How can I fix it?

Thanks
Post Reply

Return to “Miscellaneous”