Solved

Trigger Linux Machine to Shutdown form Remote NT

Posted on 2001-09-01
10
192 Views
Last Modified: 2010-03-18
Hi,I have UPS that is connected to MS NT 4.0 machine. When there is power failure, I want the NT machine to trigger my Linux Machine to shutdown. There is UPS software utility that install on NT machine that communicate with the UPS. I used APC UPS. How can I do that ?
0
Comment
Question by:Imelda
  • 5
  • 5
10 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 6448038
setup rshd on you linux box. Setup /.rhosts for user root on Linux box. Then you may simply issue from NT:

     rsh linuxbox init 0

That's just one simple solution, there are a few more.
0
 

Author Comment

by:Imelda
ID: 6449509
I had already rshd running on my Linux. But I don't know how to issue rsh linuxbox init 0 to Linux computer from my NT ? Could you guide me to do that ? Thanks
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 6449958
still said this:
     rsh linuxbox init 0
probably it's wise to setup /.rhosts on you linuxbox
0
 

Author Comment

by:Imelda
ID: 6450033
Sorry, What I mean is what application should I use in NT machine for connecting Linux box to issue the 'rsh linuxbox init 0'? Telnet ? FTP ?  Or do you mean there is rsh client for NT machine ?
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 6450038
rsh.exe
(why not simply try what I suggest ;-)
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 

Author Comment

by:Imelda
ID: 6450307
Sorry,Where can I find rsh.exe for NT ?
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 6450358
iz's either in \winnt\system32 or you need to install it from Resource Kit.
0
 

Author Comment

by:Imelda
ID: 6450370
I had found the rsh.exe on NT but now I had trouble in setup rshd on linuxbox. Do you have the site that explain how to setup rshd ?
0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 50 total points
ID: 6451408
there is no trick, usually.
In your special case you just need  /.rhosts, forget all about /etc/hosts.equiv .
Then enable the   shell  entry in /etc/inetd.conf and restart inetd. rshd should work out of the box. See also:
  man rshd
  man rhosts
  man rsh     # is valid for NT too ;-)
You can test the functionality on the linuxbox itself, like:

   rsh localhost pwd
   rsh linuxbox pwd
0
 

Author Comment

by:Imelda
ID: 6452109
Ok, Thanks You :)
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now