2.4 Installing the Adapter

The CASD Adapter acts as a front end for all tickets flowing into and out of CASD. Oracle Enterprise Manager posts calls to the web service whenever it needs to create or update a ticket, or get a ticket ID from CASD.

You can install the CASD Adapter on a supported Unix or Windows system that has connectivity to the CASD server and the Oracle Enterprise Manager server.

2.4.1 Security Recommendations

Because the CASD Adapter stores sensitive information for accessing CA Service Desk, access to the adapter files should be limited. Oracle recommends setting up a separate group (hereafter referred to as "the adapter group") that has permission to configure and run the CASD Adapter. Access to the adapter should not be allowed for anyone that is not a member of the adapter group.

2.4.2 Installing and Running the CASD Adapter on Unix

The following sections explain how to install and then subsequently run the Adapter.

2.4.2.1 Prerequisites

The following prerequisites must be met before proceeding to the next section:

  1. CA Service Desk Ticketing Connector Release 13.2.1.0.0 requires JDK 8 Update 5 and later or JDK 11 (any version) installed on the Unix platform.
  2. CA Service Desk Ticketing Connector Release 12.1.0.x.0 supports only JDK 6 and requires JDK 6 Update 11 and later.
  3. JAVA_HOME environment variable must be set to the JDK installation directory.

    Note:

    CA Service Desk Ticketing Connector does not support JDK 7, JDK 9, and JDK 10.

2.4.2.2 Installing the Adapter on Unix

To install the adapter on a Unix platform:

  1. Log in as a user that is a member of the adapter group. See Security Recommendations for more information regarding the adapter group.

  2. Create a directory where you want to install the adapter.

  3. Open a terminal and change the working directory to the installation directory.

  4. Obtain a copy of the casd_adapter.jar file from the Management Server host system as specified in Exporting the Adapter Installation File, and copy it to the installation directory.

  5. Make sure the JAVA_HOME environment variable is set to the directory where Java 1.6 is installed.

  6. Enter the following command to unzip and extract the jar file:

    $JAVA_HOME/bin/jar xvf casd_adapter.jar

    This creates the adapters directory that contains the installation files.

    Note:

    If the system where the CASD adapter is being installed does not have the JDK installed, you cannot extract the jar file contents. You must copy the jar file to a system that has the JDK installed and transfer the files after they have been extracted.

  7. Enter the following command to change the working directory:

    cd adapters/endpoints/ca-usd

  8. Enter the following command to run the installation script:

    sh ./install.sh

  9. When the script prompts whether you want to use HTTPS, answer Y (yes) or N (no):

    • If you specify Y, the adapter is set up to use HTTPS port number 8443.

    • If you specify N, the adapter is set up to use HTTP port number 8082.

  10. When the script prompts for the user name of the web service, enter the user name that must be provided to access the CASD adapter web service.

    Note:

    This user name is not associated with any CASD or system account. It can be any value that you choose. This user name will be used to restrict access to the adapter web service interface.

  11. When the script prompts for the password of the web service, enter the password that must be provided to access the CASD adapter web service.

    Note:

    This password is not associated with any CASD or system account. It can be any value that you choose. This password will be used to restrict access to the adapter web service interface.

  12. When the script prompts for the hostname/IP address of the CASD server, enter the host name or IP address of the system where the CASD server is deployed. The host name defaults to localhost if no value is provided.

  13. When the script prompts for the port number of the CASD server, enter the port number the CASD web server uses (Tomcat or IIS). The port number defaults to 8080 if no value is provided.

  14. When the script prompts for the user name to use when accessing CASD, enter the user name of the CASD account referenced in Prerequisites.

  15. When the script prompts for the password to use when accessing CASD, enter the password of the CASD account referenced in Prerequisites.

  16. After the script displays the message CASD Adapter Install Complete, press Enter to complete the installation.

  17. Enter the following command to change the working directory to the conf directory.

    cd adapters/conf

  18. Change the permissions on the framework.properties file to allow read, write, and execute permissions for the owner and the adapter group and no access for any other users.

  19. If the adapter was configured to run using the HTTPS protocol, you must perform the following steps:

    1. Install an SSL certificate in the adapter keystore. You must either install a self-signed certificate, or install a certificate obtained from a Certificate Authority (CA).

    2. Import the SSL certificate from the adapter keystore into the Enterprise Manager keystore. Perform the steps specified in Importing the Adapter Certificate into Enterprise Manager.

