List Server Information (QZLSLSTI) API


  Required Parameter Group:


  Optional Parameter 1:


  Optional Parameter 2:


  Default Public Authority: *USE

  Threadsafe: No

The List Server Information (QZLSLSTI) API lists share, configuration, session, statistics, and connection information for the server. You may use the information qualifier function to list just the information in which you are interested.


Authorities and Locks

To use the *RESET qualifier for the ZLSL0400 format, you must have *IOSYSCFG special authority.

User Space Authority
*CHANGE
User Space Library Authority
*EXECUTE
User Space Lock
*EXCLRD

Required Parameter Group

Qualified user space name
INPUT; CHAR(20)

The user space that is to receive the server information. The first 10 characters contain the user space name, and the second 10 characters contain the name of the library where the user space is located.

Format
INPUT; CHAR(8)

The content and format of the information to be returned about the IBM® i Support for Windows® Network Neighborhood (IBM i NetServer™) server. Possible format names follow:

For more information, see Format of Information List.

Information qualifier
INPUT; CHAR(15)

A restriction on the information to be retrieved. This parameter allows the caller to request a subset of the entries that would normally be returned on a given format. Currently, this parameter applies only to the ZLSL0100 and ZLSL0101 (share information), ZLSL0300 (session information), ZLSL0400 (statistical information), ZLSL0600 (session connection information), ZLSL0700 (share connection information), and ZLSL0800 (share type information) formats.

For formats ZLSL0200 and ZLSL0201, this parameter is ignored.
For format ZLSL0300, a valid session name, *SESSID, or *EXPANDED is allowed.
For format ZLSL0400, only the *ALL and *RESET qualifiers are valid.
For format ZLSL0600, a valid session name, *SESSID, or *EXPANDED is required.
For format ZLSL0700, a valid share name is required.
For format ZLSL0800, only the *ALL qualifier is valid.
For format ZLSL0900 this parameter must be all blanks.

If this parameter is all blanks or is *ALL, no information qualification is performed. Allowable values include:


Error code
I/O; CHAR(*)

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


Optional Parameter 1

Session user
INPUT; CHAR(10)

Allows the caller to restrict the session information to be retrieved. This parameter is ignored if a generic information name, or *ALL, is specified on the information qualifier parameter. Currently, this parameter applies only to the ZLSL0300 (session information) and ZLSL0600 (session connection information) formats. Allowable values include:

If the session user parameter is omitted, the API assumes a value of *ALL.


Optional Parameter 2

Expanded information qualifier
INPUT; CHAR(*)

This parameter applies only to the ZLSL0300 (session information) and ZLSL0600 (session connection information) formats.

When *SESSID is specified for the information qualifier parameter, this parameter must be a BINARY(8) field. This allows the caller to restrict the session information to be retrieved to a single session. Allowable value are:

When *EXPANDED is specified for the information qualifier parameter, this parameter must be a CHAR(50). The parameter can contain a workstation name, an IPv4 address, or an IPv6 address.


Format of Information List

The field list consists of:

For information about the user area and generic header, see User spaces.

There are ten possible formats for the data section. The layout of the contents of the user space is determined by the format used. The following tables show how the contents of the input parameter section and the data format sections are organized. For descriptions of each field, see Field Descriptions.

When you retrieve list entry information from a user space, you must use the entry size returned in the generic header as a displacement to the next list entry for formats ZLSL0200, ZLSL0201, ZLSL0300, ZLSL0400, ZLSL0600, ZLSL0700, ZLSL0800, and ZLSL0900. For formats ZLSL0100 and ZLSL0101, use the length of this entry field at the start of each entry to calculate the displacement to the next list entry. The size of each entry may be padded at the end. If you do not use the entry size, the result may not be valid.


Input Parameter Section



ZLSL0100 Format



ZLSL0101 Format



ZLSL0200 Format



ZLSL0201 Format



ZLSL0300 Format



ZLSL0400 Format



ZLSL0600 Format



ZLSL0700 Format



ZLSL0800 Format



ZLSL0900 Format



Field Descriptions

Allow system name. Whether the server allows clients to connect using the system name found in the System i™ network attributes. Possible values are:


