Forum Discussion

MABaig's avatar
MABaig
Level 3
13 years ago

Adding client in multiple policies through cmd line.

 

Hi,

Got a query on a issue I am facing.

I am migrating clients from old master to new master and policies are already created in new master can any one tell me how add client in multiple policies in one time through cmd line.

Thanks,

Abaig

  • bpplclients <policyname> -M <master_name> -add client_hostname <hardware> <os>

     

    Script it to add to more policies

     

    for policy in policy1 policy2

    do

    bpplclients $policy -M <master_name> -add client_hostname <hardware> <os>

    done

     

    or something like that. Don't have a netbackup system to try it.

  • bpplclients <policyname> -M <master_name> -add client_hostname <hardware> <os>

     

    Script it to add to more policies

     

    for policy in policy1 policy2

    do

    bpplclients $policy -M <master_name> -add client_hostname <hardware> <os>

    done

     

    or something like that. Don't have a netbackup system to try it.