Forum Discussion

syedzeeshan's avatar
13 years ago

netbackup windows scripts to automatically eject tapes

hi guys,

 

i need a some help here guys .i am not good at scripting

my enviorment

Win 64 bit server

nbu 6.5.5

i need to make to script which automatically eject tapes

 

  • OK, so look at the script and think about what it is asking for and make sure everything is right - please read through all of this and then try again:

    1. Make sure you are running the command on the Master Server

    2. The first thing it does is access the "tapes.txt" file so make sure that the path specified to that file is correct and that its name is actually tapes.txt

    3. Make sure that in the tapes,txt file you have your tapes listed correctly, media ID first (just the 6 digits - not the bar code) then a space or tab and then the slot number in the tape library for that tape - each tape appearing on a new line - and just the tapes for the library involved - if you have several libraries you will need a script for each one.

    4. It then calls vmchange so make sure the path to that is correct (C:\Program Files\veritas\volmgr\bin)

    5. It asks for the denisty - the script here uses HCART so make sure that is correct and it is not HCART2 or HCART3)

    6. It then asks for the robot host so make sure you have the correct host specified

    7. Next is the robot type - usually tld

    8. Next the robot number so double check that

    So up to now the script will do the ejects and then start the next line to update the inventory

    1. Again the path to volmgr\bin\ is specified

    2. Robot type, robot number, robot host and emm server are specified in this line so make sure they are correct

    If all of this is correct it should work - i have used this for many customers and as long as the details are correct it will owrk perfectly