Forum Discussion

H_Sharma's avatar
H_Sharma
Level 6
10 years ago

Policy Storage Change Command

Hello Experts,

Pls let me know the command to change the Policy storage for mulitple policies as we need to change the storage of all the policies for Windows 7.6.0.1 Master Server.

Thanks,

  • You can change policy storage by following command.

    bpplinfo policy_name -modify -residence storage_unit

  • I dont think you can do it for all policies in omne go .. you would need to script it.

    A simple batch file to do this would be as follows....

    Assuming a Windows Master (or media or remote admin console) and NBU installed to C:\Program Files\Veritas ...

    Make a directory on the C drive named C:\polchange\

    Make a file in there named polchange.bat

    Right click this file and select edit then paste in the following .. changing the "robot-tld0-hcart3" to whatever you need it to be .. and if you need to change the volume pool you will need to add that change too (note that the the long command goes all on one line .. and dont miss out the speech marks)

    Do test it somewhere first!!!

    "C:\Program Files\veritas\netbackup\bin\admincmd\bppllist" > c:\polchange\list.txt

    For /F %%a in (C:\polchange\list.txt) do "C:\program files\veritas\netbackup\bin\admincmd\bpplinfo" %%a -modify -residence robot-tld0-hcart3

    pause

     

4 Replies

  • You can change policy storage by following command.

    bpplinfo policy_name -modify -residence storage_unit

  • I dont think you can do it for all policies in omne go .. you would need to script it.

    A simple batch file to do this would be as follows....

    Assuming a Windows Master (or media or remote admin console) and NBU installed to C:\Program Files\Veritas ...

    Make a directory on the C drive named C:\polchange\

    Make a file in there named polchange.bat

    Right click this file and select edit then paste in the following .. changing the "robot-tld0-hcart3" to whatever you need it to be .. and if you need to change the volume pool you will need to add that change too (note that the the long command goes all on one line .. and dont miss out the speech marks)

    Do test it somewhere first!!!

    "C:\Program Files\veritas\netbackup\bin\admincmd\bppllist" > c:\polchange\list.txt

    For /F %%a in (C:\polchange\list.txt) do "C:\program files\veritas\netbackup\bin\admincmd\bpplinfo" %%a -modify -residence robot-tld0-hcart3

    pause

     

  • Or if you wanted to do it thru' the GUI.

    Within Policies/Summary of all Policies, on the right hand side under 'Policies', highlight all affected policies (or a few at a time) & right-click 'Change'.

    You should then get a "Change attributes for nn selected Policies" window where you can then change STU, volume pool etc.

    [[EDIT: don't forget that the policy STU & volume pool can be over-ridden at the schedule level. If these over-rides are in place then no amount of changing at the policy level will have any effect]]

  • Andy .. i tried something like that once .. changed lots more than just the storage unit!! surprise

    The schedule override can be dealt with using a similar script if needed