execute manually IRE (Identification and Reconciliation Engine)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2020 11:06 AM
Dear All,
I have a lot of duplicate CI in cmdb_ci_db_ora_instance (oracle instance) table.
I ran correctness dashboard to get duplicates CI from this table, but did not retrieve it.
I don't want to run discovery schedule again since it will take a lot of time as i have a lot of CIs.
As per this KB article "https://hi.service-now.com/kb_view.do?sysparm_article=KB0726425" ,
its given To fix all the left-over CIs, please run discovery, or any custom scripts / import engine that calls IRE (Identification and Reconciliation Engine).
can anyone help how to execute IRE engine through manually or by script.
Regards,
Anshu
Anshu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2020 11:21 AM
There is a good example of code in the article by Richard Brounstein. Scroll down to the Testing CI Reconciliation.
Hope this helps.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2020 11:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2024 02:06 AM
This is how you can run IRE via a script
var obj = {
"items": [
{
"className": "cmdb_ci_win_server",
"values": {
"name": "XXXYYYZZZ",
"serial_number": "AAABBBCCC",
"asset_tag": "SOME RANDOM UPDATE"
}
}
]
};
var cmdbUtil = new CMDBTransformUtil();
//cmdbUtil.setDataSource('ImportSet');
cmdbUtil.setDataSource('ServiceNow');
cmdbUtil.setPayload(obj);
cmdbUtil.identifyAndReconcile();
if (cmdbUtil.hasError()) {
var errorMessage = cmdbUtil.getError();
gs.log(errorMessage);
} else {
gs.log('IE Output Payload: ' + cmdbUtil.getOutputPayload());
gs.log('Imported CI: ' + cmdbUtil.getOutputRecordSysId());
}
reference
https://developer.servicenow.com/dev.do#!/reference/api/utah/server_legacy/c_CMDBTransformUtilAPI#r_...
https://noderegister.service-now.com/kb?id=kb_article_view&sysparm_article=KB0829078