Dell DR4300e NetVault Backup - Best Practices for Setting up VTL Containers an - Page 46

choice /T 5 /C jn /N /D j >NUL

Page 46 highlights

:: Open and close I/O Port, to remove a :: remaining media, wait 5 seconds echo "%nvutil%\nvopeneeport.exe" -libraryname "%library_name%" "%nvutil%\nvopeneeport.exe" -libraryname "%library_name%" choice /T 5 /C jn /N /D j >NUL: "%nvutil%\nvcloseeeport.exe" -libraryname "%library_name%" choice /T 5 /C jn /N /D j >NUL: echo Stage 3 - Completed Export expired media and open :: I/O Port. Library cannot load media :: into a drive anymore echo "%nvutil%\nvexportmedia.exe" -barcode %ML% "%nvutil%\nvexportmedia.exe" -barcode %ML% choice /T 5 /C jn /N /D j >NUL: "%nvutil%\nvopeneeport.exe" -libraryname "%library_name%" echo Stage 4 - Completed Media is now unreachable for the library :: in I/O Slot, now we cheat NetVault Backup! :: :: For security reasons: Rename old media first :: After that, create new media with old name :: Deletion in next step if exist "%vtlpath%\media\%ML%.disabled" erase "%vtlpath%\media\%ML%.disabled" ren "%vtlpath%\ media\%ML%" %ML%.disabled "%nvutil%\nvmakemedia.exe" %media_size% mediafiles "%vtlpath%\media\%ML%" "%nvutil%\nvcloseeeport.exe" -libraryname "%library_name%" choice /T 5 /C jn /N /D j >NUL: echo "%nvutil%\nvblankmedia.exe" -barcode %ML% -wait "%nvutil%\nvblankmedia.exe" -barcode %ML% -wait if %GL% == None ("%nvutil%\nvlabelmedia.exe" -barcode %ML% -newlabel %ML%) else ("%nvutil%\nvlabelmedia. exe" - barcode %ML% -newlabel %ML% -newgroup %GL%) if exist "%vtlpath%\media\%ML%.disabled" erase "%vtlpath%\media\%1.disabled" choice /T 5 /C jn /N /D j >NUL: echo Stage 5 - Completed goto :eof echo Stage 6 - Completed 46 Best practices for setting up Dell VTL Container or NetVault Backup native virtual tape library (nVTL)

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52

Best practices for setting up Dell VTL Container or NetVault Backup native virtual tape library (nVTL)
46
:: Open and close I/O Port, to remove a
:: remaining media, wait 5 seconds
:: ==============================================
@echo “%nvutil%\nvopeneeport.exe” -libraryname “%library_name%” “%nvutil%\nvopeneeport.exe” -libraryname
“%library_name%”
choice /T 5 /C jn /N /D j >NUL: “%nvutil%\nvcloseeeport.exe” -libraryname “%library_name%” choice /T 5
/C jn /N /D j >NUL:
echo Stage 3 - Completed
::
::
:: ==============================================
:: Export expired media and open
:: I/O Port. Library cannot load media
:: into a drive anymore
:: ============================================== echo “%nvutil%\nvexportmedia.exe” -barcode %ML%
“%nvutil%\nvexportmedia.exe” -barcode %ML%
choice /T 5 /C jn /N /D j >NUL: “%nvutil%\nvopeneeport.exe” -libraryname “%library_name%” echo Stage 4
- Completed
::
::
:: ===============================================
:: Media is now unreachable for the library
:: in I/O Slot, now we cheat NetVault Backup!
::
:: For security reasons: Rename old media first
:: After that, create new media with old name
:: Deletion in next step
:: ===============================================
if exist “%vtlpath%\media\%ML%.disabled” erase “%vtlpath%\media\%ML%.disabled” ren “%vtlpath%\
media\%ML%” %ML%.disabled
“%nvutil%\nvmakemedia.exe” %media_size% mediafiles “%vtlpath%\media\%ML%” “%nvutil%\nvcloseeeport.exe”
-libraryname “%library_name%”
choice /T 5 /C jn /N /D j >NUL:
echo “%nvutil%\nvblankmedia.exe” -barcode %ML% -wait
“%nvutil%\nvblankmedia.exe” -barcode %ML% -wait
if %GL% == None (“%nvutil%\nvlabelmedia.exe” -barcode %ML% -newlabel %ML%) else (“%nvutil%\nvlabelmedia.
exe” - barcode %ML% -newlabel %ML% -newgroup %GL%)
if exist “%vtlpath%\media\%ML%.disabled” erase “%vtlpath%\media\%1.disabled”
choice /T 5 /C jn /N /D j >NUL:
echo Stage 5 - Completed goto :eof
echo Stage 6 - Completed