Comments on: Perl Script to poll ARP Table https://blog.michaelfmcnamara.com/2008/05/perl-script-to-poll-arp-table/ technology, networking, virtualization and IP telephony Thu, 22 Nov 2018 13:06:16 +0000 hourly 1 https://wordpress.org/?v=6.7.2 By: Michael McNamara https://blog.michaelfmcnamara.com/2008/05/perl-script-to-poll-arp-table/comment-page-1/#comment-118131 Thu, 22 Nov 2018 13:06:16 +0000 http://maddog.mlhs.org/blog/2008/05/perl-script-to-poll-arp-table/#comment-118131 In reply to dz.

Yes, the input file needs to include every switch, either DNS or IP on a single line.

Good Luck!

]]>
By: dz https://blog.michaelfmcnamara.com/2008/05/perl-script-to-poll-arp-table/comment-page-1/#comment-116297 Tue, 13 Nov 2018 03:21:41 +0000 http://maddog.mlhs.org/blog/2008/05/perl-script-to-poll-arp-table/#comment-116297 Hi, may I know how to execute the script with the input file. Should i create the input file? Please advise further

perl get8600arp.pl

Please assist. Thanks

]]>
By: Dan Frazier https://blog.michaelfmcnamara.com/2008/05/perl-script-to-poll-arp-table/comment-page-1/#comment-1703 Wed, 03 Feb 2010 18:22:02 +0000 http://maddog.mlhs.org/blog/2008/05/perl-script-to-poll-arp-table/#comment-1703 I have a stack of 3 5510s. They are running 5.1.4.02. I could provide a snmpwalk of them if you’re interested. However, I’m getting ready to replace them in the VERY near future with a brand new stack of 5510s due to some horrible stack instability problems.

I suppose it’d be best to start a discussion in the forums or email. I’ve taken a class in Perl but I’m not that great at it. I can take code and adapt it when needed but I’m not that great at starting from scratch. Both of the programs I’ve mentioned are written in Perl. Hopefully I can get Netdot to work properly with the 5500s. I’ve tracked down the problem and think I have a fix for it if I can just figure out the odd ifindexing.

Let me know what you think of those two projects. They both have an active development community and I’ve been hoping to give back to the projects. I personally think the Netdot project is going to be amazing when it’s complete. However, it’s mostly geared toward an Open Source shop. Mine is a mix of just about everything. From your site, it does look like we both use a lot of the same gear.

]]>
By: Michael McNamara https://blog.michaelfmcnamara.com/2008/05/perl-script-to-poll-arp-table/comment-page-1/#comment-1701 Wed, 03 Feb 2010 03:39:14 +0000 http://maddog.mlhs.org/blog/2008/05/perl-script-to-poll-arp-table/#comment-1701 In reply to Dan Frazier.

Hi Dan,

What version of software are you running on your 5510s?

I ask because I discovered today that 6.1.x software on the ERS 5500 series switches handles the generation of the IfIndex numbers differently than previously releases.

Switch 1/ Port 1 = IfIndex 1
Siwtch 2 / Port 1 = IfIndex 129
Switch 3 / Port 1 = IfIndex 257
etc
etc

This is very different than previous behavior.

In any event back to your question… the code may need to be tweaked. Do you have a stack of 5510s or just a standalone switch?

You are trying to map ARP/IP to port correct?

Let me do some testing and let you know, shouldn’t be hard to fix if it’s broken.

Thanks for the information on the other projects… good stuff!

Cheers!

]]>
By: Dan Frazier https://blog.michaelfmcnamara.com/2008/05/perl-script-to-poll-arp-table/comment-page-1/#comment-1699 Wed, 03 Feb 2010 02:55:09 +0000 http://maddog.mlhs.org/blog/2008/05/perl-script-to-poll-arp-table/#comment-1699 Found your website when doing a Nortel VoIP deployment a while back. Great stuff! I just recently saw this post with your script. I’ve attempted to email you in the past but I don’t think I have the right email address…

1. Not sure if you’re familiar with the project, but Netdisco can do your switch port mapping and report generation for you. I’m using it with some Nortel ERS5510’s, 4548s, BES50 and the older 470s. It also works with every Cisco device I’ve thrown at it as well as some HP and Netgear switches. It’s pretty easy to setup and it’s saved me a TON of time when trying to locate devices on the network.

2. I found another project called NetDot which is being developed out of the University of Oregon. It’s shaping up to be an amazing tool to document EVERYTHING from switch port mapping, vlan config, IPAM, cable plant, etc. I can get it to work with every device I have out there except for our ERS5510 stack. I can’t get the arp collection working. The developer says it’s due to a “broken” snmp implementation of ipAdEntIfIndex.Thats how I found this post.

I tried your script against my 5510 stack (also does our inter vlan routing) but it doesn’t appear accurate. The ports are being listed incorrectly and I can’t figure out why. Have you tested this script with 5510s?

]]>
By: Michael McNamara https://blog.michaelfmcnamara.com/2008/05/perl-script-to-poll-arp-table/comment-page-1/#comment-1693 Sat, 30 Jan 2010 00:47:06 +0000 http://maddog.mlhs.org/blog/2008/05/perl-script-to-poll-arp-table/#comment-1693 In reply to GlenP.

Hi Glen,

I actually have a few scripts that build and ARP/FDB report for every switch in the network. I then make reports available via a web server for our field engineers. I also make the ability to actively search the ARP/FDB tables for a specific MAC/IP address if an engineer is looking for a device at that exact time (as opposed to a report run 3 hours ago or last night even).

There’s a thread over in the forums regarding your exact question. I haven’t released all the scripts because they’re not properly sanitized. I’ll see if I can find some time to prepare a sanitized version and make it available.

Cheers!

]]>
By: GlenP https://blog.michaelfmcnamara.com/2008/05/perl-script-to-poll-arp-table/comment-page-1/#comment-1692 Fri, 29 Jan 2010 21:53:25 +0000 http://maddog.mlhs.org/blog/2008/05/perl-script-to-poll-arp-table/#comment-1692 More often than not we have SysAdmins come to us asking about a certain host, and when asked where it is located, they give a blank look. While this could be rectified with relevant documentation we often have to resort to the FDB tables to trace its MAC to the source to identify the physical port the server is connected to.

On occasion we have also had Nortel switches reporting FDB entries incorrectly, and this would be great to identify without manually hitting each device with JDM!

Do you have any script that can correlate the ARP tables to the FDB and report the endpoints?

Still a Nortel/Avaya customer… so far.

Glen.

]]>