#!/bin/sh echo echo -n `uname -n` echo -n " Server Status - " date echo echo ___________uptime____________ echo uptime echo echo ____________free_____________ echo free -m echo echo ____________who_____________ echo who -u -H echo echo _____________w_____________ echo w -f -l echo echo _____________df______________ echo df -m --sync echo echo ____________last_____________ echo last | grep ":" | head -20 echo echo __________ps fax___________ echo uptime ps faxuw echo echo __________ps mem___________ echo uptime echo "USER PID %CPU %MEM SIZE RSS TTY STAT START TIME COMMAND" ps wauxh | sort -k 2 -r -n -b | sort -k 3 -r -n -b | head -10 echo echo __________ps cpu____________ echo uptime echo "USER PID %CPU %MEM SIZE RSS TTY STAT START TIME COMMAND" ps wauxh | sort -k 3 -r -n -b | sort -k 2 -r -n -b echo echo _________dmesg__________ echo /bin/dmesg | tail -20 echo echo _________ifconfig_________ echo ifconfig eth0 echo echo ____________msg_____________ echo tail -200 /var/log/messages echo echo -------- end of rapport ---------- echo