tcl.what Verb: Access/TCL

tcl.what

Command tcl.what Verb: Access/TCL
Applicable release versions: AP, R83
Category TCL (746)
Description displays the system configuration and the status of system locks, specified lines, Spooler, and printers.

The following system configuration information is displayed:

"core"
In R83 systems, "core" is the core memory size in bytes.

In AP, "memory" is the amount of memory allocated to the Pick virtual machine, in Kilobytes.

"pibs"
is the number of process identification blocks. This includes communication lines for terminals and serial printers, Spooler, phantom processes, and scheduler.

"pcb0"
is the frame-id (fid) for the primary control block (pcb) for line zero.

"sysbase/mod"
is the base fid and modulo of the "mds" (system) file.

"maxfid"
is the last addressable frame-id (fid) on the system.

"available"
is the number of frames available in overflow.

"dfsize"
is the 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.

In addition, "what" uses the "where" verb to display the current status of each line, the "list-locks" verb to display the system lock table, and the "sp-status" verb to display the Spooler and printer status.
Syntax what {port.number{-port.number}} {'user-id'} {(options)}
Options 'user-id' Outputs "where" status only for users of the specified user-id. (Note that in R83, quotes around the account name are required.)

{port.number{-port.number}} Outputs the status for the given port, or a range of ports.

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 "where" status for all lines, including "inactive" lines (those which are not currently logged on).
Example
what
08:29:47 29 Feb 1992
memory  pibs   pcb0  sysbase/mod   maxfid  available  dfsize
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 ### ### ### ### 

Group Locks        Update-Lock   Retrieval  Read-Only
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   ap.doc
151996 (0251BC)     38   0   289E    127910     journal
131836 (0202FC)     82   0   6C2C    monitor    status

011 00060B BF10 000018      sp.serialsleep:080 
012 00060C FF10 000018      au.start:36C     tcl1:0E8
013 00060D BF10 000018      sp.serialsleep:080 
014 00060E BF10 000018      sp.serialsleep:080 
015 00060F BF10 000018      sp.serialsleep:080 
019 000613 BF10 000018      sp.serialsleep:080 
128 000680 BF10 000018   P  sp.sleep:040     sp.spoolout:0F0  
130 04AA25 FF10 000018   P  br.unix.bix:000  
131 044E0F DF10 000018   P  bt.searchx:17C   bt.read:028
137 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 inter-job 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 inter-job pages to eject is 1.


what 'dm'

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

what 13-22

Outputs all items indicated, but limits "where" output only to lines 
13 through 22.

what (lsw
08:40:52 29 Feb 1992
memory  pibs   pcb0  sysbase/mod   maxfid  available  dfsize
18000k   138   1536     2199   7   358398      53418    2000

Outputs system configuration only.
Purpose
Related tcl.where
tcl.sp-status
tcl.unlock-group
tcl.unlock-item
locking.scheme
spooler.locks
port.number
maxfid
scrubber
tcl.who
tcl.which
tcl.maxusers
tcl.config.rp
frame
tcl.account-restore
tcl.list-locks_rp
tcl.free
tcl.item
perf
tcl.unlock-file
sysbase