CLI Reference
The following table describes the commands you use to perform various scenarios in the CLI interface.
Commands for viewing alerts in IBM webMethods Cloud Container
Run the following command to view alerts.
alert list [options]
where the options are:
Name | Description |
---|---|
--solutionName [solutionName] | Filter the alerts that belong to a particular solution. |
--alertName [alertName] | Filter the alerts by name. |
--runtime [runtime] | Filter the alerts by Instances / Node name in a solution. |
--severity [severity] | Filter the alerts based on the severity. Default supported values are info, warning, and critical. |
--view [view] | By default, outputs the response in a table view mode. The CLI supports both table and JSON output format. Example: alert list --severity critical |
--view [json] | By default, outputs the response in a table view mode. The CLI supports both table and JSON
output format. Example: alert list --severity critical --view JSON. JSON output format loads complete information that contains additional field than the table output format. |
Commands for listing the assets in LAR
Run the following command to list all the assets available in the LAR.
asset-repo list-assets <solutionName> <nodeName> [options]
where the options are:
Name | Description |
---|---|
--view [view] | By default, outputs the response in a table view mode. The CLI supports both
table and JSON output format. Example: asset-repo list-assets DemoSoln IS development |
Commands for creating solutions
Run the following command to create solutions.
solution create [options]
where the options are:
Name | Description |
---|---|
--inputFile [fileName] | Provide the name of the file that contains the input data. |
solution create --inputFile /home/etc/createSolution.json | |
The file must contain a valid solution name, the name of the webMethods Integration Server and Universal Messaging instances, number of CPU Cores, and Memory characteristics of the hardware to support each service in the solution. |
Example 1 : Creating Type 1 solution without cluster.
{
"integration": {
"landscapeDefinition": {
"solutionName": "Demo",
"description": "Demo Solution",
"solutionType": 1,
"productDefinitions": {
"IS": [{
"name": "IS",
"resources": {
"limits": {
"cpu": "1",
"memory": "2"
}
},
"version": "10.4",
"env": {
"packages": ["packages.WmCloudStreams
.enabled=true",
"packages.WmJDBCAdapter.enabled=true"]
}
}]
}
}
}
}
Example 2: Creating Type 1 solution with stateful cluster.
{
"integration": {
"landscapeDefinition": {
"solutionName": "Demo",
"description": "Demo Solution",
"solutionType": 1,
"productDefinitions": {
"IS": [{
"name": "IS",
"replicaCount": "2",
"resources": {
"limits": {
"cpu": "1",
"memory": "2"
}
},
"dependencies": ["DB","tc"],
"clusterType": "stateful",
"isClustered": true,
"statefulCluster": true,
"version": "10.4",
"env": {
"packages": ["packages.WmCloudStreams.
enabled=true", "packages.WmJDBCAdapter.enabled=true"]
}
}],
"TERRACOTTA": [{
"name": "tc",
"isClustered": true,
"statefulCluster": false,
"replicaCount": "2",
"enabled": true,
"resources": {
"limits": {
"cpu": "1",
"memory": "4"
}
},
"version": "10.4",
"env": {
"packages": [],
"monitoringTools": []
}
}]
}
}
}
}
Example 3: Creating Type 1 solution with stateless cluster.
{
"integration": {
"landscapeDefinition": {
"solutionName": "Demo",
"description": "Demo Solution",
"solutionType": 1,
"productDefinitions": {
"IS": [{
"name": "IS",
"replicaCount": "2",
"dependencies": ["DB"],
"resources": {
"limits": {
"cpu": "1",
"memory": "2"
}
},
"clusterType": "stateless",
"isClustered": true,
"statefulCluster": false,
"version": "10.4",
"env": {
"packages": ["packages.WmCloudStreams.
enabled=true", "packages.WmJDBCAdapter.enabled=true"]
}
}]
}
}
}
}
Example 4: Creating Type 2 solution without cluster.
{
"integration": {
"landscapeDefinition": {
"solutionName": "Solution2",
"description": "sample solution",
"solutionType": 2,
"productDefinitions": {
"IS": [{
"name": "IS",
"resources": {
"limits": {
"cpu": "1",
"memory": "2"
}
},
"version": "10.4",
"env": {
"packages": ["packages.WmCloudStreams
.enabled=true",
"packages.WmJDBCAdapter.enabled=true"]
}
}],
"UNIVERSALMESSAGING": [{
"name": "UM",
"resources": {
"limits": {
"cpu": "1",
"memory": "2"
}
},
"version": "10.4"
}]
}
}
}
}
Example 5: Creating Type 2 solution with stateful cluster.
{
"integration": {
"landscapeDefinition": {
"solutionName": "Solution2",
"description": "sample solution",
"solutionType": 2,
"productDefinitions": {
"IS": [{
"name": "IS",
"clusterType": "stateful",
"replicaCount": "2",
"isClustered": true,
"statefulCluster": true,
"dependencies": ["DB", "UM", "tc"],
"resources": {
"limits": {
"cpu": "1",
"memory": "2"
}
},
"version": "10.4",
"env": {
"packages": ["packages.WmCloudStreams.
enabled=true", "packages.WmJDBCAdapter.enabled=true"]
}
}],
"UNIVERSALMESSAGING": [{
"name": "UM",
"clusterType": null,
"isClustered": false,
"resources": {
"limits": {
"cpu": "1",
"memory": "2"
}
},
"version": "10.4"
}],
"TERRACOTTA": [{
"name": "tc",
"isClustered": true,
"resources": {
"limits": {
"cpu": "1",
"memory": "4"
}
},
"version": "10.4",
"env": {
"packages": [],
"monitoringTools": []
}
}]
}
}
}
}
Example 6: Creating Type 2 solution with stateless cluster.
{
"integration": {
"landscapeDefinition": {
"solutionName": "Solution2",
"description": "sample solution",
"solutionType": 2,
"productDefinitions": {
"IS": [{
"name": "IS",
"replicaCount": "2",
"clusterType": "stateless",
"dependencies": ["DB","UM"],
"isClustered": true,
"statefulCluster": false,
"resources": {
"limits": {
"cpu": "1",
"memory": "2"
}
},
"version": "10.4",
"env": {
"packages": ["packages.WmCloudStreams.
enabled=true", "packages.WmJDBCAdapter.enabled=true"]
}
}],
"UNIVERSALMESSAGING": [{
"name": "UM",
"clusterType": null,
"isClustered": false,
"resources": {
"limits": {
"cpu": "1",
"memory": "2"
}
},
"version": "10.4"
}]
}
}
}
}
Example 7: Creating Type 3 solution without cluster.
{
"integration": {
"landscapeDefinition": {
"solutionName": "Solution3",
"description": "Sample Solution",
"solutionType": 3,
"productDefinitions": {
"IS": [{
"name": "IS1",
"resources": {
"limits": {
"cpu": "1",
"memory": "2"
}
},
"version": "10.4",
"env": {
"packages": ["packages.WmCloudStreams.
enabled=true", "packages.WmJDBCAdapter.
enabled=true"]
}
}, {
"name": "IS2",
"resources": {
"limits": {
"cpu": "1",
"memory": "2"
}
},
"version": "10.4",
"env": {
"packages": ["packages.WmCloudStreams.enabled=true",
"packages.WmJDBCAdapter.enabled=true"]
}
}],
"UNIVERSALMESSAGING": [{
"name": "UM",
"resources": {
"limits": {
"cpu": "1",
"memory": "2"
}
},
"version": "10.4"
}]
}
}
}
}
Example 8: Creating Type 3 solution with stateful cluster.
{
"integration": {
"landscapeDefinition": {
"solutionName": "Solution3",
"description": "Sample Solution",
"solutionType": 3,
"productDefinitions": {
"IS": [{
"name": "IS1",
"isClustered": true,
"replicaCount": "2",
"statefulCluster": true,
"dependencies": ["UM", "DB", "tc1"],
"clusterType": "stateful",
"resources": {
"limits": {
"cpu": "1",
"memory": "2"
}
},
"version": "10.4",
"env": {
"packages": ["packages.WmCloudStreams.
enabled=true", "packages.WmJDBCAdapter.enabled=true"]
}
}, {
"name": "IS2",
"isClustered": true,
"statefulCluster": true,
"replicaCount": "2",
"dependencies": ["UM", "DB", "tc2"],
"clusterType": "stateful",
"resources": {
"limits": {
"cpu": "1",
"memory": "2"
}
},
"version": "10.4",
"env": {
"packages": ["packages.WmCloudStreams.
enabled=true", "packages.WmJDBCAdapter.enabled=true"]
}
}],
"UNIVERSALMESSAGING": [{
"name": "UM",
"isClustered": false,
"statefulCluster": false,
"clusterType": null,
"resources": {
"limits": {
"cpu": "1",
"memory": "2"
}
},
"version": "10.4"
}],
"TERRACOTTA": [{
"name": "tc1",
"isClustered": true,
"resources": {
"limits": {
"cpu": "1",
"memory": "4"
}
},
"version": "10.4",
"env": {
"packages": [],
"monitoringTools": []
}
}, {
"name": "tc2",
"isClustered": true,
"resources": {
"limits": {
"cpu": "1",
"memory": "4"
}
},
"version": "10.4",
"env": {
"packages": [],
"monitoringTools": []
}
}]
}
}
}
}
Example 9: Creating Type 3 solution with stateless cluster.
{
"integration": {
"landscapeDefinition": {
"solutionName": "Solution3",
"description": "Sample Solution",
"solutionType": 3,
"productDefinitions": {
"IS": [{
"name": "IS1",
"isClustered": true,
"replicaCount": "2",
"statefulCluster": false,
"dependencies": ["UM", "DB"],
"clusterType": "stateless",
"resources": {
"limits": {
"cpu": "1",
"memory": "2"
}
},
"version": "10.4",
"env": {
"packages": ["packages.WmCloudStreams.enabled=true",
"packages.WmJDBCAdapter.enabled=true"]
}
}, {
"name": "IS2",
"isClustered": true,
"statefulCluster": false,
"replicaCount": "2",
"dependencies": ["UM", "DB"],
"clusterType": "stateless",
"resources": {
"limits": {
"cpu": "1",
"memory": "2"
}
},
"version": "10.4",
"env": {
"packages": ["packages.WmCloudStreams.enabled=true",
"packages.WmJDBCAdapter.enabled=true"]
}
}],
"UNIVERSALMESSAGING": [{
"name": "UM",
"isClustered": false,
"statefulCluster": false,
"clusterType": null,
"resources": {
"limits": {
"cpu": "1",
"memory": "2"
}
},
"version": "10.4"
}]
}
}
}
}
Commands for listing the solutions
Run the following command to list solutions.
solution list [options]
Example
solution list --view json
Commands for getting the solution and runtimes
Run the following command to get the solution and all runtimes.
solution get <solutionName> [options]
where the options are:
Name | Description |
---|---|
--view [viewType] | By default, outputs the response in a table view mode. The CLI supports both table and JSON output format. Example: solution get DemoSoln --view json |
Commands for deleting the solution
Run the following command to delete the solution.
solution delete <solutionName> [options]
where the options are:
Name | Description |
---|---|
--view [viewType] | By default, outputs the response in a table view mode. The CLI supports both table and JSON output format. Example: solution delete DemoSoln --view json |
Commands for activating or deactivating the solution
Run the following command to activate and deactivate a solution.
solution update-status <solutionName> <actionName> [options]
where the options are:
Name | Description |
---|---|
--view [viewType] | By default, outputs the response in a table view mode. The CLI supports both
table and JSON output format. Example: solution update-stats DemoSoln development deactivate.
Allowed action names are activate or deactivate |
Commands for getting the status of all pods in a solution
Run the following command to get the status of all pods in a solution.
solution get-status <solutionName> [options]
where the options are:
Name | Description |
---|---|
--view [viewType] | By default, outputs the response in a table view mode. The CLI supports both table and JSON output format. Example: solution get-status DemoSoln --view json |
Commands for getting the license information for a particular tenant
Run the following command to get the license information for a particular tenant.
tenant get-license-info [options]
where the options are:
Name | Description |
---|---|
--view [viewType] | By default, outputs the response in a table view mode. The CLI supports both table and JSON output format. Example: tenant get-license-info |
Commands for getting the total CPU and memory utilization details for a particular tenant
Run the following command to get the total CPU and memory utilization details for a particular tenant.
tenant get-utilization-details [options]
where the options are:
Name | Description |
---|---|
--view [viewType] | By default, outputs the response in a table view mode. The CLI supports both table and JSON output format. Example: tenant get-utilization-details --view json |
Commands for listing all the users
Run the following command to list all the users.
user list [options]
where the options are:
Name | Description |
---|---|
--view [viewType] | By default, outputs the response in a table view mode. The CLI supports both table and JSON output format. Example: user list --view json |
Commands to get a particular user
Run the following command to get the user information.
user get <userId> [options]
where the options are:
Name | Description |
---|---|
--view [viewType] | By default, outputs the response in a table view mode. The CLI supports both table and JSON output format. Example:user get [ID details] --view json |
Commands for promoting Integration Server and Universal Messaging configurations
Run the following command to promote Integration Server and Universal Messaging configurations.
runtime promote-configuration [options] <fromEnvironmentName> <fromSolutionName> <fromNodeName> <toSolutionName> <toNodeName>
where the options are:
Name | Description |
---|---|
--propFile [fileName] | Properties file to perform variable substitution. Example: Use the following
command for promotion across same instance: runtime promote-configuration DemoSoln IS
development Example: Use the following command for cross solution promotion:
runtime promote-configuration DemoSoln IS development DemoSoln1 IS1 Promotes the
configuration from the solution DemoSoln IS node to DemoSoln1 and IS1 node. |
Commands for promoting Unit Tests services from one environment to another
Run the following command to promote Unit Tests services from one environment to another.
tests-promote [options] <fromEnvironmentName> <fromSolutionName> <fromNodeName> <toSolutionName> <toNodeName>
where the options are:
Name | Description |
---|---|
--include [comma separated test suite names] | Promotes only specified test suites of the solution. Example: --include testsuite1,testsuite2,testsuite3 |
--exclude [comma separated test suite names] | Promotes all the test suite other than the specified test suite of the solution. Example: --exclude testsuite1,testsuite2,testsuite3 |
fromEnvironmentName: The environment from which the test suite has to be promoted.
fromSolutionName: The solution from which the test suite to promote resides.
fromNodeName: The Integration Server instance of the solution specified.
Commands for executing Unit Tests services
Run the following command to execute Unit Tests services from one environment to another.
tests-execute [options] <solutionName>
SolutionName: The solution from which the test suite is to be executed.
where the options are:
Name | Description |
---|---|
--include [comma separated test suite names] | Executes only specified test suites of the solution. Example: --include testsuite1,testsuite2,testsuite3 |
--exclude [comma separated test suite names] | Executes all the test suite other than the specified test suite of the solution. Example: --exclude testsuite1,testsuite2,testsuite3 |
Run the following command to execute Unit Tests services from one environment to another along with the runId.
tests-execute-status [options] <runId>
Commands for promoting Integration Server packages
Run the following command to promote Integration Server packages.
runtime promote-packages [options] <fromEnvironmentName> <fromSolutionName> <fromNodeName> <toSolutionName> <toNodeName>
where the options are:
Name | Description |
---|---|
--include [comma separated package names] | Promotes only specified packages. Example: -----include package1,package2,package3 |
--exclude [comma separated package names] | Promotes all the packages other than the packages specified in the options. Example: -----exclude package1,package2,package3 |
--prop File [fileName] | Provide properties file to perform variable substitution. Examples: Use the following command for promotion across same instance: runtime promote-packages DemoSoln IS development-- propFile /home/etc/var_sub.properties Use the following command for cross solution promotion: runtime promote-packages DemoSoln IS development TestSoln IS2 Use the following command to replace a property in a specific composite asset. <propertyName>/<compositeAssetName> The replacement properties should be in the following format: <propertyName>/<compositeAssetName>/<assetName> Example for replacing properties of a package: activatePkgOnInstall/TestODataService=false where TestODataService is the package name whose property activatePkgOnInstall is assigned with value false. Example for replacing properties of a service of a package: serverName/TestODataService/JDBC_Connection .ODataService=localhost where JDBC_Connection.ODataService is a service under package TestODataService, whose parameter serverName is assigned with value localhost. |
Commands for printing the list of exposed services
Run the following command to print the list of exposed services.
runtime get-exposed-is-serices <solutionName> <nodeName> [options]
where the options are:
Name | Description |
---|---|
--view [viewType] | By default, outputs the response in a table view mode. The CLI supports both table and JSON output format. Example: runtime get-exposed-is-services DemoSoln IS --view json |
Commands for listing all the queues
Run the following command to list all the queues in the Universal Messaging instance.
um list-queues <solutionName> <nodeName> [options]
where the options are: --view [viewType]
By default, outputs the response in a table view mode. The CLI supports both table and JSON output format. Example: um list-queues DemoSoln UM --view json
Commands for getting the queue information
Run the following command to retrieve pushed, popped, and memory usage of the queue.
um get-queue <solutionName> <nodeName> <queueName> [options]
where the options are: --view [viewType]
By default, outputs the response in a table view mode. The CLI supports both table and JSON output format. Example: um get-queue DemoSoln UM dummyQueue --view json
Commands for getting the queue details
Run the following command to retrieve the queue details.
um get-queue-details <solutionName> <nodeName> <queueName> [options]
where the options are:
Name | Description |
---|---|
--view [viewType] | By default, outputs the response in a table view mode. The CLI supports both table and JSON output format. Example: um get-queue-details DemoSoln UM dummyQueue --view json |
Commands for listing all the channels in the Universal Messaging instance
Run the following command to list all the channels in a Universal Messaging instance.
um list-channels <solutionName> <nodeName> [options]
where the options are:
Name | Description |
---|---|
--view [viewType] | By default, outputs the response in a table view mode. The CLI supports both table and JSON output format. Example: um list-channels DemoSoln UM --view json |
Commands for getting the channel information
Run the following command to get the channel information.
um get-channel <solutionName> <nodeName> <channelName> [options]
where the options are:
Name | Description |
---|---|
--view [viewType] | By default, outputs the response in a table view mode. The CLI supports both table and JSON output format. Example: um get-channel DemoSoln UM dummyChannel --view json |
Commands for getting the channel details
Run the following command to get the channel details.
um get-channel-details <solutionName> <nodeName> <channelName> [options]
where the options are:
Name | Description |
---|---|
--view [viewType] | By default, outputs the response in a table view mode. The CLI supports both table and JSON output format. Example: um get-channel-details DemoSoln UM development dummy Channel --view json |
Commands for listing the durable subscribers
Run the following command to list all durable subscribers in a Node.
um list-durablesubscribers <solutionName> <nodeName> [options]
where the options are:
Name | Description |
---|---|
--view [viewType] | By default, outputs the response in a table view mode. The CLI supports both table and JSON output format. Example: um get-channel-details DemoSoln UM dummyChannel --view json |
Commands for getting the specific durable subscriber details
Run the following command to get specific durable subscribers details.
um get-durablesubscriber-details <solutionName> <nodeName> <durableName> <channelName> [options]
where the options are:
Name | Description |
---|---|
--view [viewType] | By default, outputs the response in a table view mode. The CLI supports both table and JSON output format. Example: um get-channel-details DemoSoln UM durablename dummyChannel --view json |