Using the sampolicy command to manage policies

The following sections describe how to manage policies using the sampolicy command. For detailed information, see the description of the command in IBM Tivoli System Automation for Multiplatforms Reference.

Disabling sampolicy confirmation requests:

When you issue the sampolicy command to activate, deactivate, or update a policy, you are prompted to confirm the action after the syntax check is complete. To disable the confirmation request, for example, in batch scripts, you can use the -q parameter of the sampolicy command.

Example: To suppress the confirmation request when activating the policy that is specified in the XML file myPolicy.xml, issue the following command:
sampolicy -q -a myPolicy.xml