Neoview Workload Management Services Guide (R2.4)

--- WMS operation complete.
NS%
For the syntax, see the “STATUS RULE EXEC Command” (page 141). Also see “How to Execute
WMS Commands in NCI” (page 25).
Altering an Execution Rule
IMPORTANT: To remove an action from an execution rule, you must delete and then add the
execution rule instead of using the ALTER RULE EXEC command. For more information, see
“Deleting an Execution Rule” (page 64) and Adding an Execution Rule” (page 61).
Use the ALTER RULE EXEC command to change the attributes of an execution rule. This ALTER
RULE EXEC command changes number of used rows to 9000 in the execution rule, EXECRULE1:
NS%ALTER RULE EXEC EXECRULE1 (USED_ROWS >= 9000, WARN-HIGH, CANCEL);
--- WMS operation complete.
NS%
CAUTION: When altering an attribute of the execution rule, you must also specify any existing
expressions in the ALTER RULE EXEC command. Otherwise, the ALTER RULE EXEC command
deletes the existing expressions.
For the syntax, see the ALTER RULE EXEC Command” (page 99). Also see “How to Execute
WMS Commands in NCI” (page 25).
Deleting an Execution Rule
Use the DELETE RULE command to delete a rule. After you delete a rule, all associations with
services using the rule are deleted. This DELETE RULE command removes the execution rule
named EXECRULE40 from the WMS configuration:
NS%delete rule execrule40;
--- WMS operation complete.
NS%
For the syntax, see the “DELETE RULE Command” (page 111). Also see “How to Execute WMS
Commands in NCI” (page 25).
Associating Execution Rules With a Service
Use the ALTER SERVICE EXEC command to associate one or more execution rules with a service.
In this example, the ALTER SERVICE EXEC command associates the execution rules, EXECRULE1,
EXECRULE2, and EXECRULE3, with SERVICE1:
NS%ALTER SERVICE SERVICE1 EXEC (EXECRULE1, EXECRULE2, EXECRULE3);
--- WMS operation complete.
%NS
For the syntax, see the ALTER SERVICE EXEC Command” (page 105).
Displaying the Execution Rules Associated With a Service
Use the STATUS SERVICE EXEC command to display the names of execution rules that are
associated with the specified service.
64 Configuring Rules