|
Concur.
Given that you know which tape you want to use you can run any tape operation and specify the tape you want to use and it will find it in the library and load it for you.
You can do a DSPTAPCTG DEV(TS2900mlb) OUTPUT(*OUTFILE) OUTFILE(QGPL/DSPTAPCTG) and then parse the *OUTFILE for what tapes are in the TS2900.
You can specify *rewind or *leave or, when done, *unload.
Jerry
On 11/24/2024 9:38 AM, Larry "DrFranken" Bolhuis wrote:
Late to the party here but if you've home-grown your own backup, there is no 'secret' to loading a tape. You don't even need M&SE.
Simply using the TAPMLBnn device, the tape specified in the VOL parameter is loaded. No matter what volume is currently in the drive is moved out and the volume you've requested is moved in.
Of course you need to know that tape is available but you can retrieve the list of volumes using an API as already mentioned.
- DrF
On 11/22/2024 12:38 PM, Buck Calabro wrote:
I'm looking at revising our homegrown backup process. We have a TS2900 LTO7 autoloader/drive. The web GUI works great for moving a tape to and from the magazine and drive. I'd like to do the same thing in a program.
I looked at the APIs for tape, and while I can use QTARTLBL to get the volume ID of the tape in the drive, I don't see a way to move tapes from the magazine to the drive. I know that BRMS does it, but I can't find the appropriate API.
My budget is $0.00 and whatever time I can find while eating lunch at my desk. BRMS is not an option.
Thanks!
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.