Retrieve Network Server Description (QDCRNWSD) API

  Required Parameter Group:


  Default Public Authority: *USE

  Threadsafe: Yes

The Retrieve Network Server Description (QDCRNWSD) API retrieves information about a network server description.


Authorities and Locks

Line Description Authority
*USE
Network Server Description Authority
*USE
Network Server Description Lock
*SHRRD

Required Parameter Group

Receiver variable
OUTPUT; CHAR(*)

The variable that is to receive the network server 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.

Format name
INPUT; CHAR(8)

The content and format of the information that is returned for each network server. The possible format names are:

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

Note: Formats NWSD0200, NWSD0300, NWSD0400, and NWSD0500 are no longer supported.

Network server name
INPUT; CHAR(10)

The name of the network server description 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 Information

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

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

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


NWSD0100 Format

Use this format to find out the network server category, plus some basic information about the network server. Then you may use the returned network server category to select one of the other (category-specific) formats to call the API again for detailed information about the network server description. This format also returns the number of lines that are currently attached to this network server.



NWSD0110 Format

Use this format to find out the network server category, server OS, plus some basic information about the network server. Then you may use the returned network server category to select one of the other (category-specific) formats to call the API again for detailed information about the network server description. This format also returns the number of lines that are currently attached to this network server.



NWSD0200 Format

This format returns detailed information about a network server of category *LANSERVER.

Note: Format NWSD0200 is no longer supported.



NWSD0300 Format

This format returns detailed information about a network server of category *NETWARE.

Note: Format NWSD0300 is no longer supported.



NWSD0400 Format

This format returns detailed information about a network server of category *BASE.

Note: Format NWSD0400 is no longer supported.



NWSD0500 Format

This format returns detailed information about a network server of category *AIX.

Note: Format NWSD0500 is no longer supported.



NWSD0600 Format

This format returns detailed information about a network server of category *IXSVR or *WINDOWSNT.



NWSD0700 Format

This format returns detailed information about a network server of category *GUEST.



NWSD0800 Format

This format returns detailed information about a network server of category *ISCSI.

Field Descriptions

Some of the fields in the various formats returned by this API are described in greater detail in the CRTNWSD command that was used to create the network server description object. They also are described in the online help for the CRTNWSD 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.

Access mode. The access mode specified when linking the storage space to the network server description. Access modes include:

Activation timer. Specifies the amount of time (in seconds) the system will wait for the connection to be established to the remote system's service processor. (See the ACTTMR parameter in the CRTNWSD command.)

AIX version. The version of AIX that is installed on the storage space linked to the network server.

Allowed device resource (ALWDEVRSC). The allowed device resource names that can be used from the system by the network server. (See the ALWDEVRSC parameter in the CRTNWSD command.)

Attached nonswitched line. The name of a line that is associated with this network server.

Auxiliary storage pool ID. The auxiliary storage pool (ASP) identifier used to hold the network storage space.

This field returns blanks when Network server connection type is *ISCSI. Possible values are:

Auxiliary storage pool ID full. The auxiliary storage pool (ASP) identifier used to hold the network storage space. Possible values are:

Auxiliary storage pool name. The name of the auxiliary storage pool (ASP) used to hold the network storage space. A value of *SYSBAS indicates the ASP is part of the system ASP (ASP number 1) or a basic ASP (ASP numbers 2-32).

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.

Cluster connection port. The name of the cluster connection port.

Cluster domain name. The domain name of the cluster.

Cluster internet address. The internet address of the cluster.

Cluster name. The name of the cluster.

Clustered server name. The name of the clustered network server.

Cluster subnet mask. The subnet mask being used with the cluster. The mask is in the form, nnn.nnn.nnn.nnn, where nnn is a decimal number that ranges from 0 through 255.

Clustered server text description. The brief description of the clustered network server.

Code page (CODEPAGE). The ASCII code page that represents the character set to be used by this network server. (See the CODEPAGE parameter in the CRTNWSD command.)

