# @file ellis_diags
#
# Copyright (C) Metaswitch Networks 2013
# If license terms are provided to you in a COPYING file in the root directory
# of the source code repository by which you are accessing this code, then
# the license outlined in that COPYING file applies to your use.
# Otherwise no rights are granted except for those provided to you by
# Metaswitch Networks in a separate written agreement.

# This script is executed in the context of the clearwater_diags_monitor script
# (in the clearwater-infrastructure project).

. /etc/clearwater/config

# Check we can contact homestead.
check_connectivity_to_domain "$hs_hostname" 8888
check_connectivity_to_domain "$xdms_hostname" 7888

# Dump the database schema and contents.
mysqldump --no-data ellis > $CURRENT_DUMP_DIR/ellis_schema.txt
mysqldump ellis > $CURRENT_DUMP_DIR/ellis_data.txt
