The command line tool now runs over an MBean, namely the 'GuardMaintenanceMBean'

With OX Guard 2.4.0 the database initialisation trigger, which was part of the command line tool ('init'), was removed and incorporated in to the OX Guard backend. The 'init' flag is still there, slightly changed to '--init' and is only used to generate the master keys of the server. One extra flag was introduced '-d' which is used in conjunction with the --init flag. That flag specifies the directory in which the 'oxguardpass' will be stored.

Furthermore, the command line tool now provides the ability to use JMX authentication.

Below, the help screen:

usage: guard [-i [-d /custom/path]] [-t] [-u] [-e] [-n] [-j jmxUser] [-w jmxPassword] [-x] [-o <JMX_PORT>] [-p <RMI_PORT>] [--responsetimeout
-d,--directory <arg> Full path of the 'oxguardpass' file (defaults
to current directory). This flag should be used
in conjunction with the '--init' switch.
e.g. guard --init --directory
-e,--reset <arg> Resets the specified e-mail address and sends a
new password to the user
e.g. guard --reset
-h,--help Prints a help text
-i,--init Initialise guard.
-j,--jmx-user <arg> JMX user
-n,--remove-pin <arg> Removes the PIN for the specified user
e.g. guard --remove-pin
-o,--jmx-port <arg> JMX port (default: '9999')
-p,--port <arg> The optional RMI port (default:1099)
-s,--server <arg> The optional RMI server (default: localhost)
-t,--test <arg> Test the specified e-mail address against the
e.g. guard --test
-u,--upgrade <arg> Upgrades the specified guest account to an OX
e.g. guard --upgrade
-w,--jmx-password <arg> JMX password
-x,--jmx-host <arg> JMX host (default: 'localhost')
Command line tool for OX Guard