Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Generate License Key (GENLICKEY) command generates a license key to enable users to access a product or a feature of a product. This key is specific to the product and system information entered in this command. The resulting key will be a combination of 18 characters and numbers, A-F and 0-9. To run this command, the product definition of the product you are generating the key for must exist on the system.
This command also adds the license information to the license repository. The keys are saved in the repository to keep a history of all the keys generated. You can display the repository to see what keys were generated for a specific product or system. To work with the license repository, you can use the DSPLICKEY, ADDLICKEY, and RMVLICKEY commands.
You can use the Add License Key Information (QLZAADDK) API or the Add Product License Information (QLZADDLI) API to add license information. For more specific details about these APIs, see the API topic in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
Restriction: This command is shipped with public *EXCLUDE authority.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
PRDID | Product ID | Character value | Required, Positional 1 |
LICTRM | License term | Character value | Required, Positional 2 |
FEATURE | Feature | Character value | Required, Positional 3 |
VNDPWD | Vendor password | Simple name, *NONE | Required, Positional 4 |
SERIAL | System serial number | Character value | Required, Positional 5 |
PRCGRP | Processor Group | Character value, *ANY | Optional, Positional 6 |
EXPDATE | Expiration date | Date, *NONE | Optional |
USGLMT | Usage limit | 0-999999, 1, *NOMAX | Optional |
VNDDTA | Vendor data | Character value, *NONE | Optional |
OUTPUT | Output | *, *PRINT, *LICKEYFILE | Optional |
LICKEYFILE | License key file | Qualified object name | Optional |
Qualifier 1: License key file | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
LICKEYMBR | License key member | Element list | Optional |
Element 1: Member | Name, *FIRST | ||
Element 2: Replace or add records | *ADD, *REPLACE |
Top |
Specifies the 7-character identifier (ID) of the product for which the license key is to be generated.
Top |
Specifies the license term for which license key is to be generated.
The possible values are:
where values for x and y range from 0 through 9, and values for z range from 0 through 9 and from A through Z. A license term of Vx means the authorized usage limit is valid for the entire version of the product or feature. A license term of VxRy means the authorized usage limit is valid for the entire release of the product or feature. A license term of VxRyMz means the authorized usage limit is valid only for a modification of the product.
Top |
Specifies the feature of the product specified on the PRDID parameter for which the license key is to be generated.
The possible values are:
Top |
Specifies the software vendor's password. This password will be encrypted and stored with the product. It is used to validate the generate license key request and must be the same password you use on the Add Product License Information (ADDPRDLICI) command.
The possible values are:
Top |
Specify the system serial number of the system the license key is being generated for.
The possible values are:
Top |
Specifies the processor group of the system the license key is being generated for.
The possible values are:
Top |
Specifies the date the product license expires. After this date, users over the default usage limit will not be allowed to access the product or feature. A new license key must be obtained from the software vendor to allow further use of the product.
The possible values are:
Top |
Specifies the maximum number of users (usage limit) for the product or feature for which the license key is being generated. For concurrent usage, specifies the maximum number of jobs allowed to access the product or feature at the same time. For registered usage, this is the maximum number of license users that can be registered to use this product or feature.
The possible values are:
Top |
Specifies an 8-character data field to be defined and used by the vendor.
The possible values are:
Top |
Specifies whether the license key that is generated is displayed in a completion message, printed in a spooled file, or saved in a file.
The possible values are:
Top |
Specifies the file in which the license key information is saved. If this file does not exist, the system creates it. If it does exist, it must be in the format of QSYS/QALZAKEY.
The possible values are:
The possible file name value is:
Top |
Specifies which member the license key information is saved into and how the information is saved.
Note:
You can also use the Generate License Key (QLZAGENK) API to create the license key information. See the API topic in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter for more information about this API.
The possible member to receive output values are:
The option to perform on member values are:
Top |
GENLICKEY PRDID(2MYPROD) LICTRM(V5R2M0) FEATURE(5001) VNDPWD(PRODUCTPWD) EXPDATE(*NONE) SERIAL(1234567) PRCGRP(P30) USGLMT(25)
This command generates a license key for product 2MYPROD, license term V5R2M0 and feature 5001. The key allows 25 users to be authorized to use this product and there is no expiration date. The key allows the product to only be used on a system with a serial number of 1234567 and a processor group of 01 and a processor group of P30 or less.
Top |
None
Top |