cancel
Showing results for 
Search instead for 
Did you mean: 

policy-calender command

Raghunath_k
Level 4
hi all,

i need to find out wether a frequency or calender date is defined for a policy in command line. and store the name of the policy to a txt file. how do i use bppllist or bpplsched or any combinations to get the same.


thanks all..
5 REPLIES 5

Dennis_Strom
Level 6
bppllist -L -l -U -verbose -allpolicies | grep Freq

Stumpr2
Level 6
Dennis,
that doesn't work.
the phrase to look for should possibly be?
Calendar sched: Enabled

something like this?
1. get a list of policies
2. for loop to check each policy for the existence of
"Calendar sched: Enabled"Message was edited by:
Bob Stump

Rakesh_Khandelw
Level 6
To get policy listing for calendar based schedules

grep "CALENDAR 1" /usr/openv/netbackup/db/class/*/*/*/info

redirect the o/p to a file with desired name and location. If you have a different install directory for NetBackup, replace /usr/openv/netbackup with the location you have.

For getting frequency for all the policies -
grep "FREQUENCY" /usr/openv/netbackup/db/class/*/*/*/info

and redirect it to a file with desired name and location. Keep in mind the number you are seeing next to FREQUENCY are seconds not minutes or hours or day. To convert it to hours or days divide it by appropriate conversion number. If you have a different install directory for NetBackup, replace /usr/openv/netbackup with the location you have.Message was edited by:
RK

Stumpr2
Level 6
absolutely a correct answer!

Raghunath_k
Level 4
this was the perfect guide, i did write a script for the same and wowow!!!!!.

ur answer more intrested my for developing the program rather then digging it some where.

Thanks