Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

How can I verify which machines are turn on in single LAN from a websever?

Reply
 
Thread Tools Display Modes
  #1  
Old 10-29-2005, 04:32 PM
Default How can I verify which machines are turn on in single LAN from a websever?



Hello,

we have around 25 machiens in two floors, all are on single LAN with
single subnet, one Router provides all network related services, but we
have inernal web server for internal web site purpose. All LAN machines
gets ip address from Router using DHCP. from this web server, how can I
know which machines are on and which are off. I can ping by based on ip
addr?. the reason is, I need to backup some directories from other
Linux nachines, then I need to store all that on different external
disk. Thanks.



GS
Reply With Quote
  #2  
Old 10-29-2005, 05:20 PM
Bill Marcum
Guest
 
Posts: n/a
Default Re: How can I verify which machines are turn on in single LAN from a websever?

On 29 Oct 2005 08:32:05 -0700, GS
<(E-Mail Removed)> wrote:
> Hello,
>
> we have around 25 machiens in two floors, all are on single LAN with
> single subnet, one Router provides all network related services, but we
> have inernal web server for internal web site purpose. All LAN machines
> gets ip address from Router using DHCP. from this web server, how can I
> know which machines are on and which are off. I can ping by based on ip
> addr?. the reason is, I need to backup some directories from other
> Linux nachines, then I need to store all that on different external
> disk. Thanks.
>

If you ping the broadcast address, you should get replies from every
active machine on the subnet.


--
Go placidly amid the noise and waste, and remember what value there may
be in owning a piece thereof.
-- National Lampoon, "Deteriorata"
Reply With Quote
  #3  
Old 10-29-2005, 05:56 PM
GS
Guest
 
Posts: n/a
Default Re: How can I verify which machines are turn on in single LAN from a websever?

Well, I tried broadcast ping, I get reply form Linux machines only, the
windows machines not replying at all. Is this is common?. Thanks.

Reply With Quote
  #4  
Old 10-30-2005, 12:18 AM
James Knott
Guest
 
Posts: n/a
Default Re: How can I verify which machines are turn on in single LAN from a websever?

GS wrote:

> Hello,
>
> we have around 25 machiens in two floors, all are on single LAN with
> single subnet, one Router provides all network related services, but we
> have inernal web server for internal web site purpose. All LAN machines
> gets ip address from Router using DHCP. from this web server, how can I
> know which machines are on and which are off. I can ping by based on ip
> addr?. the reason is, I need to backup some directories from other
> Linux nachines, then I need to store all that on different external
> disk. Thanks.


Assuming the computers are configured to respond to ping, that will work.

Reply With Quote
  #5  
Old 10-30-2005, 12:22 AM
James Knott
Guest
 
Posts: n/a
Default Re: How can I verify which machines are turn on in single LAN from a websever?

GS wrote:

> Well, I tried broadcast ping, I get reply form Linux machines only, the
> windows machines not replying at all. Is this is common?. Thanks.


I'd stick with individual pings for each computer, as you're ready to begin
the backup. Otherwise, there might be significant time between the
broadcast ping and when you get around to copying files. You might also
want to send a message to the computers, to alert users to the backup in
progress, so that they don't kill the machine. Also, it's a simple
matter, to power up computers remotely, using "magic packets" which trigger
wake on lan. And in Linux it's very easy to turn off the computer again,
when done.

Reply With Quote
  #6  
Old 10-30-2005, 09:22 AM
Tauno Voipio
Guest
 
Posts: n/a
Default Re: How can I verify which machines are turn on in single LAN froma websever?

GS wrote:
> Well, I tried broadcast ping, I get reply form Linux machines only, the
> windows machines not replying at all. Is this is common?. Thanks.


Yes. The Windows machines have broadcast ping
response turned off.

There is a tool, arping, that can be used to
ping anti-social hosts in a local network,
but even this must be done on a single host
at a time basis.

You have the leases granted by the DHCP
server at /var/lib/dhcp/dhcpd.leases (or
/var/lib/dhcp3/dhcpd.leases) but it needs
a fair amout of parsing to find the currently
active ones.

--

Tauno Voipio
tauno voipio (at) iki fi
Reply With Quote
Reply

Tags
lan, machines, single, turn, verify, websever

Thread Tools
Display Modes

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 On
HTML code is Off
Forum Jump


All times are GMT. The time now is 07:56 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.