IBM WebSphere server discovery using probes
Summarize
Summary of IBM WebSphere Server Discovery Using Probes
The IBM WebSphere application server serves as middleware for hosting Java-based web applications. The discovery process creates or updates a Configuration Management Database (CMDB) record upon detecting a WebSphere application server instance on Windows or Linux systems. With Visibility Content version 6.1.0, pattern-based discovery is now the default method for identifying these servers.
Show less
Requirements for Discovery
For successful discovery, specific configurations are necessary:
- Windows: Enable PowerShell on the MID Server.
- Linux: Enable SSH and set execute privileges to allow probes to read necessary configuration files.
Probes and Sensors
Discovery employs different probes to identify WebSphere application servers based on the operating system:
- Linux: The Unix - Active Processes probe identifies running processes. If matched, it triggers probes to extract data from cell.xml, serverindex.xml, and server.xml files, creating records in the respective CMDB tables.
- Windows: The Windows - Active Processes probe performs a similar function, utilizing parameters from the running process to search relevant directories for configuration files, thereby updating the CMDB.
Data Collected
The discovery process collects various data fields from WebSphere servers, including:
- Windows: Running process, cell.xml data, server.xml details, and records from serverindex.xml.
- Linux: Information from server.xml and serverindex.xml related to the WebSphere application server.
Relationships
Relationships are established in the CI Relationship table, linking the discovered application server to its respective server type and services:
- Application server has a relationship with the underlying server (Linux or Windows).
- Web applications and web services are contained within the application server.
This structured discovery enables better visibility and management of IBM WebSphere servers within your ServiceNow environment, ensuring accurate tracking and reporting of application dependencies.
The IBM WebSphere application server is a software framework with middleware that hosts Java-based web applications. Discovery creates or updates a CMDB record when it detects an instance of a WebSphere application server running on a Windows or Linux system.
Websphere discovery on Windows
Requirements for discovery:
For WebSphere application servers running on Windows systems, enable PowerShell on the MID Server.
Websphere discovery on Linux
- Enable SSH on the WebSphere Application Server.
- Set execute privileges to enable the following probes to run commands:
- WebSphere - Get serverindex.xml: cat/read permissions on the serverindex.xml file
- WebSphere - Get cell.xml: cat/read permissions on the cell.xml file
- WebSphere - Get server.xml: cat/read permissions on the server.xml file
For a list of privileged commands that you need for Discovery and Service Mapping, see Service Mapping commands requiring a privileged user. This list includes commands that require elevated rights to discover and map Unix-based hosts in your organization.
Probes and sensors
Discovery uses this process to identify Linux WebSphere application servers:
- The Unix - Active Processes probe detects a running process that matches the
com.ibm.ws.runtime.WsServer. For example, the
...com.ibm.ws.bootstrap.WSLauncher com.ibm.ws.runtime.WsServer process
output has a parameter of /opt/IBM/WPS/profiles/ccmdb/config localhostNode01Cell
ccmdb01 server1. The values are:
- last parameter = server_name = server1
- last parameter - 1 = node_name = ccmdb01
- last parameter - 2 = cell_name = localhostNode01Cell
- last parameter - 3 = config_path = ‘/opt/IBM/WPS/profiles/ccmdb/config’
- If there is a match, a record is created in the IBM Websphere
[cmdb_ci_app_server_websphere] table. The following probes are triggered:
- WebSphere - Cell
- WebSphere - Web Applications
- WebSphere –Web Services
- The WebSphere - Cell probe searches for the cell.xml file for the instance by using the parameters in the running process, and then searching in the related <config_path>\cells\<cell_name>\ directory.
- If the probe successfully finds the cell.xml file, the sensor reads its contents and populates additional Websphere Cell [cmdb_ci_websphere_cell] table records as necessary.
- If the probe successfully finds the serverindex.xml file, the sensor reads its contents and populates additional Web Application [cmdb_ci_web_application] table records as necessary.
- If the probe successfully finds the server.xml file, the sensor reads its contents and populates additional Web Service [cmdb_ci_web_service] table records as necessary.
Discovery uses this process to identify Windows WebSphere application servers:
- The Windows - Active Processes probe detects a running process that matches the
com.ibm.ws.runtime.WsServer. For example, the
...com.ibm.ws.bootstrap.WSLauncher com.ibm.ws.runtime.WsServer process
output has a parameter of /opt/IBM/WPS/profiles/ccmdb/config localhostNode01Cell
ccmdb01 server1. The values are:
- last parameter = server_name = server1
- last parameter - 1 = node_name = ccmdb01
- last parameter - 2 = cell_name = localhostNode01Cell
- last parameter - 3 = config_path = ‘/opt/IBM/WPS/profiles/ccmdb/config’
- If there is a match, a record is created in the IBM Websphere
[cmdb_ci_app_server_websphere] table. The following probes are triggered:
- Windows - WebSphere - Cell
- Windows - WebSphere - Web Applications
- Windows - WebSphere –Web Services
- The Windows - WebSphere - Cell probe searches for the cell.xml file for the instance by using the parameters in the running process, and then searching in the related <config_path>\cells\<cell_name>\ directory.
- If the probe successfully finds the cell.xml file, the sensor reads its contents and populates additional Websphere Cell [cmdb_ci_websphere_cell] table records as necessary.
- The Windows - WebSphere - Web Applications probe searches the serverindex.xml file for the instance by using the parameters in the running process, and then searching in the related <config_path>\cells\<cell_name>\nodes\<node_name> directory.
- If the probe successfully finds the serverindex.xml file, the sensor reads its contents and populates additional Web Application [cmdb_ci_web_application] table records as necessary.
- The Windows WebSphere - Web Services probe searches for the server.xml file for the instance by using the parameters in the running process, and then searching in the related <config_path>\cells\<cell_name>\nodes\<node_name>\servers\<server_name> directory.
- If the probe successfully finds the server.xml file, the sensor reads its contents and populates additional Web Service [cmdb_ci_web_service] table records as necessary.
Data collected
| Table | Field | Source |
|---|---|---|
| cmdb_ci_app_server_websphere | Name (name) | Running process |
| cmdb_ci_websphere_cell | Name (name) | cell.xml |
| cmdb_ci_websphere_cell | Cell ID (cell_id) | cell.xml |
| cmdb_ci_websphere_cell | Cell type (cell_type) | cell.xml |
| cmdb_ci_websphere_cell | Cell discovery protocol (cell_discovery_protocol) | cell.xml |
| cmdb_ci_web_service | Name (name) | server.xml |
| cmdb_ci_web_service | Service ID (service_id) | server.xml |
| cmdb_ci_web_application | Name (name) | serverindex.xml |
| Label | Table Name | Field Name | Source |
|---|---|---|---|
| Name | cmdb_ci_websphere_cell | name | server.xml |
| App server | cmdb_ci_web_service | app_server | Internal reference |
| Name | cmdb_ci_web_service | name | server.xml |
| Name | cmdb_ci_web_application | name | serverindex.xml |
| App server | cmdb_ci_web_application | app_server | serverindex.xml |
Relationships
These relationships are created in the CI Relationship [cmdb_rel_ci] table.| Parent class | Relationship type | Child class |
|---|---|---|
| cmdb_ci_app_server_websphere | Runs on::Runs | cmdb_ci_linux_server |
| cmdb_ci_win_server | Runs on::Runs | cmdb_ci_win_server |
| cmdb_ci_app_server_websphere | Contains::Contained by | cmdb_ci_web_application |
| cmdb_ci_web_service | Runs on::Runs | cmdb_ci_app_server_websphere |
| cmdb_ci_websphere_cell | Contains::Contained by | cmdb_ci_app_server_websphere |