Re: [ADSM-L] Deleting ALL tapes from a defunct TSM server from Volhist
2011-01-23 17:28:12
> Subject: [ADSM-L] Deleting ALL tapes from a defunct TSM server from Volhist
>
> Back in 2008 there was a thread on forcing the deletion of individual
> tapes from a defunct TSM server.
>
>
>
> http://www.adsm.org/lists/html/ADSM-L/2008-06/msg00068.html
>
> del volhist todate=today type=remote volume=A00229 force=yes
>
> I tried that and it worked as expected.
>
> Now I need to do it 483 more times.
>
> Is there a parameter that lets you designate which remote location to
> delete from, so that all the volsers can be deleted at once?
>
>
>
> George Huebschman
> Storage Support Team, Media Librarian
> Legg Mason, LMTS
George,
If one of the servers you are backing up via TSM is a linux or unix server you
should be able to create a shell script on that server to run that command.
The script will need to have a "do" loop into which you can get it to read a
list.
It would need to start like this:
#!/bin/ksh
#Standard TSM Admin command.
DSMADMC="/usr/bin/dsmadmc -id=admin -pa=XXXXXX -noconfirm "
And then have a line something like this
while read VOL
do
$DSMADMC " del volhist todate=today type=remote volume=$VOL force=yes "
done < /tmp/nodelist
Please check the syntax above before running as this is only a quick example...
Regards
Paul
ANL DISCLAIMER
This e-mail and any file attached is confidential, and intended solely to the
named addressees. Any unauthorised dissemination or use is strictly prohibited.
If you received this e-mail in error, please immediately notify the sender by
return e-mail from your system. Please do not copy, use or make reference to it
for any purpose, or disclose its contents to any person.
|
|
|