Previous Topic: dpmpolicy importaction Command--Import Actions from a FileNext Topic: dpmpolicy resetruleexeccount Command--Reset Retries to Run a Rule


dpmpolicy importrule Command--Import Rules from a File

The dpmpolicy importrule command imports rules from a file.

This command has the following format:

dpmpolicy importrule [-sc sc_url] [-entity_type entitytype -entity_name entityname] -file filename [-rule_name rulename] [-ws_user username -ws_password password] [-locale iso639value]
-sc sc_url

(Optional) Defines the URL for the service controller host.

Example: https://hostname:port/...

hostname

Defines the fully qualified host where the service controller is installed.

Example: localhost.ca.com

port

Defines the listening port for the service controller server.

Example: 80
-entity_type={server|service}

Defines whether this rule is associated with a server or service.

-entity_name entityname

Defines the name of the server or service.

-file filename

Defines the file name.

-rule_name rulename

Defines the name that you assigned to the rule that you created. When the file contains only one rule, this option can be used to rename the rule upon import. If the file contains more than one rule, the value is ignored.

-ws_user username -ws_password password

(Optional) Specifies the credentials to use for the web service security check. If you do not include credentials, you are prompted to enter them. Avoid the prompt for credentials by setting up your own session using caaipsecurity.

-locale iso639value

(Optional) Specifies an IS0 639_3166 combination to override the default English output, for example, fr_FR for French. To use the locale of the command prompt, specify "native".

Example: Import a Rule From a File

This example imports a rule and renames it.

dpmpolicy importrule -file C:\RULE_A.txt -rule_name RULE_B