Code page for language version. Valid code page for a language version.

Communications message queue library name. The name of the communications message queue library to receive network server host adapter communications status messages.

Communications message queue name. The name of the message queue to receive network server host adapter communications status messages.(See the CMNMSGQ parameter in the CRTNWSD command.)

Configuration file library name. The name of the library that contains configuration data to be used in activating or further defining the server.

Configuration file name (CFGFILE). The name of the source file that contains configuration data to be used in activating or further defining the server. (See the CFGFILE parameter in the CRTNWSD command.)

Console buffer size. The maximum number of bytes to use for the AIX console message buffer.

Country or region code (CNTRYCODE). The country or region code that represents the character set to be used by this network server. The country or region code controls the format of dates.

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:

Default CCSID. The default coded character set identifier (CCSID) of AIX that is installed in the storage space linked to the network server. This information is updated when the network server is varied off or when the AIX update400 command is run.

Default IP security rule. The relative entry of the IP security rules (IPSECRULES) parameter defined in the NWS Configuration (NWSCFG) object of type *CNNSEC that is used as the default for all the remote ports security.

Exception:

(See the DFTSECRULE parameter in the CRTNWSD command.)

Default locale. The default locale of the network server. A locale is made up of the language, cultural data, and character sets used to identify a set of language conventions. This information is updated when the network server is varied off or when the AIX update400 command is run.

Default storage path. The default path that was specified on the network server description.

Exception:

(See the DFTSTGPTH parameter in the CRTNWSD command.)

Delete server users. Whether the system will delete user identities on the network server that were created by using the network server interfaces.

Disable user profiles(DSBUSRPRF). Specifies whether to disable the integrated servers user profiles when the corresponding IBM i user profiles are disabled. This field returns blanks when Server operating system is *ESX, *ESXE, *LINUX32 or *LINUX64. (See the DSBUSRPRF parameter in the CRTNWSD command.)

Domain role (DMNROLE). The domain controller role that is performed by this network server. This field returns blanks when Server operating system is *ESX, *ESXE, *LINUX32 or *LINUX64. (See the DMNROLE parameter in the CRTNWSD command.)

Drive letter. The drive that is associated with this storage space for the network server.

Drive sequence number. The sequencing number assigned to a network storage space in either the static storage area or the dynamic storage area. Since there are two distinct disk link arrays, it is possible for storage in the dynamic storage area to have the same drive sequence number as storage linked in the static storage area.

Entry length of attached nonswitched lines. The entry length in bytes of each element in the list of attached nonswitched lines returned with this format. A value of zero is returned if the list is empty.

Entry length of cluster configuration. The entry length in bytes of each element in the list of cluster configuration.

Entry length of clustered servers. The entry length in bytes of each element in the list of clustered servers.

Entry length of multi-path group. The entry length in bytes of each element in the list of multi-path group.

Entry length of storage paths. The entry length in bytes of each element in the list of storage paths.

Entry length of storage spaces. The entry length in bytes of each element in the list of storage spaces.

Entry length of valid code pages for a language version. The entry length in bytes of each element in the list of valid code pages for a language version returned with this format.

Entry length of virtual Ethernet paths. The entry length in bytes of each element in the list of virtual Ethernet paths.

Event log (EVTLOG). The event log messages that are received from the server.

This field returns blanks when Server operating system is *ESX, *ESXE, *LINUX32 or *LINUX64. This field contains the following values:

(See the EVTLOG parameter in the CRTNWSD command.)

Gateway address. The internet address of the gateway for the port.

Exception:

Group profile. The System i™ users who are authorized to log on to this network server.

Install source pool ID full (SVRSTGASP). The auxiliary storage pool (ASP) identifier used to hold the install source storage space. Possible values are:

(See the SVRSTGASP parameter in the CRTNWSD command.)

Install source storage ASP (SVRSTGASP). The auxiliary storage pool (ASP) identifier used to hold the install source storage space. Possible values are:

(See the SVRSTGASP parameter in the CRTNWSD command.)

