#!/bin/bash

#// echo "============CPU Cores execution speed "
#// cat /proc/cpuinfo | grep 'MHz' 
echo "========Uptime and system date"
a=`uname -r`
b=`uptime`
c=`date`
echo -e  "$c \r\n $b #!# $a"
echo "============System messages"
dmesg | tail -n 5
echo "============Load on by packets"
netstat -nat | grep -v LISTEN | tr -s ' ' | sort -r -n -k2 | cut -d' ' -f1-6 | tr ' ' '\t' | pr -e8 | head -n 12 | tail -n 7
echo "============Disk usage"
df -h | grep /dev/ 
echo "============Top PS to load the sys"
ps axo comm,user,pcpu --sort=-pcpu | head -n 6
echo "============Who is onboard"
who
echo "============Mem Stat================"
# total memory
memt=$(free -tom | grep "Total:" | awk '{print $2}')
# used memory
memu=$(free -tom | grep "Total:" | awk '{print $3}')
# free memory
memf=$(free -tom | grep "Total:" | awk '{print $4}')
echo -e "Total memory:\t$memt\tMB"
echo -e "Used  memory:\t$memu\tMB"
echo -e "Free  memory:\t$memf\tMB"
