- printf("\nOSSEC HIDS %s: Connects to the manager to extract the agent key.\n", ARGV0);
- printf("Available options:\n");
- printf("\t-h This help message.\n");
- printf("\t-m <manager ip> Manager IP Address.\n");
- printf("\t-p <port> Manager port (default 1515).\n");
- printf("\t-A <agent name> Agent name (default is the hostname).\n");
- printf("\t-D <OSSEC Dir> Location where OSSEC is installed.\n");
+ print_header();
+ print_out(" %s: -[Vhdt] [-g group] [-D dir] [-m IP address] [-p port] [-A name] [-c ciphers] [-v path] [-x path] [-k path]", ARGV0);
+ print_out(" -V Version and license message");
+ print_out(" -h This help message");
+ print_out(" -d Execute in debug mode. This parameter");
+ print_out(" can be specified multiple times");
+ print_out(" to increase the debug level.");
+ print_out(" -t Test configuration");
+ print_out(" -g <group> Group to run as (default: %s)", GROUPGLOBAL);
+ print_out(" -D <dir> Directory to chroot into (default: %s)", DEFAULTDIR);
+ print_out(" -m <addr> Manager IP address");
+ print_out(" -p <port> Manager port (default: %s)", DEFAULT_PORT);
+ print_out(" -A <name> Agent name (default: hostname)");
+ print_out(" -c SSL cipher list (default: %s)", DEFAULT_CIPHERS);
+ print_out(" -v <path> Full path to CA certificate used to verify the server");
+ print_out(" -x <path> Full path to agent certificate");
+ print_out(" -k <path> Full path to agent key");
+ print_out(" -P <path> Authorization password file [default: /var/ossec/etc/authd.pass");
+ print_out(" ");