Skip to main content
100%

Create *LICKEYFILE from ADDLICKEY commands

✓ Published1🌍 Public
JJacob Berner
Last edited May 17, 2023
Created on Nov 18, 2020
Forked from Hello VizHub

This example shows a web form that converts a pasted series of IBM i ADDLICKEY commands into a *LICKEYFILE text file for download. It uses the DOM API to capture the textarea content, parse each command with regular expressions, validate parameters like PRDID, serial numbers, and license keys, then formats the output. The JavaScript generates the file client-side, with an alert confirming no data is sent to any server. The rendered HTML and CSS create a minimal interface with a textarea and a button.

AI-generated description

It is possible to add multiple license keys to an IBM i system, either through the HMC chlickey or an ADDLICKEY LICKEYINP(*LICKEYFILE) command, with a specially formatted text file. One way to generate this file is on IBM i with the DSPLICKEY OUTPUT(*LICKEYFILE) command, but this requires that you already have your keys in a license key repository. So what are you to do if you only have a bunch of ADDLICKEY LICKEYINP(*PROMPT) style commands?

This form will assist in building a *LICKEYFILE from a series of ADDLICKEY commands. Just paste the commands into the textarea, click the Save button, and save the generated file to your PC. From there, you can FTP it as text to your IBM i or HMC, ready to add to your partition(s).

No data is sent by this form to any other computer.

MIT Licensed

Similar vizzes