Input multiple clients into bpimagelist
Hi,
I have a Windows Master server V6.5.6 with numerous Windows clients.
I am trying to input multiple clients into the bpimagelist command to ascertain which tapes were used during the overnight backup window.
When I run the following basic command I find all the tapes used in the backup but I need the same info for 25 clients, its pretty easy if it were a Unix master server but im struggling with the same syntax on windows.
> bpimagelist.exe -hoursago 24 -media -client <client> -U
Ive tried entering the clients in curly brackets, creating a text file with the clients and trying to import all to no avail so hopefully someone will be able to point me in the right direction, im thinking its straight forward but im stuck without grep and awk!!!
Thanks in advance.
Comments 2 Comments • Jump to latest comment
Create a FOR loop like you would in unix...
for %a in (clientx clienty clientz) do echo %a
or from a file list..
for /F %A IN (clients.txt) do echo %A
so then..
for /F %A IN (clients.txt) do bpimagelist.exe -hoursago 24 -media -client %A -U
Symantec Certified Specialist in Symantec NetBackup 7.0
(NBU 7.5.0.4)
Don't forget to vote or mark solution!
Works a treat and exactly what I needed, many thanks Nathan....
Would you like to reply?
Login or Register to post your comment.