Show mac / Show arp file parser

Unanswered Question
Mar 26th, 2008
User Badges:

I need some kind of file parser that can combine the output from the show mac-address-table and show arp to make a new output that has the following:


IP address, Mac Address, FastEthernet Port.


Right now I have to compare the two outputs to find what I am looking for and needless to say this is very tedious. I would appreciate it if anyone might have something that works or a link to something similar that I can reverse engineer and get it to do what I need.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 3 (1 ratings)
Loading.
glynncounty Thu, 03/27/2008 - 05:55
User Badges:

I found this which I guess is a Perl script that uses MTRG. If there is anybody that uses this I would appreciate any advice on great ways to apply this.

Collin Clark Thu, 03/27/2008 - 06:48
User Badges:
  • Purple, 4500 points or more

show arp on your layer 3 device will show it. You'll just see the trunk interface for access layer switches though. There are tools out there that can help with this. Take a look at Solarwinds Engineers Edition Toolset.


CORE12#sh arp</p><p>Protocol  Address          Age (min)  Hardware </p><p>Internet  10.10.1.1             2   0013.21b1.3ca2  ARPA   Vlan611</p><p>


HTH

glynncounty Thu, 03/27/2008 - 08:22
User Badges:

okay.. pulled the show arp from my router and a show mac-address-table from the switch. Used microsoft access to combine them. Now how can I trace down to the actual interface of the switch the ip or mac etc... is on by following the trunks?

glynncounty Thu, 03/27/2008 - 09:31
User Badges:

Okay. That works great for a single address. I guess what I am trying to get is the overall picture of everything that is on our network.

Collin Clark Thu, 03/27/2008 - 09:37
User Badges:
  • Purple, 4500 points or more

Here's a command that might be more helpful.


show mac address-table

and

show mac address-table ?

glynncounty Thu, 03/27/2008 - 10:02
User Badges:

Yes I use that one as well just shows the cam table... Problem is the port can be a learned port and not actual port the pc is plugged into...

Actions

This Discussion