====== Tape drive and IBM library management using cmd ====== ===== Tapeutil or ITDT ===== If you are using IBM Tape Diagnostic Tool (ITDT), you just need to replace tapeutil by itdt. |itdt -f /dev/smc0 elementinfo |Displays element information - library information| |itdt -f /dev/smc0 inventory |Displays the element status information| |itdt -f /dev/smc0 inventory -i |Display only the import/export element status information| |itdt -f /dev/smc0 move X Y |Move tape from slot element number X to slot element number Y| |itdt -f /dev/smc0 devids |Display device ID element status information for all drives| |itdt -f /dev/rmt1 status |Query drive status| |itdt -f /dev/rmt1 vpd |Display drive Vital Product Data (VPD)| |itdt -f /dev/rmt1 devinfo |Show device information| |itdt -f /dev/rmt1 path |Check tape and path SCSI information| |itdt -f /dev/rmt1 fuser |Display which process is using the drive| |itdt -f /dev/rmt1 mount |Mount tape from element number on drive rmt0| |itdt -f /dev/rmt1 unmount |Dismount tape from element number on drive rmt0| |itdt -f /dev/rmt1 inqpage 83 |Show drive serial| |itdt -f /dev/rmt1 encryption |Display encryption information| ===== mtlib ===== |mtlib -l /dev/lmcp0 -qL |Library status| |mtlib -l /dev/lmcp0 -A |Library address information| |mtlib -l /dev/lmcp0 -qS |Library information and statistical data| |mtlib -l /dev/lmcp0 -DE |Display drives information| |mtlib -l /dev/lmcp0 -qM |Show mounted tapes| |mtlib -l /dev/lmcp0 -vqI |Category codes for tapes - tapes information| |mtlib -l /dev/lmcp0 -qV -V VolName |Information about tape| |mtlib -l /dev/lmcp0 -vqV -V VolName |Information about tape (verbose)| |mtlib -l /dev/lmcp0 -qI |List tapes| |mtlib -l /dev/lmcp0 -qD -f /dev/rmt1 |Drive status| |mtlib -l /dev/lmcp0 -a -V VolName |Barcode, examine tape to assure that it is physically in library| |mtlib -l /dev/lmcp0 -vqK -s FFFD |Number of 3590 cleaning tapes| |mtlib -l /dev/lmcp0 -qC -s FFFD |List 3590 cleaning tapes| |mtlib -l /dev/lmcp0 -qC -s FFF4 |List 3592 cleaning tapes| |mtlib -l /dev/lmcp0 -C -V VolName -s -t |Change volume category| |mtlib -l /dev/lmcp0 -vC -V VolName -t FFFB |Remove tape from 3494 inventory| |mtlib -l /dev/lmcp0 -vC -V VolName -t FF10 |Eject tape| |mtlib -l /dev/lmcp0 -f /dev/rmt0 -m -V VolName |Mount tape| |mtlib -l /dev/lmcp0 -m -x drive_serial -V VolName |Mount tape| |mtlib -l /dev/lmcp0 -f /dev/rmt0 -d |Dismount tape| |mtlib -l /dev/lmcp0 -x device_serial -d |Dismount tape|