2021-01-22 21:48:34 +00:00
|
|
|
# stocheck
|
|
|
|
quick and dirty smart value checker
|
2021-01-22 22:07:39 +00:00
|
|
|
|
|
|
|
### features:
|
|
|
|
- sata/nvme support
|
|
|
|
- show smart info and self-check results
|
2021-01-24 00:55:57 +00:00
|
|
|
<br>
|
|
|
|
supports most common raid-controller brands: <br>
|
2021-01-24 00:56:28 +00:00
|
|
|
- 3ware (series 6000, 7000, 8000, 9000 and 9750) <br>
|
|
|
|
- adaptec (smartraid/aacraid not yet implemented) <br>
|
|
|
|
- lsi/dell <br>
|
2021-01-22 22:07:39 +00:00
|
|
|
|
|
|
|
# usage
|
|
|
|
Usage: stocheck (options) <br>
|
|
|
|
Options: <br>
|
|
|
|
-h/--help -- show help <br>
|
|
|
|
-u/--update -- update the script <br>
|
|
|
|
|
2021-01-23 00:03:20 +00:00
|
|
|
### **running it on a remote machine:**
|
|
|
|
**running once:**
|
2021-01-22 23:43:03 +00:00
|
|
|
```bash
|
|
|
|
ssh root@remote 'bash -s' < stocheck.sh
|
|
|
|
```
|
|
|
|
|
2021-01-23 00:03:20 +00:00
|
|
|
**proper alias:**
|
|
|
|
```bash
|
|
|
|
echo "function stocheck_remote { ssh root@"$"1 'bash -s' < ~/stocheck.sh; }" >> ~/.bashrc
|
|
|
|
echo "alias stocheck=stocheck_remote" >> ~/.bashrc
|
|
|
|
```
|
|
|
|
|
2021-01-22 22:07:39 +00:00
|
|
|
# installation
|
|
|
|
1. download the script: <br>
|
|
|
|
```bash
|
|
|
|
wget https://git.byreqz.de/byreqz/stocheck/raw/branch/main/stocheck.sh
|
|
|
|
```
|
|
|
|
2. run it with <br>
|
2021-01-22 23:43:49 +00:00
|
|
|
```bash
|
2021-01-22 22:07:39 +00:00
|
|
|
bash stocheck.sh
|
2021-01-22 23:43:49 +00:00
|
|
|
```
|
2021-01-22 22:07:39 +00:00
|
|
|
or <br>
|
2021-01-22 23:43:49 +00:00
|
|
|
```bash
|
2021-01-22 22:07:39 +00:00
|
|
|
chmod +x stockheck.sh && ./stocheck.sh
|
2021-01-22 23:43:49 +00:00
|
|
|
```
|
2021-01-22 22:07:39 +00:00
|
|
|
3. optionally alias it <br>
|
2021-01-22 23:43:49 +00:00
|
|
|
```bash
|
|
|
|
alias stocheck="~/stocheck.sh"
|
|
|
|
```
|