11-15-2012 06:32 AM
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.
Solved! Go to Solution.
11-15-2012 07:28 AM
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
11-15-2012 07:28 AM
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
11-16-2012 02:14 AM
Works a treat and exactly what I needed, many thanks Nathan....