Skip to content

Tool to acquire hard disk drive temperature from the network interface

License

Notifications You must be signed in to change notification settings

viharm/HDDtempNC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HDDtempNC

Version Issues

Language License

HDDtempNC is a tool to acquire hard disk drive temperature from hddtemp's network interface.

It is Python script and requires a working Python environment. It depends a configured and working hddtemp daemon on the system whose HDD temperatures are required.

Usage

HDDtempNC can be used either from the command line or by calling it in another script/program

Command syntax

hddtempnc.py --param1=value1 [ --param2=value2 [ --param3 ] ]

Following parameters are available:

  • -d <disk> (--disk=<disk>)

    Specify disk to interrogate (full device path, e.g. /dev/sda)

  • -t <host> (--target=<host>)

    Specify target host to interrogate (optional, default localhost)

  • -p <port> (--port=<port>)

    Specify target port to interrogate (optional, default 7634)

  • -g (--debug)

    Enable debugging to console/stdout

  • -h (--help)

    Show help

The sequence of parameters is not important.

Examples

Command examples

Long parameters

/usr/bin/python3 hddtempnc.py --disk=/dev/sda`
/usr/bin/python3 hddtempnc.py --target=192.168.0.20 --disk=/dev/sdb
/usr/bin/python hddtempnc.py --port=7630 --disk=/dev/sdc
/usr/bin/python hddtempnc.py --disk=/dev/sda --port=9000 --target=10.65.0.65

Short parameters

/usr/bin/python3 hddtempnc.py -d /dev/sda
/usr/bin/python3 hddtempnc.py -t 192.168.0.20 -d /dev/sdb
/usr/bin/python hddtempnc.py -p 7630 -d /dev/sdc
/usr/bin/python hddtempnc.py -d /dev/sda -p 9000 -t 10.65.0.65

Download

The script is available in the code.

Support

Feature requests, bugs, issues and other comments can be created in Issues.

Links

License

Licensed under the modified BSD (3-clause) license.

A copy of the license is available...