You can use the wsadmin utility provided in WebSphere® Application Server to access MBean information.
$ 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>