22.4.1. Scripting Blackouts

You can write a script to black out a server, rather than
opening a web browser and typing entries into the address bar.
This section documents a sample blackout script that can be run
from the command line.

Check the configuration_report.txt file for
the host name and port to use. Specify the correct port for the
Tomcat server. Specify the server to black out using the name
that appears in the Server Tree, including the colon and port
number as shown in the preceding example. Specify the name of a
user who is a "manager". A user with "dba" rights cannot black
out a server, and the script does not display any error in this
case.

To confirm that a server is blacked out, check that its name is
greyed out in the Monitor UI. To end the blackout, run the same
script, changing the final argument to false.

Note

Restarting MySQL Enterprise Monitor does not
reactivate a blacked out server.