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:

TierTypical useLicensing model
P05Small servers, 5-50 usersPer-processor + per-user
P10MidrangePer-processor + per-user
P20Larger midrangePer-processor only
P30EnterprisePer-processor only
P40High-end enterprisePer-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:

ParameterDescriptionExample
Product IDIdentifies the licensed program5722SS1
Licence termVersion, release, and modification levelV5R4M0
FeatureSpecific feature code within the product5050
SerialSystem serial number the key is tied to10-12345
Processor groupHardware tier, or *ANY for user-based licencesP10 or *ANY
Usage limitNumber of authorised concurrent users, or *NOMAX*NOMAX
Expiration dateKey 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:

  1. Sign on as QSECOFR
  2. Run ADDLICKEY for each keyed product, or use WRKLICINF and take Option 1 (Add) to enter keys through the menu interface
  3. Verify with DSPLICKEY that the grace period expiration shows *NONE for 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:

PrefixOS VersionEra
5769OS/400 V4Rx1999-2000
5722OS/400 V5Rx, i5/OS V5R3-V5R42001-2006
5761IBM i 6.12008
5770IBM i 7.1 through 7.52010-present

Some of the most common keyed products (using V5R4 / 5722 naming):

Product IDDescription
5722-SS1 feature 5050OS/400 base operating system
5722-SS1 feature 5051Processor entitlement
5722-SS1 option 12Host Servers
5722-SS1 option 18Media and Storage Extensions
5722-SS1 option 26Db2 Symmetric Multiprocessing
5722-SS1 option 33-35PSF/400 (various speeds)
5722-SS1 option 36HA Switchable Resources
5722-SS1 option 41HA Journal Performance
5722-TC1TCP/IP Connectivity Utilities
5722-QU1Query/400
5722-ST1Db2 Query Manager
5722-WDSWebSphere Development Studio
5722-XW1iSeries 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:

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