gamedude9742
Dabbler
- Joined
- Oct 1, 2014
- Messages
- 26
Hello Everyone,
This might be mentioned elseware but a forum / google search didn't jump anything out at me.
When using SMART test scheduling and manually calling via smartctl in the CLI.
You can run and it will output the results of the last test. However I don't see a mention of the DATE/TIME the test was run.
I know you can setup the GUI portion to automatically run every x Hours, Days, etc.. however it would be great if there was a way to see the last test time as a form of validation that it is actually executing.
Any input? I do know a good amount about windows scripting and have used custom log / flag files in the past. I know I could figure out a bash method to accomplish this but wanted to know if anyone knew something I didn't as I assume its already listed somewhere.
If I do have to write a script to get this info it would follow logic similar to below:
I could always add variables and such to show total test time, and options to have it email the results log, etc...
Like I said, i have no issue writing a bash script to do this, but if it already exists somewhere why re-invent the wheel.
Thanks!
PS: If I do need to write a script, I will upload it here once its completed so everyone can benefit if they so choose :)
This might be mentioned elseware but a forum / google search didn't jump anything out at me.
When using SMART test scheduling and manually calling via smartctl in the CLI.
You can run
Code:
smartctl -l selftest *drive*
I know you can setup the GUI portion to automatically run every x Hours, Days, etc.. however it would be great if there was a way to see the last test time as a form of validation that it is actually executing.
Any input? I do know a good amount about windows scripting and have used custom log / flag files in the past. I know I could figure out a bash method to accomplish this but wanted to know if anyone knew something I didn't as I assume its already listed somewhere.
If I do have to write a script to get this info it would follow logic similar to below:
Code:
echo %DATE% %TIME% "Starting SMART" %TestType% %Device% ** Execute Smart Test ** echo %DATE% %TIME% "Completed SMART" %TestType% %Device%
I could always add variables and such to show total test time, and options to have it email the results log, etc...
Like I said, i have no issue writing a bash script to do this, but if it already exists somewhere why re-invent the wheel.
Thanks!
PS: If I do need to write a script, I will upload it here once its completed so everyone can benefit if they so choose :)