I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
This file contains 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 | |
### Parameters ### | |
logfile="/tmp/smart_report.tmp" | |
email="your_email@gmail.com" | |
subject="SMART Status Report for FreeNAS" | |
drives="da0 da1 da2 da3 da4 da5 da6 da7" | |
tempWarn=40 | |
tempCrit=45 | |
sectorsCrit=10 |