Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #Report Disk Space per Mount
- timstim=$(date -u)
- echo $timstim
- df -H | egrep -v '^Filesystem|cdrom' | awk '{ print "{\"TIMSTIM\" : \"'"$timstim"'\", \"DISK\" : [{\"VOLUME\" : \"" $1 "\", \"STORAGE_PERCENT_USED\" :\"" $5 "\"}]}" }'
- df -i | egrep -v '^Filesystem|cdrom' | awk '{ print "{\"TIMSTIM\" : \"'"$timstim"'\", \"DISK\" : [{\"VOLUME\" : \"" $1 "\", \"INODES_PERCENT_USED\" :\"" $5 "\"}]}" }'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement