public class CommandLineInterface
extends java.lang.Object
There are three CLI commands for the OpenDXL Java Client:
| Command Name | Command Information |
|---|---|
| provisionconfig |
This command is for provisioning a DXL Client and performs the following steps:
OK:
"[ca bundle],[signed client cert],[broker config]"
Sections of the response include:
To invoke this CLI command, the first argument must be provisionconfig. For example:
$> java -jar dxlclient-0.1.0-all.jar provisionconfig ...
The provision DXL Client command requires three CLI arguments:
An example usage of this command is the following:
$> java -jar dxlclient-0.1.0-all.jar provisionconfig config myserver dxlclient1
Note: If the command must route through a proxy to reach the management server then use standard Java system properties to declare the https proxy host, port, user name, and password. (https://docs.oracle.com/javase/8/docs/technotes/guides/net/proxies.html) An example usage of this command with Java system properties for the proxy settings is the following:
$> java -Dhttps.proxyHost=proxy.mycompany.com -Dhttps.proxyPort=3128
-Dhttps.proxyUser=proxyUser -Dhttps.proxyPassword=proxyPassword
-jar dxlclient-0.1.0-all.jar provisionconfig config myserver dxlclient1
|
| updateconfig |
This command is for updating the DXL client configuration in the dxlclient.config file, specifically the
ca bundle and broker configuration.
This command performs the following steps:
Updates to the dxlclient.config file do not attempt to preserve comments in the file. If a broker listed in the config file on disk is no longer known to the management server, the broker's config entry and any comments directly above it are removed from the config file. An example usage of this command is the following:
$> java -jar dxlclient-0.1.0-all.jar updateconfig config myserver
Note: If the command must route through a proxy to reach the management server then use standard Java system properties to declare the https proxy host, port, user name, and password. (https://docs.oracle.com/javase/8/docs/technotes/guides/net/proxies.html) An example usage of this command with Java system properties for the proxy settings is the following:
$> java -Dhttps.proxyHost=proxy.mycompany.com -Dhttps.proxyPort=3128
-Dhttps.proxyUser=proxyUser -Dhttps.proxyPassword=proxyPassword
-jar dxlclient-0.1.0-all.jar updateconfig config myserver
|
| generatecsr |
This command is for generating a private key and CSR
The provision DXL Client command requires three CLI arguments:
An example usage of this command is the following:
$> java -jar dxlclient-0.1.0-all.jar generatecsr config dxlclient1
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args)
Main entry point for the command line interface
|