•Major - An example of a major event is one or more physical fabric objects (device port, switch, or fabric) have disappeared.
•Critical - An example of a critical event is Brocade switches that have a failed firmware download and the failure reason code for each respective switch.
After you select an event level, click OK.
•Execute a Custom Command - Policy Manager executes a custom command on the management server when the condition is fulfilled. Type a command that will execute the script in the field. Then, click OK. The software assumes you are in the
%JBOSS4_DIST%\server\appiq\remotescripts directory on the management server when the script is executed. You can use environment variables in your script, such as
POLICY_NAME and POLICY_DESCRIPTION. POLICY_NAME. POLICY_NAME provides the policy name and POLICY_DESCRIPTION provides the policy description. See ”Software Environment Variables for Scripting” on page 264 for more information.
Prefix the command with “start” if the custom command triggers a user interface component, such as a program that uses the user interface (Example: Microsoft Internet Explorer) or a command prompt window.
For example, assume you want the custom command to open a command prompt window and list the contents in the directory. You would prefix the command with start as shown below:
start dir
9.Click OK.
Modifying Policies for Events
To modify a policy for events:
1.Access Policy Manager as described in the topic, ”Accessing Policy Manager” on page 532.
2.In the Policy Manager tree in the middle pane, expand the node, Infrastructure Policies. Then, click Events.
3.Click the button corresponding to the policy you want to modify.
4.In the Name field, change the name for the policy.
5.In the Description field, type the description for the policy.
6.In the
The rearm period is the amount of time after the policy executes before it can execute again. It is useful for limiting the number of times the same actions will execute.
IMPORTANT: Specify shorter periods for important applications.
7.Select or deselect one or more element types.
When a condition is fulfilled on a select element, Policy Manager generates an event, sends an
8.Select Fire when event is cleared if you want the policy to fire when the event is cleared, Otherwise the event fires when the event is received.
546 Managing Policies