I am trying to get LNMS to add all devices it discovers via CDP but I realized yesterday it was missing some things. I have run multiple full discoveries over several days and the devices I am looking at have not changed.
Trying to make things less complex I am going to focus on 3 devices.
10.100.0.82 - Catlyst 3560 switch - existed in LNMS after initial CDP discovery
10.100.0.81 - Nexus 5548 switch - does not exist in LNMS
Switch 10.100.0.81/mgmt0 port is connected to 10.100.0.82/Fas0/47 port. I have not added it to LNMS since I am hoping it will be discovered.
After adding 10.100.0.80 manually to LNMS and some discovery/polling cycles completed I can see the following things:
10.100.0.80/mgmt0 port connects to 10.100.0.82/Fas0/48 port
10.100.0.80 ports - neighbors shows 10.100.0.82 connected via CDP
10.100.0.80 map shows connection to 10.100.0.82
10.100.0.82 ports - neighbors does NOT show 10.100.0.80
10.100.0.82 map shows connection to 10.100.0.80
I have run a manual discovery of 10.100.0.82 like this: ./discovery.php -h 10.100.0.82 -d -m discovery-protocols -v
I can see in the output that both 10.100.0.80 and 10.100.0.81 shows up in the CDP discovery.
How can I make them show up properly as CDP neighbors? (and automatically add the devices to LNMS)
Run SELECTdevice_idFROMdevicesWHEREsysName= 'DC-H5-4948-10G-1.domain.com' ORhostname= 'DC-H5-4948-10G-1.domain.com'; but with the proper hostname. Does it return anything?
I believe you have gotten confused. The device that wont add to discovery is not a catalyst.
Please look at my original post.
The detailed discovery data I posted for swich 10.100.0.82 shows I should have 9 neighbors but LNMS gui only has 7 of the 9. Even after I manually added 1 of the 2 missing devices 10.100.0.82 still only shows 7 of 9.
Figure I will add this as well. The detailed discovery is from device_id 46. I manually added device_id 1074. It is missing dc-nexus-5k-h7-2 aka 10.100.0.81.