Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Trigger Linux Machine to Shutdown form Remote NT

Posted on 2001-09-01
10
Medium Priority
?
251 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
Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

 

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
 

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 200 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

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

971 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