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_ci and 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

sys_id

Foreign ID

name

Node label

ip_address

Primary IP interface

sys_class_name

Node category, default ServiceNow

serial_number

Asset: serial number

asset_tag

Asset: asset number

manufacturer

Asset: vendor

model_id

Asset: model number

os

Asset: operating system

description

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.

Examples
sys_class_name=cmdb_ci_server
sys_class_nameINcmdb_ci_server,cmdb_ci_linux_server^manufacturer=Dell