Open Liberty Server Run Engine commands
Use the following Run Engine commands to configure Open
Liberty Servers - ts-app, crs-app,
search-app, search-ingest-app,
search-query-app, xc-app.
The following table contains the default Run Engine commands. To view the scripts,
start with /SETUP/bin/entrypoint.sh. If you want to implement
custom logic or override existing configurations, ensure that the necessary
parameters can be resolved by the commands during startup.
| Description | Command |
|---|---|
| Set the connection to the Transaction server | run set-transaction-server hostName
securedPort
|
| The SPI username and password is used for
inter-component server API invocation only. The
spiuser is configured in the Store
server, Search server and Customization server, and used in the API
invocation from those servers to the Transaction server. The images
need to be configured with the spiuser
password, otherwise the component servers cannot connect to the
Transaction server. Sets JVM property: spi.username, spi.password |
run set-spi-user userName
ASCII_encrypted_password
|
| For development or authoring environment, set Search server name binding. | run set-search-server search_host
search_port
|
| For live environments, set the Search server name binding for the Search repeater. | run set-search-server search_host
search_port
search_repeater_host
search_repeater_port
|
| Based on cloudAccout name, user name, password, userType, accoutAlias to create JNDI entry for this Cloudant account. | run add-cloudant-account cloudantAccount
userName password accountAlias
|
| Update Cloudant account information. | run update-cloudant-account cloudantAccount
userName password accountAlias
|
| Add a database connection datasource. |
run add-datasource jndi
database
dbtype
dbHost
dbPort
dbUser
dbPass
xa
sslConnect
|
| Add JNDI entry. | run add-jndi-entry name value
|
| Update userregistry.xml to create a new user registry. | run add-spi-registry registryId username
password
|
| Update jvm.options to add new JVM properties. | run add-system-property name value
|
| Update wlp Liberty home and server name for Run Engine configuration properties. | run generate-config-properties LibertyHome
ServerName
|
| Retrieve the start state of an application in the Liberty server. If the application is not started within 3 minutes, error code 1 is returned. | run get-status application_name
|
| Remove SPI registry form userregistry.xml. | run remove-spi-registry-user
registryId
username [group]
|
| Copy trace setting file (logging.xml) to wlp Liberty server home. Default location is /SETUP/server/root/logging.xml | run reset-trace-specification |
| Update initHeapSize and maxHeapSize in jvm.option file. | run set-heap-size initHeapSize
maxHeapSize
|
| Update jndi.xml to create or update a JNDI entry. | run set-jndi-entry name
value
|
| Set JNDI
entry. com.ibm.commerce.foundation.server.services.commerce.integration.sessionkey |
run set-session-key
sessionKey
|
| Add JVM property. | run set-system-property name
value
|
| Change trace log directory. | run set-trace-log-directory
directory
|
| Change trace level. | run set-trace-specification
spec
|
| Update JNDI entry. | run update-jndi-entry name
value
|
| Update isClientSideRedirectSupported attribute. | run update-oidc-client-side-redirect-supported
clientSideRedirectSupported
|
| Update context path for OIDC configuration. | run add-oidc-context-root
contextRoot
|
| Update OIDC redirect server host name. | run update-oidc-redirect-server-host
serverHost
|
| Create an Oracle datasource to a server configuration. | run add-datasource-oracle jndi database
dbHost dbPort dbUser dbPass xa
optional:sslConnect
|
| Create a PostgreSQL datasource to a server configuration. | run add-datasource-postgres jndi database
dbHost dbPort dbUser dbPass xa
optional:sslConnect
|
| Adds a new db2 datasource to a server configuration if it does not already exist. | run add-datasource jndi database dbHost
dbPort dbUser dbPass xa
optional:sslConnect
|
| Adds a new JNDI entry to a server configuration if it does not already exist. | run add-jndi-entry name
value
|
| Adds a new object cache instance if it does not already exist. | run add-objectcache jndiName
cacheSize [sizeMB]
|
| Adds a new SPI registry for integration. | run add-spi-registry registryId username
password
|
| Adds a new JVM System property to jvm.options if it does not already exist. | run add-system-property name
value
|
| Enables JSON logging on the Liberty Server. | run enable-json-logging |
| Creates configuration properties file for Run Engine Command. | run generate-config-properties LibertyHome
ServerName
|
| Gets the status of an application. | run get-status application
name
|
| Resets trace specification and clears any trace level set. | run reset-trace-specification |
| Sets the heap size on jvm.options. | run set-heap-size initHeapSize
maxHeapSize
|
| Creates or updates a JNDI entry to a server configuration. | run set-jndi-entry name
value
|
| Sets the session key for the application, optionally including the file path for wc-server.xml. | run set-session-key sessionKey
[filePath]
|
| Configures SPI user by setting the username and password for SPI integration. | run set-spi-user userName
password
|
| Sets a JVM System property on jvm.options. | run set-system-property name
value
|
| Sets the maximum number of trace files to retain. | run set-trace-file-maximum-number
numberOfHistoricalFiles
|
| Sets the maximum size of trace log files | run set-trace-file-maximum-size
size
|
| Sets the trace format for the log. | run set-trace-format
traceformatType
|
| Sets the directory for trace logs. | run set-trace-log-directory
directory
|
| Sets the trace specification. | run set-trace-specification
spec
|
| Configures transaction server by setting the transaction host name and ports. | run set-transaction-server hostName
securedPort [nonsecuredPort]
|
| Updates database credentials (user and password) for the specified JNDI. | run update-datasource-cred jndi dbUser
dbPass
|
| Updates database connection details for the specified JNDI. | run update-datasource-db jndi database dbHost
dbPort sslConnect
|
| Updates an existing JNDI entry to a server configuration. | run update-jndi-entry name
value
|
| Updates the size of an object cache if it exists. | run update-objectcache-size jndi
cacheSize [sizeMB]
|
| Updates the SPI registry user password. | run update-spi-registry-user-password
registryId username password
|
| Updates an existing JVM System property on jvm.options. | run update-system-property name value
|