Solved

Trigger Linux Machine to Shutdown form Remote NT

Posted on 2001-09-01
10
203 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
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

895 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

15 Experts available now in Live!

Get 1:1 Help Now