Previous Topic: RemoteTarget.getError MethodNext Topic: RemoteTarget.hasCompleted Method


RemoteTarget.getHostName Method

This method returns the host name or address that was specified when creating the RemoteTarget object.

This method has the following syntax:

getHostName()

The method returns a string with the hostname or address of the target node.

Example

Implicitly create a RemoteTarget object and retrieve the hostname:

aRT = run-remote "! ver" on "ascli1"
? aRT[0].getHostName()

See also:

RemoteTarget.RemoteTarget Constructor

run-remote Command--Execute a Script on Remote Systems (Funclet)