Documentation Home
MySQL Cluster Manager 1.3 User Manual
Related Documentation Download this Manual

4.2.4 The rotate log Command

rotate log [--hosts=host_list] [site_name]

host_list:
    host[,host[,...]]

Rotate mcmd logs for the connected MySQL Cluster Manager agent, for agents running on certain hosts, or for agents on all hosts in a management site.

For example, to rotate logs for the agent to which the client session is connected:

mcm> rotate log;
+--------------------------+
| Command result           |
+--------------------------+
| Log rotated successfully |
+--------------------------+
1 row in set (0.03 sec)

A new log file, with a timestamp in its name, is created as a result:

-rw-r-----   1 mcmd cluster    74265 Jul 15 22:45 mcmd.log
-rw-r-----   1 mcmd cluster  1197573 Jul 15 22:45 mcmd.log.2014-07-15T22-45-28

To rotate logs for agents on hosts nanna12 and nanna13:

mcm> rotate log --hosts=nanna12,nanna13 mysite;

To rotate logs on all agents in the management site mysite:

mcm> rotate log mysite;


User Comments
User comments in this section are, as the name implies, provided by MySQL users. The MySQL documentation team is not responsible for, nor do they endorse, any of the information provided here.
Sign Up Login You must be logged in to post a comment.