• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1176
  • Last Modified:

Eject a Tape in Windows 2000


Hello,

I have a backup scheduled using NTBackup that runs nightly to a standalone tape unit installed in the server running the backup.

All straightforward really.

On NT4, you could issue a "ntbackup eject" to pop the tape out at the end of the backup.

Is there a way to accomplish the same thing with Windows 2000.  Issue a command line command to the Removable Storage Manager somehow?

Thanks,

muff
0
muff
Asked:
muff
  • 2
1 Solution
 
tc982Commented:
Try this :

here you can find the bat file we use to backup our device.

It uses no tape sets, and writes to a tape everyday!


---begin of bat file ---
for /f "Tokens=1 Delims=/ " %%i in ('date /t') do  set daytag=%%i
for /f "Tokens=2-4 Delims=/ " %%i in ('date /t') do  set datetag=%%i/%%j/%%k
for /f "Tokens=1" %%i in ('time /t') do set timetag=%%i
set dtt=%timetag% on %daytag% %datetag%
; Achter de /LF moet de naam staan die je vind in de removable storage manager in de
; computermanagment console.
C:\WINNT\system32\rsm.exe refresh /LF"OnStream ADR50 Drive SCSI Sequential Device"
; At the /LF , you should give the device name as stated in the removable storage manager wich is located at the device manager
sleep 30
; you can find Sleep.exe in the NT resource kit

C:\WINNT\system32\ntbackup.exe backup "@C:\backup\matterhorn.bks" /n "%computername% %dtt%" /d "%computername% %dtt%" /v:no /r:no /rs:no /hc:on /m normal /j "%computername% %dtt%" /l:s /v:yes /p "miniQic" /um

; The .bks file you have to create using ntbackup. Just create a job and save the selection. Do not forget to change the pathname and filename above.
; Where you see miniQic that is just the name of the pool. Change it with the pool name found in the Removable Storage Manager! (eg DDs 4D)

C:\WINNT\system32\rsm.exe eject /PF"%computername% %dtt% - 1" /astart

; and last : eject the tape!
--end of bat file---
0
 
SuperCitrixManCommented:
rsm eject
0
 
muffAuthor Commented:

Not in this case SuperCitrixMan, issuing "rsm eject" just returns asking for more options.

0
 
SuperCitrixManCommented:
Well to be exact:

rsm eject /A

If you type in "rsm" you can see a list of commands, eject is one of them, so if you type "rsm eject" you see another list.  Hope that helps.
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now