Solved

Trigger Linux Machine to Shutdown form Remote NT

Posted on 2001-09-01
10
238 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Optimum High-Definition Video Viewing and Control

The ATEN VM0404HA 4x4 4K HDMI Matrix Switch supports 4K resolutions of UHD (3840 x 2160) and DCI (4096 x 2160) with refresh rates of 30 Hz (4:4:4) and 60 Hz (4:2:0). It is ideal for applications where the routing of 4K digital signals is required.

 

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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

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…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

630 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