Unsolved
This post is more than 5 years old
16 Posts
0
2987
October 5th, 2010 01:00
Moving Tape to Transport Slot after Backup on IBM Library
Hello,
I am using an IBM TS3200 Library with Networker 7.5.1.
I have recently setup a GFS rotation, and I have 3 save groups (weekly, monthly and yearly) that require tape offsite storage, and therefore moving the tapes out of the library into the transport slot for removal.
I would like to script a job to make sure that once one of these save groups is completed, the tape to which the data was written is moved to the transport slot for removal and offsite storage. I have read that this can be achieved with nsrjb, and I understand that to achieve this I would need first to see what is the tape label and then pass the label to nsrjb to carry the ejection / move. I am pretty new to tape libraries and I would very much appreciate any kind of guidance.
Thanks in advance for your help.
Kind Regards,
Max


coganb
736 Posts
1
October 6th, 2010 04:00
As discussed in Chat, Max is going to experiment with getting what he wants by using savepnpc with mminfo to get the barcode
of the necessary volume:
mminfo -q "client=[client_name],savetime>=today" -ot -r barcode
and then withdrawing that volume from the library with nsrjb:
nsrjb -x -T [barcode_label] -w
He'll keep us updated on his progress, but if in the meantime, anyone has any good ideas around this, don't hesitate to share....
-Bobby
max_mortillaro
16 Posts
0
October 6th, 2010 04:00
Hello Bobby,
after dealing a bit around, I have worked out the following commandline :
for /F "tokens=1" %%G IN ('mminfo -q "client=client_name,savetime>=today" -ot -r barcode') DO nsrjb -x -T %%G -w
however I am stuck with my library reporting an error :
Error: Jukebox `IBM@2.0.1' does not support operations `Add' and `Remove'.
39077:nsrjb: error, Jukebox command terminated with errors.
I now need to find out how I can order my library to perform these operations.
Any kind of help is appreciated
Thanks, Max
coganb
736 Posts
0
October 7th, 2010 02:00
Hi Max,
Check if NetWorker recognises the import/export slots using the command sjirdtag scsidev@b.t.l. This will tell you if the jukebox is reporting Import/Export slots or not. If it doesn't, you should check your firmware to see if there could be a problem at that level.
-Bobby
max_mortillaro
16 Posts
0
October 7th, 2010 03:00
Hi Bobby,
always glad to share solutions with others.
Thanks for your help and Best Regards,
Max
max_mortillaro
16 Posts
0
October 7th, 2010 03:00
Hello Bobby,
I have somehow solved the issue
After checking with one of your colleagues yesterday afternoon, it appeared that our library works with slot numbers. Therefore I did some scripting to get the job done.
I use 2 bat files :
list.bat - lists all volumes used by today backups, gets a list of volumes and slots provided by nsrjb, and then parses nsrjb stdout to find a match. Once a match is found, match.bat is called with slot number and volume number
match.bat - executes commands passed by list.bat, unmounts any mounted tape volume and moves tapes to I/O station ports.
Here is the batch files content:
list.bat
FOR /F %%A IN ('mminfo -q "client=client_name,savetime>=today" -ot -r barcode') DO FOR /F "skip=3 tokens=1,2,3 delims=: " %%B IN ('nsrjb') DO IF %%A==%%C match.bat %%B %%A
match.bat
REM MATCH.BAT Slot_Number Tape_Volume
ECHO "%date% - %time % - Ejecting volume %2 located into slot %1 into ports 1-3" >> C:\tape_withdraw.txt
nsrjb -u %2
nsrjb -w -S %1 -P 1-3
Please let me know if you need further details
Best regards,
Max
coganb
736 Posts
0
October 7th, 2010 03:00
excellent news - good work Max and thanks for sharing. I'm sure this will prove useful to others.
-Bobby