1
0
mirror of https://github.com/Spearfoot/FreeNAS-scripts synced 2025-12-06 01:23:19 +00:00
2017-03-15 22:40:22 -05:00
2017-03-15 16:29:22 -05:00
2017-03-15 22:40:22 -05:00
2017-03-15 16:30:56 -05:00
2017-03-15 16:31:45 -05:00

FreeNAS Scripts

Bash scripts for use on FreeNAS servers

These are my versions of useful scripts available at the "Scripts to report SMART, ZPool and UPS status, HDD/CPU T°, HDD identification and backup the config" thread on the FreeNAS forum. The original author is FreeNAS forum member BiduleOhm, with others contributing suggestions and code changes.

I have modified the syntax, using the excellent Bash lint system at https://www.shellcheck.net as a guide, and have made minor changes in formatting and spacing of the generated reports.

smart_report.sh

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.

You will need to edit the script and enter your email address before using it.

zpool_report.sh

You will need to edit the script and enter your email address before using it.

Description
No description provided
Readme 245 KiB
Languages
Shell 82.4%
Perl 17.6%