The adapter framework is now installed and ready to start.

2.4.2.3 Running the Adapter on Unix

To run the CASD Adapter framework commands listed with the following tasks, first change the working directory in the installation directory to:

adapters/bin

The following commands are available for running the adapter:

  • Start - ./service.sh start

  • Shut Down - ./service.sh stop

  • Restart - ./service.sh restart

  • Check Status - ./service.sh status

2.4.2.4 Testing the Adapter on Unix

To verify that the CASD Adapter is functional:

  1. Open a terminal and change the working directory to the adapters/bin directory in the installation directory.

  2. Enter the following command to run the test script:

    ./testAdapter.sh

  3. The test script prompts for the password information. At the prompt, enter the password that was configured for accessing the Adapter web service in step 11 of Installing the Adapter on Unix.

    For information on setting the user name and password, see Changing Web Service Credentials.

  4. If the test completes successfully, the last line the utility displays is Test completed successfully.

Note:

Starting with CA Service Desk Connector Release 13.2.1.0.0, the testAdapter script is no longer available.

2.4.3 Installing and Running the CASD Adapter on Windows

The following sections explain how to install and then subsequently run the Adapter.

2.4.3.1 Prerequisites

The following prerequisites must be met before proceeding to the next section:

  1. CA Service Desk Ticketing Connector Release 13.2.1.0.0 requires JDK 8 Update 5 and later or JDK 11 (any version) installed on the Windows platform.
  2. CA Service Desk Ticketing Connector Release 12.1.0.x.0 supports only JDK 6 and requires JDK 6 Update 11 and later.
  3. JAVA_HOME environment variable must be set to the JDK installation directory.

    Note:

    CA Service Desk Ticketing Connector does not support JDK 7, JDK 9, and JDK 10.

2.4.3.2 Installing the Adapter on Windows

To install the adapter on a Windows platform:

  1. Log in as a user that is a member of the adapter group. See Security Recommendations for more information regarding the adapter group.

  2. Create a directory where you want to install the adapter.

  3. Open a terminal and change the working directory to the installation directory.

  4. Obtain a copy of the casd_adapter.jar file from the Management Server host system as specified in Exporting the Adapter Installation File, and copy it to the installation directory.

  5. Make sure the JAVA_HOME environment variable is set to the directory where Java 1.6 is installed.

  6. Enter the following command to unzip and extract the jar file:

    "%JAVA_HOME%\bin\jar" xvf casd_adapter.jar

    This creates the adapters directory that contains the installation files.

    Note:

    If the system where the CASD adapter is being installed does not have the JDK installed, you cannot extract the jar file contents. You must copy the jar file to a system that has the JDK installed and transfer the files after they have been extracted.

  7. Enter the following command to change the working directory:

    cd adapters\endpoints\ca-usd

  8. Enter the following command to run the installation script:

    .\install.bat

  9. When the script prompts whether you want to use HTTPS, choose Y (yes) or N (no):

    • If you specify Y, the adapter is set up to use HTTPS port number 8443.

    • If you specify N, the adapter is set up to use HTTP port number 8082.

  10. When the script prompts for the user name of the web service, enter the user name that must be provided to access the CASD adapter web service.

    Note:

    This user name is not associated with any CASD or system account. It can be any value that you choose. This user name is used to restrict access to the adapter web service interface.

  11. When the script prompts for the password of the web service, enter the password that must be provided to access the CASD adapter web service.

    Note:

    This password is not associated with any CASD or system account. It can be any value that you choose. This password is used to restrict access to the adapter web service interface.

  12. When the script prompts for the hostname/IP address of the CASD server, enter the host name or IP address of the system where the CASD server is deployed. The host name defaults to localhost if no value is provided.

  13. When the script prompts for the port number of the CASD server, enter the port number the CASD web server uses (Tomcat or IIS). The port number defaults to 8080 if no value is provided.

  14. When the script prompts for the user name to use when accessing CASD, enter the user name of the CASD account referenced in Prerequisites.

  15. When the script prompts for the password to use when accessing CASD, enter the password of the CASD account referenced in Prerequisites.

  16. Enter the following command to change the working directory to the conf directory.

    cd adapters\conf

  17. Change the permissions on the framework.properties file to allow read, write, and execute permissions for the adapter group and no access for any other users.

  18. After the script displays the message CASD Adapter Install Complete, press Enter to complete the installation.

  19. If the adapter was configured to run using the HTTPS protocol, you must perform the following steps:

    1. Install an SSL certificate in the adapter keystore. You must either install a self-signed certificate, or install a certificate obtained from a Certificate Authority (CA).

    2. Import the SSL certificate from the adapter keystore into the Enterprise Manager keystore. Perform the steps specified in Importing the Adapter Certificate into Enterprise Manager.

