Booting a remote computer via FTP

  • Thread starter Thread starter Sailor
  • Start date Start date
S

Sailor

I have a remote computer running W2K. I have FTP access and I need to
reboot the machine. I have a program on the machine that will reboot it but
I don't know how to execute it using my ftp program.



My alternative is to make a trip up the mountain and reset the machine
manually, I much rather do it from here.



Can anyone help me with this or at least suggest the proper newsgroup to
post the question?



Thanks



Gary
 
Sailor said:
I have a remote computer running W2K. I have FTP access and I need to
reboot the machine. I have a program on the machine that will reboot it but
I don't know how to execute it using my ftp program.



My alternative is to make a trip up the mountain and reset the machine
manually, I much rather do it from here.



Can anyone help me with this or at least suggest the proper newsgroup to
post the question?



Thanks



Gary

I do not know if you can do this with FTP but you can certainly
do it with psexec.exe or pshutdown.exe (www.sysinternals.com).
You should also consider the installation of WinVNC.
 
Thanks for the VNC suggestion. I've used that before and liked it.

I have PCAnywhere running there be it is hung along with my application. I
also have a secure FTP server running and I am able to get in via that.

I have a rebooting exe on the machine, just to know how to exe it from ftp.

Is there any way to get Windows scheduler to run an app at this point?

Thanks,

Gary
 
If I understand you correctly then you are currently unable
to reach your remote PC except by FTP. As I mentioned in
my first reply, I'm not aware of a method to reboot a machine
from within FTP.

You can, of course, reboot a machine via the Task Scheduler,
using one of the many shutdown programs. However, you
would have to initially set up the task, which you probably
cannot do right now.

If this happens repeatedly then you could set up a Scheduled
Task on the remote PC to run every 10 minutes. The task
should invoke this batch file:

@echo off
if not exist c:\AutoReboot\AutoReboot.txt goto :eof
del c:\AutoReboot\AutoReboot.txt
shutdown /r /.. /.. /..

In future, when you get into the same situation, use FTP to
create c:\AutoReboot\AutoReboot.txt. The machine
will reboot within 10 minutes. You should test this process
while on site.

You should also consider rebooting the machine automatically
every night.
 
Thanks.


Pegasus (MVP) said:
If I understand you correctly then you are currently unable
to reach your remote PC except by FTP. As I mentioned in
my first reply, I'm not aware of a method to reboot a machine
from within FTP.

You can, of course, reboot a machine via the Task Scheduler,
using one of the many shutdown programs. However, you
would have to initially set up the task, which you probably
cannot do right now.

If this happens repeatedly then you could set up a Scheduled
Task on the remote PC to run every 10 minutes. The task
should invoke this batch file:

@echo off
if not exist c:\AutoReboot\AutoReboot.txt goto :eof
del c:\AutoReboot\AutoReboot.txt
shutdown /r /.. /.. /..

In future, when you get into the same situation, use FTP to
create c:\AutoReboot\AutoReboot.txt. The machine
will reboot within 10 minutes. You should test this process
while on site.

You should also consider rebooting the machine automatically
every night.


reboot newsgroup
 
While you cannot boot a machine directly with (most)
FTP connections there is a way.

Setup a batch file that checks for a "trigger file".

Give yourself permission to upload into a specific
directly. Making the directory hidden and requiring
logon is best, use an obscure (password) like filename.

When the file is found (by the batch file running on the
target machine) have it call the shutdown procedure OR
even run the uploaded file as a batch file.

Used this years ago to reboot machine where I could
load files but could not actually run commands.
 
Sailor said:
I have a remote computer running W2K. I have FTP access and I need to
reboot the machine. I have a program on the machine that will reboot it but
I don't know how to execute it using my ftp program.



My alternative is to make a trip up the mountain and reset the machine
manually, I much rather do it from here.



Can anyone help me with this or at least suggest the proper newsgroup to
post the question?



Thanks



Gary

the FTP-standard (or at least some implementations) have a command called SITE.
some servers support it some does not.

when logged in to the FTP-server you type something like: SITE EXEC file.exe
to run file.exe
 
Back
Top