Solved

Export MAC addresses and ARP data from Cisco and/or 3Com switches/routers into mySQL?

Posted on 2008-06-25
4
2,125 Views
Last Modified: 2012-06-27
I'd like to export MAC address and ARP data from Cisco and/or 3Com switches/routers into a  database to create an IP to port mapping.    I'd like to be able to automate the export via some type of scripting if possible.  Any ideas on how this might be accomplished would be appreciated.

0
Comment
Question by:pbeirne
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 21

Expert Comment

by:from_exp
ID: 21871964
it is pretty easy:
you can get all macs and arps via snmp query using standard if-mib
you make snmp get of mac table, parse it and save into database
0
 
LVL 5

Author Comment

by:pbeirne
ID: 21874710
Would you please explain that in a little more detail?  What do I need to create the "snmp query using standard if-mib"  I am in a windows environment if it matters.
0
 
LVL 21

Accepted Solution

by:
from_exp earned 500 total points
ID: 21875119
switches do maintain a table, called fdb - forward database, which contains mac-port pairs
if your switch is L3 and do routing it also has routing table with ip-mac pairs

to get that table out you need to snmp query tool like snmpview
if-mib is default standard mib for switches. it comes with snmpview.

as for example, how to do that, I came across perl script
http://www.perlmonks.org/?node_id=129534
0
 
LVL 5

Author Closing Comment

by:pbeirne
ID: 31470779
Got me pointed in the right direction...thanks.
0

Featured Post

Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Problem Description:   Couple of months ago we upgraded the ADSL line at our branch office from Home to Business line. The purpose of transforming the service to have static public IP’s. We were in need for public IP’s to publish our web resour…
I recently attended Cisco Live! in Las Vegas, a conference that boasted over 28,000 techies in attendance, and a week of hands-on learning hosted by a solid partner with which Concerto goes to market.  Every year, Cisco displays cutting-edge technol…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Suggested Courses

687 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question