Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

IBM Db2 on Windows database discovery

ServiceNow Discovery uses the Db2 on Windows discovery pattern to find IBM Db2 instances on Windows servers.

Visit the ServiceNow Store to view all the available apps, and for information about submitting requests to the store. For cumulative release notes information for all released apps, see the ServiceNow Store version history release notes.

Discovery uses this pattern to run horizontal discovery. The pattern is triggered automatically by classification using these Db2 identifiers: tcp_port, name, installed_dir

Prerequisites

Ensure that the user has the permissions to run the following commands:

  • "\"" + $installed_dir + "\bin\db2cmd\" /c /w /i db2 list database directory"
  • "\"" + $installed_dir + "\bin\db2cmd\" /c /w /i db2 list database directory | findstr \"Database name\" | findstr /i " + $entry_point.instance
  • "\"" + $installed_dir + "\bin\db2level\""

Data collected by Discovery during horizontal discovery

The discovered data includes the following tables and fields.

Table and fieldDescription
nameName of the Db2 instance.
tcp_portTCP port.
installed_dirThe installation directory.
versionDb2 version.
db_nameName of the database.
pidProcess ID of the Db2 instance.

The Dependency Views map shows all discovered IBM Db2 instances in your organization and the relationships between them.

Image omitted: IBM-Db2-Windows-dependency.png
IBM Db2 Windows Dependency view

CI relationships

The IBM Db2 on Windows pattern does not create any CI relationships.

Parent Topic:Available on-premise discovery patterns