Re: [opensuse] How to find list of hosts on local subnet?
- From: James Wright <jamfwright@xxxxxxxxx>
- Date: Fri, 3 Dec 2010 09:19:30 -0500
I generally do something like this:
for host in 10.1.0.{1..254}; do fping $host; done
Thanks,
James
On Fri, Dec 3, 2010 at 2:14 AM, Per Jessen <per@xxxxxxxxxxxx> wrote:
David C. Rankin wrote:--
Guys,
What would I use to get a list of hosts on the local subnet aside from
dumping the forward zone in bind or doing a ping -c .1 subnet.1-254? I
want to find something I can call from a script to return the list to
either a single variable or an array.
I'm open to anything, but would prefer a BASH or c solution.
The arp variations already suggested are probably enough, but if you're
on the dhcp machine, you could take a look at the dhcp lease file.
(assuming you already know about the "fixed" hosts).
--
Per Jessen, Zürich (-3.9°C)
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
- Follow-Ups:
- Re: [opensuse] How to find list of hosts on local subnet?
- From: James Knott
- Re: [opensuse] How to find list of hosts on local subnet?
- From: İsmail Dönmez
- Re: [opensuse] How to find list of hosts on local subnet?
- References:
- [opensuse] How to find list of hosts on local subnet?
- From: David C. Rankin
- Re: [opensuse] How to find list of hosts on local subnet?
- From: Per Jessen
- [opensuse] How to find list of hosts on local subnet?
- Prev by Date: Re: [opensuse] Serial to USB adaptor
- Next by Date: Re: [opensuse] Serial to USB adaptor
- Previous by thread: Re: [opensuse] How to find list of hosts on local subnet?
- Next by thread: Re: [opensuse] How to find list of hosts on local subnet?
- Index(es):
Relevant Pages
|