netfishers-onl / Netshot

Network Configuration and Compliance Management
http://www.netfishers.onl/netshot
240 stars 57 forks source link

Duplicate modules in driver CiscoIOSXR version 1.8.1 #274

Closed Rikharms1972 closed 10 months ago

Rikharms1972 commented 10 months ago

on some ASR9K devices modules are presented double (or even more times).

See attachment for example duplicates

I don`t know how to fix this in the driver, so maybe you can have a look.

Thanks.

SCadilhac commented 10 months ago

Do you see the duplicated items when unticking the Show history checkbox? The modules are parsed out from admin show inventory and show inventory, what do these ones look like?

Rikharms1972 commented 10 months ago

Yes, unticking it also gives the duplicates.

Output:

show inventory | utility egrep TenGigE0/4/CPU0/9 -A 1 Mon Oct 30 10:53:09.635 CET NAME: "module mau TenGigE0/4/CPU0/9", DESCR: "10GBASE-LR SFP+ Module for SMF" PID: SFP-10G-LR , VID: V02 , SN: OPM2251156L

admin show inventory | utility egrep TenGigE0/4/CPU0/9 -A 1 Mon Oct 30 10:55:04.386 CET NAME: "module mau TenGigE0/4/CPU0/9", DESCR: "10GBASE-LR SFP+ Module for SMF" PID: SFP-10G-LR , VID: V02 , SN: OPM2251156L duplicates

SCadilhac commented 10 months ago

That's weird, the duplicates should be removed by the driver.

SCadilhac commented 10 months ago

46019d98fd74f914cadfee8100a6f0e327a3118a should fix this.