exit status for -H

Phil Richcreek <[email protected]> Mon, 15 Feb 2016 08:42:22 -0500
Newsgroups gmane.linux.utilities.smartmontools
Message-ID <[email protected]>
I need to run a smartctl -H on the destination drive of a backup job. 
The -H and the backup job will run together in an automated (scheduled) 
script. The script will check the smartctl exit status to determine 
whether to proceed with the backup job, or to skip it because the 
destination drive is unhealthy. I've only been able to reproduce two cases:

CASE-1:
SMART overall-health self-assessment test result: PASSED
exit status: 0

CASE-2:
SMART overall-health self-assessment test result: PASSED
exit status: 32
Please note the following marginal Attributes:
190 Airflow_Temperature_Cel     blah-blah-blah   Old_age Always          
In_the_past etc.

Will ALL "marginally healthy" cases, as defined by smartctl -H, return 
exit status 32 and PASSED text? Or, are there other exit status values 
that might be returned in other "marginally healthy" cases?

Thanks.

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140