Introduction
If you have ever acquired a second-hand IBM AS/400, iSeries, or Power Systems machine, you have probably encountered one of the most frustrating aspects of these platforms: licence keys. Without them, your machine will lock itself after 70 days and refuse to IPL until you perform a complete reinstallation of the operating system.
I learned this the hard way on my own IBM iSeries 810 (9406-810). After months of work restoring the machine, the disk array was still too damaged to preserve the original installation. I had to reinstall the OS from scratch, which meant I needed both the original installation media and the licence keys. Finding the installation CDs took over a year. And without the keys, every fresh install was just a 70-day countdown to another lockout.
This article covers everything you need to know about how licence keys work on OS/400 and its successors, from the licensing model itself to the practical realities of dealing with keys on vintage hardware.
The licensing model
Tied to your hardware
OS/400 licence keys are not generic activation codes. Each key is computed from multiple pieces of information specific to your machine, but mainly:
- The system serial number (stored in system value
QSRLNBR) - The processor group of the machine
A licence key generated for one machine will not work on another. You cannot transfer keys between systems. If you replace your machine, you need new keys.
Processor groups and software tiers
IBM categorises its machines into processor groups (also called software tiers) based on processing power. These groups directly affect licensing in two ways: they determine the price of every keyed product, and they are baked into the licence key computation itself.
The current tiers are:
| Tier | Typical use | Licensing model |
|---|---|---|
| P05 | Small servers, 5-50 users | Per-processor + per-user |
| P10 | Midrange | Per-processor + per-user |
| P20 | Larger midrange | Per-processor only |
| P30 | Enterprise | Per-processor only |
| P40 | High-end enterprise | Per-processor only |
On P05 and P10 systems, licensing combines a processor entitlement with a user count limit. On P20 and above, licensing is purely processor-based with no per-user restriction.
Older machines like the 9406-810 or 9401-150 had their own processor group designations that mapped to the tier system of their era. The principle was the same: a more powerful machine meant higher licence costs.
Keyed vs. unkeyed licensed programs
IBM distributes OS/400 software on two separate media sets:
Standard set (unkeyed): This ships with every software order. It contains the base components needed to install and run the system: the System Licensed Internal Code (SLIC), online help, message files, and no-charge licensed programs. These do not require licence keys.
Keyed set: This ships alongside the standard set and contains the licensed products and program options that require a key to operate permanently. You can install these products freely, but they enter a 70-day grace period after installation. If you do not apply a valid licence key within those 70 days, the product is disabled.
Licence key structure
A licence key on OS/400 is an 18-character hexadecimal string, entered as three groups of six characters. For example:
4CEDE9 BEF5BC 627B01
Each key is associated with the following parameters:
| Parameter | Description | Example |
|---|---|---|
| Product ID | Identifies the licensed program | 5722SS1 |
| Licence term | Version, release, and modification level | V5R4M0 |
| Feature | Specific feature code within the product | 5050 |
| Serial | System serial number the key is tied to | 10-12345 |
| Processor group | Hardware tier, or *ANY for user-based licences | P10 or *ANY |
| Usage limit | Number of authorised concurrent users, or *NOMAX | *NOMAX |
| Expiration date | Key expiration, or *NONE for perpetual | *NONE |
The base operating system is always product ID 5722SS1 (for V5Rx) with feature code 5050. A typical OS/400 installation requires between 5 and 20 licence keys depending on the products and options installed.
Adding and displaying licence keys
Adding a licence key with ADDLICKEY
The ADDLICKEY command adds a licence key to the system’s licence repository. You need *ALLOBJ authority to run it (typically signed on as QSECOFR).
ADDLICKEY PRDID(5722SS1) LICTRM(V5R4M0) FEATURE(5050) SERIAL(*LOCAL)
PRCGRP(*ANY) LICKEY(2EA13D 10C6D1 DCA901) USGLMT(*NOMAX)
EXPDATE(*NONE) VNDDTA(*NONE)
The typical workflow after a fresh install is:
- Sign on as
QSECOFR - Run
ADDLICKEYfor each keyed product, or useWRKLICINFand take Option 1 (Add) to enter keys through the menu interface - Verify with
DSPLICKEYthat the grace period expiration shows*NONEfor each product
Displaying licence keys with DSPLICKEY
The DSPLICKEY command displays all licence key information currently in the repository. It shows the product ID, feature code, licence term, processor group, serial number, the key itself, usage limit, and expiration date.
DSPLICKEY can also create an output file (QSYS/QALZAKEY) that serves as input to ADDLICKEY. This is useful for backing up your licence keys or copying them between LPARs on the same system.
Working with licence information interactively
The WRKLICINF command provides a menu-driven interface for managing licences. It shows the compliance type of each installed product (keyed or unkeyed), the current usage, and the grace period status. From this screen you can add keys, display details, and check which products are approaching their grace period expiration.
The 70-day grace period
How it works
When you install a keyed licensed program, a 70-day grace period starts automatically. During this period, the software functions normally without a licence key. This is intended to give you time to obtain proper licensing from IBM.
Warning messages
As the grace period expiration approaches, the system sends warning messages to the QSYSOPR message queue:
CPI9E75 - Grace period expires in xx days on Product 57xxxxx Feature xxxx
These messages appear with increasing urgency as the deadline gets closer.
What happens on day 71
When the grace period expires, the consequences depend on which product has expired.
For the base OS (feature 5050): The system issues message CPF9E7C (“i5/OS grace period expired”) hourly to QSYSOPR. If the system is shut down or restarted, it will not complete IPL. The machine is effectively bricked until you either add the proper licence key or perform a complete reinstallation.
For other keyed products: The expired product is disabled. Users attempting to access it receive message CPF9E71 (“Grace period expired. Requesting user not added.”). The product becomes unusable, but the rest of the system continues to operate.
Recovery
If the base OS grace period has expired and the machine can no longer IPL, there is no way to recover without a full reinstallation. There is no back door, no emergency key, no DST override. You need the installation media and you need to start from scratch.
This is why licence keys are so critical on these machines. Losing them is not an inconvenience. It is a potential catastrophe.
Common licensed products
The product ID prefix changed across OS versions:
| Prefix | OS Version | Era |
|---|---|---|
5769 | OS/400 V4Rx | 1999-2000 |
5722 | OS/400 V5Rx, i5/OS V5R3-V5R4 | 2001-2006 |
5761 | IBM i 6.1 | 2008 |
5770 | IBM i 7.1 through 7.5 | 2010-present |
Some of the most common keyed products (using V5R4 / 5722 naming):
| Product ID | Description |
|---|---|
5722-SS1 feature 5050 | OS/400 base operating system |
5722-SS1 feature 5051 | Processor entitlement |
5722-SS1 option 12 | Host Servers |
5722-SS1 option 18 | Media and Storage Extensions |
5722-SS1 option 26 | Db2 Symmetric Multiprocessing |
5722-SS1 option 33-35 | PSF/400 (various speeds) |
5722-SS1 option 36 | HA Switchable Resources |
5722-SS1 option 41 | HA Journal Performance |
5722-TC1 | TCP/IP Connectivity Utilities |
5722-QU1 | Query/400 |
5722-ST1 | Db2 Query Manager |
5722-WDS | WebSphere Development Studio |
5722-XW1 | iSeries Access Family |
The fundamental licensing mechanism (18-character hex key tied to serial number and processor group, 70-day grace period, keyed vs. unkeyed sets) has remained consistent from V4 through the current IBM i 7.5. What changed across versions was mainly the product ID numbering scheme and the branding.
How licence keys were originally distributed
When a company purchased an AS/400 or iSeries from IBM, the licence keys were provided on a printed paper sheet shipped with the machine or delivered separately after purchase. The keys were not on the installation CDs. The CDs contained the software, the paper contained the keys. Lose the paper, lose the keys.
For additional products purchased later, IBM would provide keys through their Entitled Systems Support (ESS) website or via their support channels.
Buying second-hand machines: a warning
If you are considering buying a second-hand AS/400 or iSeries, check whether the machine comes with its licence keys. This is the single most important thing to verify before purchasing.
A machine sold without disks and without licence keys can only run for 70 days after each fresh installation before locking itself. You will be stuck in an endless cycle of reinstallations every 70 days, losing all your work and configuration each time.
There is no way to obtain licence keys from IBM for vintage machines that are out of support. The keys are tied to the serial number and cannot be regenerated without IBM’s cooperation. If the original keys are lost, they are gone.
Extracting licence keys from disk images
From a forensics perspective, it is possible to extract licence keys from raw disk images if the original disks are still readable. The keys are stored in specific binary structures on disk, and with the right tools and methodology, they can be recovered.
I documented this process in detail in a dedicated article, including the binary structure analysis and a tool I wrote to automate the extraction:
A technical guide to forensic techniques for retrieving lost or forgotten licence keys from IBM AS/400 systems.
On my 9406-810, the disk array was failing and I could not IPL the machine normally. Before attempting any repairs or reinstallation, I imaged all the working disks using a SCSI dump station. This turned out to be essential: when I eventually had to do a full reinstall, I was able to extract the original licence keys from those disk images rather than losing them forever.
References
- IBM i Software License Keys documentation
- ADDLICKEY command reference
- DSPLICKEY command reference
- Standard and Keyed Media Set master list
- IBM i Software Tiers
- Grace period expired message (CPF9E7C)
- Restoring an IBM iSeries 810 (9406-810) with disk array
- AS/400 Forensics: Retrieving your Licence Keys from disk images