Once the ModeShape standalone server for EAP 6.1 is running, you can use the application server's command line management tool (CLI) to view the ModeShape subsystem. The CLI allows you to view the attributes and metrics of ModeShape repositories, as well as, view the installed web applications.
More information about the EAP Command Line Interface (CLI) is available here.
To start the CLI, run this command:
When the CLI first starts, you will see something like this:
Enter "connect" to establish a connection your EAP managed instance:
|Press the tab key at the command line prompt to trigger tab-completion!|
At any time enter "ls" to view child managed node names and current values for properties. Also, enter "pwd" to see your current location in the management model.
The CLI allows you to navigate the management model just as if you were navigating a file system. Here are some helpful commands that can be run at the root of the management system. But each of these commands can be modified to run using relative paths also.
- To navigate to the ModeShape subsystem:
- To navigate to the ModeShape repositories:
- To navigate to a specific repository:
- To navigate to the ModeShape web applications:
- To navigate to a specific ModeShape web application:
- To navigate to a specific ModeShape repository's CND sequencer:
To view attribute values, metric values, and child managed nodes of a resource, like a repository, just enter "ls" for a listing. A nicer way to see the same information in a much more readable form is to enter the following:
|A metric is a special runtime attribute.|
Other helpful commands:
- To obtain descriptions, possible attribute types, and possible child types:
- To obtain current metric values:
- To obtain current attribute values recursively for child nodes so that you do not have to navigate to each child node:
Another way to view ModeShape managed AS 7 components is to use RHQ. The image below shows the RHQ console.