Obtaining the Redundant License Manager Pool Information

Declare Variables/Constants

String CONTACT_SERVER = "localhost";
Attribute attrAppContext = null;
ApplicationContext appContext = null;

Load Library

LicensingAPI lsapiInstance= new LicensingAPI();

API Calls

To obtain the redundant License Manager pool information, execute the APIs in the specified sequential order only:

>attrAppContext = new Attribute();

>attrAppContext.set(LicensingConstants.SNTL_ATTR_APPCONTEXT_CONTACT_SERVER, CONTACT_SERVER);

>appContext = new ApplicationContext(attrAppContext);

>String serverPoolInfo = appContext.getInfo(LicensingConstants.SNTL_QUERY_SCOPE_NONE, LicensingConstants. SNTL_QUERY_SERVERPOOL_INFO_VERSION("1.0")) ;

NOTE   If the appContext.getInfo call is successful, the serverPoolInfo string contains an XML-based output having the detailed information.

In the use case described above, you need to change the CONTACT_SERVER constant to the IP address or hostname of the system hosting the Sentinel RMS License Manager.
For example, String CONTACT_SERVER = "50.155.68.24";