You must first ensure that your server has smartctl installed, part of the smartmontools package.
Once installed, a very basic use of the command would be:
smartctl -a /dev/sdbYou can view your partitions with tools such as "fdisk" (i.e. fdisk -l).
A quick and easy way to check the health of /dev/sdb would be as follows:
smartctl -a /dev/sdb | grep resultExample output:
# smartctl -a /dev/sdb | grep result
SMART overall-health self-assessment test result: PASSED