[X4U] Re: SMART failure and Merry Holidays

Andy Fragen lists at thefragens.com
Fri Dec 24 17:56:43 PST 2004


*This message was transferred with a trial version of CommuniGate(tm) Pro*
<applescript>
set disklist to do shell script "/usr/sbin/diskutil list | grep /dev/"
set EachDisk to words in disklist
repeat with CurrentDisk in EachDisk
	if CurrentDisk as text is not equal to "dev" then
		try
			set status to do shell script "/usr/sbin/diskutil info " & CurrentDisk
& " | grep SMART"
			if not (status contains "Verified" or status contains "Not Supported") then
				display dialog "A hardware problem has been detected on your hard
drive:" & return & return & status
			end if
		on error errStr
			--Don't Worry about disks that don't have info about SMART Status
			--display dialog errStr
		end try
	end if
end repeat
</applescript>

-- 
Andy Fragen

On Fri, Dec 24, 2004, Crandon David said:

>Hello Everyone,
>
>Merry Holidays to all.
>
>Can anyone tell me if the SMART hard disk monitoring that's built into 
>Panther is supposed to notify me automatically if it detects a problem 
>with the drive? Is there a preference pane for it somewhere?
>
>Thanks,
>
>David Crandon
>
>
>




More information about the X4U mailing list