How to easily determine which policies are active/inactive (for a large number of policies) when getting error status code 247

Problem

How to easily determine which policies are active/inactive (for a large number of policies) when getting error status code 247

Error Message

Status Code: 247 - the specified policy is not active.

Solution

Normally, the Backup Policy Management GUI is used (by looking at the policy attributes) when checking if a policy is active or not. This can be very tedious if hundreds of policies are involved. A better approach is to use the bppllist command.

To determine whether a class is active or not, run the command:

/usr/openv/netbackup/bin/admincmd/bppllist -allpolicies -L | egrep "Policy Name|Active" > allpolicies.txt

The output of allpolicies.txt should look similar to this:

Policy Name:   Netware
Active:            no
Policy Name:   Windows
Active:            no
Policy Name:   Test1
Active:            yes
Policy Name:   Test2
Active:            no
Policy Name:   Test3
Active:            yes
Policy Name:   Oracle
Active:            yes

NOTE: If the egrep command is not used, it will give a long listing of each policy. This will create hundreds of pages if there are large number of policies to list.


Terms of use for this information are found in Legal Notices.

Search

Survey

Did this article answer your question or resolve your issue?

No
Yes

Did this article save you the trouble of contacting technical support?

No
Yes

How can we make this article more helpful?

Email Address (Optional)