genieparser icon indicating copy to clipboard operation
genieparser copied to clipboard

[IOS-XE] show device-tracking database mac {mac} fails when there is multiple MAC DB entries

Open nattypan opened this issue 9 months ago • 1 comments

Genie exception when the same MAC address is learnt but in different VLANs:

/// Non-working output from the switch: Edge-1#show device-tracking data mac d4e8.801f.4875 Codes: L - Local, S - Static, ND - Neighbor Discovery, ARP - Address Resolution Protocol, DH4 - IPv4 DHCP, DH6 - IPv6 DHCP, PKT - Other Packet, API - API created Preflevel flags (prlvl): 0001:MAC and LLA match 0002:Orig trunk 0004:Orig access
0008:Orig trusted trunk 0010:Orig trusted access 0020:DHCP assigned
0040:Cga authenticated 0080:Cert authenticated 0100:Statically assigned

Network Layer Address                    Link Layer Address     Interface  vlan       prlvl      age        state      Time left       

macDB has 1 entries for mac d4e8.801f.4875,vlan 1021, 1 dynamic DH4 172.19.10.11 d4e8.801f.4875 Te1/0/4 1021 0024 4s REACHABLE 243 s(678399 s) macDB has 1 entries for mac d4e8.801f.4875,vlan 1022, 1 dynamic ARP 172.19.12.11 d4e8.801f.4875 Te1/0/4 1022 0005 110s REACHABLE 140 s try 0

///Working output Edge-1#show device-tracking database mac b811.4b0e.2630 Codes: L - Local, S - Static, ND - Neighbor Discovery, ARP - Address Resolution Protocol, DH4 - IPv4 DHCP, DH6 - IPv6 DHCP, PKT - Other Packet, API - API created Preflevel flags (prlvl): 0001:MAC and LLA match 0002:Orig trunk 0004:Orig access
0008:Orig trusted trunk 0010:Orig trusted access 0020:DHCP assigned
0040:Cga authenticated 0080:Cert authenticated 0100:Statically assigned

Network Layer Address                    Link Layer Address     Interface  vlan       prlvl      age        state      Time left       

macDB has 2 entries for mac b811.4b0e.2630,vlan 2045, 2 dynamic DH4 172.19.5.10 b811.4b0e.2630 Te1/0/14 2045 0024 3s REACHABLE 244 s(691176 s) ND FE80::A2BB:E8BC:FC85:EF11 b811.4b0e.2630 Te1/0/14 2045 0005 4s REACHABLE 238 s

Seen on Catalyst C9300 IOS-XE 17.18.1

nattypan avatar Apr 14 '25 19:04 nattypan

Hi, I'm working on this issue. I have updated the parser as per your requirements. I will let you know if there is any update. Thank you.

sanjaydilli avatar Apr 25 '25 09:04 sanjaydilli