Changeset 142
- Timestamp:
- Dec 28, 2017, 5:04:18 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tssh/tssh
r141 r142 143 143 if host ${justhost} | grep -q 'not found' 144 144 then 145 [ "${verbose}" == 'yes' ] && echo Warning: ${justhost} does not exists145 [ "${verbose}" == 'yes' ] && echo "Warning: ${justhost} does not exists" 146 146 continue 147 147 fi … … 150 150 if host ${justhost}.${dyn_domain} | grep -q 'not found' || ! nmap -p 22 -sT -PN ${justhost}.${dyn_domain} | grep -q '\bopen\b' 151 151 then 152 [ "${verbose}" == 'yes' ] && echo Warning: ${justhost} is down152 [ "${verbose}" == 'yes' ] && echo "Warning: ${justhost} is down" 153 153 continue 154 154 else 155 [ "${verbose}" == 'yes' ] && echo Warning: remove ssh key of ${justhost}.${dyn_domain}155 [ "${verbose}" == 'yes' ] && echo "Warning: remove ssh key of ${justhost}.${dyn_domain}" 156 156 host=${justhost}.${dyn_domain} 157 157 ssh-keygen -q -R $(LANG=C host ${justhost} | awk '{print $4}') … … 159 159 fi 160 160 fi 161 [ "${verbose}" == 'yes' ] && echo Warning: add ${host} on list with mode ${mode}161 [ "${verbose}" == 'yes' ] && echo "Warning: add ${host} on list with mode ${mode}" 162 162 echo "${host}" >> "/tmp/${base_path}/master${mode}" 163 163 else 164 164 # cluster, jump in a recursive mode 165 [ "${verbose}" == 'yes' ] && echo Warning: recursive call for cluster ${justhost} (${cluster}), with mode ${mode}165 [ "${verbose}" == 'yes' ] && echo "Warning: recursive call for cluster ${justhost} (${cluster}), with mode ${mode}" 166 166 cluster=$(get_host_list --mode=${mode} "${cluster}") 167 167 fi … … 191 191 if [ "${verbose}" == 'yes' ] 192 192 then 193 echo Info: next hosts to be splitted193 echo "Info: next hosts to be splitted" 194 194 cat "/tmp/${base_path}/${f}" | sed -e 's/^/ /;' 195 195 sleep 5
Note: See TracChangeset
for help on using the changeset viewer.