Install source storage ASP name (STGASPDEV). The name of the auxiliary storage pool (ASP) used to hold the install source storage space. A value of *SYSBAS indicates the ASP is part of the system ASP (ASP number 1) or a basic ASP (ASP numbers 2-32). This field returns blanks when Server operating system is *ESX, *ESXE, or *AUX.

Install source storage size (SVRSTGSIZE). The size in megabytes of the drive that holds the files used to install the integrated server. A value of zero is returned if the storage space size is unknown, or when Server operating system is *ESX, *ESXE, or *AUX. (See the SVRSTGSIZE parameter in the CRTNWSD command.)

Install source storage type. The type of drive that holds the files used to install the server. This field returns blanks when Server operating system is *ESX or *ESXE. Possible storage types are:

Internet address. The internet address assigned to each port.

IPL parameters (IPLPARM). A string of characters that will be passed to the load image at IPL time. It consists of commands or configuration information for the guest operating system. This field is specified in UCS-2 (CCSID 13488). The following special value also may be returned:

(See the IPLPARM parameter in the CRTNWSD command.)

IPL source (IPLSRC). The source of the load image that the partition is started from. (See the IPLSRC parameter in the CRTNWSD command.)

IPL stream file (IPLSTMF). The path of the stream file containing the load image. This field is specified in UCS-2 (CCSID 13488). The following special value may also be returned:

(See the IPLSTMF parameter in the CRTNWSD command.)

IPX description. The name of the IPX description.

Language version (LNGVER). The language version of the network server product.

(See the LNGVER parameter in the CRTNWSD command.)

Length of event log. The length in bytes of each element in the list of event logs.

Length of allowed device resource. The length in bytes of each element in the list of allowed device resources.

Length of IPL parameters. The length, in Unicode characters, of the IPL parameter element.

Length of IPL stream file. The length, in Unicode characters, of the IPL stream file element.

Length of restricted device resource. The length in bytes of each element in the list of restricted device resources.

Length of serviceability options. The length, in Unicode characters, of the serviceability options element.

Length of TCP/IP name server entries. The length in bytes of each element in the list of TCP/IP name servers.

Length of TCP/IP port configuration entries. The length in bytes of each element in the list of TCP/IP port configuration entries.

Length of TCP/IP route entries. The length in bytes of each element in the list of TCP/IP route entries. A value of zero is returned if the list is empty.

Level identifier. The identifier assigned by the system to every storage spaces within a particular AIX volume group.

Line category. This value will be one of the following:

The category value is derived from the command that is used to create the line description.

Line name. The name of the line description.

Line text description. A brief description of the line.

Local IPX connection. Whether a connection is to be made to local IPX at the time that this network server is varied on.

Message queue library name. The name of the message queue library to receive server messages.

Message queue name (MSGQ). The name of the message queue to receive server messages. (See the MSGQ parameter in the CRTNWSD command.)

MTU for port. The maximum transmission unit (MTU) value specifies the maximum value in bytes that can be transmitted over the TCP/IP interface.

Multi path IQN. The iSCSI qualified name (IQN) associated with the multi path.

Multi path group number. The storage paths that represent the multi-path group. Possible values are:

(See the MLTPTHGRP parameter in the CRTNWSD command.)

NetBIOS description. The name of the NetBIOS description.

Network server connection type (TYPE). The types of network server descriptions. Possible values follow:

(See the TYPE parameter in the CRTNWSD command.)

Network server host adapter name. The name of the network server host adapter device associated with this network server description.

Network server name (NWSD). The name of the network server description. (See the NWSD parameter in the CRTNWSD command.)

Next hop. The internet address of the next system (gateway) on the route.

Number of allowed device resource entries. The number of elements in the list of allowed device resources.

Number of attached nonswitched lines. The number of elements in the list of attached nonswitched lines that are returned with this format. A value of zero is returned if the list is empty.

Number of cluster configurations. The number of elements in the list of cluster configuration.

Number of clustered servers. The number of elements in the list of clustered servers.

