pátek 29. dubna 2022

How get information about the mbeans in WebSpphere Application Server runtime

 The WebSphere Application Server runs lot of mbeans. The Java Management Beans that monitor and control the application server runtime. From the fundamental components to the application and their building blocks. The structure of mbeans is very flexible and depends on configuration and topology of application servers and running applications inside.

The simple command that prints the list of all mbeans running in the examined WebSphere Application Server cell:

print AdminControl.queryNames('*');

Example of output:

WebSphere:name=ClusterMgr,process=dmgr,platform=common,node=Dmgr01Node,version=9.0.5.1,type=ClusterMgr,mbeanIdentifier=ClusterMgr,cell=Dmgr01Cell,spec=1.0

WebSphere:name=CommandAssistance,process=dmgr,platform=dynamicproxy,node=Dmgr01Node,version=9.0.5.1,type=CommandAssistance,mbeanIdentifier=CommandAssistance,cell=Dmgr01Cell,spec=1.0

WebSphere:name=ConfigService,process=dmgr,platform=proxy,node=Dmgr01Node,version=9.0.5.1,type=ConfigService,mbeanIdentifier=ConfigService,cell=Dmgr01Cell,spec=1.0

WebSphere:name=Custom01Node.server1-TESTBUS,process=server1,platform=dynamicproxy,node=Custom01Node,version=9.0.5.1,type=SIBMessagingEngine,mbeanIdentifier=cells/Dmgr01Cell/nodes/Custom01Node/servers/server1/sib-engines.xml#SIBMessagingEngine_1628767824612,cell=Dmgr01Cell,spec=1.0

.

.

.

The following command allows you to get list of attributes, operations and notifications of each MBean entry from previous list:

print Help.all('WebSphere:name=TraceService,process=server1,platform=proxy,node=Custom01Node,version=9.0.5.1,type=TraceService,mbeanIdentifier=cells/Dmgr01Cell/nodes/Custom01Node/servers/server1/server.xml#TraceService_1618218117128,cell=Dmgr01Cell,spec=1.0');

Example output:

Name: WebSphere:name=TraceService,process=server1,platform=proxy,node=Custom01Node,version=9.0.5.1,type=TraceService,mbeanIdentifier=cells/Dmgr01Cell/nodes/Custom01Node/servers/server1/server.xml#TraceService_1618218117128,cell=Dmgr01Cell,spec=1.0

        Description: Management interface for the live TraceService function running in a server.

        Class name: javax.management.modelmbean.RequiredModelMBean


Attribute                       Type                            Access

ringBufferSize                  int                             RW

traceSpecification              java.lang.String                RW

effectiveTraceSpecification     java.lang.String                RO

traceFileName                   java.lang.String                RO

traceRuntimeConfig              java.lang.String                RO

rawTraceFilterEnabled           boolean                         RW


Operation

int getRingBufferSize()

void setRingBufferSize(int)

java.lang.String getTraceSpecification()

void setTraceState(java.lang.String)

java.lang.String getEffectiveTraceSpecification()

java.lang.String getTraceFileName()

java.lang.String getTraceRuntimeConfig()

boolean isRawTraceFilterEnabled()

void setRawTraceFilterEnabled(boolean)

void appendTraceString(java.lang.String)

void dumpRingBuffer(java.lang.String)

void clearRingBuffer()

[Ljava.lang.String; listAllRegisteredComponents()

[Ljava.lang.String; listAllRegisteredGroups()

java.util.HashMap listComponentsInGroup([Ljava.lang.String;)

[Ljava.lang.String; listComponentsInGroup(java.lang.String)

[Lcom.ibm.websphere.ras.TraceElementState; getTracedComponents()

[Lcom.ibm.websphere.ras.TraceElementState; getTracedGroups()

java.lang.String getTraceSpecification(java.lang.String)

void processDumpString(java.lang.String)

void checkTraceString(java.lang.String)

void setTraceOutputToFile(java.lang.String, int, int, java.lang.String)

void setTraceOutputToRingBuffer(int, java.lang.String)

java.lang.String rolloverLogFileImmediate(java.lang.String, java.lang.String)

java.lang.String setTraceSpecification(java.lang.String)



Notifications

jmx.attribute.changed


Constructors


The combination of this simple commands allows you to explore every MBean in the running WebSphere Application Server runtime and use the attributes, operations to obtain the current state or control every part of the application server ecosystem.



Žádné komentáře:

Okomentovat