Script to eject tape media under Win 2003?

Discussion in 'OT Technology' started by eighteen_psi, Sep 26, 2005.

  1. eighteen_psi

    eighteen_psi Active Member

    Joined:
    May 31, 2003
    Messages:
    2,381
    Likes Received:
    0
    Location:
    925
    I'm looking for a solution to eject a backup tape at a given time, say, 6AM, so a non-technical user can rotate media without otherwise interacting with the servers I'm supporting.

    Can someone whip up something to do this or point me in the right direction here?

    Thx :x:
     
  2. col_panic

    col_panic calm like a bomb Moderator

    Joined:
    Sep 19, 2003
    Messages:
    188,160
    Likes Received:
    0
    Location:
    winter haven, fl
    doesn't your backup software have the option to eject after backup?
     
  3. eighteen_psi

    eighteen_psi Active Member

    Joined:
    May 31, 2003
    Messages:
    2,381
    Likes Received:
    0
    Location:
    925
    Yes, but it doesn't always work with certain tape drives (libraries in particular). We want this as a failsafe if/when it doesn't so the crazy end users don't have to log on and mess around with the server. And yes, it has an eject button. People are stupid and I'd like them not to have to think about things.
     
  4. peerk

    peerk New Member

    Joined:
    Mar 14, 2005
    Messages:
    984
    Likes Received:
    0
    I have seen vbscript that can eject the cdrom. I'm not sure if it can be modified to eject tape drives.

    Here is the vbscript code(towards bottom of page). If you are going to try this you will probably only need the eject subroutine, since you should know the drive letter already.

    It might be easier to download a program like wizmo and then try:
    wizmo open=e

    This should open/eject media from drive e.

    Then you can schedule a task in windows to run this command at 6AM.
     

Share This Page