Forum Discussion

-matt-'s avatar
-matt-
Level 4
11 years ago

List Policies that have a specific schedule

NBU 7.5.6
Master Win2k8 R2

Hi all,

Does anyone know a way of listing policies that have a specific schedule?
It appears possible in the admin console  - Policies - Summary of all Policies, adding Policy Name to the column layout, and indexing the list by the required schedule name, but unlike the other views in the Summary, you cannot copy and paste out to excel for example.
bpplist seems to be where I need to head, but I'm no good at manipulating the output.


Thanks in advance.


Matt

  • Hi Matt,

     

    You'll need to port this to windows (playing with dir and findstr maybe).

     

    On linux I can run the command below where 10min is my schedule I'm looking for.

    find /usr/openv/netbackup/db/class -print | grep 10min | egrep -v 'days|info'

    Output is this, where TEST2 and TEST are the policies that have the above mentioned schedule.

    /usr/openv/netbackup/db/class/TEST2/schedule/10mins
    /usr/openv/netbackup/db/class/TEST/schedule/10mins
     

    I don't see any NBU commands that will give this to you without putting the output into an array with perl and then manupulating it. Which is probably what you're seeing when you looking the in the GUI.

     

    So yeah, this is not what you've asked for, but it gets you the info ;)

11 Replies

  • Now I see in the header of the first message that you are referring to NBU...I'm really sorry for not realizing of that detail.

    I thought you were asking for help in SMP, and that what I offered.

    Sorry for the inconvenience :$