getRemoteSystemNamesConnected()

The function returns the host names and System IDs of the connected systems in a distributed system.

Synopsis

int getRemoteSystemNamesConnected(dyn_string &names, dyn_uint &ids, string systemName = "");

Parameters

Parameter Description
names List of the connected system names (an empty string when the system name cannot be solved).
ids List of the system IDs of the connected systems.
systemName System name for which the connected systems should be returned. Optional parameter.

Return value

The function returns 0 if it was successfully executed. In a single system or in case of an error -1 is returned.

Description

The function returns the host names and System IDs of the connected systems in a distributed system. If you want to return the connected systems for a specified system, use the optional parameter "systemName" to specify the system name for which the connected systems should be returned.

Example

The example returns the host names as well as the system IDs of all connected systems.

main()
{
  dyn_string names;
  dyn_uint ids;
  int rc = getRemoteSystemNamesConnected(names, ids);
  DebugN("Function result:", rc, " ", names, " ", ids);
}

Assignment

Redundancy functions

Availability

UI