[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

Posted on 2008-06-25
4
Medium Priority
?
2,222 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 1500 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

Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

Question has a verified solution.

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

In the hope of saving someone else's sanity... About a year ago we bought a Cisco 1921 router with two ADSL/VDSL EHWIC cards to load balance local network traffic over the two broadband lines we have, but we couldn't get the routing to work consi…
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.
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…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Suggested Courses

649 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