From owner-freebsd-questions@FreeBSD.ORG Tue Mar 24 07:49:19 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D01851065670 for ; Tue, 24 Mar 2009 07:49:19 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (agora.rdrop.com [199.26.172.34]) by mx1.freebsd.org (Postfix) with ESMTP id A8DBD8FC18 for ; Tue, 24 Mar 2009 07:49:19 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id n2O7nI2a031088 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 24 Mar 2009 00:49:19 -0700 (PDT) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.12.9/Submit) with UUCP id n2O7nIOP031087; Tue, 24 Mar 2009 00:49:18 -0700 (PDT) Received: from fbsd61 by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA13479; Mon, 23 Mar 09 23:44:39 PST Date: Tue, 24 Mar 2009 00:43:34 -0700 From: perryh@pluto.rain.com To: mel.flynn+fbsd.questions@mailing.thruhere.net Message-Id: <49c88f26.l1EpVEWeSl4QsOWV%perryh@pluto.rain.com> References: <200903232010.21179.mel.flynn+fbsd.questions@mailing.thruhere.net> In-Reply-To: <200903232010.21179.mel.flynn+fbsd.questions@mailing.thruhere.net> User-Agent: nail 11.25 7/29/05 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: jalmberg@identry.com, freebsd-questions@freebsd.org Subject: Re: utility that scans lan for client? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Mar 2009 07:49:20 -0000 Mel Flynn wrote: > On Monday 23 March 2009 19:59:36 John Almberg wrote: > > What I'm looking for is a utility that can scan a LAN for attached > > clients... i.e., computers that are attached to the LAN. > > > > I have one box (an appliance that I have no access to), that is on > > the LAN but I don't know what IP address it's using. I'd like to > > complete my network map, and that is the one empty box on my chart. > > security/nmap > > If the box pings, you can simply scan your LAN like: > $ nmap -sP 192.168.2.0/24 Or, with no ports needed: $ ping -n -t 5 -i 10 192.168.200.255 Granted you need to know the broadcast address. If you know the interface name, you can get the broadcast address from ifconfig: $ ping -n -t 5 -i 10 ` ifconfig xl0 | sed -n -e 's/^.* broadcast //p' ` BTW both ping and ifconfig are in /sbin, which is perhaps somewhat less likely to be in PATH than /bin and /usr/bin.