{"id":32624955,"url":"https://github.com/mattmartini/disk-smarttools","last_synced_at":"2025-10-30T20:26:07.217Z","repository":{"id":320440812,"uuid":"1080628435","full_name":"mattmartini/Disk-SmartTools","owner":"mattmartini","description":"Perl Module to provide tools to work with disks via S.M.A.R.T.","archived":false,"fork":false,"pushed_at":"2025-10-23T19:33:10.000Z","size":306,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-23T21:09:24.483Z","etag":null,"topics":["disk","perl","smart"],"latest_commit_sha":null,"homepage":"https://metacpan.org/release/Disk-SmartTools","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mattmartini.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-21T16:28:05.000Z","updated_at":"2025-10-23T19:33:13.000Z","dependencies_parsed_at":"2025-10-23T21:09:29.279Z","dependency_job_id":"2c31b86e-8901-44b0-bec9-19628deda5bb","html_url":"https://github.com/mattmartini/Disk-SmartTools","commit_stats":null,"previous_names":["mattmartini/disk-smarttools"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/mattmartini/Disk-SmartTools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattmartini%2FDisk-SmartTools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattmartini%2FDisk-SmartTools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattmartini%2FDisk-SmartTools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattmartini%2FDisk-SmartTools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattmartini","download_url":"https://codeload.github.com/mattmartini/Disk-SmartTools/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattmartini%2FDisk-SmartTools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281875573,"owners_count":26576688,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-30T02:00:06.501Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["disk","perl","smart"],"created_at":"2025-10-30T20:26:06.260Z","updated_at":"2025-10-30T20:26:07.207Z","avatar_url":"https://github.com/mattmartini.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NAME\nDisk::SmartTools - Provide tools to work with disks via S.M.A.R.T.\n\n# VERSION\nVersion v2.1.1\n\n# SYNOPSIS\n\nThis module provides tools to access the S.M.A.R.T. features of a system's disks.\nIt will allow the collection of information on the installed disks and *RAID* arrays.\nQueries via `smartctl` will gather the current attributes of the disks.  Internal \ntests of the disks can be initiated.  \n\nThe sub-modules provide this and other utility functionality.\n\n# SUB-MODULES\nThe sub-modules provide the functionality described below.  For more details see `perldoc \u003cSub-module_Name\u003e`.\n\n## Disk::SmartTools\n`Disk::SmartTools` provides a loader for sub-modules where a leading `::` denotes a package to load.\n\n    use Disk::SmartTools qw( ::Disks ::Utils );\n\nThis is equivalent to:\n\n    use Disk::SmartTools::Disks qw(:all);\n    use Disk::SmartTools::Utils qw(:all);\n\n## Disk::SmartTools::Disks\nThis module provides the disk related functions.\n\n    use Disk::SmartTools::Disks;\n\n    my $smart_cmd = get_smart_cmd();\n    my @disks = os_disks();\n    my @smart_disks = get_smart_disks(@disks);\n    $smart_test_started = smart_test_for($disk);\n\n## Disk::SmartTools::Syntax\nProvide consistent feature setup. Put all of the \"use\" setup cmds in one\nplace. Then import them into other modules.\n\nUse this in other modules:\n\n    package Disk::SmartTools::Example;\n\n    use Disk::SmartTools::Syntax;\n\n    # Rest of Code...\n\nThis is equivalent to:\n\n    package Disk::SmartTools::Example;\n\n    use feature :5.18;\n    use utf8;\n    use strict;\n    use warnings;\n    use autodie;\n    use open qw(:std :utf8);\n    use version;\n    use Readonly;\n    use Carp;\n    use English qw( -no_match_vars );\n\n    # Rest of Code...\n\n\n## Disk::SmartTools::Utils\n\n\n## Disk::SmartTools::OS\nOS discovery and functions\n\n    use Disk::SmartTools::OS;\n\n    my $OS = get_os();\n    my $hostname = get_hostname();\n    my $system_is_linux = is_linux();\n\n# EXAMPLES\nTwo example programs demonstrate how the `Disk::SmartTools` modules can be used.\n\n## smart_show.pl\nDisplay SMART information on disks.\n\n    $ smart_show.pl\n\nAsks for the type of SMART information to display then reports for each\nphysical disk in the system.\n\n    Display SMART information\n    -------------------------\n    0 - All SMART Info\n    1 - Info\n    2 - Overall-Health\n    3 - SelfTest History\n    4 - Error Log\n    5 - Temperature Graph\n    6 - Power_On_Hours\n    7 - Power_Cycle_Count\n    8 - Temperature_Celsius\n    9 - Reallocated_Sector_Ct\n    a - Offline_Uncorrectable\n    b - Raw_Read_Error_Rate\n    c - Seek_Error_Rate\n\n## smart_run_tests.pl\nRuns a SMART test on all disks.  Typically run as a crontab.\n \n    $ smart_run_tests.pl \u003cargs\u003e\n\n    --test_type : Length of SMART test, short (default) or long\n    --dry_run : Don't actually perform SMART test\n    --debug : Turn debugging on\n    --verbose : Generate debugging info on stderr\n    --silent : Do not print report on stdout\n    --help : This helpful information.\n\n# INSTALLATION\n\nTo install this module, run the following commands:\n\n    perl Makefile.PL\n    make\n    make test\n    make install\n\n# SUPPORT AND DOCUMENTATION\n\nAfter installing, you can find documentation for this module with the\nperldoc command.\n\n    perldoc Disk::SmartTools\n\nYou can also look for information at:\n\n- [RT, CPAN's request tracker (report bugs here)](https://rt.cpan.org/NoAuth/Bugs.html?Dist=Disk-SmartTools)\n\n- [CPAN Ratings](https://cpanratings.perl.org/d/Disk-SmartTools)\n\n- [Search CPAN](https://metacpan.org/release/Disk-SmartTools)\n\n# TEMPLATE\n\n    module-starter \\\n        --module=Disk::SmartTools \\\n        --module=Disk::SmartTools::Syntax \\\n        --module=Disk::SmartTools::OS \\\n        --module=Disk::SmartTools::Utils \\\n        --module=Disk::SmartTools::Disks \\\n        --builder=ExtUtils::MakeMaker \\\n        --author='Matt Martini' \\\n        --email=matt@imaginarywave.com \\\n        --ignore=git \\\n        --license=gpl3 \\\n        --genlicense \\\n        --minperl=5.018 \\\n        --verbose\n\n# LICENSE AND COPYRIGHT\n\nThis software is Copyright © 2024-2025 by Matt Martini.\n\nThis is free software, licensed under:\n\n  The GNU General Public License, Version 3, June 2007\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattmartini%2Fdisk-smarttools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattmartini%2Fdisk-smarttools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattmartini%2Fdisk-smarttools/lists"}