IBM TS2340 User Guide - Page 396
Command-Line Interface, Service Commands, Basic SCSI Commands
UPC - 883436006873
View all IBM TS2340 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 396 highlights
HP-UX - Tape Utility Program (tapeutil) These commands can issue the MTIOCTOP ioctl with the MT opcodes defined in /usr/include/sys/mtio.h (MT mode), or issue the STIOC_TAPE_OP ioctl with the ST_OP opcodes defined in /usr/include/sys/st.h (ST mode). For detailed information, refer to the MTIOCTOP and STIOC_TAPE_OP sections in the IBM Tape Device Drivers Programming Reference, GA32-0566. The default for tapeutil is the ST mode. Toggle between the MT or ST mode by using option 8. The following commands run in the two modes: v Write File Mark v Erase Tape v Rewind v Offline v Forward/Backward Space File v Forward/Backward Space Record v Locate End of Data Command-Line Interface If command-line parameters are provided when the program is started, the program runs in command-line mode. When in command-line mode, the device is first opened, the specific command is issued, and the device is then closed. The program can be invoked from within a shell script if desired. Results of the operation are displayed only when executed in verbose mode. No information is displayed when not in verbose mode. This is particularly useful for quiet shell script implementations. A completion code, as defined in /usr/include/sys/errno.h, for the operation requested, is always returned from the program upon exit (in both verbose and quiet mode). The usage of the tapeutil program in command-line mode is as follows: tapeutil -f device -o operation [options] Where: device is the name of the tape device special file (for example, /dev/rmt/1m) and operation is one of the values listed below. The device special file and the operation are required. The specific options associated with a particular operation are indicated below. Parameters enclosed in square brackets are optional. All others are required. Service Commands Query Serial Number Query Microcode Level Force Dump Store Dump Download Microcode Query Device Type tapeutil -f f -o qsn [-w w] [-v] tapeutil -f f -o qmc [-w w] [-v] tapeutil -f f -o fdp [-w w] [-v] tapeutil -f f -o sdp [-w w] [-v] -z z tapeutil -f f -o dmc [-w w] [-v] -z z tapeutil -f f -o chk [-w w] [-v] Basic SCSI Commands Test Unit Ready tapeutil -f f -o tur [-w w] [-v] Inquiry/Inquiry Page tapeutil -f f -o inq [-w w] [-v] [-t t] [-x x] Request Sense tapeutil -f f -o req [-w w] [-v] Log Sense Page tapeutil -f f -o log [-w w] [-v] [-x x] 378 IBM Tape Device Drivers Installation and User's Guide