?
Solved

Trigger Linux Machine to Shutdown form Remote NT

Posted on 2001-09-01
10
Medium Priority
?
245 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
Is Your Team Achieving Their Full Potential?

74% of employees feel they are not achieving their full potential. With Linux Academy, not only will you strengthen your team's core competencies but also their knowledge of of the newest IT topics.

With new material every week, we'll make sure that you stay ahead of the game.

 

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

718 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