Weblogic - How to get DMS metrics with Opmnctl ?

Card Puncher Data Processing

About

Opmnctl can also be used to retrieve DMS metrics

In the help, you can see this two options:

[<scope>] metric      [<attr>=<val> ..] - Get DMS metrics for managed processes
[<scope>] dmsdump     [<dmsargs>]       - Get DMS metrics for opmn

Command

metric

Help:

 ./opmnctl usage metric

op=list

A “list” operation takes no additional arguments, and the target opmn will return a list of managed processes for which DMS metrics are available via this the metric request.

./opmnctl metric op=list
HTTP/1.1 200 OK
Content-Length: 1300
Content-Type: text/html
Response:

<logicaladdr instance="instance2" component="/IAS/ONS/RPC/oracle/dms">
  <property name="INSTANCE_UID" value="0@instance2"/>
  <property name="PROCESS_UID" value="0"/>
  <property name="COMPONENT_NAME" value="opmn"/>
  <property name="COMPONENT_TYPE" value="OPMN"/>
</logicaladdr>
<logicaladdr instance="instance2" component="/IAS/ONS/RPC/oracle/dms">
  <property name="INSTANCE_UID" value="208691504@instance2"/>
  <property name="PROCESS_UID" value="208691504"/>
  <property name="COMPONENT_NAME" value="coreapplication_obips1"/>
  <property name="COMPONENT_TYPE" value="OracleBIPresentationServicesComponent"/>
</logicaladdr>
<logicaladdr instance="instance2" component="/IAS/ONS/RPC/oracle/dms">
  <property name="INSTANCE_UID" value="208691503@instance2"/>
  <property name="PROCESS_UID" value="208691503"/>
  <property name="COMPONENT_NAME" value="coreapplication_obis1"/>
  <property name="COMPONENT_TYPE" value="OracleBIServerComponent"/>
</logicaladdr>
<logicaladdr instance="instance2" component="/IAS/ONS/RPC/oracle/dms">
  <property name="INSTANCE_UID" value="208691506@instance2"/>
  <property name="PROCESS_UID" value="208691506"/>
  <property name="COMPONENT_NAME" value="coreapplication_obisch1"/>
  <property name="COMPONENT_TYPE" value="OracleBISchedulerComponent"/>
</logicaladdr>

op=query

A “query” operation returns the metric tree for the managed process or processes qualified by the

=arguments (all available processes are assumed if no identifier arguments are specified).

Dumps the metrics for a given component

opmnctl metric op=query COMPONENT_NAME= format=raw

COMPONENT_NAME=opmn always specifies OPMN itself.

Example:

opmnctl metric op=query COMPONENT_NAME=coreapplication_obips1 format=raw
<?xml version='1.0'?>
<!DOCTYPE pdml>
<pdml version='11.0' name='Oracle BI Presentation Server' host='Exalytics-01' id='27735' timestamp='1378200683517'>
	<statistics>
		<noun name="Oracle BI Presentation Server" type="Oracle_BI_Applications">
			<noun name="SocketRPCServer" type="Oracle_BI_PS_Thread_Pools">
				<metric name="Total_Jobs_Submitted.value">
					<value type="integer"><![CDATA[3193]]></value>
				</metric>
				<metric name="Total_Jobs_Completed.value">
					<value type="integer"><![CDATA[3191]]></value>
				</metric>
				<metric name="Total_Jobs_Unfinished.value">
					<value type="integer"><![CDATA[0]]></value>
				</metric>
				<metric name="Peak_Threads.value">
					<value type="integer"><![CDATA[160]]></value>
				</metric>
				<metric name="Current_Threads.value">
					<value type="integer"><![CDATA[160]]></value>
				</metric>
				<metric name="Peak_Jobs_Running.value">
					<value type="integer"><![CDATA[5]]></value>
				</metric>
				<metric name="Current_Jobs_Running.value">
					<value type="integer"><![CDATA[2]]></value>
				</metric>
				<metric name="Peak_Jobs_Queued.value">
					<value type="integer"><![CDATA[1]]></value>
				</metric>
				<metric name="Current_Jobs_Queued.value">
					<value type="integer"><![CDATA[0]]></value>
				</metric>
			</noun>
			<noun name="Alerts" type="Oracle_BI_PS_Caches">
				<metric name="Cache_Stale.value">
					<value type="integer"><![CDATA[0]]></value>
				</metric>
				<metric name="Cache_Misses.value">
					<value type="integer"><![CDATA[0]]></value>
				</metric>
				<metric name="Last_Stdev*100.value">
					<value type="integer"><![CDATA[0]]></value>
				</metric>
				<metric name="Last_Max_Bucket_Size.value">
					<value type="integer"><![CDATA[0]]></value>
				</metric>
				<metric name="Last_Access_Stdev*100.value">
					<value type="integer"><![CDATA[0]]></value>
				</metric>
				<metric name="Cache_Hits.value">
					<value type="integer"><![CDATA[0]]></value>
				</metric>
				<metric name="Peak_Entries.value">
					<value type="integer"><![CDATA[0]]></value>
				</metric>
				<metric name="Current_Entries.value">
					<value type="integer"><![CDATA[0]]></value>
				</metric>
				<metric name="Cleanups.value">
					<value type="integer"><![CDATA[0]]></value>
				</metric>
			</noun>
............
dmsdump

Dumps all the metrics for all the components

Help:

 ./opmnctl usage dmsdump

Example:

./opmnctl dmsdump
Documentation / Reference





Discover More
Card Puncher Data Processing
Opmn

opmnctl restartproc ias-component= opmnctl shutdown Stops opmn and all managed system components nqsclustercontroller.exe nqscheduler.exe java.exe nqsserver.exe sawserver.exe opmn.log ORACLE_INSTANCE\diagnostics/logs/OPMN/opmn...



Share this page:
Follow us:
Task Runner