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 ...@@ -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 -e "Swap Memory: "`free -mht| awk '/Swap/{print $2 " |Used: "$3 " |Free: "$4}'`
echo "" echo ""
#echo -e "Disk Usage: "`df -h --total | grep "/dev/" | grep -v "loop" | grep -v "tmpfs" | sort` MTYPE=$(echo `vserver=$(lscpu | grep Hypervisor | wc -l); echo $vserver`)
echo -e "== Disk Usage == " if [ $MTYPE -eq 0 ]; then
df -h --total | grep -v "loop" | grep -v "tmpfs" | grep -v "udev" | while read -r line ; do #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 if grep -q "Sistem" <<< "$line" || grep -q "Filesystem" <<< "$line" || grep -q "total" <<< "$line"; then
str="[_] $line" str="[_] $line"
echo "${str/total/Total}" echo "${str/total/Total}"
else else
echo "[+] $line" echo "[+] $line"
fi fi
done done
echo "" echo ""
fi
echo -e "== Base Application ==" 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!