[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can you use NMAP to populate NetSaint?



On Tue, Feb 12, 2002 at 06:28:39AM -0800, Robert Threet wrote:
> Can you use NMAP to populate NetSaint?  I had heard that
> you can use nmap to generate a "picture" of the devices on
> your network.  For example, we have a really big Cisco
> switch connected to a few smaller switches which are
> connected to even smaller switches from which servers and
> other devices are connected to.  I'd like a "map" showing
> which switches and routers are used by each server so I can
> draw an accurate status map.  Is this possible with nmap. 
> I've never seen it used fo much other than port scanning.

"nmap -sP 192.168.0.0/24"

It's fairly quick in our small office:
[root@danny-pc dsauer]# nmap -sP 10.1.1.0/24

Starting nmap V. 2.54BETA22 ( www.insecure.org/nmap/ )
Host   (10.1.1.0) seems to be a subnet broadcast address (returned 15 extra pings).Note -- the actual IP also responded.
Host router.internal.teleologic.net (10.1.1.1) appears to be up.
Host dev.internal.teleologic.net (10.1.1.2) appears to be up.
[...]
Nmap run completed -- 256 IP addresses (21 hosts up) scanned in 6 seconds

If you use the -oG option to spit out a grep-able file, you should be able to
put together some magic perl/sed/etc script to add the appropriate lines
to your netsaint config.  For example:
	nmap -sP -oG /dev/stderr 10.1.1.0/24 > /dev/null
will generate slightly easier-to-parse output if there are no errors,
specify a real file if you wanna be safe. :)  Maybe throw some nmblookup
calls in there for the windows machines.  Moo.

In fact, I may do this later, as my netsaint install could use the
ability to be more thorough...  Lemme know if you get it done
before I start. :)

--Danny, always looking for ways to was^b^b^b invest time

-
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.