what command

The what command displays the system configuration and the status of system locks, specified lines, spooler, and printers.

Syntax

what {port.number{-port.number}} {’user-ID’} {(options)}

Parameter(s)

user-ID Outputs where status only for users of the specified user-ID.
{port.number{-port.number}} Outputs the status for the given port, or a range of ports.
options l Suppresses display of lock status.
n No pause. Suppresses the pause at the end of the page on the terminal.
p Directs output to the system printer, via the spooler.
s Suppresses the display of sp-status.
w Suppresses the display of where output.
z Displays the where status for all lines, including inactive lines (those which are not currently logged on).

The system configuration information displays:

memory Amount of memory allocated to the D3 virtual machine, in kilobytes.
pibs Number of process identification blocks. This includes communication lines for terminals and serial printers, spooler, phantom processes, and scheduler.
pcb0 FID for the PCB for line 0.
sysbase/mod Base FID and modulo of the master dictionary’s (system) file.
maxfid Last addressable FID on the system.
available Number of frames available in overflow.
dfsize Number of bytes available per data frame. The actual frame size is a bit larger. A dfsize of 1000 indicates an actual frame size of 1024. A dfsize of 2000 indicates an actual frame size of 2048. A dfsize of 4000 indicates an actual frame size of 4096.

In addition, what uses the where command to display the current status of each line, the list-locks command to display the system lock table, and the sp-status command to display the spooler and printer status.

Example(s)

what

memory   pibs   pcb0   sysbase/   mod   maxfid   available   fsize
18000k   138    1536   2199       7     358398   53442       2000

System Locks
0   1   2   3   4   5   6   7   8   9   A   B   C   D   E   F
0   ##  ##  ##  ##  ##  ##  ##  ##  ##  ##  ##  ##  ##  ##  ##
1   ##  ##  ##  ##  ##  ##  ##  ## 
Basic Locks
0   1   2   3   4   5   6   7   8   9   A   B   C   D   E   F
0   ##  ##  ##  ##  ##  ##  ##  ##  ##  ##  ##  ##  ##  ##  ##
1   ##  ##  ##  ##  ##  ##  ##  ##  ##  ##  ##  ##  ##  ##  ##
2   ##  ##  ##  ##  ##  ##  ##  ##  ##  ##  ##  ##  ##  ##  ##
3   ##  ##  ##  ##  ##  ##  ##  ##  ##  ##  ##  ##  ##  ##  ##

Spooler Locks
mq       iq         fq       peq
0        ##         ##       ##         ##
Owner    Locks      Locks
151996   (0251BC)   38       0          0
155300   (025EA4)   -        1          0
166106   (0288DA)   -        1          0
131836   (0202FC)   82       0          0
131879   (020327)   -        1          0
282213   (044E65)   5        0          0

Item Locks   PIB#       Lvl     Hash     Item-ID  Filename
109547       (01ABEB)   56      0        2379     tcl.what           d3.doc
151996       (0251BC)   38      0        289E     127910             journal
131836       (0202FC)   82      0        6C2C     monitor            status
011          00060B     BF10    000018            sp.serialsleep:08
012          00060C     FF10    000018            au.start:36C       tcl1:0E8
013          00060D     BF10    000018            sp.serialsleep:08
014          00060E     BF10    000018            sp.serialsleep:08
015          00060F     BF10    000018            sp.serialsleep:08
019          000613     BF10    000018            sp.serialsleep:08
028          000680     BF10    000018   P        sp.sleep:040       sp.spoolout:0F
030          04AA25     FF10    000018   P        br.unix.bix:000
031          044E0F     DF10    000018   P        bt.searchx:17C     bt.read:028
037          039A0B     BF10    000018   P        pp.sched:038
The spooler is inactive.
Printer # 0 is serial, inactive, and on line.
The printer is running on line 13.
Assigned output queues: 0.
The number of interjob pages to eject is 1.
Printer # 1 is serial, inactive, and on line.
The printer is running on line 11.
Assigned output queues: 3, 4, 5.
The number of interjob pages to eject is 1.

This outputs all items indicated, but limits where output only to those on the dm account.

what ’dm’

This outputs all items indicated, but limits where output only to lines 13 through 22.

what 13-22

This outputs system configuration only.

what (lsw

08:40:52 29    08:40:52    29 Feb 2003
memory   pibs    pcb0   sysbase/   mod   maxfid   available
18000k   138     1536   2199       7     358398   53418