Description Syntax Example createAnalyticsCollectorConnection

10-8 Oracle Fusion Middleware WebLogic Scripting Tool Command Reference Analytics Collector and Cluster Configuration Use the commands listed in Table 10–4 to configure event collection properties for the Analytics Collector that is deployed on the WC_Utilities managed server. If you reconfigure the Analytics Collector or set up clustering, you must restart the managed server on which the Analytic Collector is deployed WC_Utilities.

10.3.1 createAnalyticsCollectorConnection

Module: Oracle WebCenter Use with WLST: Online

10.3.1.1 Description

Creates a connection to an Analytics Collector for a named WebCenter application. Events raised in WebCenter applications using OpenUsage APIs can be sent to an Analytics Collector for use by the Analytics and Activity Graph services. While you can register multiple Analytics Collector connections for a WebCenter application, only one Analytics Collector connection is used - the default or active connection where default=1.

10.3.1.2 Syntax

createAnalyticsCollectorConnectionappName, name, [isUnicast, collectorhost, clusterName, collectorPort, isEnabled, timeout, default, server, applicationVersion] Table 10–3 Analytics Collector Connection WLST Commands Use this command... To... Use with WLST... createAnalyticsCollector Connection Create a connection to an Analytics Collector for a WebCenter application. Online setAnalyticsCollectorCo nnection Edit an existing Analytics Collector connection. Online listAnalyticsCollectorCo nnections List all of the Analytics Collector connections that are configured for a WebCenter application. Online setDefaultAnalyticsColle ctorConnection Specify the default or active Analytics Collector connection for a WebCenter application. Online listDefaultAnalyticsColl ectorConnection Return connection details for the Analytics Collector being used by a WebCenter application. Online Table 10–4 Analytics Collector Configuration WLST Commands Use this command... To... Use with WLST... setAnalyticsCollectorCo nfig Set Analytics Collector options, and cluster options if operating a clustered environment. Online listAnalyticsCollectorCo nfig Return Analytics Collector settings. Online listAnalyticsEventTypes List events currently registered with the Analytics Collector. Online Oracle WebCenter Custom WLST Commands 10-9

10.3.1.3 Example

The following example creates a connection named MyAnalyticsCollector for a WebCenter application named webcenter. Events are sent to a single Analytics Collector using unicast communication: wls:weblogicserverConfigcreateAnalyticsCollectorConnectionappName=webcenter, connectionName=MyAnalyticsCollector, isUnicast=1, collectorHost=myhost.com, collectorPort=31314, isEnabled=1, timeout=30, default=1 Argument Definition appName Name of the WebCenter application in which to perform this operation. For WebCenter Spaces, the name is always webcenter. name Connection name. The name must be unique across all connection types within the WebCenter application. isUnicast Optional. Specifies whether events are sent to a clustered Analytics Collector in multicast mode or whether a single Analytics Collector using unicast communication is required. Valid values are 1 true and 0 false. The default value is 1 unicast. collectorHost Optional. Host name where the Analytics Collector is running. The default value is localhost. Only required for unicast communication, that is, where isUnicast=1. clusterName Optional. Name of the cluster where a clustered Analytics Collector is running. Only required for multicast communication, that is, where isUnicast=0. collectorPort Optional. Port on which the Analytics Collector listens for events. The default value is 31314. isEnabled Optional. Specifies whether to send analytics events raised using OpenUsage APIs to the Analytics Collector. Valid values 1 true and 0 false. The default value is 0. Analytics events are sent to the Analytics Collector when isEnabled=1 and default=1. timeout Optional. Length of time in seconds to wait for a response from the Analytics Collector. Default value is 30. Only required for multicast communication, that is, where isUnicast=0. default Optional. Indicates whether this connection is the default or active Analytics Collector connection for the WebCenter application. Valid values are 1 true and 0 false. When set to 1, the WebCenter application sends events on this connection. When set to 0, the connection is not used. The default for this argument is 0. While you can register multiple Analytics Collector connections for a WebCenter application, only one connection is used by Analytics and Activity Graph services—the default or active connection. server Optional. Name of the managed server where the WebCenter application is deployed. For example, WC_Spaces. Required when applications with the same name are deployed to different servers and also when you have a cluster. applicationVersion Optional. Version number of the deployed application. Required if more than one version of the WebCenter application is deployed. 10-10 Oracle Fusion Middleware WebLogic Scripting Tool Command Reference The following example creates a connection named MyAnalyticsCollector for a WebCenter application named webcenter. Events are sent to a clustered Analytics Collector in multicast mode wls:weblogicserverConfigcreateAnalyticsCollectorConnectionappName=webcenter, connectionName=MyAnalyticsCollector, isUnicast=0, clusterName=collector-cluster, ccollectorPort=31314, isEnabled=1, timeout=30, default=1

10.3.2 setAnalyticsCollectorConnection