LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-11-2005, 10:29 AM   #1
bigdog0007
LQ Newbie
 
Registered: May 2005
Location: NC
Posts: 26

Rep: Reputation: 15
Remote Shutdown of Windows using a linux box?


I did my best to find this on another tread but I couldn't find it ... so sorry if it is a dup.

What i am trying to do is shutdown Multiple windows machines at the same time remotely from a linux box.

*Case in point* I have 20 windows computers in a school computer lab. It is 10:00 at night. To save on cooling cost I want to shut them all down so that the room will cool without AC.

I think i can work out the automation part (i.e. shutting down at 10:00 pm), but is it possible to send a command or run a script from the linux box with out installing 3rd party software on the windows machines? These are all on the same network but might not be on the same subnet (more than one lab).

In some of my research I have come across SNMP... is this a possibility?

Oh by the way ... I'm not running a GUI on the Linux box.

Thanks in advance for your help
 
Old 05-11-2005, 11:56 AM   #2
bigdog0007
LQ Newbie
 
Registered: May 2005
Location: NC
Posts: 26

Original Poster
Rep: Reputation: 15
Exclamation

sorry about the bump... anything would help even some resource links ... i don't mind learning just point me in the right direction please .... thanks
 
Old 05-11-2005, 12:43 PM   #3
Glas
Member
 
Registered: Aug 2004
Location: Atlanta, GA
Distribution: Slackware, PC-BSD v0.6, FreeBSD v5.3
Posts: 82

Rep: Reputation: 15
Why not just go into the Windows scheduled tasks and set them all up to shutdown at 10:00? I know that isn't a linux answer but it would work for your problem.
 
Old 05-11-2005, 01:23 PM   #4
bigdog0007
LQ Newbie
 
Registered: May 2005
Location: NC
Posts: 26

Original Poster
Rep: Reputation: 15
my scale is much larger than my example.... i am thinking across a school district.... the more I look into this the more complicated it seems to get
Thank you for responding
 
Old 05-11-2005, 02:02 PM   #5
insurin
Member
 
Registered: Nov 2004
Posts: 32

Rep: Reputation: 15
I have been working on this today at my school, well with exeception towards sending the command from a linux box.

I wanted to shut all the pcs down at 6 when all the students have gone home. at first I downloaded the shutdown utility (off win 2k resource kit) and installed it on the 2k pro machines then just made a simple batch script and used the scheduler to shut them down. The problem was it wasn't powering the computers down, it was sending them to the point where it says 'it is now safe to turn off your computer'

anyway I found this free utility http://www.beyondlogic.org/consultin...n/shutdown.htm

it works splendid. I put it on the w2k server and it allows you to specify a group of computers which is read from a file. So instead of me installing the batch file and scheduling on all workstations I just run the one schedule from the server.

As for your situation i am unsure whether you can run a command from the linux box to issue to the windows but...

maybe you can use this utility on one of your workstations in the same way I use it on the server. You can send user name and passwords within the utility so for example

you have 30 workstations, you install the utility on one of them make a file with all your computer names on then set up the utility to shut computers 2-30 down at 10. then you just make one more task to shut the local computer down.
 
Old 05-11-2005, 05:34 PM   #6
psychobyte
Member
 
Registered: Sep 2003
Location: Central Coast, California
Posts: 179

Rep: Reputation: 30
There is another utility called psshutdown

this gives you all kinds of additional features including using a list of computers in a file.

As for running it on a linux box, perhaps you can use Wine or something like that. Other wise you will have to get your self a windows box for administrative purposes.
 
Old 05-11-2005, 05:54 PM   #7
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
You can add a service task to the windows machine to run a task every 5 minutes. The file can be null output. Now when you want it to go down, using samba replace the file with the shutdown command script for windows and on the next run of the task it shutsdown windows. Now on restart you will need to add a service to replace the overwritten file to the orginal null file. Only needs to run once and needs to run before the 5 minute polling script.

Done it before. I have seen similiar ideas here and on the web.

Brian1
 
Old 05-12-2005, 10:07 AM   #8
bigdog0007
LQ Newbie
 
Registered: May 2005
Location: NC
Posts: 26

Original Poster
Rep: Reputation: 15
Thank you all for your ideas ... I have checked into most of the sites listed ... I am reading up on the Samba idea now... sounds kind of promising I am looking for a way to do this "quietly" because of the amount of machines but this still might be an option.

Just to give a little background I work for a company that helps tie Building Automation Systems (BAS) to a completely web native Maintenance and Operating / Facility Scheduling software, which I will not name the companies because of the No advertising clause. We already have a small Linux box at the school systems and we are always looking for ways to help them save money... This is why I can't use a windows box or install locally on the clients. We are just trying to help them have more options and KISS (keep it simple stupid) ... I have worked with school systems all across the US for about 5 yrs and it amazes me how many do not have full time IT people. Anyway .. that is enough background.

If there are more ideas or suggestions out there let me know ... Thanks again
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux box with eth0 to cable modem and eth1 to Windows box videojeff Linux - Networking 23 03-03-2005 07:58 PM
printing from a remote windows box LovelyJunna Linux - Newbie 0 03-26-2004 03:39 PM
linux remote shutdown from win rcascapera Linux - Networking 3 11-28-2003 06:21 PM
how to remote login to linux GUI from windows box rfkhickory Linux - Networking 3 10-20-2003 02:21 PM
How to shutdown a remote (windows) PC rkrijger Linux - Networking 3 04-10-2003 08:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration