9 Managing OMCe with the PaaS CLI
As an alternative to using the PaaS Service Manager UI and Oracle Cloud Stack Manager UI to manage the lifecyle of your OMCe service instance and stack, respectively, you can perform the same lifecycle operations with the PaaS Service Manager command line interface (CLI). The CLI is a thin wrapper over PaaS REST APIs that you can use to run command to create, start, stop, apply patches, backup, restore, and delete a service.
Before you can use the PaaS CLI, you must have the cURL command-line tool and Python 3.3 or later. To get the PaaS CLI, you’ll have to perform the following actions:
Action | How Do I Do It? |
---|---|
Download the CLI |
To download from the Oracle Cloud User Interface, see Downloading the CLI from the Oracle Cloud User Interface in the PaaS Service Manager Command Line Interface Reference. To download using a REST API, see Downloading the CLI by Using the REST API in the PaaS Service Manager Command Line Interface Reference. |
Install the CLI |
See Installing the Command Line Interface in the PaaS Service Manager Command Line Interface Reference. |
Configure the CLI |
See Configuring the Command Line Interface in the PaaS Service Manager Command Line Interface Reference. |
Some common Oracle Cloud Stack Manager commands are listed here.
Stack Command | Description |
---|---|
|
Create a stack. |
|
Delete a stack. |
|
Start or stop all resources in the specified stack. |
|
List detailed information about a stack. |
|
List all stack instances in the identity domain. |
|
Resume creating a stack. Use this command when creation of a stack was stopped when an error occurred and the stack creation wasn’t rolled back. |
|
List detailed information about a stack operation, particularly a stack creation operation. |
Some common service commands are listed here.
Service Instance Command | Description |
---|---|
|
List all active service instances within your identity domain. Set the output level to |
|
Display the details for a specified service. |
|
Start or stop the OMCe service instance. |
|
Restore a OMCe service instance from the specified backup. |
|
Initiate an on-demand backup for the OMCe service instance. |
|
Apply a patch to the specified OMCe service instance. |
|
List all available patches for an OMCe service instance. |
|
List all applied patches to an OMCe service instance. |
|
Rollback a patch for the specified OMCe service instance. |
|
Restart an OMCe administration server. |
Replace omce with the appropriate service type from this list:
-
BOTSCFG
-
BOTSINT
-
BOTSCON
-
BOTSPIP
-
BOTSMGM
-
OEHCS
-
CXACFG
-
CXAPOD
-
CXAANA
-
CXACOL
-
MobileCorePOD
-
MobileCCC
See Oracle Cloud PaaS Service Manage Command Line Interface Reference for a complete list of OMCe commands, their syntax, and parameters.
Monitor Your OMCe Stack with the CLI
Start or Stop a Stack with the CLI
Monitor a Service Instance with the PaaS CLI
Display details of a single OMCe service instance within your identity domain with the psm omce service
command.
Parameter | Description |
---|---|
|
Specifies the instance. |
|
(Optional) Specifies the output format. You can specify which format to use as the default with the |
Display a list of all active OMCe service instances within your identity domain with the psm omce services
command.
Parameter | Description |
---|---|
|
(Optional) Displays the full set of details in the output for each service instance. |
|
(Optional) Specifies the output format. You can specify which format to use as the default with the |
Precheck Before Patching with the PaaS CLI
psm omce precheck–patch
command to identify potential issues that could prevent the patch operation from completing. This command returns reports on
-
disk space shortage
-
database connectivity failure
-
server access failure
-
storage access failure
This command doesn’t check if other administrative operations, such as backup or restore, are in progress even though the operations would prevent a patch operation from completing.
Parameter | Description |
---|---|
|
Specifies the instance. |
|
Specifies the patch Id for the patch to precheck. |
|
(Optional) Specifies the output format. You can specify which format to use as the default with the psm setup command. See Configuring the Command Line Interface in the Oracle Cloud PaaS Service Manage Command Line Interface Reference. |
Patch an OMCe Service with the PaaS CLI
Patch an OMCe service instance with the psm omce patch
command.
Parameter | Description |
---|---|
|
Specifies the instance. |
|
Specifies the patch. Use the |
|
(Optional) Provides additional information about the patch in free-form text. |
|
(Optional) Specifies the output format. You can specify which format to use as the default with the psm setup command. See Configuring the Command Line Interface in the Oracle Cloud PaaS Service Manage Command Line Interface Reference. |
Rollback a Patch with the PaaS CLI
If you need to roll back a patch, use the psm omce rollback
command.
Parameter | Description |
---|---|
|
Specifies the instance. |
|
Identifies the patch operation to roll back. Use the |
|
Provides additional information about the patch rollback in free-form text. |
|
(Optional) Specifies the output format. You can specify which format to use as the default with the psm setup command. See Configuring the Command Line Interface in the Oracle Cloud PaaS Service Manage Command Line Interface Reference. |