lr.get_master_host_name
Returns the name of the Controller host.
C#
string lr.get_master_host_name();
VB.NET
Function lr.get_master_host_name() as String
| Informational Functions |
Arguments
| Name | Comments |
|---|---|
| N/A |
The lr.get_master_host_name function returns the name of the computer running the Controller .
Not applicable for products that do not run Vusers.
Return Values
The Controller name. On function failure, returns null.
Parameterization
Standard parameterization is not available for this function.
Example
The following example retrieves the master host name, checks its validity, and sends it to the output.
string masterhostname=lr.get_master_host_name();
if(masterhostname==null)
lr.output_message("Fail to get the master host name");
else
lr.output_message("Master Host Name = "+masterhostname);

