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]
Specifies the policy name to apply.
Specifies the policy type.
Specifies the name of the host computer.
Specifies the name of the template.
Specifies the policy template operating system.
(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.
(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
Copyright © 2013 CA. All rights reserved. |
|