[Linux]

mqlicense (accept license after installation)

On Linux® (excluding IBM® MQ Appliance) use the mqlicense command to accept the IBM MQ license after installation.

Note: You must have the appropriate privileges to run this command on your system, typically root access on Linux.

The license agreement is displayed in a language appropriate to your environment and you are prompted to accept or decline the terms of the license.

If possible, mqlicense opens an X-window to display the license.

If you need the license to be presented as text in the current shell, which can be read by a screen reader, type the following command:
mqlicense -text_only 

Usage notes

Note that running this command, with the environment variable MQLICENSE=accept, has the same effect as specifying the -accept parameter.

Syntax

Read syntax diagramSkip visual syntax diagram mqlicense -accept-check_only-jre path_to_java-text_only

Required parameters

None

Optional parameters

-accept
Accept the IBM MQ license without it being displayed.
[MQ 9.4.0 Jun 2024]-check_only
Check whether the IBM MQ license has already been accepted without it being displayed.
-jre
Path to the Java executable used to display the license.
-text_only
Display a text-only version of the license, which can be read by a screen-reader.

Return codes

Table 1. Return code identifiers and descriptions
Return code Description
0 Successful completion.

You can accept or decline the result, depending upon what you chose.

10 A warning occurred
20 An error occurred