Starting a License Server from the Command Line
There are several ways to start op_license_server, the process that is commonly referred to as the License Server; however it is typically started by the host operating system during system startup. Methods for starting the process manually are described in this section.
Note: See also Stopping the License Server from the Command Line for methods of stopping the license server.
When you invoke a licensed application (such as Riverbed analysis software), the application sends a request for a license to op_license_server. This license server examines the license file and, if a license is free, sends a reply granting the licensed application permission to run. If all licenses are in use, op_license_server sends a reply denying permission and the application notifies you.
The procedures contained in this section describe how to start a license server from the command line. Regardless of the method you use, you should note these considerations:
- The License Server process (
op_license_server) must have read/write permissions on the license file to work correctly. - If you installed Riverbed analysis software in standalone licensing mode, it will obtain licenses on its own. There is no need to start the license server in this case.
Note: Standalone licensing is not a typical use case and is not available for AppInternals.
Starting the License Server from Windows (Alternate Methods)
If you want the License Server to start automatically whenever the computer is rebooted, use the following procedure.
Procedure 31: Starting the License Server on Windows (Automatically)
- Install or reinstall the application.
- Select "Floating - serve licenses from this computer" as your licensing scheme.
- Complete the installation.
Starting the License Server on Linux (Alternate Methods)
There are two alternate ways to start the license server on Linux:
- Manually, from the command line
- Automatically, using auto-boot commands typically located in the
/etc/rcfile
Procedure 32: Starting the License Server on Linux (Manually)
-
Log into the host computer where
op_license_serveris installed. -
Navigate to the binary directory (
<bindir>) for your Riverbed analysis software release and architecture. -
Type the following command.
./op_license_server -license_port <port>
Note: If you do not know which port is available for
op_license_server, enter "port_a". If that port is unavailable, an error message will tell you which ports are available and you can re-enter the command with the correct port.
The following procedure applies to Riverbed analysis software only. Do not use this procedure for AppInternals.
Procedure 33: Starting the License Server on Linux (Automatically)
Note: Root permissions are usually required for this procedure.
-
Create the following file:
/etc/rc3.d/S999_opnet_lic_server. -
Insert the following auto-boot commands into the file you created:
# OPNET License Server echo 'starting OPNET License Server...' <bindir>/op_license_server -license_port <port> -
(Linux only) Copy the same script to /etc/rc5.d using the following command:
cp /etc/rc3.d/S999_opnet_lic_server /etc/rc5.d