How do we change the discovery_source based on connection id/data source?

Carlos Loza
Tera Expert

So, scenario is the following:

with the old SCCM plugin customer is pulling data from different SCCM servers, and handles reporting by using the discovery_source field on the cmdb_ci_computer record

how? by adding a field script on the transform map, the discovery_source is easily changed depending on the data source that pulls the records

 

now for the new SG Connector: they need the same behavior

  • I've already set up multiple instances with their respective connection ids;
  • and within the Robust Transform; I already set up a script operation to evaluate the connection id and set the discovery source field, the problem is that the CI itself doesn't get updated with the value i'm setting

what could I be missing?

1 ACCEPTED SOLUTION

Carlos Loza
Tera Expert

The easiest solution ended up changing the Discovery Source field on the "Service Graph Connector for Microsoft SCCM" on the cmdb_inst_application table

There wasn't a way to change the discovery source based on the SCCM instance

View solution in original post

2 REPLIES 2

Munesh2
Tera Contributor

What is the value you are seeing in the CI being updated ?

Is it SG-SCCM, If yes, then it seems you have not set the discovery_source field to use the proper output field value from your script.

Carlos Loza
Tera Expert

The easiest solution ended up changing the Discovery Source field on the "Service Graph Connector for Microsoft SCCM" on the cmdb_inst_application table

There wasn't a way to change the discovery source based on the SCCM instance