Crew,
We would like to pull switch FDB information and corresponding port information from the NCM database. Seems easy enough - just run a SQL statement against the MACForwarding table. No luck. It appears the "port" field does not match up with a friendly name - the Ethernet addresses seem to be associated with a port number that I can't translate back to something more meaningful.
For example:
I see MAC XXXXXXXXXXXXXX Matching to port 56 on a Cisco 3750X switch stack in the MACForwarding table.
When I log-in to the switch and search the mac address:
show mac address-table address XXXXXXXXXXXXXX
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
1 XXXX.XXXX.XXXX DYNAMIC Gi2/0/2
Total Mac Addresses for this criterion: 1
My question: Is there a mechanism for linking a record in the MACForwarding table based on port number to another table to translate it to a friendly name (ie Port 56 to Gi2/0/2)?
I have poked around in all of the tables, and I can't seem to find a table that I can link to and translate the name. I am probably missing something.