IBM TS2340 User Guide - Page 381
General Subcommands, AIX - Tape Utility Program tapeutil
UPC - 883436006873
View all IBM TS2340 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 381 highlights
AIX - Tape Utility Program (tapeutil) Multiple subcommands can be combined in a single command to perform more than one operation. The subcommands are processed one at a time in the order specified on the command-line. For a list of subcommands and syntax, enter the tapeutil ? command on the AIX command line. General Subcommands The following general subcommands are available for the tape and medium changer devices. checkpath: This subcommand issues a SCSI Inquiry command to the device on all configured paths to determine the status of each path and sets the path to enabled if successful or disabled if unsuccessful. The status of the primary and alternate path is displayed when the subcommand completes. The output is the same as the qrypath and resetpath subcommands. If more than two paths are configured for the device, run the pathsubcommand also. Examples: # Check the status of paths and display results tapeutil -f/dev/rmt0 checkpath # Check the status of more than 2 paths and display results tapeutil -f/dev/rmt0 checkpath path devinfo: This subcommand displays the device information returned from the IOCINFO ioctl command. disable path Primary|Alternate: This subcommand is used to disable the device driver from using either the primary SCSI path or the alternate SCSI path to a device. This subcommand is valid only if the device has both a primary and alternate path enabled. fuser: This subcommand is similar to the AIX fusercommand. If the device special file is currently open, the process ID is displayed. Otherwise, it indicates the device special file is not currently open. inquiry [Page]: This subcommand issues the SCSI Inquiry command to the device for either standard inquiry data, with no page parameter, or for specified page data, and displays the inquiry data. The page parameter must be specified as a hexidecimal value. Examples: # Get standard inquiry data tapeutil -f/dev/rmt0 inquiry # get inquiry page x'83' tapeutil -f/dev/rmt0 inquiry 83 kill: This subcommand kills a currently active process on a device. This subcommand should be used when the standard Ctrl-C or AIX kill command methods cannot terminate the process. For example: # Kill any active process on rmt0 tapeutil -f/dev/rmt0 kill logpage Page: This subcommand issues the SCSI Log Sense command to the device for the specified page and displays the log sense data. The page parameter must be specified as a hexidecimal value. For example: # Get log page x'31' tapeutil -f/dev/rmt0 logpage 31 Appendix D. Tape Utility Programs 363