File: D:/bin/smartctl_log/smartctl_log.cmd
:: SS, 23/12/2014 Smartctl log of primary and secondary drives
:: SS, 24/12/2014 removed separate -a and -H options, -x seems to have it all
d:
cd d:\bin\smartctl_log
set smartctl_prog="C:\Program Files\smartmontools\bin\smartctl.exe"
set emailto=purchases@itpartnership.com
%smartctl_prog% -x /dev/sda >log_sda.txt
%smartctl_prog% -x /dev/sdb >log_sdb.txt
itpSendEmail low %emailto% smartctl@itpartnership.com "SMART Log Primary Drive (Fasthosts Windows 2008 Server) (DSVR016373)" log_sda.txt
itpSendEmail low %emailto% smartctl@itpartnership.com "SMART Log Secondary Drive (Fasthosts Windows 2008 Server) (DSVR016373)" log_sdb.txt