The adapter framework is now installed and ready to start.

2.4.3.3 Running the Adapter as a Windows Service (Optional)

Optionally, if you want the adapter to run as a Windows service, perform the following steps:

  1. Log into an account that has permission to add a Windows service.

    Note:

    On most systems, the account must be a member of the Administrators group to add a Windows service.

  2. Make sure the account has read and execute permissions for the adapters\bin directory.

  3. Change the working directory to the adapters\bin directory in the installation directory.

  4. If the adapter will be run using a 64-bit JRE, copy the iWaveAdapters.exe and iWaveAdaptersw.exe files from the x64 directory to the current directory (.) overwriting the existing files.

  5. Enter the following command to install the adapter as a Windows service:

    service.bat install
    
  6. If the adapter will be run using a 64-bit JRE, perform the following substeps to configure the service to use the 64-bit JRE:

    1. In the adapters\bin directory, double click the iWaveAdaptersw.exe file. This will cause the iWave Adapters Properties window to be displayed.

    2. Click the Java tab. The Java tab will be displayed that shows the JVM settings as shown in Figure 2-2.

      Figure 2-2 Java Tab on the iWave Adapters Properties Window


      Java Tab on the iWave Adapters Properties Window

    3. Uncheck the Use default check box if it is checked.

    4. Click ellipse button to open the Select Java Virtual Machine DLL window.

    5. Navigate to the jvm.dll file in the 64-bit JRE installation directory and click Open.

    6. Click OK.

2.4.3.4 Running the Adapter on Windows

There are two ways you can run the adapter on Windows: Standalone Service and Windows Service.

2.4.3.4.1 Standalone Service

To start the CASD adapter framework when set up as a standalone application (not set up to run as a Windows service):

  1. Change the working directory to the adapters\bin directory in the installation directory.

  2. Run the following command:

    startAdapters.bat

To shut down the CASD adapter framework, close the window where you started the adapter.

2.4.3.4.2 Windows Service

To start the CASD adapter framework when set up to run as a Windows service, run the following command:

net start iWaveAdapters

To shut down the CASD adapter framework, run the following command:

net stop iWaveAdapters

2.4.3.5 Testing the Adapter on Windows

To verify that the CASD Adapter is functional.

  1. Open a terminal and change the working directory to the adapters\bin directory in the installation directory.

  2. Enter the following command to run the test script:

    .\testAdapter.bat

  3. The test script prompts for the password information. At the prompt, enter the password that was configured for accessing the Adapter web service in step 11 of Installing the Adapter on Windows.

  4. If the test completes successfully, the last line the utility displays is Test completed successfully.

Note:

Starting with CA Service Desk Connector Release 13.2.1.0.0, the testAdapter script is no longer available.