Number of event log entries. The number of elements in the list of event logs.

Number of multi-path group. The number of elements in the list of multi-path group.

Number of restricted device resource entries. The number of elements in the list of restricted device resources.

Number of storage paths. The number of elements in the list of storage paths.

Number of storage spaces. The number of elements in the list of storage spaces.

Number of TCP/IP name server entries. The number of elements in the list of TCP/IP name server entries.

Number of TCP/IP port configurations. The number of elements in the list of TCP/IP port configurations.

Number of TCP/IP route entries. The number of elements in the list of TCP/IP route entries. A value of zero is returned if the list is empty.

Number of valid code pages for a language version. The number of elements in the list of valid code pages for a language version.

Number of virtual Ethernet paths. The number of elements in the list of virtual Ethernet paths.

NWS configuration connection security library name. The name of the NWS configuration connection security library.

NWS configuration connection security name. The name for the NWS configuration connection security description.

NWS configuration remote library name. The name for the remote network server configuration description library.

NWS configuration remote name. The NWS configuration name for the remote network server configuration description.

Offset to attached nonswitched lines. The offset in bytes to the first element in the list of attached nonswitched lines that are 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 specific information.

Offset to IPL parameters. The offset in bytes to the IPL parameters element.

Offset to IPL stream file. The offset in bytes to the IPL stream file element.

Offset to list of allowed device resources. The offset in bytes to the first element in the list of allowed device resources.

Offset to list of cluster configuration. The offset in bytes to the first element in the list of cluster configuration.

Offset to list of clustered servers. The offset in bytes to the first element in the list of clustered servers.

Offset to list of event logs. The offset in bytes to the first element in the list of event logs.

Offset to list of multi-path group. The offset in bytes to the first element in the list of multi-path group.

Offset to list of restricted device resources. The offset in bytes to the first element in the list of restricted device resources.

Offset to list of storage paths. The offset in bytes to the first element in the list of storage paths.

Offset to list of TCP/IP name server entries. The offset in bytes to the first element in the list of TCP/IP name server entries.

Offset to list of TCP/IP port configurations. The offset in bytes to the first element in the list of TCP/IP port configurations.

Offset to list of TCP/IP route entries. The offset in bytes to the first element in the list of TCP/IP route entries. A value of zero is returned if the list is empty.

Offset to list of valid code pages for a language version. The offset in bytes to the first element in the list of valid code pages for a language version.

Offset to list of virtual Ethernet paths. The offset in bytes to the first element in the list of virtual Ethernet paths.

Offset to network storage spaces. The offset in bytes to the first element in the list of network storage spaces.

Offset to serviceability options. The offset in bytes to the serviceability options element.

Online at IPL (ONLINE). Whether or not the network server is varied on automatically when the system is turned on. (See the ONLINE parameter in the CRTNWSD command.)

OS version. Version of the operating system currently installed on the network server.

Path number. The relative path number used for the storage path.

Partition name (PARTITION). The name of the logical partition to be used by this network server. This field has been replaced by Partition name long. (See the PARTITION parameter in the CRTNWSD command.)

Partition name long (PARTITION). The name of the logical partition to be used by this network server. The name can be up to 48 characters in length. This field is specified in UCS-2 (CCSID 13488).(See the PARTITION parameter in the CRTNWSD command.) The following special value may also be returned:

Partition number (PTNNBR). The number of the logical partition to be used by this network server. (See the PTNNBR parameter in the CRTNWSD command.) Possible values are:

Physical volume name. The physical volume name of the storage space as it is defined on the network server. The physical volume name is the name that the AIX operating system assigns to a network server storage space when it is defined to the system.

Pool identifier (POOL). Specifies the shared storage pool this integrated server should use. (See the SHRPOOL parameter in the CRTNWSD command.)

Port number (PORTS). The port number on the network server to which a line is physically attached.

(See the PORTS parameter in the CRTNWSD command.)

Port number for virtual Ethernet (VRTETHPTH). The port the virtual Ethernet path will use.

