From 7bd96e3cb94dd1ea554fae103055c2f05cf23d60 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 21 Dec 2024 11:05:42 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 67b18f1e..7ad86e4d 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1253,7 +1253,11 @@ GETSKIP(){ c=0; spca=''; spc1=`expr ${cw} - ${#NODE}`; until [ $c = ${spc1} ]; do spca="${spca} "; c=`expr $c + 1`; done echo -en "Checking ${NODE}${spca}" >> ${tmpfile}.running - ${NCMD} [ -f ${NM_TMPFOLDER}/.skip ] && echo -e "${idsCL[Yellow]}SKIPPED${idsCL[Default]}" >> ${tmpfile}.running || echo "${idsCL[LightCyan]}NOT Skipped${idsCL[Default]}" >> ${tmpfile}.running + if [ $(CHECK_HOST ${nip}) != false ]; then + ${NCMD} [ -f ${NM_TMPFOLDER}/.skip ] && echo -e "${idsCL[Yellow]}SKIPPED${idsCL[Default]}" >> ${tmpfile}.running || echo "${idsCL[LightCyan]}NOT Skipped${idsCL[Default]}" >> ${tmpfile}.running + else + echo -e "${idsCL[Yellow]}OFFLINE${idsCL[Default]}" >> ${tmpfile}.running + fi [ -f ${tmpfile}.running ] && mv ${tmpfile}.running ${tmpfile}.done || touch ${tmpfile}.done }