![]() ![]() ![]() ![]() |
Before you begin
Review Define and assign policies.
You enforce policy constraints by defining actions that occur when services operate outside of policy constraints.
To define an action:
The list of currently defined actions is displayed in the Actions table.
Field | Description |
---|---|
Name |
Name of the action. The action name cannot be modified once it is set. |
Description |
Description of the action. This field is optional. |
Approval |
Flag that specifies whether the action requires approval. See Approve or deny actions. |
Type |
Type of action that you want to add. See "Action Types" below. |
Action Types
The following sections summarize the types of actions that can be defined. Depending on the action type that you choose, you may be required to provide additional configuration information. For example, for all Control action types, no additional configuration is required. For all Notification or Resource action types, however, you must provide additional configuraiton information.
Each action that you define applies to a specific scope, as indicated in each table: global (system), service, or process group. You do not explicitly specify the scope when adding actions. However, you should be careful to match constraints and actions that share the same scope. See Define constraints for information about the actions that are valid for each type of constraint. For a summary of contraints and actions by scope, see "Constraints/Action Bindings" in Defining Policies.
Note: Notification actions can be matched with any type of constraint.
Control Action Types (Service or Process Group Scope)
Control action types enable you to manage a service or instance of a Java process. Control action types have a service or process group scope, depending on the component being acted on (that is, service or instance of a JVM process), as defined in the following table.
Select one of the following Control action types from the Type drop-down list.
Action Type | Description | Scope |
---|---|---|
StartServiceAction |
Start a service. |
Service |
StopServiceAction |
Stop a service. When modifying this action
type, you can set the When
For information about modifying the action type, see Modify actions. |
Service |
TestStartServiceAction |
Test to verify that a service will start. |
Service |
StageServiceAction |
Create and stage an LVM instance on an ESX Agent. |
Service |
DestroyServiceAction |
Destroy a service. |
Service |
StartJavaInstanceAction |
Start an instance of a Java process. |
Process group |
StopJavaInstanceAction |
Stop an instance of a Java process. |
Process group |
DestroyJavaInstanceAction |
Destroy an instance of a Java process. |
Process group |
StageJavaInstanceAction |
Create an instance of a Java process. |
Process group |
RemoteAction |
Gracefully stop an instance of a Java process. When editing a RemoteAction, you can specify the following properties in the properties field:
|
Process group |
ResumeJavaInstanceAction |
Resume an instance of a Java process. |
Process group |
SuspendJavaInstanceAction |
Suspend an instance of a Java process. |
Process group |
JavaInstanceConfigAction |
Change the configuration for an instance of a Java process. |
Process group |
Notification Action Types (Global Scope)
Notification action types enable you to send notifications to various consumers. All notification action types have a global scope. You configure the default values for each notification action type when configuring the Controller, as described in Configure notification defaults.
Select one of the following Notification action types from the Type drop-down list and click Next to configure the additional fields.
Action Type | Description | Additional Fields |
---|---|---|
Console |
Send a notification to the WLOC Administration Console. You can send a message to the WLOC Events page, and modify the appearance of the managed object by changing its color and tagging it with an icon. |
Send Event Viewer Message: Flag that specifies whether to send a message to the WLOC Events page (and Tasks and Events viewer) when the action is triggered. See Monitor events. Message: Message that is sent to the WLOC event viewer (if you enabled the Send Event Viewer Message flag). Change Managed Object Color: Flag that specifies whether to change the color of the managed object in the WLOC Administration Console when the action is triggered. Managed Object Name: Name of the Agent, resource pool, service, or process whose color you want to change (if you enabled the Change Managed Object Color flag). Color: Color to which you want the managed object changed (if you enabled the Change Managed Object Color flag). Select CUSTOM to specify a custom color. Valid options include: Red, Orange, Yellow, Green, Blue, Indigo, Violet, and CUSTOM. Custom Color: Custom color to which you want the manage object changed (if you enabled the Change Managed Object Color flag). Change Managed Object Icon: Flag that specifies whether you want to tag the managed object with an icon when the action is triggered. Icon: Icon that is used to tag the managed object (if you enabled the Change Managed Object Icon flag). Valid icons include: Ok, Warning, and Error. |
EmailNotificationAction |
Send a notification to a set of email addresses using the Simple Mail Transfer Protocol (SMTP). |
Notification Subject: Information that appears in the subject line of the email. Notification Message: Text of the message. To Address: Comma-separated list of
email addresses to which the message is sent. For example,
From
Address: Email address from which the message is sent. For
example,
SMTP
Server: Address of the SMTP server. For example,
|
JMXNotificationAction |
Send a Java Management Extensions (JMX)
notification
( |
Notification Subject: Information that appears in the subject line of the message. Notification Message: Text of the message. |
JMSNotificationAction |
Send a notification to a Java Message Service (JMS) destination (topic or queue). |
Notification Subject: Information that appears in the subject line of the message. Notification Message: Text of the message. Destination JNDI Name: JNDI name of the
JMS destination. For example,
Connection
Factory JNDI Name: JNDI name of the JMS connection
factory. For example, JNDI
Initial Factory: JNDI initial factory. For example,
JNDI
Provider URL: URL of the JNDI provider. For example
JNDI Security Principal: User name used for authenticating with the JNDI provider. Password: Password used for authenticating with the JNDI provider. |
SNMPNotificationAction |
Send a notification as a Simple Network Management Protocol (SNMP) trap. |
Notification Subject: Information that appears in the subject line of the message. Notification Message: Text of the message. |
Resource Action Types (Process Group Scope)
Resource action types enable you to manage the resources in your environment. All resource action types have a process group scope. Select one of the following Resource action types from the Type drop-down list and click Next to configure the additional fields.
Action Type | Description | Additional Fields |
---|---|---|
ChangeMaxCPUAction |
Change the maximum amount of CPU available. |
Class: Name of the action class. Properties: Enter one of the following properties to update the maximum CPU capacity:
|
ChangeMinCPUAction |
Change the minimum amount of CPU available. |
Class: Name of the action class. Properties: Enter one of the following properties to update the miminum CPU capacity:
|
ChangeShareCPUAction |
Change the share of the CPU available. The higher the value, the more CPU share the resource will receive. |
Class: Name of the action class. Properties: Enter one of the following properties to update the CPU share:
|
ChangeMaxMemoryAction |
Change the maximum amount of memory that is available. |
Class: Name of the action class. Properties: Enter one of the following properties to update the maximum memory:
|
ChangeMinMemoryAction |
Change the minimum amount of memory that is available. |
Class: Name of the action class. Properties: Enter one of the following properties to update the minimum memory:
|
ChangeShareMemoryAction |
Change the share of memory that is available. The higher the value, the more memory share the resource will receive. |
Class: Name of the action class. Properties: Enter one of the following properties to update the memore share:
|
Configuration Action Types (Process Group Scope)
Configuration action types enable you to perform JMX operations on specified managed objects. Configuration action types have a process group scope. Select Configuration Action (JMX) from the Type drop-down list.
Note: You must configure the JMX connections, as described in Configure JMX connections for JMX configuration actions.
Property | Description |
---|---|
Connection |
Name of the WebLogic Server connection to use to configure a JMX managed object. |
JMX Command |
Click New to add a new JMX command. You must specify the following properties:
Based on the type of JMX command that you choose, you are prompted to enter command parameters as follows (no parameters are required if you select Destroy Command): Create Command Parameters:
setAttribute Command Parameters:
Invoke Operation Command Parameters:
Click Add to add the JMX command. To delete JMX commands, select the check box next to each JMX command that you want to delete and click Delete. For more information about the format to use to specify MBean attributes, see WebLogic Server MBean Reference. |
The action is created and the following confirmation message is displayed:
New action created successfully
After you finish
Perform one or more of the following tasks, as required:
![]() |