diff --git a/contrib/ctld-config-watchdog-db.sh b/contrib/ctld-config-watchdog-db.sh index 9d55bff..7839909 100644 --- a/contrib/ctld-config-watchdog-db.sh +++ b/contrib/ctld-config-watchdog-db.sh @@ -9,6 +9,10 @@ LIMIT=1000 while [ 1 ]; do sleep "${WAIT_TIME_SECS}" + # ctl targets + CTL_TARGET_COUNT=$(ctladm portlist | grep iqn | wc -l | sed 's/^[ \t]*//;s/[ \t]*$//') + echo "ctl target count: ${CTL_TARGET_COUNT}" + # ctl extents CTL_EXTENT_COUNT=$(ctladm devlist | tail -n +2 | wc -l | sed 's/^[ \t]*//;s/[ \t]*$//') echo "ctl extent count: ${CTL_EXTENT_COUNT}"