You are here: About the Environment Variables > For the License Server > License Server - Infrequently Used Variables

License Server - Infrequently Used Variables

LSDEFAULTDIR - Set the Default Location of the License Server Files

The LSDEFAULTDIR environment variable can be used to set the default location of the license server files.

By default, the default directory is set to the directory the license server executable is located in. It’s recommended that the license server default directory not be changed.

For example, to tell the license server running on a Windows computer that the default directory for license server files is a directory named, C:\LS_FILES, use the following command:

SET LSDEFAULTDIR=C:\LS_FILES

LSERVRC - Set the License Code File

The LSERVRC environment variable can be used to set the name and location of the license code file.

By default, this file will be called lservc and reside in the license server default directory. It’s recommended that the default name and location are used for this file.

For example, to tell the license server that license code file is in the current directory but named, network.lic, set the variable as follows:

SET LSERVRC=NETWORK.LIC

To tell the license server running that license code file name and path is, C:\LS_FILES\NETWORK.LIC, set the variable as:

SET LSERVRC=C:\LS_FILES\NETWORK.LIC

LSERVRCCNF - Set the License Server Configuration File

The LSERVRCCNF environment variable can be used to set the name and location of the license server configuration file. This file is used in setting up user alerts and other options.

In most installations, the license server configuration file will be called lservrc.cnf and reside in the license server default directory. It’s recommended that the default name and location are used for this file.

If LSERVRCCNF is not used to specify the configuration file then the name and location of this file will be based upon the name and location of the license code file. In this case the configuration file will reside in the same directory as the license code file and have the same base name as the license code file but with the extension .cnf. For example, to tell the license server that configuration file is in the default directory but named, network.cnf:

SET LSERVRCCNF=NETWORK.CNF

LSRESERV - Set the License Server Reservation File

The LSRESERV environment variable can be used to set the name and location of the license server reservation file. This file is used by a system administrator to specify the computers and users are authorized to run a licensed application.  It’s recommended that the default name and location be used for this file. By default, this file will be called lsreserv and reside in the license server default directory.

For example, to tell the license server running on a Windows computer that the license code file is in the current directory but named, reserve, use the following command:

SET LSRESERV=RESERVE

LSPORT - Set the License Server TCP/IP Port

The license server port number is used by the TCP/IP protocol when transferring data between the license server and the client. Do not change the port number unless your vendor has instructed you to do so or conflicts are occurring between the license server and another network application that is using the Sentinel RMS Development Kit license server’s port number. (The license server default port number is 5093, and has been registered to SafeNet, Inc.) A symptom of such a conflict would be license server communication errors.

For example, to tell the license server running on a Windows computer to use the TCP/IP port number 5093, use the following command:

SET LSPORT=5093

LSERVLOG -  Get the Name of (Error) Log File

This environment variable can be used to get the name of the error log file.

LSERVSTA -  Set the Location of LSRVSTA File

This environment variable can be used to set the location of LSERVSTA log file. If you want to store this file at some other location, set "LSERVSTA" environment variable with a valid path.

ULSERVRC -  Set the Upgrade File

This environment variable can be used to set the name and location of the upgrade file. This file contains the upgrade license string. By default, RMS server searches for this file at the current server location.