HOWTO: Run the CLI utility




This step assumes that you have successfully installed the SKS server and its components, as well as installed the Symmetric Key Client Library (SKCL). If not, please finish that before continuing with this step. It also assumes that you have downloaded the StrongKey distribution and deployed the symkey.ear file.




1

In a shell window (Command Prompt for Windows users) change directory to the /usr/local/etc/symkey/skcl directory.

2

Load the sample data into the database using the following (it assumes that $JAVA_HOME/bin is in your execution path):

java -jar cli.jar xml 0 | tee cli.out

Windows users should use the following command:

java -jar cli.jar xml 0 > cli.out



Linux users will see a tremendous volume of output start scrolling by in your shell window. As long as it does not stop due to an error, or show any Java exception errors, this is normal.

Windows users will see some log output (unless the JVM has been configured to redirect its log output elsewhere) as follows:





3

Review the cli.out output file for any errors using the following command on Linux. Windows users should read the cli.out file inside WordPad and search for the errorkey string:

grep errorkey cli.out

Windows users should use the following command:

find “errorkey” cli.out



You should see a long list of errorkey: null messages. If everyone of the lines says errorkey: null, then you have no errors.

4

You have successfully added the sample test data into the database.