From 01862edfe7d8eb8225099c14d1c4f44b6268dbcd Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 6 Jul 2025 13:54:20 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index db33d980..6c9fbd1b 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -961,7 +961,15 @@ DOWNLIST(){ [ ${is} -lt 10 ] && ignsel=" ${is}) " || ignsel="${is}) " # ([ -f ${NM_TMPFOLDER}/${ditem}.disable ] || ([[ "${host}" = *"10.2."* ]] && [ -f ${PW_TMPFOLDER}/OFF-vMS-Host1.down ])) && dstatus="OFF" || dstatus="${idsCL[Green]}ON" - [ -f ${NM_TMPFOLDER}/${ditem}.disable ] && dstatus="OFF" || dstatus="${idsCL[Green]}ON" + + if [[ "${NM_IGNOREHOSTS_IFDOWN}" = *"${host}"* ]]; then + dstatus="IGNORED" + elif [ -f ${NM_TMPFOLDER}/${ditem}.disable ] + dstatus="OFF" + else + dstatus="${idsCL[Green]}ON" + fi + c=0; spc3=''; until [ $c = `expr 26 - ${#time}` ]; do spc3="${spc3} "; ((c++)); done echo -e "\033[K${idsCL[LightRed]}${idsST[Bold]}${ignsel}${idsST[Reset]}${idsCL[LightRed]}${itemtype}${spca}${itemname}${spc}${host}${spc2}${time}${spc3}${dstatus}${idsCL[Default]}" fi