Find the answer to your Linux question:
Results 1 to 9 of 9
Ok so I administrate a network with approximately 140 PCs. They all have Ubuntu and I want to be able to turn them on and shut them off remotely from ...
  1. #1
    Just Joined!
    Join Date
    Oct 2010
    Posts
    6

    Remotely shutdown an entire network ?

    Ok so I administrate a network with approximately 140 PCs. They all have Ubuntu and I want to be able to turn them on and shut them off remotely from one of the servers. So can you tell me what is the best way to do this ? A shell script would be a nice option if its possible.

  2. #2
    Linux Newbie
    Join Date
    Jul 2007
    Location
    Here. There. Anywhere.
    Posts
    150

  3. #3
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    shutting them off isn't as much the problem, provided they have SSH enabled you can easily write a script to SSH and run shutdown command

    turning them on is where the problem lies, what kind of machines are they? If they all have LAN card that supports wake on lan, you could just turn them on that way, if they all had something nicer such as a dell DRAC card you could use IPMI to turn them all on and shut them off

  4. #4
    Just Joined!
    Join Date
    Oct 2010
    Posts
    6
    Yeah I know but wouldn't it be 2 slow if I make a script that will connect via SSH to all of the PCs and then shut them off ? Also the PCs support wake on lan, so how can I turn them on ?

    EDIT: And the PCs wont have SSH from the next version. That is a decision of the Ministry of Informatics. And yes I administrate a school.
    Last edited by ac1dxtrem; 10-09-2010 at 02:59 PM.

  5. #5
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    I don't know what you consider slow, it shouldnt' take more than a few seconds for each machine to shut it off

    I don't know how to do WOL, i'm sure there are apps that will send one out onto your network though, I would google for "wake on lan ubuntu" and see what you can find

    if you can't ssh into box later, that might be a problem, I don't see how you will be able to shut down the machine without remote access of some kind

    edit:
    perhaps you can install openipmi driver, which would allow you to use ipmitool to send shutdown command to OS

  6. #6
    Just Joined!
    Join Date
    Oct 2010
    Posts
    6
    Can you pls explain more about the openpmi driver and the ipmitool ??

  7. #7
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    no, but google can
    IPMItool
    OpenIPMI

  8. #8
    Just Joined!
    Join Date
    Oct 2010
    Posts
    6
    Yeah I know I already found this links I just thought if you can give me an introduction to all that so that I can understand it better

  9. #9
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    look at ipmitool man page for more information

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...