Update nodemgmt-scripts.sh
This commit is contained in:
@@ -378,9 +378,13 @@ STATUS(){
|
|||||||
echo -e " ${idsST[Bold]}${idsCL[LightCyan]}${NM_NODETYPES[$NTYPE]}-Node${nid} (${nip})${idsST[Reset]}${idsCL[LightCyan]} ${idsCL[LightYello]}${LH}${idsCL[Default]}"
|
echo -e " ${idsST[Bold]}${idsCL[LightCyan]}${NM_NODETYPES[$NTYPE]}-Node${nid} (${nip})${idsST[Reset]}${idsCL[LightCyan]} ${idsCL[LightYello]}${LH}${idsCL[Default]}"
|
||||||
DIVIDER false green
|
DIVIDER false green
|
||||||
fi
|
fi
|
||||||
|
declare -A partitions
|
||||||
freespace=`${NCMD} df -hBM | grep -vE '^Filesystem|tmpfs|cdrom' | awk '{ print $5 " " $1 }' | while read output; do echo $output | awk '{ print $2 }'; done`
|
partitions=`${NCMD} df -hBM | grep -vE '^Filesystem|tmpfs|cdrom' | awk '{ print $5 " " $1 }' | while read output; do echo $output | awk '{ print $2 }'; done`
|
||||||
echo ${freespace[*]}
|
for partition in "${partitions[@]}"; do
|
||||||
|
freespace=`${NCMD} df -hPBM ${partition} | awk '{print $5}' |tail -1|sed 's/%$//g'`
|
||||||
|
echo -en " ${partition}$spc: "
|
||||||
|
echo -e "${idsCL[Green]}${freespace}${idsCL[Default]}"
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
# ${NCMD} df -hBM | grep -vE '^Filesystem|tmpfs|cdrom' | awk '{ print $5 " " $1 }' | while read output; do
|
# ${NCMD} df -hBM | grep -vE '^Filesystem|tmpfs|cdrom' | awk '{ print $5 " " $1 }' | while read output; do
|
||||||
|
|||||||
Reference in New Issue
Block a user