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 Polic...
  • RiaanBadenhorst's avatar
    11 years ago

    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 ;)