diff --git a/dsmon.sh b/dsmon.sh index eb4e5a7..7c2b91a 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -343,6 +343,8 @@ RUNCMD(){ declare -A host_ip declare -A host_name + rm -f /tmp/.dsmon.runcmd.* + while read hostid hostname hostip hostlimits; do if [ "${hostname}" != "host" ]; then host_ip[${hostid}]=$(echo ${hostip} | cut -d ";" -f1)