...
Panel | ||||
---|---|---|---|---|
| ||||
The Shell Tool was introduced in XperienCentral version 10.12.0 and removed in version R43. |
This topic explains how to use the Shell Tool which provides command line access to the Apache framework in which XperienCentral runs. This makes it possible to manage plugins, users and website settings from outside the XperienCentral GUI. The Shell Tool works for both local installations of XperienCentral as well as cloud installations. It is an extension of the Apache Felix GoGo shell. This topic only covers the XperienCentral-specific commands that you can execute from the Shell Tool. Documentation for the Apache Felix GoGo shell itself can be found at http://felix.apache.org/documentation/subprojects/apache-felix-framework/apache-felix-framework-usage-documentation.html.
...
For security reasons, SSH is enabled by default only on the internal network and can only be accessed by localhost on the default port 7009. To change this port, the system property osgi.console.ssh
should be added to the Java system properties (-Dosgi.console.ssh=localhost:<port>
or -Dosgi.console.ssh=127.0.0.1:<port>
). To enable access from another host, set this to -Dosgi.console.ssh=<port>.
...
Generating Keys
There are different ways to generate the keys. Creating the keys according to the steps below will enable access from Linux systems (using SSH) as well as from Windows systems using PuTTY.
...
Warning |
---|
If you use PUTTYgen to generate the private/public keys, they might not work in the Linux environment with SSH. |
...
Managing Plugins from the Shell Tool
In addition to the functionality available for managing plugins from the XperienCentral Plugins Management Console, there are equivalent commands available in the Shell Tool that you can invoke directly from the command line. To use the commands on a plugin in the Shell Tool, you must first determine the ID of a plugin by issuing the lb
command in the Tomcat window. After you issue the lb
command, you will see a list of the plugins and their IDs. For example:
(click image to enlarge)
...
Command | Description | ||
---|---|---|---|
wmstart | Registers services that each component within the bundle exposes if all required service dependencies are available. For each component, at the very least a component service is registered. Usage:
where | ||
wmstop | Stops all services registered by the component. Usage
where | ||
wmupdate | Updates the plugin to a newer version. If a problem is encountered during the update, the plugin is automatically rolled back to the existing version. The following describes a typical plugin update scenario:
| ||
wmpurge | Removes all content that was created during and after the installation of the plugin. Usage:
where
| ||
wmuninstall | Removes all content that was created during the installation of the plugin. Usage:
where
|
...
Managing Website Settings from the Shell Tool
...
Command | Description | |||||||
---|---|---|---|---|---|---|---|---|
wmaddconfigvalue | Adds a configuration value to an entry. Syntax | |||||||
wmaddwebsitesettingvalue | Adds a value to the specified website setting. Syntax | |||||||
wmfindconfigvalue |
Returns the value(s) of the specified configuration setting. Syntax
Exampleswmfindconfigvalue <config set definition> <configset (wildcard)> <entryname (wildcard)> returns entryname from configsetdefinition for all webinitiatives wmfindconfigvalue website_settings * backend_hostname wmfindconfigvalue <configset (wildcard)> <entryname (wildcard)> returns entryname from given configset
| |||||||
wmfindwebsitesettingvalue | Retrieves the value of the specified website setting. Syntax | |||||||
wmremoveconfigvalue | Removes the specified value from the specified configuration setting. Syntax | |||||||
wmupdateconfigvalue | Updates the specified configuration setting with the specified value(s). Syntax If | |||||||
wmupdatewebsitesettingvalue | Updates the specified website setting with the specified value. Syntax If the website setting is a checkbox, use |
...
Managing User Passwords from the Shell Tool
...
Command | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
wmfinduser | Finds an XperienCentral user or users. This method takes the following parameters:
Examples
| |||||||||||||||
wmsetpassword | Assigns the specified password to the specified user.
Example
This command will return an error message if the password is not strong enough. See User Authorization for information on how XperienCentral enforces password strength. | |||||||||||||||
wmlockunlockuser |
Sets a user to an active/inactive state.
Example
This command sets the user "JohnS" to an inactive state. |
...
General Commands
Parameter | Description |
---|---|
lb | This is a standard Felix command used to find all installed bundles matching the specified substring. |
wmcall | Calls the specified service (must be registered as an OSGi bundle). The possible parameters are:
Example |
wmloglevel | Sets the java.util.logging level. |
wmretrieveversion | Returns the version of XperienCentral that is running. |
wmtruncatetables | Truncates the specified list of XperienCentral tables. This is sometimes necessary when you copy a database from one environment to another and want to start with a clean version of it. The tables that can be truncated are:
To truncate all the tables above, use |