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 field | Description |
|---|---|
| name | Name of the Db2 instance. |
| tcp_port | TCP port. |
| installed_dir | The installation directory. |
| version | Db2 version. |
| db_name | Name of the database. |
| pid | Process ID of the Db2 instance. |
The Dependency Views map shows all discovered IBM Db2 instances in your organization and the relationships between them.
[Omitted image "IBM-Db2-Windows-dependency.png"] Alt text: 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
--- title: IBM Db2 on Windows database discovery description: ServiceNow Discovery uses the Db2 on Windows discovery pattern to find IBM Db2 instances on Windows servers. locale: en-US canonical_url: https://www.servicenow.com/docs/r/it-operations-management/discovery-and-service-mapping-patterns/ibm-db2-windows-discovery.html release: brazil product: Discovery and Service Mapping Patterns classification: discovery-and-service-mapping-patterns topic_type: reference last_updated: "2026-09-10" reading_time_minutes: 1 breadcrumb: [Available on-premise discovery patterns, Discovery patterns used by ITOM Visibility, ITOM Visibility, IT Operations Management] --- # 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](https://store.servicenow.com/sn_appstore_store.do#!/store/home) 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](https://www.servicenow.com/docs/r/store-release-notes/sn-store-release-notes.html). 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 field|Description| |---------------|-----------| |name|Name of the Db2 instance.| |tcp\_port|TCP port.| |installed\_dir|The installation directory.| |version|Db2 version.| |db\_name|Name of the database.| |pid|Process ID of the Db2 instance.| The Dependency Views map shows all discovered IBM Db2 instances in your organization and the relationships between them. \[Omitted image "IBM-Db2-Windows-dependency.png"\] Alt text: 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](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/it-operations-management/discovery-and-service-mapping-patterns/available-patterns.md)
| title | IBM Db2 on Windows database discovery |
| description | ServiceNow Discovery uses the Db2 on Windows discovery pattern to find IBM Db2 instances on Windows servers. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/it-operations-management/discovery-and-service-mapping-patterns/ibm-db2-windows-discovery.html |
| release | brazil |
| product | Discovery and Service Mapping Patterns |
| classification | discovery-and-service-mapping-patterns |
| topic_type | reference |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | Available on-premise discovery patternsDiscovery patterns used by ITOM VisibilityITOM VisibilityIT Operations Management |