Retrieve Network Server Configuration (QFPRRNWS) API


Required Parameter Group:


Default Public Authority: *USE

Threadsafe: NO

The Retrieve Network Server Configuration (QFPRRNWS) API retrieves information about a network server configuration.


Authorities and Locks

Network Server Configuration
*USE
NWS Configuration Authority Attributes
Security administrator (*SECADM) special authorities are needed to retrieve password, CHAP secret or pre-shared key values.

Required Parameter Group

Receiver variable
OUTPUT; CHAR(*)

The variable that is to receive the network server configuration 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 format of the returned network server configuration information. You must use this format:

See Format of Network Server Configuration for a description of these formats.

Network server configuration name
INPUT; CHAR(10)

The name of the network server configuration to be retrieved.

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 Network Server Configuration

When the network server configuration type is unknown, specify FPRC0100 and the basic information (including network server configuration type) will be returned. When the network server configuration type is known, specify one of the other category-specific formats.

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


FPRC0100 Format

Use this format to find out the network server configuration type, plus some basic information about the network server configuration. Then you may use the returned network server configuration type to select one of the other (category-specific) formats to call the API again for detailed information about the network server configuration.



FPRC0200 Format

This format returns detailed information about a network server configuration of type *CNNSEC.



FPRC0300 Format

This format returns detailed information about a network server configuration of type *RMTSYS.



FPRC0400 Format

This format returns detailed information about a network server configuration of type *SRVPRC.



Field Descriptions

The field descriptions are always in alphabetical order.

Some of the fields in the various formats returned by this API are described in greater detail in the CRTNWSCFG command that was used to create the network server configuration object. They also are described in the online help for the CRTNWSCFG command. For these fields, the CL parameter keyword is specified in parentheses following the field name. The CL command name is specified in the field description.

In certain cases, numeric values are assigned by this API to represent character values for some of the returned fields. Where a numeric value is assigned, the numeric value and the equivalent character value are listed as an Exception in the following field descriptions.

Boot device ID - bus. The PCI device ID - bus number for the remote system's iSCSI adapter that has been configured to boot.

Exception:

Boot device ID - device. The PCI device ID - device number for the remote system's iSCSI adapter that has been configured to boot.

Exception:

Boot device ID - function. The PCI device ID - function number for the remote system's iSCSI adapter that has been configured to boot.

Exception:

Bytes available. The number of bytes of data available to be returned to the user.

Bytes returned. The number of bytes that were returned to the user. This is the lesser of the number of bytes available to be returned or the length of the receiver variable.

Configuration type (TYPE). The type of the network server configuration.

Date information retrieved. The date that the information was provided by the API. It is returned as 7 characters in the form CYYMMDD, as follows:

Delivery method (DELIVERY). The delivery method used to deploy security parameters.

Dynamic boot alternate client ID. Alternate client ID of the remote system's iSCSI adapter.

Exception:

Dynamic boot vendor ID. Vendor ID of the remote system's iSCSI adapter.

Exception:

Enable unicast (ENBUCAST). Enable unicast to discover the remote system.

Enclosure serial number. The enclosure's machine serial number.

Exception:

Enclosure type and model. The enclosure's manufacturer type and model number.

Exception:

Entry length of IP security rule. The entry length in bytes of each element in the list of security rules that are returned with this format. A value of zero is returned if the list is empty.

Entry length of remote interfaces. The entry length in bytes of each element in the list of remote interfaces that are returned with this format. A value of zero is returned if the list is empty.

Initialize service processor (INZSP). The method used to secure the remote system's service processor.

Initiator CHAP name. Specifies the Challenge Handshake Authentication Protocol (CHAP) name for the remote system's iSCSI initiator to authenticate the System i® iSCSI target.

Exception:

Initiator CHAP secret. Specifies the Challenge Handshake Authentication Protocol (CHAP) secret for the remote system's iSCSI initiator to authenticate the System i iSCSI target.

Exception:

IP security rule. The shared secret key used as the Internet Key Exchange (IKE) authentication protocol for the connection.

Exception:

IP security rule length. Length in bytes of IP security rule.

iSCSI qualified name. The iSCSI qualified name associated with the remote system's SCSI interface.

