Update nodemgmt-scripts.sh

This commit is contained in:
2019-02-07 10:06:24 -06:00
parent 4190bbc70e
commit 36d17e4142

View File

@@ -19,7 +19,7 @@ source /opt/idssys/nodemgmt/defaults.inc
STATUS() {
echo -e "${idsCL[Yellow]} Node Service Status${idsCL[Default]}"
DIVIDER true
DIVIDER
if [ ! -z ${LOCAL_SERVICES+x} ]; then
lip=$(/sbin/ip -o -4 addr list ens192 | awk '{print $4}' | cut -d/ -f1)
echo -e "Node hostname: ${idsST[Bold]}${idsCL[LightCyan]}${NODE_HOSTNAME} (${lip})${idsST[Reset]}${idsCL[LightCyan]} - localhost${idsCL[Default]}"