Sorry for asking this again but I'm a bit confused with the return value
of the smart command line.=20
I'm getting the following return values when I use the command line with
the like this system "/usr/sbin/smartctl -q silent -a -d 3ware,$j
I get the following return codes:
0 -> everything is ok with the $j connected to the 3ware controller card
2 -> Device open failed, or device did not return an IDENTIFY DEVICE
4 -> Some SMART command to the disk failed, or there was a checksum
error in a SMART
64 -> The device error log contains records of errors.
Is my understanding of the return code correct???
How can I determine what was the command to the disk that failed??? My
3ware controller driver for Redhat is the version 1.02.00.036.
Thank you very much
[mailto:smartmontools-support-admin@...] On Behalf Of
Sent: Monday, January 26, 2004 4:52 PM
To: Bruce Allen
Subject: RE: [smartmontools-support]smartctl return value
Can I then ask you shouldn't the bit 4 or 5 of the return value be set
in the case of everything is OK??? Meaning that the return value should
be 16 (bit 4 on 2^4) or 32 (bit 5 on=20
Bit 4: SMART status check returned "DISK OK" but we found
Attributes <=3D threshold.
Bit 5: SMART status check returned "DISK OK" but we found that some
or prefail) Attributes have been <=3D threshold at some
time in the
I don't use the daemon since we a uniform monitoring tool that call
sensors ( in this case a script that calls smart command line) for
monitoring certain quntitites in the machines
Thank you very much=20
From: Bruce Allen [mailto:ballen@...
Sent: Monday, January 26, 2004 4:09 PM
To: Hugo Cacote
Subject: Re: [smartmontools-support]smartctl return value
> I'm trying to return information from disks behind a 3ware card. For
> this I have a script that issues the following command:
> system "/usr/sbin/smartctl -q silent -a -d 3ware,0 /dev/sda";
> Afterwards I check the exit status to see if the disk is failing or is
> OK. But I'm always receiving as exit code 0 (=3D 00000000), what does
> this mean ?
> The driver of the 3ware card is 1.02.00.031 running in a Red-Hat 7.1
Exit code 0 means everything is OK.
[You might consider using smartd to monitor the disk, instead of doing
it your self with your own script.]
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration See the
breadth of Eclipse activity. February 3-5 in Anaheim, CA.
Smartmontools-support mailing list