Forum Discussion

JonnyX's avatar
JonnyX
Level 2
18 years ago
Solved

Policy List by Client

Hi all,
 
I'm trying to extract my policy list from Netbackup and need to sort it by CLIENT and not POLICY NAME. I've looked at bppllist to see if there is anything I can do with that command, but I can't see anything. We have just taken over the administration of our Netbackup environment and previously we would get a report that looked like the below:
 

CLIENT <server name>

Policy Name <policy name

Include: ALL_LOCAL_DRIVES

System_State:\

Schedule: <schedule name>

Type: Full Backup

EXCLUDE DATE 0 - 12/01/2007

EXCLUDE DATE 1 - 12/02/2007

EXCLUDE DATE 2 - 12/03/2007

EXCLUDE DATE 3 - 01/05/2008

EXCLUDE DATE 4 - 01/06/2008

EXCLUDE DATE 5 - 01/07/2008

Saturday 00:10:00 --> Saturday 24:00:00

 

Schedule: <schedule name>

Type: Differential Incremental Backup

Monday 19:00:00 --> Monday 22:00:00

Tuesday 19:00:00 --> Tuesday 22:00:00

Wednesday 19:00:00 --> Wednesday 22:00:00

Thursday 19:00:00 --> Thursday 22:00:00

 

Policy Name: <policy name>

Include: ALL_LOCAL_DRIVES

System_State:\

Schedule: Annual

Type: Full Backup

Calendar sched: Enabled

SPECIFIC DATE 0 - 04/07/2007

Saturday 00:00:00 --> Saturday 24:00:00

Schedule: <schedule name>

Type: Full Backup

Calendar sched: Enabled

SPECIFIC DATE 0 - 01/05/2007

SPECIFIC DATE 1 - 09/01/2007

Saturday, Week 1

EXCLUDE DATE 0 - 01/06/2007

EXCLUDE DATE 1 - 04/07/2007

Saturday 00:10:00 --> Saturday 24:00:00

 

Can anyone point me in the right direction?

 

Cheers,

 

Jon.............

 

4 Replies

  • Hi Andy,
     
    Thanks for the quick response !
     
    I've tried this already and it's not what I'm after. I need a command at will show me all clients, not just individuals ones.
     
    A bit more information, I'm trying to set this up to run on a monthly basis for my bosses, so it will automatically e-mail them.
     
    Any other ideas?
     
    Cheers,
     
    Jon........
  • If there's nothing specific, you could always script it with a simple loop to run thru' a list off all clients.

    e.g.
    for CLIENT in client1 client2 client3 ... clientn
    do
    bppllist -U -byclient CLIENT
    done

    or

    cat CLIENTLIST.txt|
    while read CLIENT
    do
    etc etc etc.

    You get the idea :smileyhappy:

    Obviously, this won't help if you're not using UNIX :smileysad:



    JonnyX wrote:
     
    A bit more information, I'm trying to set this up to run on a monthly basis for my bosses, so it will automatically e-mail them.
     


    I can imagine that being quite some e-mail!!! :smileyvery-happy:





  • Cheers Andy, I was thinking that it might be some fancy little loop. Was just seeing if there was an alternative before I get my sleeves rolled up  :smileywink:
     
    Cheers,
     
    Jon..........