|
|
@@ -1,61 +0,0 @@
|
|
|
-Disk::SMART(3) User Contributed Perl Documentation Disk::SMART(3)
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-NNAAMMEE
|
|
|
- Disk::SMART - Provides an interface to smartctl
|
|
|
-
|
|
|
-VVEERRSSIIOONN
|
|
|
- Version 0.01
|
|
|
-
|
|
|
-SSYYNNOOPPSSIISS
|
|
|
- Disk::SMART is an object ooriented module that provides an interface to
|
|
|
- get SMART disk info from a device as well as initiate testing.
|
|
|
-
|
|
|
- use Disk::SMART;
|
|
|
-
|
|
|
- my $smart = Disk::SMART->new('/dev/sda');
|
|
|
-
|
|
|
-MMEETTHHOODDSS
|
|
|
- nneeww ((DDEEVVIICCEE))
|
|
|
- Instantiates the Disk::SMART object
|
|
|
-
|
|
|
- "DEVICE" - Device identifier of SSD / Hard Drive
|
|
|
-
|
|
|
- my $smart = Disk::SMART->new( 'dev/sda', '/dev/sdb' );
|
|
|
-
|
|
|
-GGeettttiinngg iinnffoorrmmaattiioonn ffrroomm ssmmaarrttccttll
|
|
|
- ggeett__ddiisskk__tteemmpp ((DDEEVVIICCEE))
|
|
|
- Returns an array with the temperature of the device in Celsius and
|
|
|
- Farenheit, or N/A.
|
|
|
-
|
|
|
- "DEVICE" - Device identifier of SSD / Hard Drive
|
|
|
-
|
|
|
- my ($temp_c, $temp_f) = $smart->get_disk_temp('/dev/sda');
|
|
|
-
|
|
|
- ggeett__ddiisskk__hheeaalltthh ((DDEEVVIICCEE))
|
|
|
- Returns the health of the disk. Output is "PASSED", "FAILED", or "N/A".
|
|
|
-
|
|
|
- "DEVICE" - Device identifier of SSD / Hard Drive
|
|
|
-
|
|
|
- my $disk_health = $smart->get_disk_health('/dev/sda');
|
|
|
-
|
|
|
- ggeett__ddiisskk__mmooddeell ((DDEEVVIICCEE))
|
|
|
- Returns the model of the device. Output is "<device>: <model>" or
|
|
|
- "N/A". eg. "/dev/sda: ST3250410AS"
|
|
|
-
|
|
|
- "DEVICE" - Device identifier of SSD / Hard Drive
|
|
|
-
|
|
|
- my $disk_model = $smart->get_disk_model('/dev/sda');
|
|
|
-
|
|
|
-AAUUTTHHOORR
|
|
|
- Paul Trost <paul.trost@trostfamily.org>
|
|
|
-
|
|
|
-LLIICCEENNSSEE AANNDD CCOOPPYYRRIIGGHHTT
|
|
|
- Copyright 2014.
|
|
|
- This script is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License v2, or at your option any later version.
|
|
|
- <http://gnu.org/licenses/gpl.html>
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-perl v5.14.2 2014-10-03 Disk::SMART(3)
|