WebSphere eXtreme Scale Administration Guide > Monitor the deployment environment > Monitoring performance with WebSphere Application Server PMI



Use the wsadmin utility


You can use the wsadmin utility provided in WebSphere Application Server to access MBean information.


Access MBeans using the wsadmin tool

Run the wsadmin tool from the bin directory in the WebSphere Application Server installation. The following example retrieves a view of the current shard placement in a dynamic eXtreme Scale. You can run wsadmin from any installation where eXtreme Scale is running. You do not have to run wsadmin on the catalog service.

$ wsadmin.sh -lang jython
wsadmin>placementService = AdminControl.queryNames
    ("com.ibm.websphere.objectgrid:*,type=PlacementService")
wsadmin>print AdminControl.invoke(placementService,
    "listObjectGridPlacement","library ms1")

<objectGrid name="library" mapSetName="ms1">
 
<container name="container-0" zoneName="DefaultDomain" 
        hostName="host1.company.org" serverName="server1">
    
<shard type="Primary" partitionName="0"/>
    
<shard type="SynchronousReplica" partitionName="1"/>
 
</container>
 
<container name="container-1" zoneName="DefaultDomain" 
        hostName="host2.company.org" serverName="server2">
    
<shard type="SynchronousReplica" partitionName="0"/>
    
<shard type="Primary" partitionName="1"/>
 
</container>
 
<container name="UNASSIGNED" zoneName="_ibm_SYSTEM" 
        hostName="UNASSIGNED" serverName="UNNAMED">
   
<shard type="SynchronousReplica" partitionName="0"/>
   
<shard type="AsynchronousReplica" partitionName="0"/>
 
</container>
</objectGrid>



Parent topic

Monitor performance with WebSphere Application Server PMI


+

Search Tips   |   Advanced Search