Commit 40667698 by irul

Update server_info.sh

1 parent a7e1ed9d
......@@ -34,17 +34,20 @@ echo -e "Memory(RAM): "`free -mht| awk '/Mem/{print $2 " |Used: "$3 " |Free: "$4
echo -e "Swap Memory: "`free -mht| awk '/Swap/{print $2 " |Used: "$3 " |Free: "$4}'`
echo ""
#echo -e "Disk Usage: "`df -h --total | grep "/dev/" | grep -v "loop" | grep -v "tmpfs" | sort`
echo -e "== Disk Usage == "
df -h --total | grep -v "loop" | grep -v "tmpfs" | grep -v "udev" | while read -r line ; do
MTYPE=$(echo `vserver=$(lscpu | grep Hypervisor | wc -l); echo $vserver`)
if [ $MTYPE -eq 0 ]; then
#echo -e "Disk Usage: "`df -h --total | grep "/dev/" | grep -v "loop" | grep -v "tmpfs" | sort`
echo -e "== Disk Usage == "
df -h --total | grep -v "loop" | grep -v "tmpfs" | grep -v "udev" | while read -r line ; do
if grep -q "Sistem" <<< "$line" || grep -q "Filesystem" <<< "$line" || grep -q "total" <<< "$line"; then
str="[_] $line"
echo "${str/total/Total}"
else
echo "[+] $line"
fi
done
echo ""
done
echo ""
fi
echo -e "== Base Application =="
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!