cancel
Showing results for 
Search instead for 
Did you mean: 

Activate / Deactivate policies from command line?

Jim_3434
Level 2

Is there a way to activate / deactivate policies from the command line?

Currently using NBU 6.5.3.

1 ACCEPTED SOLUTION

Accepted Solutions

netbackup_rooki
Level 4
Certified
bpplinfo -inactive or -active

View solution in original post

4 REPLIES 4

netbackup_rooki
Level 4
Certified
bpplinfo -inactive or -active

scorpy_582
Level 6
 /usr/openv/netbackup/bin/admincmd/bpplinfo <policyname> -modify -inactive

Jim_3434
Level 2
Thanks, missed this in the commands manual.

Jim_Horalek
Level 4
Partner Accredited Certified
These aren't very smart scripts. The command line argument $1 is used to grep the policies for a match.

cat policy-deactivate.sh
#! /bin/sh
for i in `(/usr/openv/netbackup/bin/admincmd/bppllist | grep $1)`
do
/usr/openv/netbackup/bin/admincmd/bpplinfo $i -modify -inactive
done

cat policy-activate.sh
# cat policy-activate.sh
#! /bin/sh
for i in `(/usr/openv/netbackup/bin/admincmd/bppllist | grep $1)`
do
/usr/openv/netbackup/bin/admincmd/bpplinfo $i -modify -active
done