Network Topology Discovery


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Network Topology Discovery
# 1  
Old 07-06-2011
Network Topology Discovery

Hello All!

New Unix admin here, with a bit of a problem I can't seem to get a straight answer to..

I've been tasked with mapping out the topology (with IPs/Hostnames) of networks...remotely. So, I have SSH access to firewalls, but that's about as far as I can get - how would I go about resolving the IPs/hostnames of the other servers on a network, such as a mail server.

Thanks!

Tiy
# 2  
Old 07-06-2011
These remote networks belong to your company, correct?
# 3  
Old 07-07-2011
Code:
nmap -sP 192.168.1.0/24

If You got nmap
Code:
for i in {1..254}; do ping -c 1 -W 1 10.1.1.$i | grep 'from'; done

If You do not got nmap

RolfB

Last edited by pludi; 07-07-2011 at 05:42 AM..
# 4  
Old 07-07-2011
Quote:
fpmurphy These remote networks belong to your company, correct?
Yes of course fpmurphy, we manage about 120 small companies and non-profits in the area. Most of these sites have poor documentation and we are working on building decent network topology that we can quickly reference.

Quote:
Code:
nmap -sP 192.168.1.0/24
If You got nmap

Code:
for i in {1..254}; do ping -c 1 -W 1 10.1.1.$i | grep 'from'; done
If You do not got nmap

RolfB
What is the easiest way to match IPs to hostnames? I have a list of hostnames for most of our sites.
# 5  
Old 07-08-2011
This may help You:

Code:
dig +short google.com

74.125.77.104
74.125.77.147
74.125.77.99


Code:
ping -c 1 google.com | egrep -m1 -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}'

74.125.77.104


Another tool I use is Superscan (Windows) who can generate an text file with hostname and IP + open ports if You need that too.
It is so "good" that I did not bother to make a script who does same.

RolfB

Last edited by rbatte1; 09-05-2016 at 10:29 AM.. Reason: Please use code tags for code and data samples, thank you
This User Gave Thanks to RolfB For This Post:
 
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Infrastructure Monitoring

Discovery Tools.

Hi Folks, realise that this forum might not be the exact match for this question, so feel free to put it somewhere more apropriate. I'm currently involved in a project that has gone somewhat pear shaped, just to keep this all short the situation is as follows. I was brought in to manage a... (2 Replies)
Discussion started by: gull04
2 Replies

2. AIX

Discovery/Mount new disk

Hi all, i must add a new disk on a LPAR. I've done all the HMC and VIOS Procedure to create a virtual host with disk and assign it to lpar. I don't remember how i must do on the lpar to see this disk. (i use lvm not veritas). Thanks in advance and sorry for my english. Bye Mario (2 Replies)
Discussion started by: Zio Bill
2 Replies

3. AIX

Discovery LPAR from HMC

Hi All, i would like to know if it's possible to know all the IP Addresses of all LPAR's interfaces from HMC (without connect into LPAR). And if i can know also the "Application" hostname of LPAR from HMC. Thanks in advance. Bye Mario (2 Replies)
Discussion started by: Zio Bill
2 Replies

4. Infrastructure Monitoring

Discovering Network Topology

Hi all, I am tasked to write a program that learns all possible paths between each pair of nodes in an internetwork. I am not an expert in the area of IP networking/routing. I have been reading about this the last few days. If you know of examples that are close to what I am trying to do, I would... (4 Replies)
Discussion started by: nzeidat
4 Replies

5. Shell Programming and Scripting

host discovery using bash

I am trying to make a bash script to scan subnets to see what hosts are available. Is it correct that you can not make the ping command time out less than a second? The script below works, but can take up to 255 seconds which is a bit long :( Is there a way to solve this using bash only? <code>... (6 Replies)
Discussion started by: bronkeydain
6 Replies

6. Solaris

disk discovery

when I "ls /dev/dsk/ ", I can see c0t0d0 and c0t2d0; but when I use format command, I can only see c0t0d0 available; why this happens? how many disk do I have on the machine? (I do not know that) (2 Replies)
Discussion started by: fredao
2 Replies
Login or Register to Ask a Question