Home > Geeky stuff > Cisco auto mapping network

Cisco auto mapping network

It should be fairly easy to write a perl script that will map out a cisco network architecture given access to the core switch and that all connecting devices will allow the core to telnet or ssh to them.  The command show cdp neighbor detail will give you all the info you need.  The ip address, device name, and the port that the connecting device is on.  Then just throw all of those ips on a queue telnet or ssh to them and repeat show cdp neighbor detail on each device making a list of the devices you have already connected to so that you don’t get caught in a loop.  You will also have to query the device to see if it is Cat OS or IOS.  Shouldn’t be too hard with expect and perl.  I will put this on my someday maybe list.

Advertisements
Categories: Geeky stuff
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: