# @file homestead_diags
#
# Copyright (C) Metaswitch Networks 2015
# 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).

describering_file=$CURRENT_DUMP_DIR/nodetool_describering.txt

for keyspace in homestead_cache homestead_provisioning
do
  echo $keyspace: >>$describering_file
  $namespace_prefix nodetool describering $keyspace >>$describering_file
  echo >>$describering_file
done

cp /usr/share/clearwater/homestead/local_settings.py $CURRENT_DUMP_DIR
