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/sh | |
# This is your log filename | |
LOGFILE=/path/to/temp.log | |
# Create empty file | |
touch $LOGFILE | |
# Define adastat function, which writes drive activity to temp file | |
adastat () { |
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
last pid: 94691; load averages: 0.45, 0.45, 0.35 up 5+14:24:32 05:44:47 | |
49 processes: 1 running, 48 sleeping | |
CPU: 0.4% user, 0.0% nice, 0.8% system, 0.0% interrupt, 98.8% idle | |
Mem: 74M Active, 271M Inact, 1113M Laundry, 26G Wired, 3516M Free | |
ARC: 23G Total, 2242M MFU, 20G MRU, 1984K Anon, 251M Header, 641M Other | |
21G Compressed, 37G Uncompressed, 1.78:1 Ratio | |
Swap: 10G Total, 10G Free | |
PID USERNAME VCSW IVCSW READ WRITE FAULT TOTAL PERCENT COMMAND | |
3729 root 2911 39 0 0 0 0 0.00% collectd |