Previous Topic: ism-applyPolicyTemplatesForService Command--Apply Policy Templates to all Systems (Funclet)

Next Topic: ism-cancelJob Command--Cancel a Job (Funclet)


ism-applyPoliciesAndTemplatesForService Command--Apply Policies and Templates to all Systems (Funclet)

The ism-applyPoliciesAndTemplatesForService command applies both policies and templates to all computer systems in a managed service.

This command has the following format:

ism-applyPoliciesAndTemplatesForService
-policyName policy_name 
-policyType policy_type 
-serviceName service_name
-templateName templateName
-templateOs templateOs
[-timeout time]
[-replaceExisting replaceExisting]
-policyName policy_name

Specifies the policy name to apply.

Default: Null

-policyType policy_type

Specifies the policy type.

-serviceName service_name

Specifies the name of the managed service.

Note: In the service name, use double backslash as a delimiter. Using single backslash as a delimiter is interpreted as an escape sequence. For example, specify service name as “Enterprise\\Data Center\\servicename”, instead of “Enterprise\Data Center\servicename”.

-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 all Systems

This example applies both policies and templates to the managed service, CA Virtual Assurance.

ism-applyPoliciesAndTemplatesForService -policyName policy5 -policyType SystemEDGE -serviceName "Enterprise\\Data Center\\CA Virtual Assurance Services" -templateName template2 -templateOs windows -timeout 400 -replaceExisting yes