home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CDPD Public Domain Collection for CDTV 1
/
CDPD_Vol1.bin
/
pd
/
551-575
/
558
/
btntape
/
tapemon.doc
< prev
next >
Wrap
Text File
|
1992-06-23
|
4KB
|
90 lines
**** TapeMon: a monitor program for BTNtape handler ****
**** Version 2.1 / /91 ****
**** Freeware by Bob Rethemeyer (DrBob@cup.portal.com) ****
**** (c) Copyright 1990,1991 Robert Rethemeyer ****
TapeMon is an optional companion program to the BTNtape SCSIdirect
tape handler. Since the handler cannot directly inform you of what
it is doing, TapeMon, running in a separate CLI, communicates with
the handler and prints information for you. Think of it as a window
into the handler.
To run TapeMon, bring up a separate CLI window. Enter "TapeMon" or
"TapeMon [name]", where [name] is the name of the handler device process.
If you do not enter the name, the monitor will default to using "TAPE:".
The handler must be loaded and running for TapeMon to work, otherwise
it prints a message and immediately quits. If you have mounted the
tape handler but not accessed the tape yet, the handler is not yet loaded,
and TapeMon will give up. To avoid this, invoke TapeMon after starting
tape access, or use "Mount = 1" in your mountlist entry.
Once the handler is loaded and running, you may invoke or terminate
the monitor at any time (but only one TapeMon may run at a time).
To terminate the monitor, enter control-C from the TapeMon CLI window,
or send a BREAK command from another CLI.
If the handler encounters a tape error, it remembers the data returned
by SENSE. When TapeMon is started, it prints the retained sense data.
So if you weren't running TapeMon at the time an error occurs, you can
still see the sense data by starting TapeMon after the fact.
TapeMon accepts a second command line argument as a flag to print all
the sense information when a sense occurs. The value of the second
argument is ignored, but if it is present, complete sense is printed.
Example: TAPEMON TAPE: ALL
The presense of the ALL will cause the sense message to also print
32 bytes of hex sense information as it is returned from the drive.
TapeMon output is to stdout, so you may redirect it if you like.
Example: TAPEMON >filename
MESSAGES
See the file "mess.doc" for messages originating from the handler.
The following summarizes the messages from the monitor:
Process ? not found the device name doesn't match the BTN mountlist
No linkage structure... the device name is not that of BTN, or BTN
hasn't started up yet (when Mount = 0)
Process doesn't look the device name is for something other than BTN,
like BTN-Tape or the TapeMon version doesn't match BTN's.
There is already a only one copy of TapeMon can talk to a BTN process
TapeMon running at once.
Handler has no signal cannot talk to handler (these should be rare)
Unable to allocate
signal for TapeMon
?.device Unit-? LU-? shows information from mountlist
Drive: ............ shows the manufacturer, model, and ROM version
of the drive. This is the data returned by the
drive with the SCSI INQUIRY command.
Sequential Access One of the first two messages is printed to show
Direct Access which type of drive you have. The third message
BAD LOGICAL UNIT NUMBER is printed if you use the wrong L-U number.
Last sense= ?????, yy,zz retained sense data printed at TapeMon startup
ERROR(S) IN STARTUP printed when the handler detects an unrecognized
parameter in the mountlist Startup statement.
TapeMon terminated monitor has successfully disconnect from handler
HOW IT WORKS
TapeMon finds the tape handler process and locates a common
data structure attached to it. The monitor waits for signals from the
handler. The handler detects the presence of the monitor and signals
it when a message needs to be printed. A break signal causes the monitor
to disconnect itself from the handler and terminate.