diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 5e9ed21b..3fe3a978 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -563,7 +563,7 @@ STATUS(){ [ "${ST_ACTION}" != "check" ] && echo -en " ${idsCL[LightCyan]}Getting drives from server ... ${idsCL[Default]}" declare -A partitions - DRIVEINFO=$(ssh root@${host_ip[$hostid]} df -BM | grep -vE '^Filesystem|tmpfs|cdrom|@|ram|loop|udev|veeamimage|nvme|localhost|shm|mmcblk|overlay|-volume|Music|Software' | awk '{ print $1 " " $2 " " $4 }') + DRIVEINFO=$(ssh root@${nip} df -BM | grep -vE '^Filesystem|tmpfs|cdrom|@|ram|loop|udev|veeamimage|nvme|localhost|shm|mmcblk|overlay|-volume|Music|Software' | awk '{ print $1 " " $2 " " $4 }') echo $DRIVEINFO DRIVEINFO=(${DRIVEINFO}) echo $DRIVEINFO