add missing ctl count to script

This commit is contained in:
Travis Glenn Hansen 2020-12-20 23:27:16 -07:00
parent 54fdcf33cf
commit 599767d2f9
1 changed files with 4 additions and 0 deletions

View File

@ -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}"