Giter VIP home page Giter VIP logo

stocheck's Introduction

stocheck

quick and dirty smart value checker

features:

  • sata/nvme support
  • show smart info and self-check results

supports most common raid-controller brands (but not all models):
- 3ware (series 6000, 7000, 8000, 9000 and 9750)
- adaptec (smartraid/aacraid not yet implemented)
- lsi/dell

known issues:

  • showing all attributes for raid controllers fails via SSH
  • Dell/LSI controllers in IT/HBA mode fail

contributing

As different drives have different arguments, there are always ones which im gonna miss out on. Please submit smart arguments that you think to be missing as issue or merge request.

usage

Usage: stocheck (options)
Options:
-h/--help -- show help
-u/--update -- update the script

running it on a remote machine:

running from the local file (can be automated with cron):

ssh root@remote 'bash -s' < stocheck.sh

or

running directly from github

ssh root@remote "curl -s "https://raw.githubusercontent.com/byReqz/stocheck/main/stocheck.sh" | bash"

proper alias:

echo "function stocheck_remote { ssh root@'$'1 'bash -s' < ~/stocheck.sh; }" >> ~/.bashrc
echo "alias stocheck=stocheck_remote" >> ~/.bashrc

installation

  1. download the script:
wget https://git.byreqz.de/byreqz/stocheck/raw/branch/main/stocheck.sh
  1. run it with
bash stocheck.sh

or

chmod +x stockheck.sh && ./stocheck.sh
  1. optionally alias it
alias stocheck="~/stocheck.sh"

sample output

===  sata drive check: (1 found) ===
------------------- /dev/sda --------------------
=== START OF INFORMATION SECTION ===
Device Model:     INTEL XXXXXXXX
Serial Number:    XXXXXXXXXXXXX
Firmware Version: XXXX
User Capacity:    240.057.409.536 bytes [240 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    Solid State Device
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF SELF-ASSESSMENT TEST RESULT ===
SMART overall-health self-assessment test result: PASSED

Attribute                Value (Raw)  Worst  Thresh  Type     Updated  Failed
Reallocated_Sector_Ct    100 (0)      100    000     Old_age  Always   -
Power_On_Hours           100 (1991)   100    000     Old_age  Always   -
Power_Cycle_Count        100 (2332)   100    000     Old_age  Always   -
Reported_Uncorrect       100 (1)      100    000     Old_age  Always   -
Temperature_Celsius      026 (26)     100    000     Old_age  Always   -
Media_Wearout_Indicator  080 (0)      100    000     Old_age  Always   -
-------------------------------------------------

stocheck's People

Contributors

byreqz avatar

Watchers

James Cloos 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.