Video Screencast Help
Symantec to Separate Into Two Focused, Industry-Leading Technology Companies. Learn more.

Input multiple clients into bpimagelist

Created: 15 Nov 2012 • Updated: 16 Nov 2012 | 2 comments
This issue has been solved. See solution.

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 CommentsJump to latest comment

Nathan Kippen's picture

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
(NBU 7.5.0.6)
Don't forget to vote or mark solution!

SOLUTION
bfcsaus123's picture

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