CLI: View Server Status
The status.sh script will ping (using both ‘ping’ and ‘mysqladmin ping’) each mysql server and print out if they are connected or not.
[root@clustercontrol scripts]# ./status.sh -a
Master hosts
------------
app01: up
app02: up
Slave hosts
------------
app03: up
-
Okay, i have found it, that section is deprecated. We will clean this up. Sorry about this.
For the s9s CLI you need a user to authenticate against the cmon service. On the controller host:
s9s user --create --generate-key --controller="https://localhost:9501" --group=admins USERNAME
Replace USERNAME with a proper user name that you want to use.
Then you can e.g do:
s9s node --list --longBR
johan -
Ya, when I couldn't find the scripts I looked at the online docs and section 6.8 references the CLI and the 's9s-tools' package. I created an account and can run commands.
Also, FYI, when I first look at the online documentation, under 's9s node', the commands stop, start, restart are missing, whereas when I do a MAN page on the management system, the commands are there.
Thank again!
Please sign in to leave a comment.
Comments
4 comments