You can check the Host inventory -Data displayed in the GUI about the hosts include the IP address, MAC address, and network attachment point.
For related info refer -MAC Address of users connected to ISRG2 switched ports.
Thanks and Regards,
if have a REST API example of how you can get the hosts (which are connected to a device) that will give their IP/MAc address.
In this example, i do not show the MAC address of each interface, but that is just a matter of changing the print statement. This will not tell you the MAC addresses of other network devices that are connected to this one, but will show all connected hosts.
In Part 4 (next day or so) i give an example of using a REST API to find a host by MAC or IP address and where it is connected to the network.
What are you trying to do with the MAC table?
Thank you very much for all your answers and the great blog from aradford
My problem is more complicated, I am using the APIC-EM to manage Cisco layer 2 switches only, my routers and firewalls are third party vendors. I am getting the ARP table from the third party devices using paramiko ssh module and using the Mac to ip, I want to compare it to the Mac address table from the switches, and I want to get the Mac address table using the API.
I am managing Cisco 3750/G/X switches.
Thanks in advance
Is there any way to get the MAC address table through NETCONF/RESTCONF/gRPC ?
https://IP_ADDR:443/restconf/data/Cisco-IOS-XE-native:native/mac does not provide the mac address-table data