136 lines
5.2 KiB
Plaintext
136 lines
5.2 KiB
Plaintext
smartctl 6.3 2014-07-26 r3976 [x86_64-apple-darwin13.3.0] (local build)
|
|
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org
|
|
|
|
Usage: smartctl [options] device
|
|
|
|
============================================ SHOW INFORMATION OPTIONS =====
|
|
|
|
-h, --help, --usage
|
|
Display this help and exit
|
|
|
|
-V, --version, --copyright, --license
|
|
Print license, copyright, and version information and exit
|
|
|
|
-i, --info
|
|
Show identity information for device
|
|
|
|
--identify[=[w][nvb]]
|
|
Show words and bits from IDENTIFY DEVICE data (ATA)
|
|
|
|
-g NAME, --get=NAME
|
|
Get device setting: all, aam, apm, lookahead, security, wcache, rcache, wcreorder
|
|
|
|
-a, --all
|
|
Show all SMART information for device
|
|
|
|
-x, --xall
|
|
Show all information for device
|
|
|
|
--scan
|
|
Scan for devices
|
|
|
|
--scan-open
|
|
Scan for devices and try to open each device
|
|
|
|
================================== SMARTCTL RUN-TIME BEHAVIOR OPTIONS =====
|
|
|
|
-q TYPE, --quietmode=TYPE (ATA)
|
|
Set smartctl quiet mode to one of: errorsonly, silent, noserial
|
|
|
|
-d TYPE, --device=TYPE
|
|
Specify device type to one of: ata, scsi, sat[,auto][,N][+TYPE], usbcypress[,X], usbjmicron[,p][,x][,N], usbsunplus, auto, test
|
|
|
|
-T TYPE, --tolerance=TYPE (ATA)
|
|
Tolerance: normal, conservative, permissive, verypermissive
|
|
|
|
-b TYPE, --badsum=TYPE (ATA)
|
|
Set action on bad checksum to one of: warn, exit, ignore
|
|
|
|
-r TYPE, --report=TYPE
|
|
Report transactions (see man page)
|
|
|
|
-n MODE, --nocheck=MODE (ATA)
|
|
No check if: never, sleep, standby, idle (see man page)
|
|
|
|
============================== DEVICE FEATURE ENABLE/DISABLE COMMANDS =====
|
|
|
|
-s VALUE, --smart=VALUE
|
|
Enable/disable SMART on device (on/off)
|
|
|
|
-o VALUE, --offlineauto=VALUE (ATA)
|
|
Enable/disable automatic offline testing on device (on/off)
|
|
|
|
-S VALUE, --saveauto=VALUE (ATA)
|
|
Enable/disable Attribute autosave on device (on/off)
|
|
|
|
-s NAME[,VALUE], --set=NAME[,VALUE]
|
|
Enable/disable/change device setting: aam,[N|off], apm,[N|off],
|
|
lookahead,[on|off], security-freeze, standby,[N|off|now],
|
|
wcache,[on|off], rcache,[on|off], wcreorder,[on|off]
|
|
|
|
======================================= READ AND DISPLAY DATA OPTIONS =====
|
|
|
|
-H, --health
|
|
Show device SMART health status
|
|
|
|
-c, --capabilities (ATA)
|
|
Show device SMART capabilities
|
|
|
|
-A, --attributes
|
|
Show device SMART vendor-specific Attributes and values
|
|
|
|
-f FORMAT, --format=FORMAT (ATA)
|
|
Set output format for attributes: old, brief, hex[,id|val]
|
|
|
|
-l TYPE, --log=TYPE
|
|
Show device log. TYPE: error, selftest, selective, directory[,g|s],
|
|
xerror[,N][,error], xselftest[,N][,selftest],
|
|
background, sasphy[,reset], sataphy[,reset],
|
|
scttemp[sts,hist], scttempint,N[,p],
|
|
scterc[,N,M], devstat[,N], ssd,
|
|
gplog,N[,RANGE], smartlog,N[,RANGE]
|
|
|
|
-v N,OPTION , --vendorattribute=N,OPTION (ATA)
|
|
Set display OPTION for vendor Attribute N (see man page)
|
|
|
|
-F TYPE, --firmwarebug=TYPE (ATA)
|
|
Use firmware bug workaround:
|
|
none, nologdir, samsung, samsung2, samsung3, xerrorlba, swapid
|
|
|
|
-P TYPE, --presets=TYPE (ATA)
|
|
Drive-specific presets: use, ignore, show, showall
|
|
|
|
-B [+]FILE, --drivedb=[+]FILE (ATA)
|
|
Read and replace [add] drive database from FILE
|
|
[default is +/usr/local/etc/smart_drivedb.h
|
|
and then /usr/local/Cellar/smartmontools/6.3/share/smartmontools/drivedb.h]
|
|
|
|
============================================ DEVICE SELF-TEST OPTIONS =====
|
|
|
|
-t TEST, --test=TEST
|
|
Run test. TEST: offline, short, long, conveyance, force, vendor,N,
|
|
select,M-N, pending,N, afterselect,[on|off]
|
|
|
|
-C, --captive
|
|
Do test in captive mode (along with -t)
|
|
|
|
-X, --abort
|
|
Abort any non-captive test on device
|
|
|
|
=================================================== SMARTCTL EXAMPLES =====
|
|
|
|
smartctl -a disk0 (Prints all SMART information)
|
|
|
|
smartctl -t long /dev/disk0 (Executes extended disk self-test)
|
|
|
|
smartctl --smart=on --saveauto=on /dev/rdisk0 (Enables SMART on first disk)
|
|
|
|
smartctl --attributes --log=selftest --quietmode=errorsonly /dev/disk0
|
|
(Prints Self-Test & Attribute errors)
|
|
|
|
smartctl -a IOService:/MacRISC2PE/pci@f4000000/AppleMacRiscPCI/ata-6@D/AppleKauaiATA/ATADeviceNub@0/IOATABlockStorageDriver/IOATABlockStorageDevice
|
|
(You can use IOService: ...)
|
|
|
|
smartctl -c IODeviceTree:/pci@f4000000/ata-6@D/@0:0
|
|
(... Or IODeviceTree:)
|