Cisco Network Interface ARP information
Summary: peter smith suggests a method for obtaining ARP information in Cisco environments by combining L2 MAC/port data from access switches with ARP data from the nearest L3 switch. They recommend using SNMP/Datasources for regularly changing data and mention the importance of normalizing the MAC format during data correlation. Additionally, they advise identifying specific switch models and IOS versions as command availability may vary across Cisco platforms.
Hi Community,
wanted to check if anyone had already build something in this direction or to get some additional guidance on how to best realize this.
Our company is currently in the process of implementing LogicMonitor to monitor our Network equipment - we already on-boarded all of our network devices and started to grant access to additional groups.
We´ve been asked now if there is a way to show the MAC and IP-address currently been connected to a switch port. Doesnt really matter where we would display that data but having them per switch would be the goal. The data doesnt need to be live a snapshot per day would be good enough. We are Cisco shop and unfortunately i havent figured out an easy way to do this.
One challenge is that the IP information are not available on L2 Switches - granted we are able to pull in Port and MAC address information into LM, is there a way to identify the next Core/Distro (L3) Switch to pull the IP address information and add them to the existing information? This would probably require some advanced scripting running comands in the CLI while exporting and merging the results.
Also for the pulling of information for the Interface and MAC address i am currently struggling. Is it easier to create a ConfigSource which would display differences and we would try to adjust the existing iOS config pulls to run with the required comands to show MAC and port or try to achieve via Datasource and SNMP. Eitherway it seems we would need to format the MAC output from Cisco to Windows format (dot to colon/dash notation).
Anyone out there with similar challenges who might´ve figured it out maybe even partially? Every idea and input is appreciated.
peter smith
Hi, I think the cleanest approach would be to combine the L2 MAC/port data with ARP information from the nearest L3 switch rather than trying to get everything from the access switch itself.
For Cisco environments, you can collect the MAC address and switch-port mapping from the access switches, then correlate those MAC addresses against the ARP table on the L3 core/distribution switch. A scheduled script could pull both datasets, normalize the MAC-address format, and produce a daily snapshot showing the switch, port, MAC address, and corresponding IP address.
For the collection method, SNMP/Datasources would make sense for regularly changing operational data, while a ConfigSource could be useful if you mainly want to capture CLI output or configuration differences. I would also normalize the MAC format during the correlation step rather than modifying the raw Cisco output.
If you're working with different Cisco platforms, it may also help to first identify the exact switch models and IOS versions because the available commands/OIDs can vary. This overview of Cisco networking products may also be useful when mapping the hardware in your environment.
LM User
Just do a configsource. Log into the device, issue the appropriate commands to gather the data, then output in a text format that is easy to consume. Then you just go to the configsource and look at the most recent version. This has the added benefit of being able to maintain a history of the connections to each switch port.
Michael Baker
You *might* be able to do this with a Topology source it would not be simple to do though