LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Remotely shut-down XP machines from a Linux server (https://www.linuxquestions.org/questions/linux-newbie-8/remotely-shut-down-xp-machines-from-a-linux-server-840861/)

Deepak Goyal 10-27-2010 08:28 PM

Remotely shut-down XP machines from a Linux server
 
Hello Linux Guru's

suddenly ,I get a project to shutdown all xp's by a Linux server(RHEL5) using a single command.

by net command i did that.but in this case i have to specify all the ip addresses manually .Is there any way that Linux server obtain the ip addresses automatically on a network and then shut down all the pc's.

Help Me Linux Guru's

thanks

qweasd 10-27-2010 09:44 PM

You could attach a powerful cannon to the RedHat computer and have a script fire it upon the building with the XPs. That's the only way to ensure that once down, XPs will stay down.

Seriously, though, nmap may be just what you need.
http://nmap.org/book/man-host-discovery.html

Deepak Goyal 10-29-2010 05:06 AM

sir,

but i don't understand how to use nmap in my script file for ip's?


All times are GMT -5. The time now is 06:31 AM.