1
0
mirror of https://github.com/Spearfoot/FreeNAS-scripts synced 2025-12-06 01:23:19 +00:00

Update README.md

Added SAS support to the SMART report script.
This commit is contained in:
Keith Nash
2020-07-03 14:30:01 -05:00
committed by GitHub
parent 6b7d19c938
commit f575d9c7de

View File

@@ -9,9 +9,7 @@ All of the Perl code is my own contribution.
***
# smart_report.sh
Generates and emails you a status report with detailed SMART information about your system's drives.
By default, my version of this script uses a function I wrote which uses smartctl's scan list to obtain the SMART-enabled drives on the system, but you have the option of using either a hard-coded list or a sysctl-based method instead, if you so choose. This version allows for serial numbers up to 18 characters in length, where the original only supported 15. It also selects the "Device Model" as the drive 'brand' if the "Model Family" SMART attribute is unavailable.
Generates and emails you a status report with detailed SMART information about your system's SATA and SAS drives. A hearty thanks to contributor marrobHD for help in adding SAS support.
You will need to edit the script and enter your email address before using it.
@@ -26,10 +24,6 @@ Example: for a 3ware controller, edit the script to invoke SMARTCTL like this:
```
"${smartctl}" [options] -d /dev/"${drive}"
```
You will also need to comment out or remove the 3 methods for determining your system drives, including the call to get_smart_drives, and replace with a simple list of the drives on your system:
```
drives="0 1 2 3"
```
Refer to the SMARTCTL man page for addtional details, including support for other controller types.
***
# zpool_report.sh