close

Filter

loading table of contents...

Content Server Manual / Version 2512.0

Table Of Contents

3.13 Server Utility Programs

The CoreMedia CMS provides a series of server utility programs for information, adjustment and optimization of the server processes. Basically there are four categories of such tools:

Information

The informational tools allow you to inspect the current state of the CoreMedia CMS. You can dump all kinds of server objects, such as resources, running processes or used licenses. Furthermore, you can query system information about the CoreMedia CMS itself (esp. the version), which becomes important whenever you submit a support request.

Operation

With the operational tools you control the CoreMedia CMS. This includes cleaning up the repository, uploading new workflow definitions and maintaining the database.

Repository

The repository tools allow you to execute actions normally performed by the editors, like approving and publishing resources or starting workflows. They are emergency tools, needed only in exceptional cases to fix the repository immediately when something went wrong.

General usage

All server utilities are implemented as cm programs as described in the Operations Basics, that is you run them from the command line with cm, cmw or cm64. Most of the tools open a session and therefore need a user who is specified by three command line options -u, -d and -p.

The CoreMedia system supports gRPC and CORBA for internal communication. While Content Servers always offer both protocols for clients to connect, server utilities can be configured to use either gRPC or CORBA. The protocol can be chosen freely on each start of a component. Currently, CORBA is the default protocol.

To activate gRPC on a server utility, export environment variable REPOSITORY_USEGRPC set to true or precede the command with a local variable definition. In any case you have to specify the gRPC endpoint of the Content Server to connect to with option -g and the HTTP base URI with option --http-base-uri. Example:

> REPOSITORY_USEGRPC=true \
   cm start -u admin -p admin \
   -g content-management-server:40165 \
   --http-base-uri http://content-management-server:40180 \
   1
Note

Note

If a server utility needs to communicate with the Workflow Server, the Content Management Server's IOR URL must be given, too. This is due to the fact that, with release 2512.0, the Workflow Server does not yet offer gRPC services to its clients. Activating gRPC on server utilities connecting to the Workflow Server won't do any harm as long as these are of release 2512.0, too. Future clients, though, will fail to connect to that Workflow Server if gRPC is active on them.

Activating gRPC on server utilities that communicate with the Workflow Server currently requires the -urloption. Example:

> REPOSITORY_USEGRPC=true \
 cm dump -u admin -p admin \
 -url http://content-management-server:40180/ior \
 -g content-management-server:40165 \
 --http-base-uri http://content-management-server:40180 \
 -pn Synchronization

Alternatively to the command line options -g, --http-base-uri and -url, you may also use environment variables. Example:

> REPOSITORY_USEGRPC=true \
   REPOSITORY_URL=http://content-management-server:40180/ior \
   SPRING_GRPC_CLIENT_CHANNELS_CAP_ADDRESS=content-management-server:40165 \
   REPOSITORY_HTTPBASEURI=http://content-management-server:40180 \
   cm dump -u admin -p admin -pn Synchronization
Parameter Description
-u <name> The name of the user
-d <domain> The domain of the user (optional, only for LDAP users)
-g <gRPC endpoint> The gRPC endpoint of the Content Server (optional). Using this option is equivalent to defining Spring Boot property spring.grpc.client.channels.cap.address. The tool option takes precedence over the Spring Boot property.
--http-base-uri <HTTP base URI> HTTP base URI of Content Server where HTTP servlets are provided (e.g. blob servlet) (optional). Using this option is equivalent to defining Spring Boot property repository.http-base-uri. The tool option takes precedence over the Spring Boot property.
--grpc-wfs-endpoint <WFS gRPC endpoint> The gRPC endpoint of the Workflow Server (optional). This option is only effective for releases after 2512.0 as the Workflow Server currently does not offer gRPC services to its clients. Using this option is equivalent to defining Spring Boot property spring.grpc.client.channels.wf.address. The tool option takes precedence over the Spring Boot property.
-p <password> The password of the user (optional). Using this option is equivalent to defining Spring Boot property repository.password. The tool option takes precedence over the Spring Boot property. If you don't specify the password at all, the tool will prompt for it at runtime.
--url <ior url> The IOR URL of the content server (optional). Using this option is equivalent to defining Spring Boot property repository.url. The tool option takes precedence over the Spring Boot property. If not specified otherwise, the URL is taken from file capclient.properties.

Table 3.11. Common options of server utilities


These options are common for most of the server utilities, and will therefore not be mentioned in detail for each tool. Note that most server utilities require administrative permissions and thus can only be run with users of administrative groups.

Caution

Protecting Passwords

A password that is provided via the command line might be visible in the shell history or in the list of running processes. A password provided via an environment variable might accidentally be passed to other commands, if the environment variable is set in a long-running shell or even during shell initialization.

If you must not or cannot enter the password manually, consider setting the environment variable in a wrapper script. Preferably the password is retrieved automatically from a secure password vault. If the password is stored in the shell script, the shell script must not be readable by other users.

If you are not sure how to use a utility, just start it without any options to print out a summary of its usage.

General usage in a Windows 64-bit environment

The server utilities can be started using the cm64.exe command in a Windows 64-bit environment with a JVM 64-bit, as described in the Operations Basics.

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.