From 0c9f755e5ad024b55ef802c9324c3c1c3ea712df Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 7 Feb 2019 16:19:46 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index acb534f9..f6fffe0a 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -53,7 +53,7 @@ STATUS() { if [ ! -z ${LOCAL_SERVICES+x} ]; then lip=$(/sbin/ip -o -4 addr list ens192 | awk '{print $4}' | cut -d/ -f1) uptime=`uptime -p` - echo -e " ${idsST[Bold]}${idsCL[LightCyan]}${NODE_HOSTNAME} (${lip}) - ${uptime}${idsST[Reset]}${idsCL[LightCyan]} - localhost${idsCL[Default]}" + echo -e " ${idsST[Bold]}${idsCL[LightCyan]}${NODE_HOSTNAME} (${lip})${idsST[Reset]}${idsCL[LightCyan]} - ${uptime} - localhost${idsCL[Default]}" DIVIDER false green for srvc in "${LOCAL_SERVICES[@]}" do @@ -77,7 +77,7 @@ STATUS() { else NCMD="ssh root@${nip}"; LH='' fi uptime=`${NCMD} uptime -p` - echo -e " ${idsST[Bold]}${idsCL[LightCyan]}iDS-Node${nid} (${nip}) - ${uptime}${idsST[Reset]}${idsCL[LightCyan]} ${LH}${idsCL[Default]}" + echo -e " ${idsST[Bold]}${idsCL[LightCyan]}iDS-Node${nid} (${nip})${idsST[Reset]}${idsCL[LightCyan]} - ${uptime} ${LH}${idsCL[Default]}" DIVIDER false green checkhost=$(CHECK_HOST ${nip}) if [ "${checkhost}" != "false" ]; then