setup() { ctdb_set_pnn setup_public_addresses setup_date "123456789" } ctdb_catdb_format_pairs() { _count=0 while read -r _k _v; do _kn=$(printf '%s' "$_k" | wc -c) _vn=$(printf '%s' "$_v" | wc -c) cat < ${_cip}, MON_NAME=${_sip}, STATE=${_state_even} SM_NOTIFY: ${_sip} -> ${_cip}, MON_NAME=${NFS_HOSTNAME}, STATE=${_state_even} SM_NOTIFY: ${_sip} -> ${_cip}, MON_NAME=${_sip}, STATE=${_state_odd} SM_NOTIFY: ${_sip} -> ${_cip}, MON_NAME=${NFS_HOSTNAME}, STATE=${_state_odd} EOF done done | { ok simple_test_event "notify" } || exit $? }