Created
January 28, 2016 18:17
-
-
Save sclarson/856a6cbde0b982fcd62c to your computer and use it in GitHub Desktop.
Snapshot some information on a linux server to establish a baseline in a really basic way
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
EXT=`date +%H%M%S` | |
DAY=`date +%d` | |
mkdir -p ~/psaux | |
DIR="~/psaux/$DAY" | |
mkdir -p $DIR | |
free -m > $DIR/free.$EXT | |
ps aux > $DIR/ps.$EXT | |
top -n 1 -b > $DIR/top.$EXT | |
iostat -xm -p sda 3 3 > $DIR/iostat.$EXT | |
vmstat 5 3 > $DIR/vmstat.$EXT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment