Open the Table of Contents

You are here: About the Sentinel RMS Utilities > lslic

# lslic - Installs/Deletes a License Code

The lslic utility installs or deletes a license. lslic can be run on supported version of Windows and UNIX. It can be run from the operating system command prompt by an administrative user on a stand-alone, client, or License Manager computer. It works for both stand-alone and network computers. Use lslic in the following format:

lslic [option]

lslic Options

Option | Description
--- | ---
Add to License Manager only - Change is temporary until the License Manager is restarted. |
-a license-code | Adds a license code to the contacted License Manager without updating the license file.
-f filename | Adds all the license codes in the supplied file to the contacted License Manager without updating the license file (lservrc).
Add to License Manager and normal/redundant license file - Change is permanent |
-A license-code | Adds a license code to the License Manager’s license file (lservrc) and communicates the change to the contacted License Manager.
-F filename | Adds all the license codes in the supplied file to the License Manager’s license file (lservrc) and communicates the new information to the contacted License Manager.
Remove license from License Manager only - Temporary change |
-df feature_name feature_version [capacity | NOLIMIT] | License(s) with specified feature name and version are deleted from the License Manager memory.
-removeall | Removes all license codes (redundant and non-redundant) from the License Manager but does not delete them form the license file.
-removeallcap [feature version] | Removes capacity for specific license from the License Manager but does not delete them from the license file.
Remove license from License Manager and license file - Change is permanent |
-DL feature-name feature version license hash [capacity | NOLIMIT] | License with specified feature_name, version and license hash is deleted from the License Manager memory and file. ### Tip The license hash can be obtained using the lsmon utility.
Set trial license precedence |
-p feature-name feature version license hash precedence | Sets the precedence of a trial license. The license hash can be obtained from WlmAdmin or lsmon.
To pause the lslic utility |
-p | Pauses the utility and then shows the output in another console. Only for Windows Vista, 7, and Server 2008.

Tips on Using lslic

- If you do not include necessary information on the command line, lslic will ask for the missing information.
- You can use the LSFORCEHOST environment variable to add/delete licenses to a particular License Manager.
- When you enter a license code, if you are entering an encrypted license code, type only the characters before the # symbol.
- lslic can add or delete licenses without stopping and restarting the License Manager, but the change is only temporary unless you use an option that makes the change to the license file.
- To use lslic to modify a license file or redundant license file for a License Manager on a remote computer, use the LSFORCEHOST environment variable to point your computer to the computer containing that License Manager. For information on adding redundant license codes, see Using lslic to Add Redundant Licenses.
- If you are using lslic to modify a license file on a remote computer, you must have write-access to that computer.
- License deletion is not supported for the following licenses:
  - Checked out commuter license tokens residing on the local computers
  - Grace licenses being used on the non-networked computers
  - Licenses in the redundant license files (lservrlf)