Description Syntax Example addListener

WLST Command and Variable Reference 3-57

3.8.1 addListener

Command Category: Information Commands Use with WLST: Online

3.8.1.1 Description

Adds a JMX listener to the specified MBean. Any changes made to the MBean are reported to standard out andor are saved to the specified configuration file. In the event of an error, the command returns a WLSTException.

3.8.1.2 Syntax

addListenermbean, [attributeNames], [logFile], [listenerName]

3.8.1.3 Example

The following example defines a JMX listener on the cmo MBean for the Notes and ArchiveConfigurationCount attributes. The listener is named domain-listener and is stored in .listenersdomain.log. showListeners Show all listeners that are currently defined. Online startRecording Record all user interactions with WLST; useful for capturing commands to replay. Online or Offline state Returns a map of servers or clusters and their state using Node Manager. Online stopRecording Stop recording WLST commands. Online or Offline stopRedirect Stop redirection of WLST output to a file. Online or Offline storeUserConfig Create a user configuration file and an associated key file. Online threadDump Display a thread dump for the specified server. Online or Offline viewMBean Display information about an MBean, such as the attribute names and values, and operations. Online writeIniFile Convert WLST definitions and method declarations to a Python .py file. Online or Offline Argument Definition mbean Name of the MBean or MBean object to listen on. attributeNames Optional. Comma-separated list of all attribute names on which you would like to add a JMX listener. This argument defaults to null, and adds a JMX listener for all attributes. logFile Optional. Name and location of the log file to which you want to write listener information.This argument defaults to standard out. listenerName Optional. Name of the JMX listener. This argument defaults to a WLST-generated name. Table 3–8 Cont. Information Commands for WLST Configuration This command... Enables you to... Use with WLST... 3-58 Oracle Fusion Middleware WebLogic Scripting Tool Command Reference wls:mydomainserverConfig addListenercmo, Notes,ArchiveConfigurationCount, .listenersdomain.log,domain-listener

3.8.2 configToScript