Skip to content

Instantly share code, notes, and snippets.

@sendya
Created June 5, 2017 01:21
Show Gist options
  • Save sendya/619140b12963f21b356c1b308399211b to your computer and use it in GitHub Desktop.
Save sendya/619140b12963f21b356c1b308399211b to your computer and use it in GitHub Desktop.
#!/bin/bash
clear
echo Welcome to server `hostname -s`!
echo
echo "System:" `cat /etc/arch-release`
echo "Kernel:" `uname -r`
echo "Uptime:" `uptime -p`
echo " Load:" `cat /proc/loadavg | awk '{print $1"\t"$2"\t"$3;}'`
echo
echo "Disk usage: root:" `df -Ph | grep /dev/xvda1 | awk '{print $3" / "$2"\t("$5")"}'`
echo "Memory: total:" `free -m | grep -i mem | awk '{print $2, "MB,", "usage:", $3, "MB"}'`
echo "Network: RX:" `/sbin/ifconfig eth1 | grep "RX packets" | awk '{print $6,$7}'`
echo " TX:" `/sbin/ifconfig eth1 | grep "TX packets" | awk '{print $6,$7}'`
#echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment