Network Router Pattern Extension

Michael Conley
Mega Sage

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.

 

MichaelConley_0-1721837999178.png

 

MichaelConley_1-1721838017222.png

 

MichaelConley_2-1721838030098.png

 

MichaelConley_3-1721838042183.png

 

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.

MichaelConley_4-1721838497231.png

 

I'm not sure how to troubleshoot this any further. Any ideas?

1 ACCEPTED SOLUTION

Michael Conley
Mega Sage

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:

  1. Validate serialNumber variable is empty
  2. Populate serialNumber variable
  3. Validate serialNumber variable is NOT empty
  4. Set attribute on CI
  5. Create related record
  6. 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

View solution in original post

1 REPLY 1

Michael Conley
Mega Sage

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:

  1. Validate serialNumber variable is empty
  2. Populate serialNumber variable
  3. Validate serialNumber variable is NOT empty
  4. Set attribute on CI
  5. Create related record
  6. 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