Open the Table of Contents

You are here: About the Environment Variables > Setting Environment Variables

# Setting Environment Variables

The method used to set an environment variable varies depending upon the operating system. The following is a summary of the methods used for supported versions of the operating systems.

### Warning

Please be aware that the environment variable settings are system-wide. If you are using more than one application licensed using Sentinel RMS, the environment variable settings will cause conflict in running these applications.

Windows | UNIX - Bourne or Korn Shell | UNIX - C or TCSH Shell
--- | --- | ---
In Windows, environment variables are set using the Control Panel > System> Advanced > Environment Variables dialog box. Administrator privileges are needed to change these settings. Each environment variable should be added as a System Variable. The environment variables are read by the System Services when the computer boots. You can also set certain environment variables (such as LSHOST and LSFORCEHOST) on the system command prompt. For example, SET LSFORCEHOST=ACCT_SERVER This will set the License Manager as ACCT_SERVER, unless this setting is overridden. | On UNIX computers using the Bourne or Korn shell, environment variables are set by using the SET command at the command prompt. However, remember to enclose the environment variable parameters in quotation marks, and follow the SET command with an export command. For example, to set the default license code file name to net2lic, type: SET LSERVRC=”net2lic” ;export LSERVRC | On UNIX computers using a C or TCSH shell, environment variables are set by using the SETENV command at the command prompt in this format: SETENV <variable> parameters For example, to set the default license code file name to net2lic, type: SETENV LSERVRC net2lic

Setting the License Manager Configuration Options Using the LSERVOPTS Environment Variable

## Caution While Setting Environment Variables In Case of Solaris and Macintosh!

In case of Solaris and Macintosh, if the License Manager auto-launch script has been used, then the following precautions must be taken for setting environment variables.

The permanent environment variables (related to License Manager), if defined in a profile, will not work at reboot. This is because in boot sequence, the License Manager will start first and then environment variables settings would be done by the operating system. To resolve this, define the environment variables in the auto-launch settings only. Hence, if the auto-launch file is configured in /etc/rc3.d.

However, session-wise environment variable would work fine. Alternatively, you can specify the required options with the help of command-line switches with the License Manager start command, instead of using the environment variables altogether.

See Also:

- Ways to Set the License Manager Options
- License Manager - LSERVOPTS Environment Variable
- License Manager - Specific Environment Variables