This article explains what to do if the message "The license key entered is not valid" occurs when installing a license key using mflmcmd.
Problem:
When trying to install a license key using mflmcmd, we received the error message "The license key entered is not valid" even though the final two characters with the plus sign were successfully entered (in this case, the "AI "), and even though the serial number and license key were valid. Why is this?
Resolution:
This error is caused by running ./lmfdbrecover from within $COBDIR/lmf and then starting the License Manager with ./mflmman within $COBDIR/lmf. Subsequently, ./mflmcmd will not accept licenses.
The lmf subdirectory of COBDIR is not meant to be an official location for the License Manager. It exists only as a set of files, like a template, to be copied to an official location. The script lmfinstall in $COBDIR/lmf is supposed to perform these copies. You could get into trouble when trying to use $COBDIR/lmf as an official location.
The solution to this is to stop the License Manager using ./lmfgetpv k, then run ./lmfinstall, choosing a location for the official LMF, and installing in that location. Then change directory to that location and start the License Manager with ./mflmman, and install the keys with ./mflmadm. The keys should be accepted and the message "The license key entered is not valid" should no longer appear.
#ServerExpress
#Licensing
#COBOL



