Retrieve Remote Network Server Status (QITDRSTS) API


  Required Parameter Group:


 Default Public Authority: *USE

 Threadsafe: No

Retrieve Remote Network Server Status (QITDRSTS) API retrieves status information about a remote network server.


Authorities and Locks

Remote System Network Server Configuration Authority
*USE

Required Parameter Group

Receiver variable
OUTPUT; CHAR(*)

The variable that is to receive the remote network server status information.

Length of receiver variable
INPUT; BINARY(4)

The length of the area that is referred to by the receiver variable parameter. If the amount of information to be returned is greater than this value, the information will be truncated to this length. The minimum length is 8 bytes.

Format name
INPUT; CHAR(8)

The content and format of the status information that is returned for the remote network server. The possible format name is:

See Format of Remote Network Server Status Information for a description of these formats.

Remote system network server configuration name
INPUT; CHAR(10)

The name of the remote system network server configuration to retrieve status for.

Timeout
INPUT; BINARY(4)

The number of seconds to allow the remote system to respond to the status request. Allowed range is 30-300 seconds

Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter.


Format of Remote Network Server Status Information

Specifying RSTS0100 will return the basic status information.

For detailed descriptions of the fields returned in these formats, see Field Descriptions.


RSTS0100 Format

Use this format to find out basic status information about the remote network server.



Field Descriptions

Bytes available. The length of all data available to return. All available data is returned if enough space is provided.

Bytes returned. The length of all data actually returned. If the data is truncated because the receiver variable was not sufficiently large to hold all the data available, this value will be less than the bytes available.

Remote network server status code. The status of the remote network server. The level of status that can be returned is dependent on the type of service processor. Some service processors only return power on (32)/power off (0) status while others return more granular information. Status codes include:


* Note: If the operating system or application code does not update the system state to 'In operating system', the system state will never change from 'Booting operating system' to 'In operating system' state.


Error Messages



API introduced: V5R4

[ Back to top | >Server Support APIs | APIs by category ]