https://github.com/007revad/synology_smart_info
Show Synology smart test progress or smart health and attributes
https://github.com/007revad/synology_smart_info
diskstation hdd hdd-health nvme rackstation smart ssd synology synology-dsm synology-nas
Last synced: 5 months ago
JSON representation
Show Synology smart test progress or smart health and attributes
- Host: GitHub
- URL: https://github.com/007revad/synology_smart_info
- Owner: 007revad
- License: mit
- Created: 2024-05-15T01:11:45.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-22T19:53:51.000Z (7 months ago)
- Last Synced: 2025-05-06T21:04:48.697Z (5 months ago)
- Topics: diskstation, hdd, hdd-health, nvme, rackstation, smart, ssd, synology, synology-dsm, synology-nas
- Language: Shell
- Homepage:
- Size: 669 KB
- Stars: 50
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.txt
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Synology SMART info
![]()
![]()
[](https://www.paypal.com/paypalme/007revad)
[](https://github.com/sponsors/007revad)
[](https://user-badge.committers.top/australia/007revad)### Description
Show Synology smart test progress or smart health and attributes.
The script works in DSM 7, including DSM 7.2, and DSM 6.
## Download the script
1. Download the latest version _Source code (zip)_ from https://github.com/007revad/Synology_SMART_info/releases
2. Save the download zip file to a folder on the Synology.
3. Unzip the zip file.## How to run the script
### Run the script via SSH
[How to enable SSH and login to DSM via SSH](https://kb.synology.com/en-global/DSM/tutorial/How_to_login_to_DSM_with_root_permission_via_SSH_Telnet)
Run the script:
```bash
sudo -s /volume1/scripts/syno_smart_info.sh
```> **Note**
> Replace /volume1/scripts/ with the path to where the script is located.To see all the SMART attributes run the script with the -a or --all option:
```bash
sudo -s /volume1/scripts/syno_smart_info.sh --all
```> **Note**
> The script automatically shows all SMART attributes for any drives that don't return "SMART test passed".### Scheduling the script in Synology's Task Scheduler
See How to schedule a script in Synology Task Scheduler
### Options when running the script
There are optional flags you can use when running the script:
```YAML
-a, --all Show all SMART attributes
-e, --email Disable colored text in output scheduler emails
-h, --help Show this help message
-v, --version Show the script version
```## Optional for Seagate drives
If you have Seagate drives you should install SynoCommunity's [SynoCli Disk Tools v4.0-13 or later](https://synocommunity.com/package/synocli-disk) package so this script can decode the values of Seagate's SMART attributes 1, 7 and 195. SynoCli Disk Tools v4.0-13 includes smartmontools v7.4
Seagate HDD with DSM's smartctl 6.5
Seagate HDD with SynoCommunity's smartctl 7.4
## Screenshots
All healthy
One drive marginal
UDMA CRC Errors
NVMe drives removed while NAS was running
SSD with reallocated sectors
HDD and SSD when run with --all option
HDD and NVMe when run with --all option