Listing deployed solutions
To display a list of all the solutions that are deployed, run the solutionManager list command. You can also determine whether a specific solution is deployed by running the solutionManager script with the isdeployed command.
About this task
The solutionManager list command generates an XML file as output. The file contains a list of the deployed solutions, the version, and the status. Run the script if you plan to undeploy a solution or change the current version of a solution. The list also includes details about the active agents in each deployed solution.
You can run the list command on a local host or a remote host. If you run the script with the remote parameter, the script establishes an HTTP connection to an active Liberty server.
If you run the list command without any parameters, the resulting list includes the names of all the deployed solutions on the Liberty server. You can add optional parameters to display extra information about the solution names and versions.
Many of the list command parameters are optional. The default value in some of the parameters uses cisDev as the name of the server. Be sure to specify the name of your development server or names of your runtime servers if you are not using the samples server.
Procedure
Example
> solutionManager list local --server=cisContainer1 --viewHierarchy=true
<?xml version="1.0" encoding="UTF-8"?>
<solutions>
<solution name="CarPurchaseSolution">
<solutionversion name="CarPurchaseSolution-1.0"/>
<solutionversion name="CarPurchaseSolution-2.0"/>
</solution>
<solution name="OilServiceSolution">
<solutionversion name="OilServiceSolution-1.0"/>
<solutionversion name="OilServiceSolution-2.0"/>
</solution>
</solutions>