Welcome to the new home of PowerWire – PowerWire.uk

Update your bookmarks now!

Informing the IBM Community

a key to success

A Key to Success

5
(2)

With the recent announcement of IBM i regarding the subscription model. There are a lot of questions if you wish to understand the complete impact of moving away from non-expiring licenses.

Luckily enough IBM acted on these questions and did create an excellent IBM i Subscription Transformation FAQ document to help you deal with the IBM i Subscription.

You do not have to be Einstein to expect some more IBM license key handling and monitoring. For checking expiring licenses IBM have created a special SQL service, which is available for everyone using IBM i Access Client solutions (ACS).

When starting the Run SQL Script (RSS) part of ACS, clicking the button Insert from Examples… and entering the string license will bring you to the screen shown below:


There are several examples available and the one selected does all the magic for you. It even allows you to add a job to the traditional Job Scheduler.

If you prefer to add this job to the Advanced Job Scheduler (AJS), you can better execute the command given in the script, and convert that job into an AJS scheduled job.

This can be done by using menu JSSYSCTL and option 7=“Work with Operating System job schedule entries” and option 8=”Add to Advanced Job Scheduler”.

The example Product – Expiring license info shows you the use of the SQL service QSYS2.LICENSE_INFO in a simple way. I prefer the second SQL statement as I like the check if the product is installed:

SQL

SELECT * FROM QSYS2.LICENSE_INFO 
  WHERE INSTALLED = 'YES' AND 
  LICENSE_EXPIRATION <= CURRENT DATE + 50 DAYS;
SQL

If you have an independent Software Vendor (ISV) application installed which is defined as a license product, those will be checked also.

Recently the Navigator for i was enhanced also, resulting in the image below.

When clicking the icon with the popup balloon you are brought to Configuration and Service => License Information webpage:

license info

As 4HA0000 is not an IBM i Licence Program Product (LPP), to get a new license key you must contact your ISV.

If an IBM i LPP is about to expire, it is time to ask your Business Partner (BP) for a renewal.
Once you do so, the newly generated key will be available on IBM’s Entitled Software Support website.

ibm website

Once you have selected IBM i Software Keys and picked the correct hardware type serial (Power System serial number) and IBM i OS Keys level, the keys are shown.

At the bottom of that page, you will find several buttons with different options, all to enable entering the license keys.

When working with dates we all have experienced the issue called date format.

Currently the license key expiration date is in format ISO 8601 as can be seen below:

It is there where the trouble starts, as this format does not match my System Values:

Over the years I have learned that, for me, the quickest way to get these keys installed on several systems is to do the following:

  1. Select the Download key(s) (<10KB)

  2. This will generate <serial number>.doc to be opened with your editor of choice

  3. After the document is opened select all text and copy/paste the content in RSS of ACS

  4. In RSS use the Search menu and select Replace

  5. Enter the following:

    rss
  6. Press the Replace All button

  7. Next, select the date shown and replace as shown below:

    ibmi
  8. Again, press the Replace All button

  9. Add the following string at the very top of the SQL script: CL:CHGJOB DATFMT(*YMD) DATSEP(‘-‘)

  10. Finally you are ready to run the script, for this you need to press the button Run All:

rss

Resulting in:

sql

Over the years when working with license keys including an expiration date, the above method has prevented me from having to cut and paste every single command. It also allowed me to use RSS and connect to all LPARS on the same Power System entering all license keys in one go.

Back in the days, our IT business used to be called automation so, if there are better ways to enter license keys, please share your knowledge by leaving behind a comment on this article below.

I would really appreciate it if you did, because in our business we never stop learning, do we?

How useful was this post?

Click on a star to rate it!

Average rating 5 / 5. Vote count: 2

No votes so far! Be the first to rate this post.


Comments

One response to “A Key to Success”

  1. Great way to add your licenses via RSS
    If you have multiple LPARs you can export the keys into a file
    DSPLICKEY OUTPUT(*LICKEYFILE)
    Transfer the Object in a Savefile to the target LPAR(s)
    Add licenses from this file
    ADDLICKEY LICKEYINP(*LICKEYFILE)

    To list all licenses I use
    SELECT INSTALLED,EXPIR_DATE AS EXPIRES,GRACE_PRD AS GRACE, LICPGM,LIC_TERM,RLS_LVL,FEATURE,PROC_GROUP AS PROC_GRP, CAST(LABEL AS VARCHAR(100) CCSID 37) AS DESCRIPTION FROM QSYS2.LICENSE_INFO

Leave a Reply

Your email address will not be published. Required fields are marked *