cancel
Showing results for 
Search instead for 
Did you mean: 

Script or Command

noazara
VIP
   VIP   

Hi,

I need command /script to list all the active policies,with client name and backup selection in a row.

Bppllist will do.but i need the exact command /Script for this

 

NBU 7.7.3

1 ACCEPTED SOLUTION

Accepted Solutions

mph999
Level 6
Employee Accredited

root@gpk630r2f-18 mph $ bppllist test -U -allpolicies |grep -E 'Policy Name|Active'


Policy Name: advanced
Active: yes
Policy Name: catback
Active: yes
Policy Name: gpk630r2f-18
Active: yes
Policy Name: gpk630r2f-19
Active: yes
Policy Name: kms
Active: yes
Policy Name: locate
Active: yes
Policy Name: slp
Active: yes
Policy Name: test
Active: yes
Policy Name: tir
Active: yes
Policy Name: vault

View solution in original post

5 REPLIES 5

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified
You can build your own script by piping bppllist through egrep.

If you Google 'bppllist egrep', you will find various examples, e.g.
https://www.veritas.com/support/en_US/article.000013893
https://vox.veritas.com/t5/NetBackup/Is-there-a-way-to-get-a-listing-of-clients-and-backup-selection...
etc.

The examples should enable you to build your own command/script.


noazara
VIP
   VIP   

Still struggling

Systems_Team
Moderator
Moderator
   VIP   

Hi Noazara,

It's a little unclear if this is something you want to script and enhance, which is probably why Marianne pointed you to those commands.

If you are just looking to extract that information for reporting/informational purposes, then follow this link, and click on the hyperlink in my comment on that post:

https://vox.veritas.com/t5/NetBackup/How-can-I-Export-netbackup-policy-details-in-excel/m-p/856658#M...

This is a method of extracting that information (and more) into Excel.

Hope this helps (or at least points you in the right direction),

Steve

mph999
Level 6
Employee Accredited

root@gpk630r2f-18 mph $ bppllist test -U -allpolicies |grep -E 'Policy Name|Active'


Policy Name: advanced
Active: yes
Policy Name: catback
Active: yes
Policy Name: gpk630r2f-18
Active: yes
Policy Name: gpk630r2f-19
Active: yes
Policy Name: kms
Active: yes
Policy Name: locate
Active: yes
Policy Name: slp
Active: yes
Policy Name: test
Active: yes
Policy Name: tir
Active: yes
Policy Name: vault

mph999
Level 6
Employee Accredited

Update ...

 

root@gpk630r2f-18 mph $ bppllist -U -allpolicies |grep -E 'Policy Name|Active'