Administration guide > Monitor the environment > Monitoring with WAS PMI



Access Managed Beans (MBeans) using the wsadmin tool

Use the wsadmin utility provided in WebSphere Application Server to access managed bean (MBean) information.


Procedure

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 the wsadmin tool from any installation where eXtreme Scale is running. You do not have to run the wsadmin tool 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:

Administer programmatically with Managed Beans (MBeans)


Parent topic:

Monitor with WAS PMI


Related concepts

Statistics overview


Related tasks

Access Managed Beans (MBeans) programmatically

Monitor with managed beans (MBeans)

Monitor with the xsAdmin sample utility

Related reference

Administer programmatically with Managed Beans (MBeans)


Related information

API documentation: Package com.ibm.websphere.objectgrid.management


+

Search Tips   |   Advanced Search