Guest User

Untitled

a guest
May 7th, 2020
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.19 KB | None | 0 0
  1. smartctl -h
  2. smartctl 7.1 2019-12-30 r5022 [x86_64-w64-mingw32-w10-1909] (sf-7.1-1)
  3. Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org
  4.  
  5. Usage: smartctl [options] device
  6.  
  7. ============================================ SHOW INFORMATION OPTIONS =====
  8.  
  9. -h, --help, --usage
  10. Display this help and exit
  11.  
  12. -V, --version, --copyright, --license
  13. Print license, copyright, and version information and exit
  14.  
  15. -i, --info
  16. Show identity information for device
  17.  
  18. --identify[=[w][nvb]]
  19. Show words and bits from IDENTIFY DEVICE data (ATA)
  20.  
  21. -g NAME, --get=NAME
  22. Get device setting: all, aam, apm, dsn, lookahead, security,
  23. wcache, rcache, wcreorder, wcache-sct
  24.  
  25. -a, --all
  26. Show all SMART information for device
  27.  
  28. -x, --xall
  29. Show all information for device
  30.  
  31. --scan
  32. Scan for devices
  33.  
  34. --scan-open
  35. Scan for devices and try to open each device
  36.  
  37. ================================== SMARTCTL RUN-TIME BEHAVIOR OPTIONS =====
  38.  
  39. -j, --json[=[cgiosuv]]
  40. Print output in JSON format
  41.  
  42. -q TYPE, --quietmode=TYPE (ATA)
  43. Set smartctl quiet mode to one of: errorsonly, silent, noserial
  44.  
  45. -d TYPE, --device=TYPE
  46. Specify device type to one of:
  47. ata, scsi[+TYPE], nvme[,NSID], sat[,auto][,N][+TYPE], usbcypress[,X], usbjmicron[,p][,x][,N], usbprolific, usbsunplus, sntjmicron[,NSID], intelliprop,N[+TYPE], jmb39x,N[,sLBA][,force][+TYPE], aacraid,H,L,ID, areca,N[/E], auto, test
  48.  
  49. -T TYPE, --tolerance=TYPE (ATA)
  50. Tolerance: normal, conservative, permissive, verypermissive
  51.  
  52. -b TYPE, --badsum=TYPE (ATA)
  53. Set action on bad checksum to one of: warn, exit, ignore
  54.  
  55. -r TYPE, --report=TYPE
  56. Report transactions (see man page)
  57.  
  58. -n MODE[,STATUS], --nocheck=MODE[,STATUS] (ATA)
  59. No check if: never, sleep, standby, idle (see man page)
  60.  
  61. ============================== DEVICE FEATURE ENABLE/DISABLE COMMANDS =====
  62.  
  63. -s VALUE, --smart=VALUE
  64. Enable/disable SMART on device (on/off)
  65.  
  66. -o VALUE, --offlineauto=VALUE (ATA)
  67. Enable/disable automatic offline testing on device (on/off)
  68.  
  69. -S VALUE, --saveauto=VALUE (ATA)
  70. Enable/disable Attribute autosave on device (on/off)
  71.  
  72. -s NAME[,VALUE], --set=NAME[,VALUE]
  73. Enable/disable/change device setting: aam,[N|off], apm,[N|off],
  74. dsn,[on|off], lookahead,[on|off], security-freeze,
  75. standby,[N|off|now], wcache,[on|off], rcache,[on|off],
  76. wcreorder,[on|off[,p]], wcache-sct,[ata|on|off[,p]]
  77.  
  78. ======================================= READ AND DISPLAY DATA OPTIONS =====
  79.  
  80. -H, --health
  81. Show device SMART health status
  82.  
  83. -c, --capabilities (ATA, NVMe)
  84. Show device SMART capabilities
  85.  
  86. -A, --attributes
  87. Show device SMART vendor-specific Attributes and values
  88.  
  89. -f FORMAT, --format=FORMAT (ATA)
  90. Set output format for attributes: old, brief, hex[,id|val]
  91.  
  92. -l TYPE, --log=TYPE
  93. Show device log. TYPE: error, selftest, selective, directory[,g|s],
  94. xerror[,N][,error], xselftest[,N][,selftest], background,
  95. sasphy[,reset], sataphy[,reset], scttemp[sts,hist],
  96. scttempint,N[,p], scterc[,N,M], devstat[,N], defects[,N], ssd,
  97. gplog,N[,RANGE], smartlog,N[,RANGE], nvmelog,N,SIZE
  98.  
  99. -v N,OPTION , --vendorattribute=N,OPTION (ATA)
  100. Set display OPTION for vendor Attribute N (see man page)
  101.  
  102. -F TYPE, --firmwarebug=TYPE (ATA)
  103. Use firmware bug workaround:
  104. none, nologdir, samsung, samsung2, samsung3, xerrorlba, swapid
  105.  
  106. -P TYPE, --presets=TYPE (ATA)
  107. Drive-specific presets: use, ignore, show, showall
  108.  
  109. -B [+]FILE, --drivedb=[+]FILE (ATA)
  110. Read and replace [add] drive database from FILE
  111. [default is +C:/Program Files/smartmontools/bin/drivedb-add.h
  112. and then C:/Program Files/smartmontools/bin/drivedb.h]
  113.  
  114. ============================================ DEVICE SELF-TEST OPTIONS =====
  115.  
  116. -t TEST, --test=TEST
  117. Run test. TEST: offline, short, long, conveyance, force, vendor,N,
  118. select,M-N, pending,N, afterselect,[on|off]
  119.  
  120. -C, --captive
  121. Do test in captive mode (along with -t)
  122.  
  123. -X, --abort
  124. Abort any non-captive test on device
  125.  
  126. =================================================== SMARTCTL EXAMPLES =====
  127.  
  128. smartctl -a /dev/sda (Prints all SMART information)
  129.  
  130. smartctl --smart=on --offlineauto=on --saveauto=on /dev/sda
  131. (Enables SMART on first disk)
  132.  
  133. smartctl -t long /dev/sda (Executes extended disk self-test)
  134.  
  135. smartctl --attributes --log=selftest --quietmode=errorsonly /dev/sda
  136. (Prints Self-Test & Attribute errors)
  137. smartctl -a /dev/sda
  138. (Prints all information for disk on PhysicalDrive 0)
  139. smartctl -a /dev/pd3
  140. (Prints all information for disk on PhysicalDrive 3)
  141. smartctl -a /dev/tape1
  142. (Prints all information for SCSI tape on Tape 1)
  143. smartctl -A /dev/hdb,3
  144. (Prints Attributes for physical drive 3 on 3ware 9000 RAID)
  145. smartctl -A /dev/tw_cli/c0/p1
  146. (Prints Attributes for 3ware controller 0, port 1 using tw_cli)
  147. smartctl --all --device=areca,3/1 /dev/arcmsr0
  148. (Prints all SMART info for 3rd ATA disk of the 1st enclosure
  149. on 1st Areca RAID controller)
  150.  
  151. ATA SMART access methods and ordering may be specified by modifiers
  152. following the device name: /dev/hdX:[saicm], where
  153. 's': SMART_* IOCTLs, 'a': IOCTL_ATA_PASS_THROUGH,
  154. 'i': IOCTL_IDE_PASS_THROUGH, 'f': IOCTL_STORAGE_*,
  155. 'm': IOCTL_SCSI_MINIPORT_*.
  156. The default on this system is /dev/sdX:pasifm
Add Comment
Please, Sign In to add comment