FLM (flmprg) options
The flmprg command line tool is used to install, upgrade, or delete Genero licenses. There are also options that apply specifically to Windows®, and options to provide various types of license information.
Syntax
flmprg {
-V |
-h |
--short-version
|
import-license
[
import-options ]
|
import-all-licenses
[
import-all-options ] |
[
options ]
}
- Display help or version information for the flmprg command.
- The general options of the flmprg command are described in
Table 1. There are
various options to manage licensing:
- Options to manage licenses, such as install and uninstall licenses, are described in Table 2.
- Options to manage users, such as check active users, are described in Table 3.
- Options to manage the service, such as stop and start it, are described in Table 4.
- Options to run commands from a batch file are described in Table 5. Options to use the batch console are described in Batch commands (flmprg).
- Options for use on Windows only, such as install and uninstall the service, are described in Table 6.
- Options for log rotation are described in Table 7.
- The
import-license
command is used to import a license from another product installation. There are import-options specific to this command, and these are described in Table 8 . - The
import-all-licenses
command is used to import all licenses from another FLM installation. There are import-all-options specific to this command, and these are described in Table 9.
Syntax 1: import-license command
flmprg import-license [
import-options]
- The import-license command imports a license from another product installation.
- import-options are described in Table 8.
Syntax 2: import-all-licenses command
flmprg import-all-licenses [
import-all-options]
- The import-all-licenses command imports all licenses from another FLM installation. For example, import licenses from a previous FLM installation.
- import-all-options are described in Table 9.
flmprg Options
Option | Description |
---|---|
-h or --help |
Display help for the license manager tool. |
-V or --version |
Shows license manager version information. |
--short-version |
Displays short version information about the license
manager.
|
Option | Description | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
-L lnum
lkey
|
Installs a temporary license (requires license number and license key). If the
maintenance/subscription key is provided, it is installed. Note: Temporary
license You can install an existing license, for example, on a new server on a temporary basis
for 30 days. In that time, you validate the license with Four Js and install the Installation key
( |
||||||||||||||
--install-license-string
license-string
|
Installs a license or update an installed license using the provided license string. If
|
||||||||||||||
-l
|
Installs a license (requires license number and license key). To escape at any stage, type " |
||||||||||||||
-m lnum
option |
Installs the maintenance/subscription key for the specified
license, possible options are:
|
||||||||||||||
-k lnum
option |
Installs the installation key for license validation, possible
options are:
|
||||||||||||||
-d lnum
|
Deletes the specified license.
Important:
You cannot remotely add or remove licenses registered on Four Js License Manager (FLM) with a local license controller command, for example, fglWrt. |
||||||||||||||
-a option
|
Shows various license information, possible options are shown in the table.
|
||||||||||||||
--decode-license-string
license-string
|
Decodes a license string and write the license string information to the standard out. | ||||||||||||||
--encode-license-string |
Encodes license information into a license string that is written to the standard out. See Encode a license string. |
Option | Description |
---|---|
-u or --verify-users
|
Checks active users working on a given host.
|
-i or --clear-sessions
|
Clears the list of registered user sessions for a given license.
Warning:
All active users will be disconnected. Use |
-x or --kill-session
|
Kills all sessions owned by the specified host, if pid is provided, only the specified session is cleared. |
Option | Description |
---|---|
-r or --service-start |
Runs the license server daemon. |
-s or --service-stop
|
Stops the license server daemon. |
--service-restart |
Restart the license server daemon - same as stopping and starting the service. |
-D or --no-detach |
Stops the flmprg tool from detaching from the terminal and becoming a daemon. |
--validate-configuration |
Validate the FLM configuration. If issues are found, they are displayed to the standard out. The process exit status is 0 if the configuration is valid or 1 if not valid. |
Option | Description |
---|---|
--batch |
Performs the specified action in batch mode. Here command can be an action to display information, manage licenses, and view active users, etc. Type help for instructions on its use and to display all
available commands: You can
write batch commands to a file and apply license configuration changes easily. For more information,
see Batch commands (flmprg) and Batch command file. |
--batch-console
action=command |
Opens flmprg in console mode for the batch commands.
{ "product": "flmprg", "version": "6.00.13", "wrtminver": "6.00.10", "build": "202301131121", "git-rev": "01e1199", "target": "w64v142", "status": 0, "status-msg": "Success." }The output is JSON formatted. You can enable / disable indentation on the output. The default is indented. To quit the console type exit . Type help for
instructions on its use. |
Option | Description |
---|---|
--service-install |
Installs the service and exits. |
--service-uninstall |
Uninstalls the service and exits. |
Option | Description |
---|---|
--log-rotate |
Force log rotation. For more information on log file rotation, go to Log file rotation |
Option | Description |
---|---|
-h or --help |
Display help for the command. |
--from
InstallationDir |
Specify the path to the product installation directory the license is to be moved from. |
--license lnum
|
Specify the license number of the license to move if
For more details, go to Import licenses from another installation (flmprg) |
Option | Description |
---|---|
-h or --help |
Display help for the command. |
--from
InstallationDir |
Specify the path to the FLM installation directory that licenses are to be moved from. For example: flmprg import-all-licenses --from /opt/fourjs/old_flm For more details, go to Import licenses from another installation (flmprg) |
Usage
The flmprg is the command line tool you use to administer the FLM:
- Use the flmprg -a up command to check if the server is accessible.
- Use the flmprg -l command to install licenses.
flmprg -L # install a temporary license
flmprg -l # install a license
flmprg -k # install an installation key
flmprg -m # install a maintenance/subscription key
flmprg -d # delete a license
flmprg --install-license-string
- If the commands above are run with the
--batch
option, the UAC prompt is raised too. For more information, see Batch commands (flmprg). flmprg import-license
Commands will fail if you cancel the prompt and run without administrator privileges. If you are an administrator, or have administrator privileges, you can validate the UAC by clicking Yes. Once you have validated the UAC, an elevated command terminal is opened where you can complete the action.
FLM_BYPASS_UAC=1
. Be aware that with the UAC prompt disabled, you will need to
open a terminal with "Run as Administrator" to run commands that need
administrator privileges.