CMDB Import
The ServiceNow Configuration Management Database (CMDB) holds the servers, routers, switches, applications and their relations. Each record is a configuration item (CI).
With CMDB import enabled, the plugin imports CIs from ServiceNow into OpenNMS as nodes.
-
The plugin reads the CIs from
/api/now/table/cmdb_ciand keeps those with a name and an IP address. -
Each CI becomes a node in the requisition
servicenow. -
The import runs every 24 hours, and at plugin start after a delay of two minutes.
-
A save of the plugin configuration starts an import at once.
| CI field | Node field |
|---|---|
|
Foreign ID |
|
Node label |
|
Primary IP interface |
|
Node category, default |
|
Asset: serial number |
|
Asset: asset number |
|
Asset: vendor |
|
Asset: model number |
|
Asset: operating system |
|
Asset: description |
With ticket forwarding, a new incident links to the CI whose name equals the node label.
CMDB Filter
The CMDB filter selects the CIs to import.
It uses the ServiceNow sysparm_query syntax, not JEXL.
The plugin adds it to the base query, which requires a name and an IP address.
An empty filter, the default, imports all CIs with a name and an IP address.
sys_class_name=cmdb_ci_server
sys_class_nameINcmdb_ci_server,cmdb_ci_linux_server^manufacturer=Dell