cancel
Showing results for 
Search instead for 
Did you mean: 

NBU combined commands

ravin_a
Level 4

I want to pull down a report from the master server in the below format, can I have support?

 

Client Name  Policy Name Policy (Active/Not)  Backup Selections 

------------------  ------------------ ---------------------------  ------------------------------

2 ACCEPTED SOLUTIONS

Accepted Solutions

Mark_Solutions
Level 6
Partner Accredited Certified

You would need to script something that extracted the fiedls you want from the bppllist -allpolcies commands

I guess if you are on Solaris you could grep the output selecting Policy Name:, Client Name:, Active:, and Include:

View solution in original post

mph999
Level 6
Employee Accredited

Starter for 10 ...

 bppllist -allpolicies |awk '/^CLIENT|^CLASS|^INCLUDE/{print $0}'

Quite difficult to 'format' nicely ... - quite a lot of work I think to do that.

Suggest using opscenter

 

 

View solution in original post

7 REPLIES 7

Mark_Solutions
Level 6
Partner Accredited Certified

You would need to script something that extracted the fiedls you want from the bppllist -allpolcies commands

I guess if you are on Solaris you could grep the output selecting Policy Name:, Client Name:, Active:, and Include:

ravin_a
Level 4

Thank you Mark,

 

is there any combined command there? without script..

DG-2005
Level 5

no command without scripting. if on windows, can check this out as well to help format.

 

https://github.com/lazywinadmin/NetBackupPS

 

 

ravin_a
Level 4

I have Solaris

Mark_Solutions
Level 6
Partner Accredited Certified

A grep command should do it but i am not a great 'nix expert to tell you exactly the command you would need.

Marianne
Level 6
Partner    VIP    Accredited Certified

If you look at output of 'bppllist -allpolicies -U'

you will see that multiple lines are produced for each policy name.

You will need someone with sufficient scripting knowledge to pipe above output to egrep and awk to produce output the format that you would like to see.

Some examples of policy-related questions and answers on this forum:

https://www-secure.symantec.com/connect/forums/command-check-which-policies-have-1-year-retention 

https://www-secure.symantec.com/connect/forums/how-pull-client-details-its-retention-periods 

https://www-secure.symantec.com/connect/forums/how-do-i-generate-policy-list-along-storage-unit-conf... 

https://www-secure.symantec.com/connect/forums/command-line-find-all-clients-active-policies

mph999
Level 6
Employee Accredited

Starter for 10 ...

 bppllist -allpolicies |awk '/^CLIENT|^CLASS|^INCLUDE/{print $0}'

Quite difficult to 'format' nicely ... - quite a lot of work I think to do that.

Suggest using opscenter