Quantcast
Channel: Gemalto Sentinel Customer Discussions
Viewing all articles
Browse latest Browse all 1619

When Implementing the Licensing API How to Identify that a VM has been copied to another Host.

$
0
0
Hello,

I'm currently working with the Licensing API (Java) and need help trying to figure out how to identify if a Virtual Machine has been copied to a new Host hardware.

After a successful login to the HASP class I call the .getInfo() method using this scope xml:
  1. <haspscope>
  2.   <license_manager hostname="localhost" />
  3. </haspscope>


I and I use the with this xml for format:

  1. <haspformat root="hasp_info">
  2.    <feature>
  3.       <attribute name="id" />
  4.       <attribute name="locked" />
  5.       <attribute name="expired" />
  6.       <attribute name="disabled" />
  7.       <attribute name="usable" />
  8.       <attribute name="vmenabled" />
  9.   </feature>
  10. </haspformat>
I receive back as an answer:
  1. <hasp_info>
  2.   <feature id="0" locked="true" expired="false" disabled="false" usable="true" vmenabled="true" />
  3.   <feature id="12" locked="true" expired="false" disabled="false" usable="true" vmenabled="true" />
  4. </hasp_info>

This result is returned regardless if I run the application on the original VM or when I copy the VM to another host and run it there.

I must be able to identify that the host computer has changed, and I need to know the proper method to identify this change.


Viewing all articles
Browse latest Browse all 1619

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>