Work with NWS Status (WRKNWSSTS)

Where allowed to run: Interactive environments (*INTERACT *IPGM *IREXX *EXEC)
Threadsafe: No
Parameters
Examples
Error messages

The Work with Network Server Status (WRKNWSSTS) command displays a list of servers and their current status. Specific options are available to work with individual servers in the list. These options provide functions such as displaying active users, restarting a server, displaying statistics, and so on. The display that appears differs depending on the value of the SVRTYPE parameter.

  1. If SVRTYPE(*NWSUSRA) is specified, the display shown depends on the value specified for the SVRTYPE parameter in the network server user attributes (CHGNWSUSRA command) for the current user.
  2. If SVRTYPE(*NWSA) is specified, the display shown depends on the value specified for the SVRTYPE parameter in the network server attributes (CHGNWSA command).
  3. If SVRTYPE(*WINDOWS) or (*WINDOWSNT) is specified, the display shows options and information relevant to local NWSDs that were created as Windows servers.
  4. If SVRTYPE(*NETWARE) or SVRTYPE(*NDS) is specified, the display shows options and information relevant to NetWare servers. Only NetWare servers in NDS trees are listed.
  5. If SVRTYPE(*LINUX) or (*AIX) is specified, the display shows options and information relevant for NWSDs running Linux or AIX operating systems. If the NWSD server type is *GUEST, then the Status is shown only. The Display details option will not be available to be selected.
Top

Parameters

Keyword Description Choices Notes
SERVER Server Character value, *ALL Optional, Positional 1
SVRTYPE Server type *NWSUSRA, *NWSA, *WINDOWS, *NETWARE, *NDS, *LINUX, *AIX, *WINDOWSNT Optional
Top

Server (SERVER)

Specifies the name of a server.

*ALL
All local servers and all remote 'active' servers are displayed.
generic*-server-name
Specify the generic name of the server.
server-name
Specify the name of a specific server.
Top

Server type (SVRTYPE)

Specifies which type of server to work with. The Work with Network Server Status display lists either NetWare servers, or Windows servers.

*NWSUSRA
The type of servers to list is specified in the network server user attributes (CHGNWSUSRA command).
*NWSA
The type of servers to list is specified in the network server attributes (CHGNWSA command).
*WINDOWS or *WINDOWSNT
A list of Windows servers is displayed.

Note: *WINDOWS should be used in V5R4 and later releases. The *WINDOWSNT value is supported for compatibility with releases prior to V5R4.

*NETWARE or *NDS
A list of NetWare servers in the NetWare Directory Services (NDS) trees is displayed.
*LINUX or *AIX
A list of NWSDs with Linux or AIX operating system is displayed.

Note: If the NWSD server type is *GUEST, then the Status is shown only. Display details option is not available to be displayed.

Top

Examples

WRKNWSSTS   SERVER(SERVER2)  SVRTYPE(*WINDOWS)

This command displays the Work with Network Server Status panel for a Windows server named SERVER2.

WRKNWSSTS   SERVER(SERVER1)  SVRTYPE(*NETWARE)

This command displays the Work with Network Server Status panel for a NetWare server named SERVER1.

Top

Error messages

*ESCAPE Messages

CPFA451
Server name too long.
Top