(See the VRTETHPTH parameter in the CRTNWSD command.)

Power control (PWRCTL). Specifies whether the partition associated with the network server description will be powered down when the network server description is varied offline.(See the PWRCTL parameter in the CRTNWSD command.)

Propagate domain users (PRPDMNUSR). Allows users to determine if domain user enrollment should be allowed on a particular NWSD.

This field returns blanks when Server operating system is *ESX, *ESXE, *LINUX32 or *LINUX64.

(See the PRPDMNUSR parameter in the CRTNWSD command.)

Quorum resource ASP. The Quorum resource ASP name.

Remote interface 1 rule. The remote interface security rule. The possible values are:

Exception:

(See the STGPTH and VRTETHPTH parameter in the CRTNWSD command.)

Remote interface 2 rule. The remote interface security rule. The possible values are:

Exception:

(See the STGPTH and VRTETHPTH parameter in the CRTNWSD command.)

Remote interface 3 rule. The remote interface security rule. The possible values are:

Exception:

(See the STGPTH and VRTETHPTH parameter in the CRTNWSD command.)

Remote interface 4 rule. The remote interface security rule. The possible values are:

Exception:

(See the STGPTH and VRTETHPTH parameter in the CRTNWSD command.)

Removable media path. The storage path that the removable media uses.

(See the RMVMEDPTH parameter in the CRTNWSD command.)

Remove link allowed. Whether this storage space can be unlinked using the Remove Network Server Storage Link (RMVNWSSTGL) command while this network server description is varied on.

Reserved. An ignored field.

Resource name (RSRCNAME). The unique name that is assigned by the system to the physical equipment (in this case, a communications port) attached to the system. (See the RSRCNAME parameter in the CRTNWSD command.)

Exception:

Resource type-model. The hardware resource type for the file server used when the server was installed originally.

Exception:

Restricted device resource (RSTDDEVRSC). The restricted device resource name that cannot be used from the system by the network server. (See the RSTDDEVRSC parameter in the CRTNWSD command.)

Route destination. The internet address of the remote system.

Route subnet mask. The subnet mask being used with the route. The mask is in the form, nnn.nnn.nnn.nnn, where nnn is a decimal number that ranges from 0 through 255.

Server operating system. The type of operating system installed on the network server. The possible values are:

Serviceability options (SRVOPT). A string of characters that specifies serviceability options. This parameter allows serviceability options to be provided and is intended to be used under the direction of a service provider. This field is specified in UCS-2 (CCSID 13488). The following special value also may be returned:

(See the SRVOPT parameter in the CRTNWSD command.)

Set password rules. Whether the default rules for passwords on the network server are set to the IBM i system values and defaults or are allowed to use the default rules for passwords of the network server.

Shutdown TCP port. The TCP port to use for shutdown.(See the SHUTDPORT parameter in the CRTNWSD command.)

Shutdown timeout (SHUTDTIMO). Time in minutes to wait for the servers operating system to shutdown before forcing the hardware offline. (See the SHUTDTIMO parameter in the CRTNWSD command.)

Start NetBIOS. Whether the NetBIOS protocol is activated when the network server is varied on.

Start TCP/IP. Whether the TCP/IP protocol is activated when the network server is varied on.

Storage link type. The type of link that was specified when the storage space link was added to the network server description. The possible links are:

Storage path (STGPTH). Specifies the storage paths to be used by the storage spaces. The information consists of three parts that include the network server host description, the storage path resource, and the security rules for this path. (See the STGPTH parameter in the CRTNWSD command.)

Storage path IQN. Specifies storage path iSCSI qualified name.

Exception:

Storage path number. Specifies the storage path number in the network server description (NWSD) that this storage space uses. (See the STGPTHNBR parameter in the ADDNWSSTGL command.)

Exception:

Storage path resource name. The resource name for this storage path.

Exception:

Storage path status. The status of storage path resource. Possible values are:

Exception:

