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

Next Topic: ism-applyPoliciesForService Command--Apply Policies to all Systems (Funclet)


ism-applyPoliciesAndTemplates Command--Apply Policies and Templates to a Group of Hosts (Funclet)

The ism-applyPoliciesAndTemplates command applies both policies and templates to a group of hosts.

This command has the following format:

ism-applyPoliciesAndTemplates
-policyName policyName
-policyType policyType
-hostName hostname
-templateName templateName
-templateOs  templateOs
[-timeout time]
[-replaceExisting replaceExisting]
-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.

-templateName templateName

Specifies the name of the template.

-templateOs templateOs

Specifies the policy template operating system.

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

-replaceExisting replaceExisting

(Optional) Replaces the existing configuration of the host with the new configuration.

Example: Apply policies and templates to a group of Hosts

Apply policies and templates to a group of hosts.

ism-applyPoliciesAndTemplates -policyName policy6 -policyType SystemEDGE.SRM.Policies -hostName "s4","s5","s6" -templateName template2 -templateOs windows -timeout 400 -replaceExisting yes