Video Screencast Help
Give us your opinion and win with Symantec! Please help us by taking this survey to tell us about your experience with Symantec Connect, so that we can continue to grow and improve.  Take the survey.


Created: 10 Oct 2012 • Updated: 10 Oct 2012 | 4 comments
This issue has been solved. See solution.

Hi Team,

Could you please provide me a script to get quickly the policy name for 'n' numbers of clients.


Gopinath S

Comments 4 CommentsJump to latest comment

Andy Welburn's picture

From Ashish's post, *your thread* being the operative words!

Just put the command in Martins post (solution) within a 'loop'


for CLIENT in client1 client2 client3 client4
bpcoverage -c $CLIENT  -no_client_query -hardware -no_hw_header -no_cov_header |awk '{print $1}' |sed 's/^CLIENT//g' |sed 's/^://' |sed 's/^Policy//' |sed 's/-//g'


@Ashish: You really didn't need to edit your post! I was pointing out the fact (to the OP) that you'd pointed him to *his own* thread & therefore, from my POV, the answer was already available him! I thought your original wording was *very* appropriate!

Nathan Kippen's picture

You can shorten the awk/sed portion...

bpcoverage -c $CLIENT -no_client_query -hardware -no_hw_header -no_cov_header | awk 'NR>6{print $1}'

Symantec Certified Specialist
Don't forget to vote or mark solution!

Gopi4sl's picture

Hi Team,

Thanks for all your help Mates.


Gopinath S