Importing the agent types files in a VCS environment

To use the agent for SAP WebAS, you must import the agent types file into the cluster.

You can import the agent types file using the Veritas Cluster Server (VCS) graphical user interface or via the command line interface.

To import the agent types file using the VCS graphical user interface

  1. Start the Veritas Cluster Manager and connect to the cluster on which the agent is installed.
  2. Click File > Import Types.
  3. In the Import Types dialog box, select the following file:

    VCS 4.x

    • AIX

    • HP-UX

    • Linux

    • Solaris

    /etc/VRTSvcs/conf/sample_SAPWebAS71/

    SAPWebAS71Types.cf

    VCS 5.x or later

    • AIX

    • HP-UX

    • Linux

    /etc/VRTSagents/ha/conf/SAPWebAS71/

    SAPWebAS71Types.cf

    VCS 5.0

    Solaris SPARC and x64

    /etc/VRTSagents/ha/conf/SAPWebAS71/

    SAPWebAS71Types50.cf

    VCS 5.1 or later

    Solaris SPARC and x64

    /etc/VRTSagents/ha/conf/SAPWebAS71/

    SAPWebAS71Types51.cf

  4. Click Import.
  5. Save the VCS configuration.

    The SAP agent type is now imported to the VCS engine.

    You can now create SAP Web AS resources. For additional information about using the VCS GUI, refer to the Veritas Cluster Server Administrator's Guide.

To import the agent types file using the Veritas Cluster Server command line interface (CLI):

  1. Log on to any one of the systems in the cluster as the superuser.
  2. Create a temporary directory.

    # mkdir ./temp

    # cd ./temp

  3. Copy the sample file Types.cf.

    VCS 4.x

    • AIX

    • HP-UX

    • Linux

    • Solaris

    /etc/VRTSvcs/conf/sample_SAPWebAS71/

    SAPWebAS71Types.cf

    VCS 5.x or later

    • AIX

    • HP-UX

    • Linux

    /etc/VRTSagents/ha/conf/SAPWebAS71/

    SAPWebAS71Types.cf

    VCS 5.0

    • Solaris SPARC and x64

    /etc/VRTSagents/ha/conf/SAPWebAS71/

    SAPWebAS71Types50.cf

    VCS 5.1 or later

    • Solaris SPARC and x64

    /etc/VRTSagents/ha/conf/SAPWebAS71/

    SAPWebAS71Types51.cf

    The following example assumes VCS 5.0 is installed on AIX:

    # cp /etc/VRTSagents/ha/conf/SAPWebAS71/SAPWebAS71Types.cf .

  4. Create a dummy main.cf file:

    # echo 'include "SAPWebAS71Types.cf"' > main.cf

  5. Create the SAP resource type as follows:

    # hacf -verify .

    # haconf -makerw

    # sh main.cmd

    # haconf -dump

    The SAP agent type is now imported to the VCS engine.

    You can now create SAP Web AS resources. For additional information about using the VCS CLI, refer to the Veritas Cluster Server Administrator's Guide.

Alternatively, you can also use the following procedure to import the agent types files using the CLI.

  1. Switch the VCS configuration to read-write mode.

    # haconf -makerw

  2. Navigate to the directory containing the SAPWebAS71Types.cmd file.

    VCS 4.x

    # cd /etc/VRTSvcs/conf/sample_SAPWebAS71

    VCS 5.x

    # cd /etc/VRTSagents/ha/conf/SAPWebAS71

  3. Set your PATH variable to /opt/VRTSvcs/bin, according to the user login shell.

    For example,

    # export PATH=/opt/VRTSvcs/bin:$PATH

  4. Execute the following file.

    # ./SAPWebAS71Types.cmd

    Note:

    For Solaris SPARC and Solaris x64, execute the # ./SAPWebAS71Types50.cmd file for VCS 5.0 and # ./SAPWebAS71Types50.cmd file for VCS 5.1.

  5. Save the configuration.

    # haconf -dump -makero

    The SAP WebAS agent type is now imported to the VCS engine.

    You can now create SAP Web AS resources. For additional information about using the VCS CLI, refer to the Veritas Cluster Server Administrator's Guide.