Guest User

Untitled

a guest
Nov 23rd, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. #!/bin/bash
  2. 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 &#039;-eprint<>=~/up ([^,]+)/&#039; 2>/dev/null` - Load average: `cat /proc/loadavg|cut -b -4`, `uptime|perl &#039;-eprint<>=~/(\d+ users)/&#039; 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