Previous Topic: ism-applyPolicies Command--Apply Policies to a Group of Hosts (Funclet)

Next Topic: ism-applyPolicyTemplates Command--Apply Policy Templates to a Group of Hosts (Funclet)


ism-applyPolicyWait Command--Apply a Policy and Wait (Funclet)

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]
-policyName policy_name

Specifies the policy name to apply.

-policyType policy_type

Specifies the policy type.

-hostName host_name

Specifies the name of the host computer.

-timeout time

(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