echo '=========================================================='
if [ -f "/etc/redhat-release" ]; then
  cat /etc/redhat-release
elif [ -f "/etc/debian_version" ]; then
  echo 'Debian '`cat /etc/debian_version`
fi
echo ''
uname -a
echo ''
echo 'hostname  : '`hostname`
ipaddr=$(wget -t 1 -T 3 --prefer-family=ipv4 -qO - http://ipv4.001000.best)
if [ -n "$ipaddr" ]; then
  echo 'IPv4 addr : '$ipaddr
fi
ip6addr=$(wget -t 1 -T 3 --prefer-family=ipv6 -qO - http://ipv6.001000.best)
if [ -n "$ip6addr" ]; then
  echo 'IPv6 addr : '$ip6addr
fi
nataddr=$(/sbin/ifconfig |awk '/inet / {print $2}'|cut -d':' -f2|grep -v 127.0.0.1|grep -v $ipaddr 2>/dev/null | tr '\n' ' ')

if [ -n "$nataddr" ]; then
  echo 'Nat  addr : '$nataddr
fi

echo '=========================================================='
df -lh
echo '=========================================================='
free -m
echo ''
echo 'Status:'`uptime`
sysctl net.ipv4.tcp_available_congestion_control|grep bbr
lsmod | grep bbr
echo ''
