Video Screencast Help

Need to print an o/p

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

Hi Team,

I need to create a script to find the policy name for n numbers of clients.

I have used  bppllist -byclient <clientname>

but  it is taking lot of time to produce the o/p
and i have used bpcoverage and i felt it is fast compare to bppllist
bpcoverage -c <clientname>  -no_client_query -hardware -no_hw_header -no_cov_header
CLIENT: client name
   Policy Name                       Hardware/OS
   -----------                              -----------
   <policy name>                   PC-x64/Windows2003
Here i need to print only the policy name. Please me how to do it.

Comments 4 CommentsJump to latest comment

Gopi4sl's picture

Hi Ashish,

Thanks for your help. But it didnt help me for my question.

mph999's picture

If you are using unix/ linux this should work

bpcoverage -c <clientname>  -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'


Regards,  Martin
Setting Logs in NetBackup:
Gopi4sl's picture

Hi Martin,

Thanks for your help. It is working fine. But still i feel it is time consuming while searching n number of clients via script.

Is there any other quick way  to get the policy name alone for n number of clients.

Thanks in Advance!!