Update nodemgmt-scripts.sh
This commit is contained in:
@@ -20,7 +20,7 @@ source /opt/idssys/nodemgmt/defaults.inc
|
|||||||
STATUS() {
|
STATUS() {
|
||||||
if [ ! -z ${LOCAL_SERVICES+x} ]; then
|
if [ ! -z ${LOCAL_SERVICES+x} ]; then
|
||||||
lip=$(/sbin/ip -o -4 addr list ens192 | awk '{print $4}' | cut -d/ -f1)
|
lip=$(/sbin/ip -o -4 addr list ens192 | awk '{print $4}' | cut -d/ -f1)
|
||||||
DIVIDER
|
DIVIDER true
|
||||||
echo -e "Node hostname: ${idsST[Bold]}${idsCL[LightCyan]}${NODE_HOSTNAME} (${lip})${idsST[Reset]}${idsCL[LightCyan]} - localhost${idsCL[Default]}"
|
echo -e "Node hostname: ${idsST[Bold]}${idsCL[LightCyan]}${NODE_HOSTNAME} (${lip})${idsST[Reset]}${idsCL[LightCyan]} - localhost${idsCL[Default]}"
|
||||||
for srvc in "${LOCAL_SERVICES[@]}"
|
for srvc in "${LOCAL_SERVICES[@]}"
|
||||||
do
|
do
|
||||||
@@ -40,7 +40,7 @@ STATUS() {
|
|||||||
else NCMD="ssh root@${nip}"; LH=''
|
else NCMD="ssh root@${nip}"; LH=''
|
||||||
fi
|
fi
|
||||||
|
|
||||||
DIVIDER
|
DIVIDER true
|
||||||
echo -e "Node hostname: ${idsST[Bold]}${idsCL[LightCyan]}iDS-Node${nid} (${nip})${idsST[Reset]}${idsCL[LightCyan]} ${LH}${idsCL[Default]}"
|
echo -e "Node hostname: ${idsST[Bold]}${idsCL[LightCyan]}iDS-Node${nid} (${nip})${idsST[Reset]}${idsCL[LightCyan]} ${LH}${idsCL[Default]}"
|
||||||
for srvc in "${NODE_SERVICES[@]}"
|
for srvc in "${NODE_SERVICES[@]}"
|
||||||
do
|
do
|
||||||
|
|||||||
Reference in New Issue
Block a user