04-20-2010 03:46 AM
04-20-2010 04:40 AM
04-20-2010 12:14 PM
make a file - I called it expire.bat
put this in it. (if your install path is different please change it)
"C:\Program Files\VERITAS\NetBackup\bin\admincmd\bpmedialist.exe" -m %1
"C:\Program Files\VERITAS\NetBackup\bin\admincmd\bpexpdate.exe" -m %1 -d 0
"C:\Program Files\VERITAS\NetBackup\bin\admincmd\bpmedialist.exe" -m %1
save file.
expire.bat <TAPE NUMBER>
here is output
expire.bat H00006
Server Host = mymaster
id rl images allocated last updated density kbytes restores
vimages expiration last read <------- STATUS ------->
--------------------------------------------------------------------------------
H00006 12 2 08/13/2006 00:04 N/A dlt 122566743 0
MPX 10/19/2010 20:30 04/19/2010 18:57 IMPORTED
Media H00006 is due to expire at 10/19/2010 20:30:52
Are you sure that the data on this media is not critical to
your business, and you are sure you want to delete H00006 y/n (n)? y
requested media id is not assigned to this host in the EMM database
--------------
First it looks up the tape and shows it to you -
Then it asks if you really want to expire the images on the tape.
Then it looks it up again - this should have the error that it is not in the EMM database, meaning it was succesfull in expireing all the images on the tape. If it comes back and shows you the tape info again - then it did not expire it.
04-25-2010 12:57 PM
04-26-2010 09:44 AM
04-26-2010 02:46 PM