WLDFScriptActionBean


Overview  |   Related MBeans  |   Attributes  |   Operations

Overview

Configures an action that can execute an external command-line process. This action type can be used to execute custom scripts when a policy rule is triggered.

Note that any child process forked by an action of this type will have all the rights and privileges of the WebLogic Server process that spawns it. Care must be taken that the target script is available and can be read/executed by the system-level identity that owns the WebLogic Server process.

           
Since12.2.1.0.0
Security rolesThe following roles have read, write, and invoke permission for all non-encrypted attributes and operations in this MBean:
  • Deployer
Fully Qualified Interface NameIf you use the getMBeanInfo operation in MBeanTypeServiceMBean, supply the following value as this MBean's fully qualified interface name:
weblogic.diagnostics.descriptor.WLDFScriptActionBean
Factory Methods
Additional Access Points In addition to accessing this MBean by invoking a factory method, you can also access this MBean from the following MBean attributes:
    Access Points Inherited from WLDFNotificationBean Because this MBean extends or implements WLDFNotificationBean, you can also access this MBean by retrieving WLDFNotificationBeans. The following attributes contain WLDFNotificationBeans and its subtypes:


      Attributes

      This section describes the following attributes:


      Enabled

      Specifies whether this action is enabled.

             
      Privileges Read/Write
      Typeboolean
      Default Valuetrue

      Environment

      A map of environment variables to set for the child process.

             
      Privileges Read/Write
      Typejava.util.Properties

      Id

      Return the unique id of this bean instance.

             
      Privileges Read only
      Typelong
      Redeploy or Restart required Changes take effect after you redeploy the module or restart the server.

      Name

      The name of the WebLogic Diagnostic Framework (WLDF) bean.

             
      Privileges Read only
      Typejava.lang.String

      Parameters

      An array of ordered command-line arguments to the target script.

             
      Privileges Read/Write
      Typeclass java.lang.String[]

      PathToScript

      The full path to the script to execute.

             
      Privileges Read/Write
      Typejava.lang.String

      Timeout

      The length of time, in seconds, that an action has to complete execution. By default, the timeout period is 0, which disables the action timeout.

             
      Available Since Release 12.2.1.0.0
      Privileges Read/Write
      Typeint
      Default Value0
      Minimum value0

      WorkingDirectory

      The working directory for the child process. If not set the working directory will be the same as the WebLogic Server parent process.

             
      Privileges Read/Write
      Typejava.lang.String