Exception:

iSCSI qualified name length. The length in bytes of the iSCSI qualified name.

LAN adapter address. The address used by the remote system's LAN interface. This field will be blank if a value has not been specified.

LAN gateway address. The IPv4 gateway address of the remote system's LAN interface. This field will be blank if a value has not been specified.

LAN internet address. The IPv4 address of the remote system's LAN interface. This field will be blank if a value has not been specified. An IPv4 address is expressed in standard dotted-decimal form www.xxx.yyy.zzz (for example, 130.99.128.1).

LAN internet address version. The version of the Internet Protocol (IP) that is currently in use with the remote system's LAN interface.

LAN subnet mask. The IPv4 subnet mask of the remote system's LAN interface. This field will be blank if a value has not been specified.

Network server configuration library. The library of the network server configuration.

Network server configuration name. The name of the network server configuration.

Number of IP security rules. The number of entries in the list of security rules returned with this format. A value of zero is returned if the list is empty.

Number of remote interfaces. The number of entries in the list of remote interfaces returned with this format. A value of zero is returned if the list is empty.

Offset to higher-level format. The offset in bytes to the network server configuration information.

Offset to list of IP security rules. The offset in bytes to the first element in the list of security rules that are returned with this format. A value of zero is returned if the list is empty.

Offset to list of remote interfaces. The offset in bytes to the first element in the list of remote interfaces that are returned with this format. A value of zero is returned if the list is empty.

Remote system serial number. The remote system's machine serial number.

Exception:

Remote system type and model. The remote system's manufacturer type and model number.

Exception:

Reserved. This is an ignored field.

SCSI adapter address. The address used by the remote system's SCSI interface. This field will be blank if a value has not been specified.

SCSI gateway address. The IPv4 gateway address of the remote system's SCSI interface. This field will be blank if a value has not been specified.

SCSI internet address. The IPv4 address of the remote system's SCSI interface. An IPv4 address is expressed in standard dotted-decimal form www.xxx.yyy.zzz (for example, 130.99.128.1). This field will be blank if a value has not been specified.

SCSI internet address version. The version of the Internet Protocol (IP) that is currently in use with the remote system's SCSI interface.

SCSI subnet mask. The IPv4 subnet mask of the remote system's SCSI interface. This field will be blank if a value has not been specified.

Service processor address version. The version of the Internet Protocol (IP) that is currently in use with the Remote SP Internet address.

Service processor configuration library. The library of the service processor network server configuration.

Service processor configuration name. The name of the service processor network server configuration.

Service processor internet address. The IPv4 address of the remote service processor. This field will be blank if a value has not been specified. An IPv4 address is expressed in standard dotted-decimal form www.xxx.yyy.zzz (for example, 130.99.128.1).

Service processor name (SPNAME). Specifies the remote system's service processor host name. The following special value also may be returned:

Exception:

Service processor name length. Length in bytes of the remote system's service processor host name.

Service processor password. Specifies the remote system's service processor password.

Exception:

Service processor user name. Specifies the remote system's service processor user name.

SP certificate identifier compare length. Specifies the length of the SP certificate compare value.

SP certificate identifier compare value. Specifies the certificates component compare value.

SP certificate identifier component. Specifies the component of the service processor's certificate that will be used to correlate the certificate to this Network Server Configuration for a manually initialized service processor as follows:

Target CHAP name. Specifies the Challenge Handshake Authentication Protocol (CHAP) name for the System i iSCSI target to authenticate the remote system's iSCSI initiator.

Exception:

Target CHAP secret. Specifies the Challenge Handshake Authentication Protocol (CHAP) secret for the System i iSCSI target to authenticate the remote system's initiator.

Exception:

Text description (TEXT). A brief description of the network server configuration.

Time information retrieved. The time that the information was provided by the API. It is returned as 6 characters in the form HHMMSS where:

Validation list library. Specifies the library of the validation list that is used to store authentication information.

Validation list name. Specifies the name of the validation list that is used to store authentication information. Authentication information associated with the network server configuration is used to securely interact with the remote system.


Error Messages



API introduced: V5R4

[ Back to top | Configuration APIs | APIs by category ]