IBM TS2340 User Guide - Page 395
Using the tapeutil Program, Interactive Mode
UPC - 883436006873
View all IBM TS2340 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 395 highlights
HP-UX - Tape Utility Program (tapeutil) # swlist -d state tapeutil To view the set of files installed with tapeutil: # swlist -l file tapeutil To remove tapeutil from the depot: # swremove -d tapeutil Using the tapeutil Program A Tape and Medium Changer Utility Program called tapeutil is provided with the IBM Tape and Medium Changer Device Driver for HP-UX and installed in the /usr/bin directory. The tapeutil program fulfills several purposes: v The program provides the following service aids for IBM tape systems: - Query Device Type/Verify Device Attachment - Query Device Serial Number - Query Device Microcode Level - Force Device Diagnostic Dump - Store Device Diagnostic Dump - Download Device Microcode v The program provides a menu driven test tool for exercising or testing IBM tape and medium changer devices with a full suite of supported operations: - Reading/Writing Data - Tape Motion Commands - Setting/Displaying Device Information/Status - Mounting/Demounting Cartridges - Cartridge Inventory v In addition to the menu driven front end, the tapeutil program provides a command-line interface, convenient for use in shell scripts. v The source code for the tapeutil program is provided for example purposes and is installed in the /opt/tapeutil directory during the tapeutil package installation. This source code is commented and demonstrates calls to all the supported device driver entry points and ioctl commands, giving the application developer a starting point for interfacing to the HP-UX device driver. Interactive Mode The tapeutil program provides both an interactive mode and a command-line mode. If the tapeutil program is called with no command-line parameters, the interactive mode version is started. In the interactive mode, the device to be operated on should first be opened using option 1. Other options may then be selected. The user is prompted for additional information if required for the specific options selected. The results of a command are displayed after it is executed. If an error occurs for the command, error information and device sense data are displayed. The device can be closed using option 2, or it is closed automatically when the Quit option is selected. The menu is displayed once automatically when the program is first called. To prevent unnecessary scrolling of the screen, the menu is not displayed again automatically after each command but instead is refreshed only after the M (menu refresh) command is entered. Appendix D. Tape Utility Programs 377