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

Script

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.

Thanks,

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'

e.g.

for CLIENT in client1 client2 client3 client4
do
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'
done

 

***EDIT***

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

SOLUTION
Gopi4sl's picture

Hi Team,

Thanks for all your help Mates.

Thanks,

Gopinath S