What fields are used to determine duplicate CIs

Brian Lancaster
Tera Sage

I'm finally working for a company that wants to setup a good CMDB. What fields does ServiceNow use to determine if a CI is duplicated. I have a couple duplicate CIs in IP Switch class but as far as I can tell the only duplicate field is name. Is that the only field used? Can you make it use other fields per class?

1 ACCEPTED SOLUTION

// Add this code to the onBefore transform map script
// Call CMDB API to do Identification and Reconciliation of the current row
var cmdbUtil = new CMDBTransformUtil();
cmdbUtil.setDataSource('ImportSet');
cmdbUtil.identifyAndReconcileEnhanced(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());
}

View solution in original post

12 REPLIES 12

Robert80
Kilo Guru

Navigate to ConfigurationCI Class Manager 

Click Open Hierarchy

Search CI Classes for IP Switch

Select Identification Rule

Rahul Priyadars
Giga Sage
Giga Sage

U need to see the Identification Rule in Class manager for IP Switch class. 

is ur switch Cis auto discovered or How Its Created? If Cis are not going thru IRE then dups are possible even when u have  Identification rules set.

 

OOTB 5 rules are there and Name is also key in one of the rules. So in your case CIs seems manually created.

 

RahulPriyadars_0-1676364911891.png

 

 

Regards

RP

 

They are created via an JDBC import from SolarWinds. It seems IP Switch is a child of of Network Gear that is a child of Hardwar.

BrianLancaster_0-1676391939601.png

It is showing 4 identifier entries. Does it try to use all of these? Are there limitations because we are not using Discovery?

BrianLancaster_1-1676392055839.png

 

If your integration is using IRE, then it will try to use all 4 rules. It will start with the lowest number first, if it doesn't find a match, it will move to the nect one and so on. The ability to match will depend on what data is available in the payload.

 

Are you using a custom integration? There is a Solarwinds Service Graph connector available if you have appropriate Visibility licensing, which will make life much easier. The Service Graph connectors are OOTB integrations that utilise IRE and have been tested by ServiceNow

 

https://docs.servicenow.com/bundle/tokyo-servicenow-platform/page/product/configuration-management/c...

 

Hope this is helpful

David