Skip to main content

Show HDD/SSD list

Project description

Show pretty HDD/SSD list

Long time ago when I've switched from Solaris to Linux, I missed "hd" utility. In Linux "hd" command is used for a hex dump, in Solaris it displayed a pretty table with HDD info.

I wrote "shd" shell script with a similar functionality. Now I've rewrote it in Python, added options and pretty colors, and releasing it to public.

Installation

Install smartmontools, then:

python3 -m pip install shd

Usage

Script should be run as root, to obtain S.M.A.R.T. info

shd [-h] [--temp-warn TEMP] [--temp-crit TEMP] [-R] [-y] [-e] [-s] [-J]

  --temp-warn TEMP  Warning temperature (C), default: 40
  --temp-crit TEMP  Critical temperature (C), default: 45
  -R, --raw         Suppress colors
  -y, --full        Display full disk info
  -e, --errors      Display only disks with errors / critical temperature
  -s, --no-header   Suppress header
  -J, --json        Output as JSON

p.s. if someone needs temperature in Fahrenheit, feel free to implement or drop me an issue.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shd-0.0.8.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file shd-0.0.8.tar.gz.

File metadata

  • Download URL: shd-0.0.8.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

File hashes

Hashes for shd-0.0.8.tar.gz
Algorithm Hash digest
SHA256 b1b9a420b3c8b3752834a30ab9ecd1dc4a2114c17f5e9f77f5e31925f9e64fd7
MD5 2d06b81699f8645f2406bfbb67db58ee
BLAKE2b-256 e714aa2d1a0d767edf6e20dbc8f730381e8b7eba74b36e5827b4fb04e3484032

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page