- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2024 09:30 AM
We've found that Discovery of Viptela routers fails to return the serial number from the device. To remedy that I've created an extension to the Network Router pattern. My extension mirrors steps 5.5 → 5.8 from the existing identification section of the pattern.
The pattern is successfully pulling back a serial number but the CI has no serial number on it and there are no new (or matching) records for the serial in cmdb_serial_number.
I'm not sure how to troubleshoot this any further. Any ideas?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2024 11:55 AM
This was on me. I assumed I only needed to 'feed' the "cmdb_serial_number_temp" table and that some later stage of Discovery would be where that data is used. However, the primary area of the Discovery pattern handles setting CI attributes and creating related records (on the actual cmdb_serial_number table). Once it's finished with all of that it rolls into the 'extensions'.
I added steps within my extension to:
- Validate serialNumber variable is empty
- Populate serialNumber variable
- Validate serialNumber variable is NOT empty
- Set attribute on CI
- Create related record
- Clear the serialNumber variable
All working now.
My pattern actions populated the "cmdb_serial_number_temp" table but nothing else was done with that data. The primary pattern takes additional actions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2024 11:55 AM
This was on me. I assumed I only needed to 'feed' the "cmdb_serial_number_temp" table and that some later stage of Discovery would be where that data is used. However, the primary area of the Discovery pattern handles setting CI attributes and creating related records (on the actual cmdb_serial_number table). Once it's finished with all of that it rolls into the 'extensions'.
I added steps within my extension to:
- Validate serialNumber variable is empty
- Populate serialNumber variable
- Validate serialNumber variable is NOT empty
- Set attribute on CI
- Create related record
- Clear the serialNumber variable
All working now.
My pattern actions populated the "cmdb_serial_number_temp" table but nothing else was done with that data. The primary pattern takes additional actions