< Previous

Module 5: Use the xscmd tool to monitor data grids and maps

You can use the xscmd tool to show the primary data grids and map sizes of the Grid data grid. The xscmd tool uses the MBean to query all of the data grid artifacts, such as primary shards, replica shards, container servers, map sizes, and so on.

In this tutorial, the container and catalog servers are running in WebSphere® Application Server application servers. The WebSphere eXtreme Scale run time registers the Managed Beans (MBean) with the MBean server that is created by the WebSphere Application Server run time. The security that is used by the xscmd tool is provided by the WebSphere Application Server MBean security. Therefore, WebSphere eXtreme Scale specific security configuration is not necessary.
  1. Using a command-line tool, open the DMGR_PROFILE/bin directory.
  2. Run the xscmd tool.
    Use the -c showPlacement -sf P command to list the placement of the primary shards.

    [Linux][Unix]
    xscmd.sh -g Grid -ms mapSet -c showPlacement -sf P


    [Windows]
    xscmd.bat -g Grid -ms mapSet -c showPlacement -sf P

    Before you can view the output, you are prompted to log in with your WebSphere Application Server ID and password.

Lesson checkpoint

You used the xscmd tool in WebSphere Application Server.

< Previous