1
0
mirror of https://github.com/byReqz/stocheck.git synced 2024-11-25 07:24:56 +00:00
Go to file
Nils e0d74b5247
added better smart filter
currently only for non raid drive
2021-02-02 12:38:45 +00:00
.github/workflows add actions to gen hash 2021-01-25 15:20:59 +00:00
hash updated hash after commit 2021-02-01 13:00:38 +00:00
LICENSE Initial commit 2021-01-22 21:48:34 +00:00
README.md Update README.md 2021-01-25 22:20:31 +00:00
stocheck.sh added better smart filter 2021-02-02 12:38:45 +00:00

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

usage

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

running it on a remote machine:

running once:

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

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"