Documentation Home
MySQL Cluster Manager 9.0 User Manual
Related Documentation Download this Manual
PDF (US Ltr) - 1.3Mb
PDF (A4) - 1.3Mb


5.2.3 Thechange log-level Command

change log-level [{--hosts=|-h }host_list]log_levelsite_namehost_list:host[,host[,...]]

Set the management agent's cluster logging level. This has the same effect as using the loggerlevel option; however, unlike the option, this command can be used at run time and does not require a restart ofmcmd. Issuing this command overrides any value forlevel set in the agent configuration file.

When used with thelog_level alone without ahost_list and asite_name, this command applies only to the agent themcm client is connected to. In the following example, the logging level is set towarning only on the host managed directly by the agent to which themcm client is connected:

mcm> change log-level warning;+--------------------------------+| Command result                 |+--------------------------------+| Log-level changed successfully |+--------------------------------+1 row in set (0.00 sec)

You can specify the name of a site to be affected by the command. For example, the following invocation of the command applies to the site namedmysite:

mcm> change log-level debug mysite;+--------------------------------+| Command result                 |+--------------------------------+| Log-level changed successfully |+--------------------------------+1 row in set (0.05 sec)

You can also restrict the change to one or more hosts in a given site using the--hosts option (or its short form-h), with multiple host names separated by commas. The following command changes the logging level to debug on the hosts namedtonfisk andhaj, but not on any other hosts inmysite:

mcm> change log-level --hosts=tonfisk,haj debug mysite;+--------------------------------+| Command result                 |+--------------------------------+| Log-level changed successfully |+--------------------------------+1 row in set (0.09 sec)

You must specify a site when using the--hosts option; trying to use--hosts alone results in an error.

Accepted values forlog_level are the same as for thelevel option: one ofdebug,note,info,warning,error,system, orfatal. For more detailed information about the meanings and effects of these values, seeNDB Cluster Logging Management Commands.