UnixPedia : HPUX / LINUX / SOLARIS: HPUX :Glance is no longer working after OM Agent 11 installed

Sunday, August 18, 2013

HPUX :Glance is no longer working after OM Agent 11 installed

Glance is no longer working after OM Agent 11 installed. When glance is run I get the following error:
ERROR : license error :The entity is not licensed.
These servers are running DC-OE glance they are licensed as part of the OS build.


# swlist | grep OE
HPUX11i-DC-OE B.11.31.1003 HP-UX Data Center Operating Environment


Cause
Starting from Operations Agent version 11 (AgentOne or OA11), GlancePlus is also part of the package. The installation of AgentOne, should automatically recognize that GlancePlus has been installed and if /var/opt/perf/gkey is found then it should set the license to permanent.


With the new OA11 licensing scheme, there is no need for gkey anymore. All we need is "oalicense -check GP" to go through to be able to launch Glance successfully.

Fix
First of all, Run the command "/opt/OV/bin/oalicense -get -all" and check if GlancePlus has a valid license.

For eg., on licensed system, with a permanent license for Glance.

# oalicense -get -all
LICENSE NAME TYPE ACTIVATION EXPIRY EXTN
------------------------------------------------------------------------------------------------------------
HP Operations OS Inst Adv SW LTU PERMANENT 10/Mar/2010 N/A N/A
HP Operations OS Instance Software LTU EVALUATION 10/Mar/2010 09/May/2010 0
HP Operations Real-Time UpG OS Instance Software LTU EVALUATION 10/Mar/2010 09/May/2010 0
HP Operations OS Instance Software LTU PERMANENT 10/Mar/2010 N/A N/A
HP Glance OS Instance LTU PERMANENT 11/Nov/2010 N/A N/A
HP Operations Real-Time UpG OS Instance Software LTU PERMANENT 17/Mar/2011 N/A N/A

It runs the command "/opt/OV/bin/oalicense -check GP" to determine if GlancePlus has a permanent license. If it fails, then you might see the error as mentioned.

To resolve the "ERROR : license error :The entity is not licensed." run the following command to apply the permanent license:


# oalicense -set -type PERMANENT "Glance Software LTU"


The output of oalicense -get -all is printed out by reading a file called, lic.dat located at /var/opt/OV/datafiles/sec/lic/ and the output of oalicense -check <ENTITY> is printed out by reading a cache file called, reslic.dat located at the same place as lic.dat.

If you find a permanent license indeed for GlancePlus from "oalicense -get -all" then you can delete the reslic.dat file and run the command, "oalicense -resolve", which will recreate the reslic.dat file. Now, run "oalicense -check GP" and check if the output is "Success", then you should be able to launch glance without any issues.

No comments:

Post a Comment