Command reference / sys

DSPLICKEY

Display License Key Information

The Display License Key Information (DSPLICKEY) command can be used to show the software license key information from the license repository for products with keyed compliance. Products with "keyed compliance" require that you have a software license key from the software provider in order to change the usage limit or the expiration date of the license information. The license repository is used to store product license information for each unique product, license term, feature, and system. The repository can contain licenses for any system, and the product need not be installed. The information shown includes the processor group, the serial number, the software license key, the usage limit, the expiration date, and the vendor data. The Display License Key Information (DSPLICKEY) command also can be used to create an output file, which can be used as input to the Add License Key Information (ADDLICKEY) command or the Remove License Key Information (RMVLICKEY) command.

Allowed environments: *ALL. Positional parameters: 3.

Restrictions

Parameters

PRDID Product identifier

Specifies the 7-character identifier of the product for which software license key information is shown.

Type
*CHAR
Required
No
Default
*ALL
Length
7
Case
Uppercase

Suggested / special values: *ALL

*ALL
The software license key information for all product identifiers is shown.
generic*-product-identifier
Specify the generic identifier for the products to be shown. A generic product identifier is specified in the same manner as a generic name. A generic name is a character string of one or more characters followed by an asterisk (*); for example, ABC*. The asterisk substitutes for any valid characters. A generic name specifies all objects with names that begin with the generic prefix for which the user has authority. If an asterisk is not included with the generic (prefix) name, the system assumes it to be the complete object name.
product-identifier
Specify the seven-character identifier of the product.

LICTRM License term

Specifies the license term for which software license key information is shown.

Type
*CHAR
Required
No
Default
*ALL
Length
6
Case
Uppercase

Suggested / special values: *ALL

*ALL
The software license key information for all license terms found on the system is shown.
license-term
The license term can be passed as one of the following two formats: Specify the license term in Vx, VxRy, or VxRyMz format, where x or y can be a number from 0 through 9, and z can be a number 0 through 9 or a letter A through Z. Specify the license term in vv, vvrr, or vvrrmm format, where vv and rr can be a number from 00 through 35, and mm can be a number 00 through 09 or a letter 0A through 0Z. This format must be used if the version or release of the product is greater than 9.

FEATURE Feature

Specifies the feature of the product specified on the PRDID parameter for which the software license key information is shown.

Type
*CHAR
Required
No
Default
*ALL
Length
4
Case
Uppercase

Suggested / special values: *ALL

*ALL
The software license key information for all features of the product specified on the PRDID parameter is shown.
feature
Specify the number of the feature for which software license key information is shown.

SERIAL System serial number

Specify the serial number of the system for which software license key information is shown.

Type
*CHAR
Required
No
Default
*LOCAL
Length
10
Case
Uppercase

Suggested / special values: *LOCAL, *REMOTE, *ALL

*LOCAL
The software license key information for the local system is shown.
*REMOTE
The software license key information for all systems except the local system is shown.
*ALL
The software license key information for all systems is shown.
system-serial-number
Specify the serial number of the system for which software license key information is shown.

OUTPUT Output

Specifies whether the output from this command is displayed, printed, or directed to a database file.

Type
*CHAR
Required
No
Default
*
Length
11
Case
Uppercase

Allowed values: *, *PRINT, *LICKEYFILE

*
The output is shown on the display if requested by an interactive job, or printed with the job's spooled output if requested by a batch job.
*PRINT
The output is printed with the job's spooled output.
*LICKEYFILE
The software license key information is written to an output file.

LICKEYFILE License key file

Specifies the qualified name of the file where the software license key information is written. If this file does not exist, it is created using the file QSYS/QALZAKEY as a template. If this file exists it must be in the format of QSYS/QALZAKEY. The name of the license key file can be qualified by one of the following library values: The possible value is:

Type
*QUAL
Required
No
Case
Uppercase
*LIBL
All libraries in the library list for the current thread are searched until the first match is found.
*CURLIB
The current library for the thread is searched. If no library is specified as the current library for the thread, the QGPL library is searched.
library-name
Specify the name of the library to be searched.
license-key-file
Specify the name of the file to which the software license key information is written.
Qualified parts (object, then library; write LIBRARY/OBJECT)

File to receive output File to receive output

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB

LICKEYMBR License key member

Specifies the name of the database file member to which the output is written. The member is used or created, as follows: If the member exists, the system uses the second element of this parameter to determine whether the member is cleared before the new records are added. If the member does not exist and a member name is not specified, the system creates a member with the name of the output file specified on the LICKEYFILE parameter. If the member does not exist and a database file member name is specified, the system creates the member. The possible Member to Receive Output values are: The possible Operation to Perform on Member values are:

Type
*ELEM
Required
No
Case
Uppercase
*FIRST
The first member in the file receives the output.
member-to-receive-output
Specify the name of the member to receive the output.
*REPLACE
The system clears the existing member and adds the new records.
*ADD
The system adds the new records to the end of the existing records.
Elements in order

Member to receive output Member to receive output

Type
*NAME
Required
No
Default
*FIRST
Length
10
Case
Uppercase

Suggested / special values: *FIRST

Replace or add records Replace or add records

Type
*CHAR
Required
No
Default
*REPLACE
Length
8
Case
Uppercase

Allowed values: *REPLACE, *ADD

Examples

DSPLICKEY PRDID(*ALL) LICTRM(*ALL) FEATURE(*ALL) SERIAL(*REMOTE) OUTPUT(*LICKEYFILE) LICKEYFILE(KEYS) LICKEYMBR(REMOTE *REPLACE)

This command shows the software license key information for all of the products, features, and license terms for all of the systems except this system. The output is put in the member REMOTE of the file KEYS. Any existing records are replaced.

IBM command documentation

Generated from os/cl/catalog/DSPLICKEY.json and os/cl/help/DSPLICKEY.json.