Generating C2V Files and Fingerprint Files
When working with cloud licensing, you can use the AdminApi.adminGetmethod to generate a C2V file or a fingerprint file for the vendor-hosted cloud license server for:
>Retrieving a fingerprint of the machine.
>Retrieving the status of SL keys on the machine.
This functionality can be used:
> to generate a new SL key or update an existing SL key on the vendor's license server.
>to programmatically generate a client fingerprint without requiring the use of a vendor code.
The following format demonstrates how you perform these functions:
In sntl_admin_status_t SNTL_ADMIN_CALLCONV sntl_admin_get( sntl_admin_context_t * admin_context, const char * scope, const char * format, char ** info );
Use the <c2v_file> tag to return a c2v file with a format parameter :
<?xml version="1.0" encoding="UTF-8" ?> <admin> <hasp> <element name="c2v_file" /> </hasp> </admin>
Use the <fingerprint_file> tag to return a fingerprint with the format parameter :
<?xml version="1.0" encoding="UTF-8" ?> <admin> <license_manager> <element name="fingerprint_file" /> </license_manager> </admin>
To return an SL UserMode fingerprint, the vendor ID should be specified in the scope. Otherwise the function returns an SL AdminMode fingerprint.
To return a DEMOMA current state, the vendor ID should be specified in the scope. Otherwise the function returns current state with any vendor code. For example, to return a current state with the DEMOMA vendor code, set the scope as follows:
<haspscope> <vendor id="37515" /> </haspscope>