cancel
Showing results for 
Search instead for 
Did you mean: 

Change storage unit within an existing policy via command line

drpaine10
Level 3

Does anyone know how to change the storage unit in an existing policy via command line?

I thought it might be bpplinfo command but that doesnt seem to have the options I am looking for.

any ideas?

3 REPLIES 3

Andy_Welburn
Level 6

SYNOPSIS

/usr/openv/netbackup/bin/admincmd/bpplschedrep policy_name sched_label [
-M master_server,...] [-v] [-st sched_type] [-freq backup_frequency]
[-mpxmax mpx_factor] [-cal 0|1|2] [-incl mm/dd/yyyy] [-excl
mm/dd/yyyy] [-delincl mm/dd/yyyy] [-delexcl mm/dd/yyyy] [-weekday
day_name week] [-dayomonth 1-31|l] [-delweekday day_name week]
[-deldayomonth 1-31|l] [-ci] [-ce] [-cw] [-cd] [-number_copies
number][-rl retention_level[,rl-copy2,...,rl-copyn]] [-fail_on_error
0|1[,0|1,...,0|1]] [-residence storage_unit_label
[,stunit_copy2,...stunit_copyn]] [-pool volume_pool_label
[,pool_copy2,...pool_copyn]] [-sg share_group
[,share_copy2,...share_copyn]] [-(0..6) start duration] [-res_is_stl
0|1]

***EDIT***

Re-reading that'll only do it at the schedule level & not the overall policy.

***EDIT #2***

That threw me! Why doesn't bpplinfo do what you need?

From the Commands Admin Guide:

To set the storage unit of the policy tstpolicy to tstunit and view the results, perform the following:

bpplinfo tstpolicy -modify -residence tstunit
bpplinfo tstpolicy -L

Chris_Morris
Level 3
Employee Certified

You'll actually want to use the bpplinfo command to manage an existing policy.

You can read all about it in our Commands guide.  Here is the link for the NetBackup 6.5 Commands Guide for Windows...

http://www.symantec.com/docs/TECH52833

bpplinfo is on page 226.

RiaanBadenhorst
Moderator
Moderator
Partner    VIP    Accredited Certified

To esnure your scripting skills dont get rusty :p