Originally posted by: SystemAdmin
Hi,
It's probably something that you can incorporate into your script using the "tapeutil" application. It used to come with the Atape driver, but has now been moved to IBM Tape Diagnostic Tool (ITDT). You can download the IBM Tape Diagnostic Tool from FixCentral using the following menus (Storage Systems > Tape Systems > Tape Device Drivers and Software > Tape Diagnostic Tool (ITDT) > AIX).
You can also find the installation and user guide here
https://www-304.ibm.com/support/docview.wss?rs=577&uid=ssg1S7002972 In short, you should be able to do something like;
tapeutil -f /dev/rmt0 mount 1 <-- Will load the drive with tape in slot location 1
tapeutil -f /dev/rmt0 unmount 1 <-- Will unload the drive and put the tape in slot location 1
I don't have it installed in the environment that I'm working in now, but from memory that's how it worked. You might be able to tapeutil -h to get more help. I think you'll need to open the device (/dev/rmt0) first before you can perform read/write operations to it.
Let me know how you go.
-Kristijan
#AIX-Forum