Update nodemgmt-scripts.sh
This commit is contained in:
@@ -380,9 +380,9 @@ STATUS(){
|
|||||||
fi
|
fi
|
||||||
declare -A partitions
|
declare -A partitions
|
||||||
partitions=`${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;`
|
||||||
partitions=`echo ${partitions[*]}`
|
partitions2=`echo ${partitions[*]}`
|
||||||
partitions=(${partitions})
|
partitions3=(${partitions2})
|
||||||
for partition in "${partitions[@]}"; do
|
for partition in "${partitions3[@]}"; do
|
||||||
if [ "${partition}" != "udev" ]; then
|
if [ "${partition}" != "udev" ]; then
|
||||||
freespace=`${NCMD} df -hPBM ${partition} | awk '{print $5}' |tail -1|sed 's/%$//g'`
|
freespace=`${NCMD} df -hPBM ${partition} | awk '{print $5}' |tail -1|sed 's/%$//g'`
|
||||||
echo -en " ${partition}$spc: "
|
echo -en " ${partition}$spc: "
|
||||||
|
|||||||
Reference in New Issue
Block a user