Advertisement
Guest User

Untitled

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