Discovery: some Routers are identified as Switches.

faisal_dadabhoy
Giga Expert

We have some "Routers" that are identified as IP switches. I am wondering if anyone has experienced this issue and how you handle it. Ideally I would like to rediscover these devices as routers to get router interfaces and routing rules.

 

I hate to change the base code to fix the issue, I am wondering if someone had experienced similar issue and how you have addressed it?

 

Thanks for help in advance, Faisal

5 REPLIES 5

robpickering
ServiceNow Employee
ServiceNow Employee

I'm not running Discovery, but was curious if you tried just setting the "Device Type" to "Router" and "can route" to "true" on the CI?   It shouldn't need to rediscover, but if Discovery now believes it's a router would it pull the additional data you're looking for on the next poll?



You may also need to change the sys_class_name on the CI from cmdb_ci_ip_switch to cmdb_ci_ip_router if you want them to populate to the right Module (Routers) in the Configuration application.




Rob Pickering



If my post was helpful, please mark it as such.


If my post solved your issue, please mark it as "Correct Answer"


Thanks Rob,



Good workaround thinking:-)



Unfortunately it does not work like that, it pretty much rediscovers the CI. I changed class from IP swtich to IP router but that created a new CI (running Dublin).



just wondering if anyone else experienced similar issue? and how you addressed it



Thanks, Faisal


Whoa, it definitely shouldn't have created a duplicate CI.   What is the coalesce value set to on Discovery?   I'd think it was something unique like hostname or hostname+IP or something...   It shouldn't have "rediscovered" and created a new CI (though I could see it setting everything back to the original).


If I would have just change the attributes such as name, model number and etc. It would have updated the record with old values.


However, since I change the table for the record, it created a new CI.


Switches and Routers get stored on different tables.


Thanks, Faisal