Solved

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

Posted on 2008-06-25
4
2,018 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
  • 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

In the world of WAN, QoS is a pretty important topic for most, if not all, networks. Some WAN technologies have QoS mechanisms built in, but others, such as some L2 WAN's, don't have QoS control in the provider cloud.
Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
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 tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

910 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now