Custom Query (1456 matches)
Results (361 - 363 of 1456)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#1367 | duplicate | Split code into common interface library binary, and smartd + smartctl binaries | ||
Description |
After a while of using smartmontools, I have a big desire to incorporate native bindings into some higher-level languages like JavaScript (NodeJS) and Python. This is very hard to do with smartmontools in its current state, because all of the code is compiled into two binaries, if I'm not mistaken. "smartctl" and "smartd". I would love to see (and help) this project organize code and make files in such a way that developers are able to access the "device_interface" class in code. Particularly "smi()" so we can deal with native "smart_device" objects directly in code, instead of only being able to parse output of "smartctl". A library binary with a header file in the include path. I've done some digging in the code, and believe this can be easily done, since "smi()" is a shared piece of code between both smartd and smartctl. I do not have lots of experience with C++ and make files for large projects, but I imagine this could be as simple as compiling a static library for the "device_interface" on that machine, and then including that static library in "smartd" and "smartctl" binaries. I would add that this code should also be wrapped in a namespace, should you proceed to create a library out of it. I would assume that you do not have lots of time to implement this, so I would love to offer help in any way, but I will reiterate that I am not super experienced with large project makefiles, automake, or c++ compilers. I am totally willing to learn. I do however understand the language itself relatively well, and do not have a big problem understanding an overview of the code structure. What are your thoughts? I've set a milestone I think is feasible, but please change it to how you see fit. Thank you for your time. |
|||
#1622 | invalid | Get SMART attributes by id | ||
Description |
Hi,
I'm trying to get SMART attributes 247 and 248 on my Samsung SSD 970 EVO Plus 1TB using smartctl (smartctl 7.3 2022-02-28 r5338): However can't find such data in output. How to get SMART attributes 247 and 248? |
|||
#1908 | invalid | No diagnostic from SAS disk (HP EH000300JWC) behind USB device | ||
Description |
I was run smartctl on windows and check one of sas disk so it shows follow output . As you can see it cannot show most of useful info such as power on hours , read / write amount and .... What is the issue ? Would you please help me about it ? Also test on 7.4 but no difference in output C:\Program Files\smartmontools\bin>smartctl.exe -x /dev/sdc smartctl 7.2 2020-12-30 r5155 [x86_64-w64-mingw32-w10-b22631] (sf-7.2-1) Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org === START OF INFORMATION SECTION === Device Model: HP EH000300JWCPK Serial Number: WAE1VGZJ Add. Product Id: 13FD6710 Firmware Version: 1.0207 User Capacity: 300,000,000,000 bytes [300 GB] Sector Size: 512 bytes logical/physical Device is: Not in smartctl database [for details use: -P showall] ATA Version is: ATA8-ACS T13/1699-D revision 3c SATA Version is: SATA 3.2, 6.0 Gb/s (current: 6.0 Gb/s) Local Time is: Thu Nov 28 00:21:14 2024 IST SMART support is: Available - device has SMART capability. SMART support is: Enabled AAM feature is: Unavailable APM feature is: Unavailable Rd look-ahead is: Unavailable Write cache is: Unavailable DSN feature is: Unavailable ATA Security is: Unavailable Wt Cache Reorder: Unavailable === START OF READ SMART DATA SECTION === SMART overall-health self-assessment test result: PASSED General SMART Values: Offline data collection status: (0x00) Offline data collection activity was never started. Auto Offline Data Collection: Disabled. Self-test execution status: ( 0) The previous self-test routine completed without error or no self-test has ever been run. Total time to complete Offline data collection: ( 0) seconds. Offline data collection capabilities: (0x79) SMART execute Offline immediate. No Auto Offline data collection support. Suspend Offline collection upon new command. Offline surface scan supported. Self-test supported. Conveyance Self-test supported. Selective Self-test supported. SMART capabilities: (0x0003) Saves SMART data before entering power-saving mode. Supports SMART auto save timer. Error logging capability: (0x01) Error logging supported. No General Purpose Logging support. Short self-test routine recommended polling time: ( 2) minutes. Extended self-test routine recommended polling time: ( 30) minutes. Conveyance self-test routine recommended polling time: ( 6) minutes. SMART Attributes Data Structure revision number: 1 Vendor Specific SMART Attributes with Thresholds: ID# ATTRIBUTE_NAME FLAGS VALUE WORST THRESH FAIL RAW_VALUE 1 Raw_Read_Error_Rate ------ 100 100 000 - 0 4 Start_Stop_Count ------ 100 100 000 - 30 193 Load_Cycle_Count ------ 100 100 000 - 56 200 Multi_Zone_Error_Rate ------ 100 100 000 - 0 241 Total_LBAs_Written ------ 100 100 000 - 3802352 242 Total_LBAs_Read ------ 100 100 000 - 142027 ||||||_ K auto-keep |||||__ C event count ||||___ R error rate |||____ S speed/performance ||_____ O updated online |______ P prefailure warning Read SMART Log Directory failed: SAT command failed General Purpose Log Directory not supported SMART Extended Comprehensive Error Log (GP Log 0x03) not supported Read SMART Error Log failed: SAT command failed SMART Extended Self-test Log (GP Log 0x07) not supported Read SMART Self-test Log failed: SAT command failed Read SMART Selective Self-test Log failed: SAT command failed SCT Commands not supported Device Statistics (GP/SMART Log 0x04) not supported Pending Defects log (GP Log 0x0c) not supported SATA Phy Event Counters (GP Log 0x11) not supported |