Back to Glances

SMART

docs/aoa/smart.rst

4.5.41.3 KB
Original Source

.. _smart:

SMART

Availability: all but Mac OS

Dependency: this plugin uses the optional pySMART Python lib

This plugin is disable by default, please use the --enable-plugin smart option to enable it.

.. image:: ../_static/smart.png

Glances displays all the SMART attributes.

How to read the information:

  • The first line display the name and model of the device
  • The first column is the SMART attribute name
  • The second column is the SMART attribute raw value

.. warning:: This plugin needs administrator rights. Please run Glances as root/admin.

Also, you can hide driver using regular expressions.

To hide device you should use the hide option:

.. code-block:: ini

[smart]
hide=.*Hide_this_device.*

It is also possible to configure a white list of devices to display. Example to show only the specified drive:

.. code-block:: ini

 [smart]
 show=.*Show_this_device.*

Filtering is based on regular expression. Please be sure that your regular expression works as expected. You can use an online tool like regex101_ in order to test your regular expression.

.. _regex101: https://regex101.com/

You can also hide attributes, for example Self-tests, Errors, etc. Use a comma separated list.

.. code-block:: ini

[smart]
hide_attributes=attribute_name1,attribute_name2