Link to home
Start Free TrialLog in
Avatar of gnow
gnow

asked on

How to Shutdown a NT-PC via TCP-IP message

Hello !

I have several NT-PC's and some VMS-Alpha's which are connected to a UPS. The VMS-Alpha gets the signal if the UPS
is ok via OSI-Communication to Siemens S7.

Now I want to shutdown the NT-PC's via a TCP/IP message. The receiving program on NT should be started as a service and start a batch-job (where I can shutdown my programs) and afterwards shutdown the system, without asking the operator
for any input.

2 Questions:
a) Does somebody have a program like that ?
b) How can I shutdown a NT-PC without any further questions
   by the system (like: It's save now to .....) This would
   give me the possibility to write my own program.

Thanks for your help !
ASKER CERTIFIED SOLUTION
Avatar of MaDdUCK
MaDdUCK

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gnow
gnow

ASKER

This was a good help. I installed the telnet-daimon from the resource-kit
and could do a shutdown manually.

I still have one problem: This must happen automatically. I have tried a couple
of things in getting the telnet program on VMS making an connection to
my PC, without entering anything. I didn't get there !

Any VMS-DCL-Experts around ? I tried to use a file like this:
$ telnet
  connect laptop
  user
  password

It didn't work, So I tried telnet @test.com whereby test.com was looking like this:
  connect laptop
  user
  password

Unfortunatelly telnet doesn't have an option like ftp has (/input=).

I know this can be done by rexec:
To get the telnetd-program running, I had to install the "Remote Session Manager"
on NT. Does this RSM support rexec or rsh ? If yes: Any examples on how
to use rexec on VMS 7.1 . If I try it, the program stops with a crash printout.


mh...that's hard because i know of no client for the windows that supports automatic login...i will look though!