Generating environments file for SAP

Symantec recommends using a custom generated environments file to configure the EnvFile attribute of the SAPWebAS71 agent. The steps to generate the environments file for SAP applications are given as follows.

To generate the environments file for SAP applications

  1. Login as SAPAdmin user.
    su  -  pi1adm
  2. Capture the environment with the following command.
    env > /home/pi1adm/sappi1env.env
  3. Adopt this file according to the SAPAdmin user shell environment.

    For example, if the generated file contains environments for bash shell and SAPAdmin user shell is C shell, convert the file to C shell environments with the following steps:

    • Edit the sappi1env.env file to add string 'setenv' at the beginning of each line.

    • Replace the '=' with space " " in the file.

  4. Copy the sappi1env.env file to shared directory and use it as the SAP instance's environments file in EnvFile attribute. Ensure that the permissions are set properly for user SAPAdmin.
    chmod a+x sappi1env.env