cancel
Showing results for 
Search instead for 
Did you mean: 

How to find netbackup policy name based on RETENTION_LEVEL 12 in command line

uuontario
Level 3

Hi All, 

 

I want to find those policy names with RETENTION_LEVEL = 12, which is 7 years. 

My master server is Solari 10. NBU7.1.0.4.

 

How do I do that in command line?  I have been searched command guid and google it. I could not find any.

 

Thanks a lot for your help.

 

Jim

 

1 ACCEPTED SOLUTION

Accepted Solutions

revarooo
Level 6
Employee

cd /usr/openv/netbackup/db/class

find . -depth -exec grep -l "^RETENTION_LEVEL 12" {} \;
./test_policy/schedule/FULL/info

Highlighted in bold is your policy name. This won't work for policies using SLP as storage unit though.

 

 

 


 

View solution in original post

11 REPLIES 11

revarooo
Level 6
Employee

cd /usr/openv/netbackup/db/class

find . -depth -exec grep -l "^RETENTION_LEVEL 12" {} \;
./test_policy/schedule/FULL/info

Highlighted in bold is your policy name. This won't work for policies using SLP as storage unit though.

 

 

 


 

Stumpr2
Level 6

or...GUI

NetBackup Management --> Host Properties --> master servers
Right click on the master server to bring up its properties.
click on retention levels.

Then simply click on any retention level and the policies that use that retention are displayed.

 

Marianne
Level 6
Partner    VIP    Accredited Certified

Try something like this:

/usr/openv/netbackup/bin/admincmd/bppllist -allpolicies -U |egrep -e 'Policy Name' -e 'Retention Level'

It will list all policy names and the Retention Levels for each policy.

revarooo
Level 6
Employee

Stumpr's GUI answer gives the same result as mine - it does not display Policies with SLP storage units where the retention is set in the SLP.


If I change a retention in a policy (when not using SLP) to 9 months, then put it back to SLP storage unit, it still displays the policy as 9 months and not the 2 weeks I have set in the SLP!

Seems like a bug / overlook to me.

uuontario
Level 3

Thank you all for your great answers!!!

I have got what I want by following your suggestion.

 

Thanks 

 

Jim

Marianne
Level 6
Partner    VIP    Accredited Certified

Please mark the post that has helped you most as solution.

Or else mark more than one by selecting 'Request Split Solution'.

revarooo
Level 6
Employee

Perhaps you could choose 1 or more of the above posts as the solution and not your own post. People spend their own precious time assisting and acknowledging their help is appreciated.

uuontario
Level 3

I have used this one to get what I want. Thanks

uuontario
Level 3

yes, you are absolutly right. my appologies for not replying properly.

 

The following post I have got from you, revaroo, help me a lot.

 

this is the solution I want to mark but need to find a way to change my previous post just so everyone can see it.

 

 

cd /usr/openv/netbackup/db/class

find . -depth -exec grep -l "^RETENTION_LEVEL 12" {} \;
./test_policy/schedule/FULL/info

Highlighted in bold is your policy name. This won't work for policies using SLP as storage unit though.

uuontario
Level 3

Hi Marianne,

 

I have cleared mine and tried to mark ravaroo's comment as solution now

 

 

Thanks

 

Jim

uuontario
Level 3

Hi Revaroo,

 

I have changed the solution status. Now it is cleared.

Thanks again for everyone's quick response on this question.

 

Jim