morten.brekkevold@uninett.no said:
I'm looking at the code, and the only immediate reason I can see how this could happen is if the cam collection ran before the interface had been collected by the inventory job (i.e. `cam.port` is set from `interface.ifname` or `interface.ifdescr`, if present, at the time the cam record is created, and is never updated after its creation).
It might also happen if the switch reindexed its interfaces between runs of the inventory and cam jobs (so that the cam records referred to ifindexes that inventory had not yet collected).
When was this WS-C93XX first entered into NAV, and did it reboot at any time near 2019-01-18 10:13:00?
Ah, I guess this happened because this switch had a case of "Found multiple matching interfaces for Interface" (a failure we see quite often) and I was rummaging around in the database and deleting interfaces around this time.
Then the next question is how do I fix this (short of deleting everything and begin from scratch...)? Delete from cam table where port is empty?
--Ingeborg