The ism-applyPolicyWait command applies a policy to a host and returns the host name on which the policy is applied. This command does not return the host name until the policy is applied or timeout occurs.
This command has the following format:
ism-applyPolicyWait -policyName policy_name -policyType policy_type -hostName host_name [-timeout time]
Specifies the policy name to apply.
Specifies the policy type.
Specifies the name of the host computer.
(Optional) Specifies the time limit in seconds for this command to wait until the hosts are successfully configured after which the timeout occurs. If not specified, this command does not wait for the hosts to be successfully configured.
Default: 30 seconds.
Example: Apply a policy and Wait
Apply a policy, policy5 to the host, hvserver.
ism-applyPolicy -policyName policy5 -policyType SystemEDGE.SRM.Policies -hostname hvserver -timeout 400
Copyright © 2013 CA. All rights reserved. |
|