High Availability Scope and Format XML Tags
To interact with the high-availability quorum through the Sentinel Licensing API, you must use specific XML scope and format strings. This section specifies the XML structures for fingerprint collection, C2V generation, and product property queries.
This topic describes the XML structures used for the following high-availability operations:
>XML Scope for High-Availability Fingerprinting (haspscope)
>XML Format for High-Availability Fingerprinting (haspformat)
>High-Availability Fingerprint XML Response Schema
>XML Scope for High-Availability C2V Generation (haspscope)
>XML Query Scope and Format for High-Availability Product Properties
>Returned High-Availability Information XML Response (hasp_info)
XML Scope for High-Availability Fingerprinting (haspscope)
To collect the high-availability fingerprint XML from the three participating License Managers, you must define an XML scope string containing exactly three license_manager elements. You must specify each target License Manager in a separate <license_manager> element, using either of the following attributes:
>hostname: The resolvable network hostname or FQDN of each participating License Manager.
<?xml version="1.0" encoding="UTF-8" ?>
<haspscope>
<license_manager hostname="lm-server-01" />
<license_manager hostname="lm-server-02" />
<license_manager hostname="lm-server-03" />
</haspscope>
>ip: The IP address of each participating License Manager.
<?xml version="1.0" encoding="UTF-8" ?>
<haspscope>
<license_manager ip="192.168.0.11" />
<license_manager ip="192.168.0.12" />
<license_manager ip="192.168.0.13" />
</haspscope>
XML Format for High-Availability Fingerprinting (haspformat)
To instruct the Licensing API to generate the high-availability fingerprint, specify the format parameter using either the XML definition or the predefined format alias string:
>XML Definition:
<haspformat format="host_ha_fingerprint"/>
>Format Alias String: Pass host_ha_fingerprint directly as the format string parameter in the hasp_get_info() function call.
High-Availability Fingerprint XML Response Schema
When the hasp_get_info() function executes successfully with the above scope and format, the function returns a status of HASP_STATUS_OK (0) and populates the output buffer with the high-availability fingerprint XML document:
<?xml version="1.0" encoding="UTF-8" ?>
<hasp_info>
<ha quorum="3">
<host_fingerprint type="SL-AdminMode" crc="3519936897" host_name="axxxxxxxxxxxx">XXXXX</host_fingerprint>
<host_fingerprint type="SL-AdminMode" crc="2229936897" host_name="bxxxxxxxxxxxx">YYYYYY</host_fingerprint>
<host_fingerprint type="SL-AdminMode" crc="aa19936897" host_name="cxxxxxxxxxxxxx">ZZZZZZ</host_fingerprint>
</ha>
</hasp_info>
This example illustrates the XML structure only. Use the XML returned by the API without making any changes to generate the license.
XML Scope for High-Availability C2V Generation (haspscope)
To generate a C2V file for a high-availability Sentinel protection key using hasp_get_info(), specify the network addresses or hostnames of all three participating License Managers and the Sentinel protection key ID in haspscope:
<?xml version="1.0" encoding="UTF-8" ?>
<haspscope>
<license_manager ip="192.168.0.11" />
<license_manager ip="192.168.0.12" />
<license_manager ip="192.168.0.13" />
<hasp id="123456789123456789" />
</haspscope>
For the haspformat parameter, pass the standard HASP_UPDATEINFO format alias or <haspformat root="updateinfo"/>. For more information, see Hasp.UpdateInfo (Create
C2V) XML Tags.
XML Query Scope and Format for High-Availability Product Properties
To query the high-availability properties of a product, call hasp_get_info() by specifying the
target product in haspscope and requesting the high-availability elements in haspformat:
>XML Scope (haspscope):
<?xml version="1.0" encoding="UTF-8" ?>
<haspscope>
<product id="9000" />
</haspscope>
>XML Format (haspformat):
<?xml version="1.0" encoding="UTF-8" ?>
<haspformat>
<product>
<element name="id" />
<element name="name" />
<element name="ha_quorum" />
<element name="ha_group_id" />
<element name="ha_lm_group" />
</product>
</haspformat>
Returned High-Availability Information XML Response (hasp_info)
When the hasp_get_info() function executes successfully, the output buffer contains an XML document rooted at <hasp_info>. For a high-availability product, the returned XML contains the following properties:
<?xml version="1.0" encoding="UTF-8" ?>
<hasp_info>
<product>
<id>9000</id>
<name>Sample Product 123</name>
<ha_quorum>3</ha_quorum>
<ha_group_id>9dbfffff-25a7-4b9f-93d5-ba2c9f6e7c08</ha_group_id>
<ha_lm_group>2cbELptVRt/P3yaFLAE5BOi3B7J0lqImiSz9nA0A,FMix+yWt77TYohtQEzTaRiIxN2EjNeGQ+BV1HnoA,PwOsLHbmq6TFLBd0W2uSe6ceQaA01TGnaMvZ8OAA</ha_lm_group>
</product>
</hasp_info>
>id: The unique numeric identifier of the product.
>name: The commercial name assigned to the product.
>ha_quorum: The configured quorum count (returns 3 for high-availability products; omitted for standard non-HA products).
>ha_group_id: The unique Group ID (UUID) stored on the Sentinel protection key that binds the three participating License Managers into the high-availability quorum.
>ha_lm_group: A comma-separated list of participating License Manager identifiers (Base64-encoded).
For standard products with high availability disabled, high-availability elements (ha_quorum, ha_group_id, and ha_lm_group) are omitted from the response:
<?xml version="1.0" encoding="UTF-8" ?>
<hasp_info>
<product>
<id>805</id>
<name>p805</name>
</product>
</hasp_info>
