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
su - pi1adm
env > /home/pi1adm/sappi1env.env
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:
chmod a+x sappi1env.env