09-13-2024 06:40 AM
Hi! I'm getting a response from the sandbox when getting the LLDP information for a node:
```
```
However, I do not know where to find the mac address that is being referenced for the linked node (201) anywhere. Does anyone know where this ID is coming from? I know from the docs this is supposed to be the neighbor's mac address but I cannot find the object or class that contains this information besides what I"m getting from this response. Thanks!
10-22-2024 11:10 PM
The MAC address you're seeing in the LLDP information is part of the Link Layer Discovery Protocol (LLDP) data, which is used for network devices to advertise their identity and capabilities to neighbors on the same network. In your case, the LLDP data is showing information about a neighboring device connected to the node you're querying.
Here's a breakdown of the relevant fields in the LLDP information:
The neighboring device is identified by the sysName field, which is SP_201, and the sysDescfield, which is topology/pod-1/node-201.
To find more information about the neighboring node (201), you would typically look at the network management system or controller that is managing your network. In the context of Cisco ACI (Application Centric Infrastructure), you would use the APIC (Application Policy Infrastructure Controller) to query details about the node.
Here’s how you can find more information about the node with ID 201:
Using the APIC GUI:
Using the APIC API:
Using CLI on the Node:
By using these methods, you should be able to find the MAC address and other details of the node with ID 201
10-30-2024 07:27 AM - edited 10-30-2024 07:28 AM
Hey AshSe,
Thank you so much for your reply. I wasn't explicit in my original question, so my apologies! I was checking the fabricNode and information per interface as well and I cannot find the field that should match for the mac address? I don't know if this is only because I'm utilizing the sandbox instead of a real set up environment for Cisco ACI?
I was seeing in the interface information (l1PhysIf I believe?) There is a `routerMac` field but I'm not sure if there is anything per node on the `fabricNode` class level?
For example this is what I see from the response to my sandbox with the APIC API:
https://10.10.20.14/api/node/class/fabricNode.json
```
11-05-2024 11:27 PM
Hey @zo3 , could you please tell me what's your question now?
12-02-2024 12:37 PM
Hi @AshSe , my question is, where can I find the actual mac addressed referenced in LLDP/CDP neighbors?
For example, Leaf101 on the sandbox right now has the physical interface eth1/49 that is LLDP neighbors with Spine-201 and it says the mac address associated with that is 2a:12:8d:9c:70:5c
If I go to Spine-201, I see that the interface eth5/1 is LLDP neighbors with Leaf-101 with mac address shown to be 9a:f0:b6:fb:cc:21 - I cannot find where these mac addresses are associated with? I don't see them related to the device or the interfaces, so do you know where these are being related and found in terms of the LLDP/CDP neighbors fields?
12-02-2024 08:29 PM
Hey @zo3
@zo3 wrote:where can I find the actual mac addressed referenced in LLDP/CDP neighbors?
For example, Leaf101 on the sandbox right now has the physical interface eth1/49 that is LLDP neighbors with Spine-201 and it says the mac address associated with that is 2a:12:8d:9c:70:5c
If I go to Spine-201, I see that the interface eth5/1 is LLDP neighbors with Leaf-101 with mac address shown to be 9a:f0:b6:fb:cc:21 - I cannot find where these mac addresses are associated with? I don't see them related to the device or the interfaces, so do you know where these are being related and found in terms of the LLDP/CDP neighbors fields?
>> To find the actual MAC addresses referenced in LLDP (Link Layer Discovery Protocol) or CDP (Cisco Discovery Protocol) neighbors, you typically need to look at the LLDP/CDP neighbor details on the device itself.
The MAC addresses you see in the LLDP/CDP neighbors output are typically the MAC addresses of the interfaces on the neighboring devices. However, these MAC addresses might not always be the same as the MAC addresses you see in the interface configurations or the MAC address table. This discrepancy can occur due to several reasons, such as:
To find the actual MAC addresses referenced in LLDP/CDP neighbors, you can follow these steps:
On Leaf101:
Look for the neighbor information for Spine-201, specifically the MAC address 2a:12:8d:9c:70:5c.
On Spine-201:
Look for the neighbor information for Leaf101, specifically the MAC address 9a:f0:b6:fb:cc:21.
On Leaf101:
Verify the MAC address of the interface eth1/49.
On Spine-201:
Verify the MAC address of the interface eth5/1.
On Leaf101:
Look for the MAC address 2a:12:8d:9c:70:5c in the MAC address table.
On Spine-201:
Look for the MAC address 9a:f0:b6:fb:cc:21 in the MAC address table.
On Leaf101:
Look for the base MAC address of the device, which might be used for LLDP/CDP.
On Spine-201:
Look for the base MAC address of the device, which might be used for LLDP/CDP.
Hope This Helps!!!
12-03-2024 07:53 AM - edited 12-03-2024 07:53 AM
@AshSe super helpful !! the caveat is i wonder if this is possible to access via the APIC API (vs the CLI) at all? i.e. is there some API endpoint / object that captures this data? i have no idea how to check this from the GUI (i'm trying to utilize the API to do this programmatically vs. having to go into every device manually!)
thank you so much again, this is very helpful - i'll see if this commands have any direct translation from the API docs
12-03-2024 08:55 PM
Dear @zo3 , I am feeling blessed to know that I could be of some help to you. To answer your concern for APIC API;
1. Authenticate to the APIC:
2. Query LLDP Neighbor Information:
3. Query CDP Neighbor Information:
If you prefer to use the APIC GUI to find the relevant API endpoints:
You can use the "API Inspector" tool in the APIC GUI to see the exact API calls being made when you navigate through the GUI. This can help you identify the correct endpoints and parameters to use in your scripts.
By using the APIC API, you can programmatically retrieve LLDP/CDP neighbor information for all devices in your ACI fabric, making it easier to automate network management tasks.
Hope This Helps!!!
AshSe
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide