10bet网址
MySQL Enterprise Monitor 8.0 Manual
Related Documentation Download this Manual

10.1 Service Manager Configuration Utilities

Note

The parameters listed here, with the exception of the four repository connection parameters, correspond to those displayed on theWelcome to MySQL Enterprise Monitorpage used for initial setup. For more information, see13.1节,“初始登录”.

Important

These parameters enable you to configure MySQL Enterprise Service Manager from script or command line and should only be run while the MySQL Enterprise Service Manager is stopped.

Theconfig.sh/config.batscript is used to configure the MySQL Server Repository for the Service Monitor. Its default location is as follows:

Table 10.1 Default Location of Agent Configuration Utility

Operating System File Location

Microsoft Windows

C:\Program Files\MySQL\Enterprise\Monitor\bin\config.bat

UNIX/Linux

/opt/mysql/enterprise/monitor/bin/config.sh

Mac OS X

/Applications/mysql/enterprise/monitor/bin/config.sh


Use--helpto view the options.

The Service Manager configuration utility contains the following sets of commands:

Service Manager Configuration Utilities

Theconfigscript enables you to define or change any of the system configuration parameters such as credentials used to connect to the repository, proxy connection details, and MySQL Enterprise Service Manager user credentials.

Table 10.2 Service Manager Configuration Utilities

Name Description

--mysql-user=

--mu=

MySQL username for the Service Manager repository. The password is requested via STDIN when the command is run. The default value isservice_manager.

--mysql-port=

--mp=

MySQL port for the Service Manager repository. The port the target MySQL server listens on. The default is 13306.

--mysql-db=

--md=

MySQL database for the Service Manager repository. The name of the database used for the repository. The default ismem.

--mysql-server=

--ms=

MySQL server for the Service Manager repository. This must be a resolvable name or IP address of the server where the MySQL instance is running.

--mysql-check-requirements

Checks your repository to ensure compatibility with MySQL Enterprise Service Manager. For more information on the checks performed, seeSection 3.2.4, “MySQL Enterprise Monitor Repository”.

--mysql-upgrade

Runsmysql_upgradeon the repository defined in--mysql-basedir.

--mysql-basedir

Base directory of the local MySQL installation.

--sm-admin-user=

Service Manager manager username. The user defined here is added to the manager role.

--sm-agent-user=

Service Manager agent username. The user defined here is added to the agent role.

--auto-update

Enable automatic checking for online updates.

--purge-quan=

Defines the Query Analyzer data retention policy. Query Analyzer data older than the number of days defined here is deleted. Default is 28 days.

--purge-data=

Defines the historical data retention policy. Historical data older than the number of days defined here is deleted. Default is 28 days.

--proxy-host=

HTTP Proxy host.

--proxy-port=

HTTP Proxy port.

--proxy-user=

HTTP Proxy username.


Important

Passwords are always requested via STDIN and are requested in the order manager, agent, and proxy, regardless of the order in which they are defined on the command line or in script.

The following example instructs MySQL Enterprise Service Manager to use a locally installed instance, listening on port 3306, thememdatabase, and connect using the userservice_manager.:

config.sh --mysql-server=localhost --mysql-port=3306 --mysql-db=mem --mysql-user=service_manager

The following is an example of a basic setup, defining the admin and agent users, only. :

config.sh --sm-admin-user=admin --sm-agent-user=agent

All other parameters are set to their default values.

Important

You are prompted to define passwords for each of the users defined. Passwords are only accepted through STDIN.

Passwords are always requested in the order manager, agent, proxy, regardless of the order defined on the command line or in the script.

All other values are set to their defaults.

The following is an example of a complete setup, defining all available options:

config.sh --sm-admin-user=admin --sm-agent-user=agent --purge-quan=7 --purge-data=14 --proxy-host=localhost --proxy-port=9190 --proxy-user=proxy --auto-update

Service Manager Certificate Utilities

The certificate utilities enable you to modify, renew, import, and upgrade your SSL certificates.

Important

It is strongly recommended you use this utility to modify your SSL certificates and not attempt to modify them with any other tool.

Table 10.3 Service Manager Certificate Utilities

Name Description

--tomcat-backup-path=

--tbp=

Tomcat backup path to be used to perform upgrade

--upgrade

--upg

Upgrades certificates on non-OS X platforms. That is, Microsoft Windows, Linux, and so on.

--upgrade-osx

--upgo

Upgrades certificates on OS X platforms.

--new-install

--ni

Generates a keystore with a new self-signed certificate for a new installation

--accept-keystore-password

--akp

If specified, the user is prompted to enter the keystore password. If not specified, the default passwordchangeitis used to access the keystore.

--renew

Renew an existing, self-signed certificate. If the certificate is not self-signed, an error is returned.

--import-certificate=

Imports the specified certificate. For example:

--import-certificate=/path/to/client.crt

--import-key=

Imports the specified private key. For example:

--import-key=/path/to/client.key