Hi,
Hope you are doing good.
For the mentioned query, in case the VM is copied to another host then instead of feature the key will be disabled (as it will be cloned).
Therefore, you need to use the below XML format:
<haspformat root="hasp_info">
<hasp>
<element name="id" />
<element name="disabled" />
<feature>
<attribute name="id" />
<attribute name="locked" />
<attribute name="expired" />
<attribute name="disabled" />
<attribute name="usable" />
<attribute name="vmenabled" />
</feature>
</hasp>
</haspformat>
In the above format the first Tag (HASP) will give you the key information and in case the VM is copied then it will be disabled ( disabled="true")
While the second Tag ("Feature") will give you the feature information only.
Note: In case the key is disabled then all the features available inside the same will be disabled ( though it will not be reflected in the output).
Hope this answers the query.
Thanks,
SafeNet Support