11-11-2013 06:15 AM
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
Solved! Go to Solution.
11-11-2013 06:26 AM
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.
11-11-2013 06:26 AM
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.
11-11-2013 06:30 AM
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.
11-11-2013 06:37 AM
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.
11-11-2013 07:10 AM
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.
11-11-2013 07:19 AM
Thank you all for your great answers!!!
I have got what I want by following your suggestion.
Thanks
Jim
11-11-2013 08:52 AM
Please mark the post that has helped you most as solution.
Or else mark more than one by selecting 'Request Split Solution'.
11-11-2013 11:47 PM
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.
11-12-2013 04:43 AM
I have used this one to get what I want. Thanks
11-12-2013 04:47 AM
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.
11-12-2013 04:50 AM
Hi Marianne,
I have cleared mine and tried to mark ravaroo's comment as solution now
Thanks
Jim
11-12-2013 04:54 AM
Hi Revaroo,
I have changed the solution status. Now it is cleared.
Thanks again for everyone's quick response on this question.
Jim