Authentication method. The method used to authenticate users. Possible values are:


Average response time. The average server response time in milliseconds.

Browsing interval. The amount of time, in milliseconds, between each browsing server announcement.

CCSID. The coded character set ID (CCSID) that is used by all clients connected to the server.

Note: The field in the corresponding header file for this format may indicate code page, but the value returned will be the CCSID.

CCSID used for text conversion. The CCSID that is used for text file data conversion.

Note: The field in the corresponding header file for this format may indicate code page, but the value returned will be the CCSID.

Connection ID. The number that identifies the connection.

Connection time. The number of seconds since the connection was established.

Connection type. The type of the connection made from the workstation to the shared resource. Possible values are:

Current users. The number of connections that are currently made to the resource. A value of -1 (X'FFFFFFFF') means that the server was unable to retrieve the actual value.

Date and time reset. The date and time when the server statistics were reset.

The 13 characters are:

Date and time started. The date and time when the server was started. The 13 characters are:

Device type. One of the following values:


Domain name. The name of the domain in which the IBM i Support for Windows Network Neighborhood server is a member.

Enable text conversion. Whether the server enables text conversion for this share. Possible values are:

Encrypted password. Whether the the encrypted password was used to establish the session to the server. Possible values are:

Expanded workstation name. The name of the workstation or IP address from which the session to the server was established.

Expanded workstation name type. Indicates the type of information returned in the expanded workstation name field. Possible values are:

File extension. A file extension string that is null-terminated. Possible values include:

File opens. The number of file opens for the whole server.

Format specified. The content and format of the information to be returned about the IBM i Support for Windows Network Neighborhood server. Possible format names follow:

Guest support. A guest user profile may be used in the event an unknown user attempts to access resources on the system. Possible values are as follows:

Guest user profile. The user profile to be used in the event an unknown user attempts to access resources on the system.

Idle time-out. The amount of time, in seconds, a connection to the simplified server remains active once activity has ceased on that connection.

Information qualifier specified. A restriction on the information to be retrieved. If a qualifier is specified that is inconsistent with the format requested, an error message is returned. A null list is returned if no information meets the qualifications. If this parameter is all blanks, no information qualification is performed. Allowable values include:

IBM i NetServer user name. The name of an IBM i NetServer user.

LAN Manager (LANMAN) authentication. The level of restriction on the use of the LANMAN password hash for authentication. Possible values for the field follow:

Length of file extension. The size in bytes of the file extension. The length does not include the byte used for null-termination.

Length of path name. The length of the local path name of the shared resource in bytes.

Length of this entry. The total length of the list entry in bytes.

Logon type. The type of authentication used to connect to the server. Possible values for the flag follow:

Maximum users. The maximum number of concurrent connections that the shared resource can accommodate. This number is unlimited if the value is -1.

Message authentication. The status of message authentication. Possible values for the field follow:

Minimum message severity. The minimum message severity of administrative alerts to send to users of the server. Administrative alert messages are not sent if the value is -1.

Number of bytes received (high). The number of server bytes received from the network (high-order bits of 8-byte combinations of both number of bytes received fields).

Number of bytes received (low). The number of server bytes received from the network (low-order bits of 8-byte combinations of both number of bytes received fields).

Number of bytes sent (high). The number of server bytes sent to the network (high-order bits of 8-byte combinations of both number of bytes sent fields).

Number of bytes sent (low). The number of server bytes sent to the network (low-order bits of 8-byte combinations of both number of bytes sent fields).

Number of connections. The number of connections made during the session.

Number of connection users. The number of users on the connection.

Number of files open. The number of files that are open currently.

Number of sessions. The number of sessions that are established between the server and the requester.

Number of table entries. The number of file extension entries in the file extension table.

Offset to extension table. The offset from the start of user space where the file extension table starts.

Offset to path name. The offset from the start of user space where the path name of the shared resource starts.

Opportunistic lock (oplock) time-out. The amount of time, in seconds, that the server will wait for a response to a break lock request sent to a lock holder before forcefully removing the lock.

Password violations. The number of server password violations.

Path name. A path in the integrated file system. The path name is stored internally in unicode format; when listed, it is converted into the CCSID of the current job.

