ServiceNow CMDB Search

Subplaybook for finding CI records in ServiceNow CMDB.

ServiceNow · 13 tasks · 4 inputs · 2 outputs

Inputs

  • SearchCIClass — The CMDB CI class to perform the search on (Defaults to cmdb_ci).
  • SearchQueryField — The CI field used to perform the query (Defaults to ip_address).
  • SearchQueryValue — The value used to perform the query.
  • BypassAddRecord — Value to determine if the "add asset to CMDB" branch should be skipped in order to prevent direction to manual task. By default this is set to "false" but a "true" value will bypass.

Outputs

  • ServiceNowCMDB.Record — Discovered CI records
  • ServiceNowCMDB.Records — A list of all the records that were found in the CMDB table.

Commands used

servicenow-cmdb-record-get-by-id servicenow-cmdb-records-list

Flowchart

no yes No Yes yes yes yes Start Start Search for CMDB record - servicenow-cmdb-records-list Search for CMDB record servicenow-cmdb-records-list Get record by ID - servicenow-cmdb-record-get-by-id Get record by ID servicenow-cmdb-record-get-by-id Fetch related CMDB CI by ID - servicenow-cmdb-record-get-by-id Fetch related CMDB CI by ID servicenow-cmdb-record-get-by-id Playbook End Playbook End Do records exist? - Exists Do records exist? Exists Add asset in CMDB? Add asset in CMDB? Manually add asset in CMDB Manually add asset in CMDB Save CMDB information in Evidence - ToTable Save CMDB information in ... ToTable Is ServiceNow CMDB enabled? Is ServiceNow CMDB enabled? Was bypass input set to "true"? Was bypass input set to "... Is the CI a network adapter? Is the CI a network adapter? Get record by ID and Network adapter CI - servicenow-cmdb-record-get-by-id Get record by ID and Netw... servicenow-cmdb-record-get-by-id