IBM Db2 on Linux database discovery
ServiceNow Discovery uses the Db2 on Linux discovery pattern to find IBM Db2 instances on Linux servers.
Discovery uses this pattern to run horizontal discovery. You can use the pattern on the ServiceNow AI Platform using the Istanbul release or later.
Visit the ServiceNow Store website 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.
Prior to the Washington DC release, the Db2 on Linux was discovered by probe. From the Washington DC release, the pattern is triggered automatically by classification using these Db2 identifiers: tcp_port, name, installed_dir
Prerequisites
Configure SSH credentials for the Linux server.
In addition, ensure that the user has the permissions to run the following commands:
- Identification for Db2 UDB entry point types
- ". /" + $process.environmentVariables.HOME.value + "/sqllib/db2profile; " + $process.environmentVariables.HOME.value + "/sqllib/bin/db2level"
- Identification for Db2 UDB entry point types - NONE
- "cat " + $installed_dir + "/db2dump/db2diag.log | grep \"INSTANCE:\" | grep " + $entry_point.instance + " | head -1"
- Identification for Db2 on z/OS
- "netstat -a | grep " + $entry_point.port
Data collected by Discovery during horizontal discovery
| Table and field | Description |
|---|---|
| name | The Db2 instance name |
| tcp_port | TCP port |
| installed_dir | Installation directory |
| version | Db2 version |
| Table and field | Description |
|---|---|
| name | The Db2 instance name |
| tcp_port | TCP port |
| installed_dir | Installation directory |
CI relationships
The IBM Db2 on Linux pattern does not create any CI relationships.