<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns:MadCap="http://www.madcapsoftware.com/Schemas/MadCap.xsd" MadCap:tocPath="About the Environment Variables" MadCap:InPreviewMode="false" MadCap:PreloadImages="false" MadCap:RuntimeFileType="Topic" MadCap:TargetType="WebHelp" lang="en-US" xml:lang="en-US" MadCap:PathToHelpSystem="../" MadCap:HelpSystemFileName="Default.xml" MadCap:SearchType="Stem">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Setting Environment Variables</title>
        <link href="SkinSupport/MadCap.css" rel="stylesheet" />
        <link href="Resources/TableStyles/BlackTable.css" rel="stylesheet" />
        <link href="Resources/Stylesheets/SFNT_Flare.css" rel="stylesheet" />
        <script src="SkinSupport/MadCapAll.js" type="text/javascript">
        </script>
    </head>
    <body>
        <p class="MCWebHelpFramesetLink MCWebHelpFramesetLinkTop" style="display: none;"><a href="../Default_CSH.htm#Setting_Environment_Variables.htm" style="font-weight: bold;">Open the Table of Contents</a>
        </p>
        <div class="MCBreadcrumbsBox_0"><span class="MCBreadcrumbsPrefix">You are here: </span><a class="MCBreadcrumbsLink" href="About the Environment Variables.htm">About the Environment Variables</a><span class="MCBreadcrumbsDivider"> &gt; </span><span class="MCBreadcrumbs">Setting Environment Variables</span>
        </div>
        <h1><a name="kanchor27"></a>Setting Environment Variables</h1>
        <p>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.</p>
        <h3 class="Warning_Head">Warning</h3>
        <p class="Warning_Para">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.</p>
        <table style="width: 100%;border-spacing: 0px;border-spacing: 0px;margin-left: 0;margin-right: auto;mc-table-style: url('Resources/TableStyles/BlackTable.css');" cellspacing="0" width="100%" class="TableStyle-BlackTable">
            <col style="width: 33.333%;" class="Column-Column1" />
            <col style="width: 33.333%;" class="Column-Column1" />
            <col style="width: 33.333%;" class="Column-Column1" />
            <thead>
                <tr class="Head-Header1">
                    <th class="HeadE-Column1-Header1">Windows </th>
                    <th class="HeadE-Column1-Header1">UNIX - Bourne or Korn Shell</th>
                    <th class="HeadD-Column1-Header1">UNIX - C or TCSH Shell</th>
                </tr>
            </thead>
            <tr valign="top" class="Body-Body1">
                <td style="width: 33.333%;padding-right: 10px;padding-left: 10px;border-left-width: 1px;border-left-color: #000000;border-left-style: Solid;border-right-width: 1px;border-right-color: #000000;border-right-style: Solid;border-bottom-style: Solid;border-bottom-color: #000000;border-bottom-width: 1px;" width="33.333%" class="BodyE-Column1-Body1">
                    <ul>
                        <li class="Table_Bullets" value="1">In Windows,  environment variables are set using the <span style="font-weight: bold;">Control 
 Panel &gt; System&gt; Advanced &gt; Environment Variables </span>dialog 
 box. Administrator privileges are needed to change these settings. Each 
 environment variable should be added as a System Variable. The &#160;environment 
 variables are read by the System Services when the computer boots. </li>
                    </ul>
                    <ul start="2">
                        <li class="Table_Bullets" value="2">You can also set certain 
 environment variables (such as LSHOST and LSFORCEHOST) on the system command 
 prompt. For example,</li>
                    </ul>
                    <p class="IndentedText">SET LSFORCEHOST=ACCT_SERVER</p>
                    <p class="IndentedText">This will set the License Manager as ACCT_SERVER, 
 unless this setting is overridden.</p>
                </td>
                <td style="width: 33.333%;padding-right: 10px;padding-left: 10px;border-right-width: 1px;border-right-color: #000000;border-right-style: Solid;border-bottom-style: Solid;border-bottom-color: #000000;border-bottom-width: 1px;" width="33.333%" class="BodyE-Column1-Body1">
                    <p>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.</p>
                    <p>For example, to set the default license code file name to net2lic, type:</p>
                    <p class="code">SET LSERVRC=”net2lic”<br />;export LSERVRC</p>
                </td>
                <td style="width: 33.333%;padding-right: 10px;padding-left: 10px;border-right-width: 1px;border-right-color: #000000;border-right-style: Solid;border-bottom-style: Solid;border-bottom-color: #000000;border-bottom-width: 1px;" width="33.333%" class="BodyD-Column1-Body1">
                    <p>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:</p>
                    <p class="code">SETENV 
 &lt;variable&gt; parameters</p>
                    <p>For example, to set the default license code file name to net2lic, type:</p>
                    <p class="code">SETENV 
 LSERVRC net2lic </p>
                </td>
            </tr>
        </table>
        <p class="note" style="text-align: center;">
            <img src="Resources/Images/env_var.PNG" />
        </p>
        <p style="text-align: center;font-weight: bold;" align="center">Setting the License Manager Configuration Options Using 
 the LSERVOPTS Environment Variable</p>
        <h2>Caution While Setting Environment Variables In Case of Solaris and   Macintosh!</h2>
        <p>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.</p>
        <p>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.</p>
        <p>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.</p>
        <p style="font-weight: bold;">See Also:</p>
        <ul>
            <li class="Bullets_1" value="1"><a href="Configuring_ License_Manager.htm"><span style="font-weight: normal;">Ways to Set the License Manager Options</span></a>
            </li>
            <li class="Bullets_1" value="2"><a href="License_Manager_LSERVOPTS.htm">License 
 Manager - LSERVOPTS Environment Variable</a>
            </li>
            <li class="Bullets_1" value="3"><a href="License_Manager_Specific_Variables.htm">License 
 Manager - Specific Environment Variables</a>
            </li>
        </ul>
        <p>&#160;</p>
        <script type="text/javascript" src="SkinSupport/MadCapBodyEnd.js">
        </script>
    </body>
</html>