(RPC Manager Library)
Description: This subroutine returns a one-dimensional array of the names or IPs of the servers that has been derived from the "-Servers" section of the service configuration file.
Returns: Array
Usage: Script
Format: \RPCManager\GetServersListed(ServiceName [, OptGUID])
Parameters: ServiceName i { text } { required } { no default }
Any text expression giving the name of the service for which to get the list of servers.
OptGUID { text } { optional } { default: (see note) }
Any optional parameter that provides the GUID for the application in which the service instance is located. The default is the application to which the caller belongs.
Comments: This subroutine is a member of the RPC Manager's Library, and must therefore be prefaced by \RPCManager\, as shown in the "Format" section. If the application you are developing is a script application, the subroutine call must be prefaced by System\RPCManager\, and the System variable must be declared in AppMod.src.
The return value from this subroutine is a list of the text names for all workstations listed as servers in the .INI file.
If the 16-byte binary format of the GUID is not known, the GetGUID function may be used to obtain it.
Example:
If 1 Main;
[
sList = \RPCManager\GetServersListed("EditLockoutManager");
]
See Also:
ConnectToMachine | DisconnectFromMachine | GetServer | GetStatus | IsClient | IsPotentialServer | IsPrimaryServer | Register | Send | SetRemoteValue
You may also refer to RPC Manager Service for a listing of Service Control Methods, RPC Methods, and Deprecated RPC Methods.