daily pastebin goal
66%
SHARE
TWEET

disk-report.sh

josephxsxn Jun 30th, 2017 (edited) 72 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. #!/bin/bash
  2. #Report Disk Space per Mount
  3. timstim=$(date -u)
  4. echo $timstim
  5. df -H | egrep -v '^Filesystem|cdrom' | awk '{ print "{\"TIMSTIM\" : \"'"$timstim"'\", \"DISK\" : [{\"VOLUME\" : \"" $1 "\", \"STORAGE_PERCENT_USED\" :\"" $5 "\"}]}" }'
  6. df -i | egrep -v '^Filesystem|cdrom' | awk '{ print "{\"TIMSTIM\" : \"'"$timstim"'\", \"DISK\" : [{\"VOLUME\" : \"" $1 "\", \"INODES_PERCENT_USED\" :\"" $5 "\"}]}" }'
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top