cancel
Showing results for 
Search instead for 
Did you mean: 

Input multiple clients into bpimagelist

bfcsaus123
Level 3

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.

 

1 ACCEPTED SOLUTION

Accepted Solutions

Nathan_Kippen
Level 6
Certified

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


 

View solution in original post

2 REPLIES 2

Nathan_Kippen
Level 6
Certified

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


 

bfcsaus123
Level 3

Works a treat and exactly what I needed, many thanks Nathan....