Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- set -e
- set -o pipefail
- WSREP=$(mysql --unbuffered --skip-column-names --batch --connect-timeout=3 -e "SHOW GLOBAL STATUS LIKE 'wsrep_%';" 2> /dev/null | sed 's/^/ "/g; s/\t/": "/g; ;s/$/",/g' | sed -z 's/\(.*\),/\1/')
- cat <<EOF
- {
- $WSREP
- }
- EOF
Add Comment
Please, Sign In to add comment