Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- LT=$(((`for I in \`df -lP|grep "^/dev"|cut -b 20-31\`;do echo +$I;done`)/1024));LU=$(((`for I in \`df -lP|grep "^/dev"|cut -b 32-42\`;do echo +$I;done`)/1024));echo `hostname` - OS: `uname -sr` - CPU: `cat /proc/cpuinfo|grep "name"|cut -b 14-|tail -n 1` - Processess: `ps -A|wc -l` - Uptime: `uptime|perl '-eprint<>=~/up ([^,]+)/' 2>/dev/null` - Load average: `cat /proc/loadavg|cut -b -4`, `uptime|perl '-eprint<>=~/(\d+ users)/' 2>/dev/null` - Memory usage: `free -m|grep +|cut -b 19-29`M of `free -m|grep M|cut -b 6-18`M - Local disk usage: $LU"M" of $LT"M" \($((100*$LU/$LT))%\)
Add Comment
Please, Sign In to add comment