Bug #48606 RFE: ndb_error_reporter needs --help
Submitted: 6 Nov 2009 18:58 Modified: 16 Sep 2013 9:48
Reporter: Kevin Benton Email Updates:
Status: Closed Impact on me:
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S4 (Feature request)
Version:mysql-5.1-telco-7.0 OS:Linux (RHEL 5)
Assigned to: CPU Architecture:Any
Tags: mysql-5.1.35 ndb-7.0.7

[6 Nov 2009 18:58] Kevin Benton
ndb_error_reporter needs a --help option to instruct users on how to use the tool.

How to repeat:
See description

Suggested fix:
See description
[6 Nov 2009 19:07] Valeriy Kravchuk
What about calling it without arguments? Like this:

77-52-7-73:5.1 openxs$ bin/ndb_error_reporter
	ndb_error_reporter config.ini [username] [--fs]

	username is a user that you can use to ssh into
	  all of your nodes with.

	--fs means include the filesystems in the report
	 WARNING: This may require a lot of disk space.
	          Only use this option when asked to.

Isn't it enough? Some other utilities, like mysqladmin, provides help this way too.
[6 Nov 2009 19:12] Kevin Benton
Okay - that's fine, but here's what happens when I use --help:

% ndb_error_reporter --help
Cannot open configuration file.

When I write software, I make the default error operation to report what the error is (as it does in this case) then display a usage statement when appropriate.  Since one of the options is to tell the command where the config file is, it seems that makes good sense to me here.
[16 Sep 2013 9:48] Jon Stephens
Fixed in NDB 7.0+.

Option added in 7.0.40, 7.1.29, 7.2.14, 7.3.3. Changelog entry:

      ndb_error_reporter did not support the --help option. 

Also added/updated missing/dated options info for this utility in the documentation.