Previous Page Contents Page Next Page

3.3 Displaying RJE Workstation Status

The snarjestat command displays status information for one or more specified RJE workstations.

Sample command: snarjestat wks1

You must use this command on the computer on which the RJE workstation is running (the computer for which it is configured). Consult your System Administrator if necessary, or refer to the SNAP-IX Administration Guide for information about RJE workstation configuration.

3.3.1 Syntax

The syntax for the snarjestat command is:

snarjestat [ -d | -l ]wkst ...

3.3.2 Options

You can use one of the following options with the snarjestat command:

Displays status information for workstation devices (printers, punches, console, and reader) only. See Returned Messages, for more information about what is displayed.

Displays status information for workstation LUs only. See Returned Messages, for more information about what is displayed.

You can specify only one of these options. If you do not include either option, SNAP-IX displays status information for both LUs and devices belonging to the workstation.

3.3.3 Parameters

You must use the following parameter with the snarjestat command:

wkst

Name of the RJE workstation whose status information will be displayed. This must be an RJE workstation in the current configuration file. The workstation name is not case sensitive.

You can specify more than one RJE workstation here, provided that you leave a space after each. Alternatively, you can enter the snarjestat command and press Enter. Then type the name of an RJE workstation followed by Enter to view its status. You can continue to view the status of other workstations by typing their names followed by Enter. When you have finished, press Ctrl + D to exit the command.

3.3.4 Returned Messages

After you issue the snarjestat command, the workstation displays device and LU status information.

Device Status

The format of the Device Status returned message is:

wkst devicename devstatus LUname action

The parameters on the returned messages when the option is used with the snarjestat command are as follows:

wkst

Name of the RJE workstation.

devicename

Name of a device owned by the RJE workstation. This can be a printer (PRTn), punch (PUN n), console (CONS), or reader (RDR1) device, where n is a one-digit decimal number.

devstatus

This can take the following forms:

ACTIVE

The device is currently in use.

INACTIVE

The device is currently not in use.

SUSPENDED

There were not enough LUs available to the RJE workstation to carry out all its tasks at once. This device has been interrupted and the LU it was using is now being used by a device with higher priority.

LUname

Name of the LU that is used by the device.

action

This entry appears only for active or suspended devices. The form it takes depends on the type of device:

Printers and Punches

OUTPUT to type name

The type element indicates whether the output is being sent to a program, a directory, or a file. The name element is the name of the program, directory, or file to which the output is being sent.

Console

INBOUND

The console is sending data to the host.

OUTBOUND

The console is receiving data from the host.

Reader

JOB: spool-id

This is the job currently being sent to the host.

Example of Device Status

The following is an example of a Device Status returned message:

Wkst     Device   Status   LU Name  Action
------------------------------------------
RJE1     PRT1     Active   LU2      Output to directory /var/opt/sna/rje/R427/output

LU Status

The format of the LU Status returned message is:

wkst LUname LUstatus devicename

The parameters on the returned messages when the option is used with the snarjestat command are as follows:

wkst

The name of the RJE workstation.

LUname

The name of an LU owned by the RJE workstation.

LUstatus

This can take the following forms:

RECEIVING

The LU is receiving data from the host.

SENDING

The LU is sending data to the host.

DISCONNECTED

The node or the communications link to the host is not active.

PENDING

The node and the host communications link are active, but no session has been established.

IDLE

A session has been established, but the session has no activity.

devicename

The name of the device that is using the LU. This can be a printer (PRN n), a punch (PUNn), the console (CONS), or the reader (RDR1), where n is a one-digit decimal number.

Example of LU Status

Wkst  LU Name Status   Device
---------------------------------
RJE1  LU1     Sending  RDR1

3.3.5 Error Messages

If the command detects an error, it writes a message to standard error. This message can indicate (for instance) the following:

3.3.6 Exit Codes

If only one workstation name is specified, the snarjestat command returns the following exit codes:

-1

An error was detected (such as an invalid workstation name).

0 (zero)

The workstation is active and connected to the host.

1

The workstation is active but not connected to the host.

2

The workstation is not active.

If more than one workstation name is specified, the exit code is always 0 (zero).

Previous Page Contents Page Top of Page Next page