Storage space name. The text that is entered to describe the storage space.

Storage space size. The size that is associated with this storage space for the network server.

Storage space text description. The names of existing client storage spaces.

Subnet mask. The subnet mask that is assigned to each internet address. The mask is in the form, nnn.nnn.nnn.nnn, where nnn is a decimal number that ranges from 0 through 255.

Synchronize date and time (SYNCTIME). Whether the system has synchronized the network server date and time with the system date and time. This field returns blanks when Server operating system is *ESX or *ESXE.

(See the SYNCTIME parameter in the CRTNWSD command.)

System pool identifier. Specifies the system pool that was assigned to this integrated server at varied on. The system-related pool identifier for each of the system pools that currently has main storage allocated to it.

System storage ASP (SVRSTGASP). The auxiliary storage pool (ASP) identifier used to hold the system storage space. Possible values are:

(See the SVRSTGASP parameter in the CRTNWSD command.)

System storage ASP name. The name of the auxiliary storage pool (ASP) used to hold the system storage space. A value of *SYSBAS indicates the ASP is part of the system ASP (ASP number 1) or a basic ASP (ASP numbers 2-32). This field returns blanks when Server operating system is *ESXE or *AUX.

System storage pool ID full (SVRSTGASP). The auxiliary storage pool (ASP) identifier used to hold the system storage space. Possible values are:

(See the SVRSTGASP parameter in the CRTNWSD command.)

System storage size (SVRSTGSIZE). The size in megabytes of the drive on which the integrated server is installed. A value of zero is returned if the storage space size is unknown, or when Server operating system is *ESXE or *AUX. (See the SVRSTGSIZE parameter in the CRTNWSD command.)

System storage type. The type of storage space on which the integrated server is installed. This field returns blanks when Server operating system is *ESXE or *AUX. Possible storage types are:

TCP/IP domain name (TCPDMNNAME). The local domain name that is associated with the network server. (See the TCPDMNNAME parameter in the CRTNWSD command.)

TCP/IP host name (TCPHOSTNAM). The short form of the host name to be associated with the network server. (See the TCPHOSTNAM parameter in the CRTNWSD command.)

TCP/IP name server (TCPNAMSVR). The internet address of the name server system that is used by the network server. (See the TCPNAMSVR parameter in the CRTNWSD command.)

TCP/IP port configuration (TCPPORTCFG). The TCP/IP configuration values specific to a port on a network server. The information consists of four parts that include the network server port, the internet address assigned to the port, the subnet mask of the port, and the maximum transmission unit. (See the TCPPORTCFG parameter in the CRTNWSD command.)

TCP/IP port number. The TCP/IP port number on the network server.

(See the TCPPORTCFG parameter in the CRTNWSD command.)

TCP/IP route (TCPRTE). The TCP/IP route identifies routes from the network server to remote systems. The route consists of three parts that include the route destination, the subnet mask, and the next hop interface. (See the TCPRTE parameter in the CRTNWSD command.)

Text description (TEXT). A brief description of the network server and its location. (See the TEXT parameter in the CRTNWSD command.)

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

Vary on wait (VRYWAIT). Whether the line is varied on synchronously or asynchronously. (See the VRYWAIT parameter in the CRTNWSD command.)

Exception:

Virtual Ethernet control port. The TCP port used by the remote system for virtual Ethernet control. (See the VRTETHCTLP parameter in the CRTNWSD command.)

Virtual Ethernet paths (VRTETHPTH). The virtual Ethernet path that can be used by the Ethernet line descriptions that are attached to network server. The information consists of four parts that include the port number, network server host adapter description, the virtual Ethernet path resource, and the security rules for this path. (See the LANPATH parameter in the CRTNWSD command.)

Virtual Ethernet path resource name. The resource name for this virtual Ethernet path.

Volume group name. The volume group to which this network server storage space is assigned on the network server. A volume group is a collection of one or more physical volumes. Every physical volume must be assigned to a volume group before it can be used.


Error Messages



API introduced: V4R2

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