Created
May 24, 2013 05:00
-
-
Save albertyw/5641355 to your computer and use it in GitHub Desktop.
Computer Statistics
This file contains hidden or 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 | |
| echo "\033[44m TEMPERATURES \033[0m" | |
| sensors | grep temp1 | |
| sensors | grep temp2 | |
| sensors | grep temp3 | |
| sensors | grep fan1 | |
| echo "\033[44m DISK HEALTH \033[0m" | |
| echo "SDA MAIN" | |
| smartctloutput=`sudo smartctl /dev/disk/by-uuid/e9f928ea-9902-4711-b63e-05a08acbebfe -a` | |
| hddtemp /dev/disk/by-uuid/e9f928ea-9902-4711-b63e-05a08acbebfe | awk '{print $4}' | |
| echo "${smartctloutput}" | grep "No Errors Logged" | |
| echo "${smartctloutput}" | grep "ATA Error Count" | |
| echo "" | |
| echo "SDB Backup" | |
| smartctloutput=`sudo smartctl /dev/disk/by-id/ata-Hitachi_HTS545050B9SA02_100421PBL400Q7KSYHVV -a -d ata` | |
| hddtemp /dev/disk/by-id/ata-Hitachi_HTS545050B9SA02_100421PBL400Q7KSYHVV | awk '{print $4}' | |
| echo "${smartctloutput}" | grep "No Errors Logged" | |
| echo "${smartctloutput}" | grep "ATA Error Count" | |
| echo "" | |
| echo "SDC Backup" | |
| smartctloutput=`sudo smartctl /dev/disk/by-id/ata-WDC_WD1200BEVS-75LAT0_WD-WXEX06730861 -a -d ata` | |
| hddtemp /dev/disk/by-id/ata-WDC_WD1200BEVS-75LAT0_WD-WXEX06730861 | awk '{print $4}' | |
| echo "${smartctloutput}" | grep "No Errors Logged" | |
| echo "${smartctloutput}" | grep "ATA Error Count" | |
| echo "" | |
| echo "SDD Drive2" | |
| smartctloutput=`sudo smartctl /dev/disk/by-id/ata-WDC_WD10EALS-002BA0_WD-WCATR4483065 -a -d ata` | |
| hddtemp /dev/disk/by-id/ata-WDC_WD10EALS-002BA0_WD-WCATR4483065 | awk '{print $4}' | |
| echo "${smartctloutput}" | grep "No Errors Logged" | |
| echo "${smartctloutput}" | grep "ATA Error Count" | |
| echo "" | |
| echo "" | |
| echo "\033[44m DISK USAGE \033[0m" | |
| discus | grep "/ " | |
| discus | grep Drive2 | |
| discus | grep lv0 | |
| echo "" | |
| echo "\033[44m NETWORK \033[0m" | |
| ifconfig eth0 | grep "RX bytes" | |
| echo "" | |
| echo "\033[44m UPTIME/USERS \033[0m" | |
| w | |
| echo "" | |
| echo "\033[44m MEMORY \033[0m" | |
| free -m | |
| echo "" | |
| echo "\033[44m IOSTAT \033[0m" | |
| iostat -m |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment