Custom Query (1566 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (199 - 201 of 1566)

Ticket Resolution Summary Owner Reporter
#191 fixed improve the example to examine smartctl's return code Christian Franke robkehl
Description

Hello!

Thank you for this brilliant piece of software.

I just want to suggest a minor improvement to the man page of smartctl.

At section "RETURN VALUES" near the end of the man page for smartctl[8], you state an example to examine the error code returned by smartctl:

To test within the shell for whether or not the  different  bits
are  turned  on  or  off, you can use the following type of con‐
struction (this is bash syntax):
smartstat=$(($? & 8))
This looks at only at bit  3  of  the  exit  status  $?   (since
8=2^3).   The shell variable $smartstat will be nonzero if SMART
status check returned "disk failing" and zero otherwise.

Why not show the user a way to examine all error codes by including something like this:

E=$?; for ((i=0; i<8;i++)); do echo "Bit $i: $(($E & 2**$i && 1))"; done

This would produce output like the following:

Bit 0: 0
Bit 1: 0
Bit 2: 0
Bit 3: 0
Bit 4: 0
Bit 5: 0
Bit 6: 1
Bit 7: 0

With kind regards,

Robert Kehl

#229 duplicate improve smartd reporting somebody thinrope
Description

Current smartd reports send by mail only list device name (e.g. /dev/sdc) which is not enough to easily identify the problematic disk.

It will be better to add some more info to the report, e.g. something like:

The following warning/error was logged by the smartd daemon:

Device: /dev/sdc [SAT], 4 Offline uncorrectable sectors

-----------

Device Model: WDC WD20EARS-00MVWB0 Serial Number: WD-WMAZ2026xxxxx User Capacity: 2,000,398,934,016 bytes [2.00 TB]

(above is easily obtained by smartctl -i /dev/sdc |egrep "Device Model|Serial Number|User Capacity")

#1578 fixed improve Supported_RAID-Controllers (-d cciss) calestyo
Description

Hey.

On https://www.smartmontools.org/wiki/Supported_RAID-Controllers it says:

-d cciss,N /dev/cciss/cXd0

and

-d cciss,N /dev/cissX

for CCISS (HP/Compaq Smart Array Controller).

However, it seems that /dev/cciss/ is no longer present with current drivers.

But... it seems that one can simply use *any* device that is exported from that controller, e.g. /dev/sda (if that is).

Perhaps just add a note to the wiki (and other documentation) that this works just as well, which may not be immediately obvious.

Thanks, Chris.

Batch Modify
Note: See TracBatchModify for help on using batch modify.
Note: See TracQuery for help on using queries.