Using MultiSource CMDB functionality

kmlutz4sn
Kilo Expert

How to use this feature?

When I look at the CI record using the "Multisource Data Preview" link on the CI record I was expecting to see three columns. The attribute, the value and the discovery source. I only see two - the attribute and the value.

How is this any different than the audit history?

Why is it not showing where the value came from? Is there something else I need to enable other than the plugin and the system property?

 UPDATE: Nevermind. Figured it out.

13 REPLIES 13

Hi, 

Servicenow does not recommend this for SCCM, following are the KB articles regarding the same:

1. https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0748948

2. https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0721378

Regards,

Ajay Sharma

Hello 

I have tried the step which you have guided. Tried adding reconciliation rule for serial number and different source . But still not able to find the  different data source listed in multisource cmdb data preview . Also tried enabbling  glide.cmdb.logger.source.cmdb_multisource to see the  entry in syslog. Still no luck

Can you please guide?

 

Annie

 

kml1
Kilo Contributor

Annie,

How are you testing your changes? For me, I used a transform map to import the data and I used a transform map and adjusted the DiscoverySource to test out the rules.

Here is the script I was using in an onBefore script:

var cmdbUtil = new CMDBTransformUtil();
//cmdbUtil.setDataSource('ImportSet');
cmdbUtil.setDataSource('ServiceNow');
cmdbUtil.identifyAndReconcile(source, map, log);
ignore = true;

if (cmdbUtil.hasError()) {
var errorMessage = cmdbUtil.getError();
log.error(errorMessage);
} else {
log.info('IE Output Payload: ' + cmdbUtil.getOutputPayload());
log.info('Imported CI: ' + cmdbUtil.getOutputRecordSysId());
}

 

The key is that it runs it through the IRE to test my rules for the attributes and the different sources. You can see I was switching between ImportSet and ServiceNow.

Please let me know if this is what you need to test it out.

Hello @kml 

 

Here are below queries that I am facing while testing the functionality on Personal dev instance .
 
1) While creating a manual record , I don't see the discovery source set as ManualEntry
2) 2 Reconciliation rule has been setup in different order , ManualEntry as 100 and ImportSet as 200 with same columns.
3) While uploading the data through import set should I include discovery source column as well with value as 'Import Set'?
4) Should I create this BR script to kick off the IRE ?
5) Post uploading the data under muti source preview, i don't see the 'import set' column to see all the values. am i missing anything which is not bringing this?
 
So far as per my testing so far , the record is not able to kick the IRE to trigger the reconciliation rule . So is there any step that I have missed is what i am trying to figure out ?

Regards

Annie

kml1
Kilo Contributor

Hello Annie,

Some notes based upon your questions:

for #1 - for what I know, SN does not actually set the discovery source to manual entry when people perform an update. As a proto-type, I had built something in PDI to test this before if that gap could be closed (Madrid or Orlando timeframe). I have a BR that checks if it is being done from the form, if it is then I pass along the variables (in this assumption serial number is mandatory) I then pass that along to a script include; including the discovery source of Manual Entry. In the script include I create a json object that I pass into the IRE so that it will be processed like any other record. You then have to catch what comes back and decide if it was processed and if so...how...like as an insert, an update, etc.

For #2 - I don't believe manual updates go through the IRE out-of-the-box so I don't think they ever go through the IRE so even though you can set it up but is misleading because I don't think it would ever get triggered manually without additional coding.

for #3 - for my testing I did use this entry and others in the onBefore script as well as that CMDB script include. I think there are some changes with regards to flow designer and the Robust Transform Engine but other than taking a lab on it...not that familiar with it but that might be another option.

for #4 - that is what I did but in order to kick off the IRE you need to provide it the json. I used the Identification Simulation module as the basis for what I setup.

I noticed that if I import data with a discovery source of "Manual Entry" it will show in the multisource screen (see attach screenshot). If I try it through the form, I can have it update the discovery source and run through the IRE to see if it is an update or insert but it does not show up on the preview for multisource.

I would probably have to recheck my script include to see if I am missing something but I hope these get you closer.