How to solve the error "(conf-482) No policy selection. Specify a valid policy selection."

  • KM00818305
  • 26-Mar-2014
  • 07-May-2014

Summary

To change the policy onwer in a managed the followimg command can be used: ovpolicy -setowner [-no-notify -host [-targetid []...]] [-ovrg ] [-targetovrg ] Operations Manager for Windows OMW 8.10 Operations Manager for Windows OMW 8.16 Operations Manager for Windows OMW 9.00

Error

When issuing the command with the following syntax the error below will be shown:

C:\Program Files\HP\HP BTO Software\support>ovdeploy -cmd "ovpolicy -setowner swvm557.bgr.hp.com" -ovrg server -host swvm560.bgr.hp.com
ERROR:   (depl-86) Unable to execute command 'ovpolicy -setowner
         swvm557.bgr.hp.com' on node 'swvm560.bgr.hp.com'.
          (depl-400) Message returned from the target node:
         (depl-86) Unable to execute command 'ovpolicy -setowner
         swvm557.bgr.hp.com' on node 'swvm560.bgr.hp.com'.
          (depl-301) Command 'C:\Windows\system32\cmd.exe /C "ovpolicy
         -setowner swvm557.bgr.hp.com' terminated with an error:

         ERROR:   (conf-482) No policy selection. Specify a valid policy.

image text

Cause

This is caused by a missing attribute.  The correct syntax is:

C:\Program Files\HP\HP BTO Software\support>ovdeploy -cmd "ovpolicy -setowner swvm557.bgr.hp.com -all" -ovrg server -host swvm560.bgr.hp.com
       * Set owner to all policies on host 'localhost'.INFO:    Set owner operation completed successfully.

image text