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

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

Created: 11 Nov 2013 • Updated: 12 Nov 2013 | 11 comments
This issue has been solved. See solution.

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

 

Operating Systems:
Discussion Filed Under:

Comments 11 CommentsJump to latest comment

revaroo's picture

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.

 

 

 

 

SOLUTION
Stumpr2's picture

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.

 

VERITAS ain't it the truth?

Marianne's picture

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.

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links

revaroo's picture

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's picture

Thank you all for your great answers!!!

I have got what I want by following your suggestion.

 

Thanks 

 

Jim

Marianne's picture

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

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

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links

uuontario's picture

Hi Marianne,

 

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

 

 

Thanks

 

Jim

revaroo's picture

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's picture

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's picture

Hi Revaroo,

 

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

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

 

Jim