With the increasing use of containers and cloud environments, the demand for seamless, automated software installations and upgrades has grown. Manual authorization at the end of UniVerse and UniData installations or upgrades is no longer acceptable. To address this, Jonathan Smith, Rocket® Software Principal Technical Support Engineer, has developed the "Rocket U2 Auto License Python Script," which automates the license authorization step, complementing the 'silent' (aka no manual intervention) installation capabilities of UniVerse and UniData.
Jonathan designed the Rocket U2 Auto License Python Script to work across all current GA releases of UniVerse and UniData. It is also compatible with older versions of UniData from 7.3 onwards and UniVerse from 10.2 on Unix and 10.3.6 on Windows. The script operates whether UniVerse and UniData are running or not. Notably, the script supports UniData's feature of licensing without restarting.
The script retrieves current license details and versions, checks if the license is authorized, and, if not, contacts the RBC server to obtain an authorization code. Then, the script enters the code into UniVerse and UniData automatically. The authorization process adheres to the same rules and checks as manual authorization, ensuring accurate entitlement validation and logging the attempt in RBC. However, the script does not report under-licensed or non-utilized components, generally referred to as the ‘600’ notes you would see if licensing from the RBC webpage.
Prerequisites
- Python Requests Module: The script requires the 'requests' module to communicate with the RBC server. Install it using ‘pip install requests’.
- Administrator Privileges:Â Administrator rights are necessary to run the script. Please note, if UniVerse or UniData is already authorized the script will not attempt another authorization.
Environment Variables:
UniData:Â The script relies upon the setting of the UDTBIN environment variable to run the licensing commands from the correct location. You should set this environment variable before using the script. On Windows if UDTBIN has not been set, the Windows registry will be used to determine the location of UDTBIN.
UniVerse:Â The script relies upon the setting of the UVHOME environment variable to run the licensing commands from the correct location. You should set this environment variable before using the script. On Windows if UVHOME has not been set, the Windows registry will be used to determine the location of UVHOME. On Unix, the script will check the /.uvhome file for the location.
By automating the licensing process, the Rocket U2 Auto License Python Script streamlines installations and upgrades, reducing manual intervention and improving efficiency across internal and external teams using UniVerse and UniData.
For more information, please log into the Rocket Community Portal (RCP) and visit https://my.rocketsoftware.com/RocketCommunity/s/article/How-to-Automatically-Licence-Authorise-UniVerse-and-UniData. You’ll find the link to download the Python script on the same page as the knowledge base article; look on the right side of the page under the blue ‘Related files’ banner.