Card health monitoring in raspberry-pi for WD Purple QD101

We have raspberry-pi based IoT devices on field. We face an issue sometimes of SD card dying out after long usage of more than 2-3 years.

The datasheet for card WD Purple QD101 mentions SMART card health monitoring capabilities.

I am sure this will be possible from the WD software in windows but we want to monitor the health from the raspberry pi itself.

Is it possible to use the SMART capabilities of this SD card in a debian/linux based OS ?

We tried using smartmontools command line utility but it was unable to detect the device type.

pi@controller-6283:~ $ sudo smartctl -a /dev/mmcblk0 -c -d scsi
smartctl 6.6 2017-11-05 r4594 [armv7l-linux-5.10.63-v7+] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org

Standard Inquiry (36 bytes) failed [Invalid argument]
Retrying with a 64 byte Standard Inquiry
Standard Inquiry (64 bytes) failed [Invalid argument]
A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.

pi@controller-6283:~ $ sudo smartctl -a /dev/mmcblk0 -c -d test
smartctl 6.6 2017-11-05 r4594 [armv7l-linux-5.10.63-v7+] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org

/dev/mmcblk0: Unable to detect device type
Please specify device type with the -d option.

Use smartctl -h to get a usage summary

Hi @Dishant,

Have you opened a Support Case? If not opened, for more information, please contact the WD Technical Support team for the best assistance and troubleshooting:
https://support-en.wd.com/app/ask

Okay @Keerti_01 I have opened a support case as you have suggested.

Thank you!