GithubHelp home page GithubHelp logo

transcend-information / linux-smart-command Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 2.0 358 KB

List ID table, S.M.A.R.T table, health information of the Transcend embedded SSD products

License: GNU General Public License v2.0

C 1.39% C++ 98.61%
nvme sata ssd transcend

linux-smart-command's Introduction

Monitor SSD health and SMART status in Linux


Get S.M.A.R.T Information for the Transcend Embedded SATA/NVMe SSD product.

This sample code demonstrates how to get the disk information of the solid state drives (SSD) in Linux,
include identify information (model name, firmware version and serial number, etc.) ,
S.M.A.R.T information (temperature, erase count and power-on hours, etc.) and Health information.

Note : The project works for Transcend Embedded SSD products.

Build Guide

  • compile the executable file
    g++ -Wformat=0 -std=c++11 -static main.cpp nvme_util.cpp -o SMARTQuery_Cmd
  • use <chmod +x> for sure you have proper right to execute the executable file
    chmod +x SMARTQuery_Cmd
    sudo ./SMARTQuery_Cmd

Usage

  • SMARTQuery_Cmd
    show all information of devices

  • SMARTQuery_Cmd [option] <device>
    show specific information of the device by option

    • Options:
      • -all: list all information of the device
      • -id: get id table information of the device
      • -smart: get S.M.A.R.T table information of the device
      • -health: get the health information of the device
      • -license: display the End User License Agreement and Statement
      • -v: display the application version

For NVMe SSD :

 sudo ./SMARTQuery_Cmd [option] /dev/nvme0n1

For SATA SSD :

 sudo ./SMARTQuery_Cmd [option] /dev/sda

Get ID , SMART and Health information by following command for NVMe SSD.

Get ID , SMART and Health information by following command for SATA SSD.

linux-smart-command's People

Contributors

neo125874 avatar slcheng avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.