VLSaddServerToPool
Syntax
int VLSaddServerToPool (
char *server_name,
char *server_addr );
Argument | Description |
server_name |
Name of the License Manager to add to the pool. |
server_addr |
IP address of the License Manager. |
Description
Will send a request to add a new License Manager into the pool. This API will actually modify the License Manager redundant license file in order to add the given License Manager to the pool.
Returns
The status code LS_SUCCESS is returned if successful. Otherwise, it will return the following error codes:
Error Code |
Description |
VLS_CALLING_ERROR |
>server_name is NULL >server_address is NULL >Using standalone library. This function cannot be used with standalone library. |
LS_NO_SUCCESS |
Generic error indicating that the License Manager could not be added to the pool. |
VLS_NON_REDUNDANT_SRVR |
License Manager is non-redundant and therefore cannot support this redundancy-related operation. |
VLS_SERVER_ALREADY_ PRESENT |
Attempted to add a License Manager that is already in the pool. |
VLS_POOL_FULL |
Pool already has maximum number of License Managers. No more License Managers can be added. |
VLS_BAD_HOSTNAME |
hostName is not valid. |
VLS_NOT_AUTHORIZED |
Invalid user. |
VLS_SERVER_SYNC_IN_ PROGRESS |
License Manager synchronization in process. |
VLS_CONF_FILE_ERROR |
Error in configuration file. |
VLS_NO_SERVER_ RUNNING |
License Manager on specified host is not available for processing the license operation requests. |
VLS_HOST_UNKNOWN |
Invalid hostName is specified. |
VLS_BAD_SERVER_MESSAGE |
Message returned by the License Manager could not be understood. |
LS_NO_NETWORK |
Generic error indicating that the network is unavailable in servicing license operation. |
LS_NORESOURCES |
An error occurred in attempting to allocate memory needed by this function. |
For a complete list of the error codes, see Licensing Library Error and Result Codes.