Configuring a remote DB2 environment on Windows platform
Follow the steps to configure a remote DB2 environment existing on a UNIX platform.
To configure remote DB2 environment on Windows platform
- From the PATROL Console work area, right-click the DB2_MAIN application class.
- Select KM Commands > Register DB2 Monitoring > Remote Windows DB2 environment.
- In the Register remote Windows DB2 environment dialog box, perform the following actions:
- To add a new environment, enter a unique environment name for monitoring the DB2 environment. A container will be created with the environment name. This environment will hold all the DB2 instances. BMC recommends you to provide only alphanumeric characters in environment name.
- To add remote host connection details, enter the following:
- Host - Enter a valid powershell remote Host name or an IP address. Each environment can contain a single host name. BMC recommends you to provide only alphanumeric characters in environment name.
- Port - Enter the remote powershell port number. Default port number is 5985.
- User - Enter the name of the remote PowerShell user (this user must exist where the IBM DB2 system is installed) with permission to run:
- DB2 CLP commands
- "df" OS command on the following DB2 files:
- logpath file: Received by running the query -
select NAME,VALUE from SYSIBMADM.DBCFG where (DBPARTITIONNUM=<partition number>)
- DB_PATH file: Received by running the query -
select DB_PATH from SYSIBMADM.SNAPDB where (DBPARTITIONNUM=<partition number>)
- logpath file: Received by running the query -
Note: If the IBM DB2 database user field is left blank, this user needs the minimum SYSMON authority with DATAACCESS privileges.
- Password - The password of the remote PowerShell user.
- Authentication - Select an authentication protocol to connect to the remote host:
- Negotiate - Negotiate authentication automatically selects between the Kerberos protocol and NTLM authentication, depending on availability.
- Basic - Basic authentication sends a Base64-encoded string that contains a user name and password for the client. Base64 is not a form of encryption and should be considered the same as sending the user name and password in clear text. If a resource needs to be protected, strongly consider using an authentication scheme other than basic authentication.
- Kerberos - The Kerberos protocol is used if it is available; otherwise, NTLM is tried. Kerberos authentication significantly improves upon NTLM. Kerberos authentication is both faster than NTLM and allows the use of mutual authentication and delegation of credentials to remote machines.
- Use HTTPs - Select this checkbox if you configured the WinRM to use HTTPs protocol to connect to the remote host.
- To add DB2 connection details, enter the following:
- HOME installation PATH - Enter the path to the installation base directory. Files are installed to the following directories under the installation base.
For example:Windows:
C:\Program Files\IBM\SQLLIB
UNIX:
/opt/ibm/db2/V10.5
Monitored DB instances - Enter a comma separated list of database instance names which you want to monitor. Leave this field blank to monitor all DB instances.
- User - Enter the name of the user with permissions to connect and run SQL queries on all DB2 databases. The user should have minimum SYSMON authority with DATAACCESS privileges.
If this field is left blank, then the remote PowerShell connection user and password will be used.
- Password - The password of the DB2 user.
- HOME installation PATH - Enter the path to the installation base directory. Files are installed to the following directories under the installation base.
- To add JAVA collector details, enter the following:
- JAVA_HOME -
- Enter the full path (do not use the short path format) to the JRE directory on the PATROL Agent host. The Java version must be 8 or later.
For example:- Windows: C:\Program Files (x86)\Java\jre8
- Unix\LINUX: /usr/java8_64
- Alternatively, you can also use the $JAVA_HOME environment variable in this field. If you use the $JAVA_HOME variable, the Java location depends on the $JAVA_HOME you declare in you PATROL agent host.
- If this field is left blank, the KM looks for the Java executable in the Patrol3\openjdk and Patrol3\jre64 locations.
- Enter the full path (do not use the short path format) to the JRE directory on the PATROL Agent host. The Java version must be 8 or later.
Executing user - Enter the name of the OS JVM user (this user must exist where the PATROL Agent and DB2 KM are installed) with permission to run the Java process.
Note: If this field is left blank, the KM will use the user that is running the PATROL Agent.
- Password - The password of the OS JVM user.
- JAVA_HOME -
- To add collection details, enter the following:
- Availability - Select this option to collect the availability of instances, connections and databases.
- Full - Select this option to collect all the monitored groups.
- Custom - Select this option to collect only the monitored groups selected from the custom data module types.
- Click OK to apply the configuration.
- Click Close to close the dialog box.
- The following monitored groups will be displayed if you choose Custom option in the collection details.
- Buffer Pools - This group is responsible to collect buffer pools instances and parameters and display them under each database’s partition. You can see the queries and commands used to collect the group’s instances and parameters in the XML. The XML file used to collect this monitored group is located at
<Patrol Home>/Patrol3/pso/xml/ PSO_BUFFERPOOLS.xml
. - Instance Parameters - This group is responsible to collect instance parameters and display them under the partitions container node of the instance. You can see the commands used to collect the group’s parameters in the XML.
The XML file used to collect this monitored group is located at
<Patrol Home>/Patrol3/pso/xml/ PSO_INSTANCE_PARAMETERS.xml
. - Instance Partition Parameters - This group is responsible to collect instance’s partition’s parameters and display them under each instance’s partition’s node. You can see the commands used to collect the group’s parameters in the XML. The XML file used to collect this monitored group is located at
<Patrol Home>/Patrol3/pso/xml/ PSO_INSTANCE_PARTITION_PARAMETERS.xml.
- HADR - This group is responsible to collect HADR parameters and display them under each partition of HADR standby and primary databases. You can see the queries used to collect the group’s parameters in the XML. This group will be active only when the database is HADR database. The XML file used to collect this monitored group is located at
<Patrol Home>/Patrol3/pso/xml/ PSO_HADR.xml.
Lock -
This group is responsible to collect lock parameters and display them under each partition of a database You can see the queries used to collect the group’s parameters in the XML. The XML file used to collect this monitored group is located at<Patrol Home>/Patrol3/pso/xml/ PSO_LOCK.xml.
Capacity - This group is responsible to collect capacity parameters and display them under each partition of a database. You can see the queries used to collect the group’s parameters in the XML. The XML file used to collect this monitored group is located at
<Patrol Home>/Patrol3/pso/xml/ PSO_CAPACITY.xml.
Applications - This group is responsible to collect applications instances and parameters and display them under each partition of a database. You can see the queries used to collect the group’s instances and parameters in the XML. The XML file used to collect this monitored group is located at
<Patrol Home>/Patrol3/pso/xml/ PSO_APPLICATIONS.xml.
Table Spaces - This group is responsible to collect table spaces instances and parameters and display them under each partition of a database. You can see the queries used to collect the group’s instances and parameters in the XML. The XML file used to collect this monitored group is located at
<Patrol Home>/Patrol3/pso/xml/ PSO_TABLESPACES.xml.
Log - This group is responsible to collect log parameters and display them under each partition of a database. You can see the queries used to collect the group’s parameters in the XML.
The XML file used to collect this monitored group is located at
<Patrol Home>/Patrol3/pso/xml/ PSO_LOG.xml.
SQL - This group is responsible to collect SQL parameters and display them under each partition of a database. You can see the queries used to collect the group’s parameters in the XML.
The XML file used to collect this monitored group is located at
<Patrol Home>/Patrol3/pso/xml/ PSO_SQL.xml
.- Recovery - This group is responsible to collect recovery parameters and display them under each partition of a database. You can see the queries used to collect the group’s parameters in the XML.
The XML file used to collect this monitored group is located at
<Patrol Home>/Patrol3/pso/xml/ PSO_RECOVERY.xml.
Performance - This group is responsible to collect performance parameters and display them under each partition of a database. You can see the queries used to collect the group’s parameters in the XML.
The XML file used to collect this monitored group is located at
<Patrol Home>/Patrol3/pso/xml/ PSO_PERFORMANCE.xml.
- Click Accept to monitor the selected groups.
- Click Close to close the dialog box.
Comments
Log in or register to comment.