MaxScale 22.08 MaxCtrl
MaxCtrl
MaxCtrl
MaxCtrl is a command line administrative client for MaxScale which uses the MaxScale REST API for communication. It has replaced the legacy MaxAdmin command line client that is no longer supported or included.
By default, the MaxScale REST API listens on port 8989 on the local host. The
default credentials for the REST API are admin:mariadb. The users used by the
REST API are the same that are used by the MaxAdmin network interface. This
means that any users created for the MaxAdmin network interface should work with
the MaxScale REST API and MaxCtrl.
For more information about the MaxScale REST API, refer to the REST API documentation and the Configuration Guide.
Limitations
MaxCtrl does not work when used from a SystemD unit with MemoryDenyWriteExecute=true.
.maxctrl.cnf
If the file ~/.maxctrl.cnf exists, maxctrl will use any values in the
section [maxctrl] as defaults for command line arguments. For instance,
to avoid having to specify the user and password on the command line,
create the file .maxctrl.cnf in your home directory, with the following
content:
Note that all access rights to the file must be removed from everybody else but the owner. MaxCtrl refuses to use the file unless the rights have been removed.
Another file from which to read the defaults can be specified with the -c
flag.
Commands
list
list servers
list services
list listeners
list monitors
list sessions
list filters
list modules
list threads
list users
list commands
list queries
show
show server
show servers
show service
show services
show monitor
show monitors
show session
show sessions
show filter
show filters
show listener
show listeners
show module
show modules
show maxscale
show thread
show threads
show logging
show commands
show qc_cache
show dbusers
set
set server
clear
clear server
drain
drain server
enable
enable log-priority
disable
disable log-priority
create
create server
create monitor
create service
create filter
create listener
create user
create report
destroy
destroy server
destroy monitor
destroy listener
destroy service
destroy filter
destroy user
destroy session
link
link service
link monitor
unlink
unlink service
unlink monitor
start
start service
start listener
start monitor
start services
stop
stop service
stop listener
stop monitor
stop services
alter
alter server
alter monitor
alter service
alter service-filters
alter filter
alter listener
alter logging
alter maxscale
alter user
alter session
alter session-filters
rotate
rotate logs
reload
reload service
reload tls
reload session
reload sessions
call
call command
cluster
cluster diff
cluster sync
api
api get
api post
api patch
classify
CC BY-SA / Gnu FDL
Last updated
Was this helpful?