Pending allow system name. Whether the server allows clients to connect using the system name found in the network attributes the next time the server is started. Possible values are:

Pending authentication method. The method that will be used to authenticate users the next time the server is started. Possible values are:

Pending browsing interval. The amount of time, in seconds, to be used the next time the server is started, between each browsing server announcement.

Pending CCSID. The CCSID that is used by all clients connected to the server the next time the server is started.

Note: The field in the corresponding header file for this format may indicate code page, but the value returned will be the CCSID.

Pending domain name. The name of the domain in which the server will be a member the next time the server is started.

Pending guest support. A guest user profile may be used the next time the server is started in the event an unknown user attempts to access resources on the system. Possible values are:

Pending guest user profile. The user profile to be used the next the time the server is started in the event that an unknown user attempts to access resources on the system.

Pending idle time-out. The amount of time (in seconds) to be used the next time the server is started so that a connection to the server will remain active once activity has ceased on that connection.

Pending LAN Manager (LANMAN) authentication. The level of restriction on the use of the LANMAN password hash to be used the next time the server is started. Possible values for the field follow:

Pending message authentication. The status of message authentication to be used the next time the server is started. Possible values are:

Pending minimum message severity. The minimum message severity to be used the next time the server is started when sending administrative alerts to users of the server.

Pending opportunistic lock time-out. The amount of time, to be used the next time the server is started, that the server will wait for a response to a break lock request sent to a lock holder before forcefully removing the lock.

Pending scope ID. A string that names the network scope to be used by the Windows Internet Name Service (WINS) server the next time the server is started.

Pending server name. The name the server will be known as on the system the next time the server is started.

Pending server role. The value that determines the logon server role for this system the next time the server is started. Possible values are:

Pending text description. An optional comment about the shared resource to be used the next time the server is started.

Pending WINS enablement. Whether this system uses the services of a Windows Internet Name Service (WINS) server the next time the server is started. Possible values are:

Pending WINS primary address. The IP address of the primary Windows Internet Name Service (WINS) server to be used the next time the server is started.

Pending WINS secondary address. The IP address of the secondary Windows Internet Name Service (WINS) server to be used the next time the server is started.

Permissions. Permissions to be applied against the disk for sharing. Possible values are:

Print driver type. The text string that identifies the print driver appropriate for this share. When personal computers connect to this shared printer, this identifies the print driver they should use. This text should match the name of a print driver known to the personal computer operating system.

Print jobs queued. The number of server print jobs spooled.

Publish print share. Whether the print share is to be published. Possible values are:

Qualified output queue. The name and library of the output queue. The first 10 characters identify the name of the output queue. The second 10 characters contain the library that contains the output queue.

Qualified printer file. The name and library of the printer file. The first 10 characters identify the name of the printer file. The second 10 characters contain the library that contains the printer file.

Reserved. Field not used currently.

Scope ID. A string that names the network scope to be used by the Windows Internet Name Service (WINS) server.

Server name. The name by which the server is known on the system.

Server role. The value that determines the logon server role for this system. Possible values are:

Sessions disconnected. The number of server sessions disconnected normally or ended in error.

Sessions disconnected automatically. The number of server sessions disconnected automatically.

Session identifier. Unique identifier for the server session.

Session idle time. The number of seconds a session has been idle.

Session starts. The number of server session starts.

Session time. The number of seconds since the session was established.

Share name. The network name of the resource.

Spooled file type. The type of spooled files that will be created using this share. Values can be:

Text description. An optional comment about the shared resource or computer.

Unknown users. The number of unknown users that have requested sessions to the server.

User name. The name of the user that is associated with the connection.

User profile name. The name of the user that is associated with the resource.

User space library name specified. The user space library name that was passed to this API on the call in the qualified user space name parameter.

User space name specified. The user space name that was passed to this API on the call in the qualified user space name parameter.

WINS enablement. This system may use the services of a Windows Internet Name Service (WINS) server. Possible values are:

WINS primary address. The IP address of the primary Windows Internet Name Service (WINS) server.

WINS secondary address. The IP address of the secondary Windows Internet Name Service (WINS) server.

Workstation name. The name of the workstation from which the session to the server was established.


Error Messages



API introduced: V4R2

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