Description Syntax Examples addDMSEventDestination

DMS Custom WLST Commands 6-9

6.2.1 addDMSEventDestination

Command Category: DMS Event Tracing Use with WLST: Online

6.2.1.1 Description

Adds a new destination to the Event Tracing configuration. If a destination with the same ID already exists, the command reports this and does not add the destination. You must be connected to the Administration Server to add a destination. If you are not, an error is returned.

6.2.1.2 Syntax

addDMSEventDestinationid=id [, name=dest_name] ,class=class_name [, props= {name: value...}] [,server=server_name] Table 6–4 shows the built-in destinations, with the full runtime class name. listDMSEventDestination Display the full configuration for a destination or a list of all destinations. Online listDMSEventFilter Displays the configuration of a filter or a list of all filters. Online listDMSEventRoutes Displays event routes and their status enabled or disabled. Online removeDMSEventDestination Removes the specified destination. Online removeDMSEventFilter Removes the specified filter. Online removeDMSEventRoute Removes the specified event route. Online updateDMSEventDestination Updates configuration of an event destination. Online updateDMSEventFilter Updates the configuration of an event filter. Online updateDMSEventRoute Updates the configuration of an event route. Online Argument Definition id The unique identifier for the specified destination. name Optional. A name for the destination. class The full class name of the destination. See Table 6–4 for a list of available classes. props Optional. The namevalue properties to use for the destination. Some destinations require properties. For example, the LoggerDestination class requires the property loggerName. See addDMSEventFilter for information about the syntax and allowed values. server Optional. The server on which to perform this operation. The default is the server to which you are connected. Table 6–3 Cont. DMS Tracing Commands Use this command... To... Use with WLST... 6-10 Oracle Fusion Middleware WebLogic Scripting Tool Command Reference

6.2.1.3 Examples

The following example adds a destination with the ID jfr, the name Flight-Recorder, and the class oracle.dms.event.JRockitFlightRecorder: addDMSEventDestinationid=jfr, name=Flight-Recorder, class=oracle.dms.event.JRockitFlightRecorder Destination jfr added. The following example adds a destination with the ID destination1, the name File-system, the class oracle.dms.trace2.runtime.LoggerDestination. Because the LoggerDestination requires the property loggerName, it sets the value to trace2-logger: addDMSEventDestinationid=destination1, name=File-system, class=oracle.dms.trace2.runtime.LoggerDestination, props={loggerName: trace2-logger} Destination destination1 added. The following example attempts to add a destination with an ID that already exists: addDMSEventDestinationid=destination1, name=File-system, class=oracle.dms.trace2.runtime.LoggerDestination, props={loggerName: trace2-logger} Destination destination1 already exists. Unable to add this.

6.2.2 addDMSEventFilter