Previous Topic: ism-applyPolicyForService Command--Apply a Policy to all Systems (Funclet)

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


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

The ism-applyPolicies command applies the specified policy to a group of hosts.

This command has the following format:

ism-applyPolicies
-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.

Note: If you specify zero, the default system wide timeout occurs.

Example: Apply Policies to a Group of Hosts

This example applies the specified policy to a group of hosts.

ism-applyPolicies -policyName policy5 -policyType SystemEDGE -hostName "s1"-timeout 30