1
0
mirror of https://github.com/byReqz/stocheck.git synced 2024-09-28 19:43:14 +00:00
stocheck/README.md
2021-01-24 00:55:57 +00:00

48 lines
996 B
Markdown

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