cancel
Showing results for 
Search instead for 
Did you mean: 
pkh
Moderator
Moderator
   VIP    Certified

Following a discussion in the forum, attached is a pair to scripts to import a tape in the portal to the first empty slot of the library.  It is a refinement of script first posted by JaapT.  This script caters for installations which do not use barcode labels and has less disk I/O's.

These scripts should be placed in the Backup Exec installation directory and can be scheduled using the Windows Scheduler.

Comments
pkh
Moderator
Moderator
   VIP    Certified

If you are using BE 2012, then you would need the BEMCLI version of this script which can be found here

https://www-secure.symantec.com/connect/downloads/bemcli-script-import-tape-first-empty-slot

bharrison_it
Not applicable

Excellent script, but I've found that when run without a tape in the I/O slot the job will remain running until manually cancelled. 

I found that adding a schedule script to the findslot.bat BEMCMD command allows setting the job to auto-cancel after a defined period.

I've updated findslot.bat as follows:

 

 

bemcmd.exe -a"TS3100" -o80 -S%slot% -fsched.txt
EXIT
)
 
:END
 
And created sched.txt as below in the BEX program folder:
 
[Schedule]
RUN_IMMEDIATE=1
AUTO_CANCEL_TIME=60MINUTES

 

pkh
Moderator
Moderator
   VIP    Certified

Great!  I never thought of this.  In my case, I would use 5 minutes as for the AUTO_CANCEL_TIME.  My import occurs in the middle of the night and nobody is around.

Version history
Last update:
‎10-05-2009 09:09 PM
Updated by:
Moderator