PHP Smartctl output parser

I need programmatic output of smartctl:

HDD identifying information: Type, Manufacturer, Model, Serial Number, Capacity

Smart data: Every field parsed for data entry, things like pending sectors, hdd temp, unrecoverable sectors, power on hours etc.

Smart errors: Number of errors at minimum, rudimentary parsing can be done (ie. are all FPDMA / DMA errors) with time passed since last error (these are irrelevant if last error is older than 2 months power on time)

Smart test log: Passed, not passed (type of error is usually read failure at sector ####) / type / power on hours when done (data used to judge if we should launch a new test).

I can give quite a lot of sample entries. Please note that the outputs vary a little bit depending on the HDD / SSD manufacturer and model, sometimes meanings change too etc.

Basic information is always the same tho.

Will submit any number sample outputs required. Will test code output on large pool of drives to see that those all parses.

Code needs to be done so that new output formats is easy to add. Proper commenting of code and code standards are a must! (camelCase, 4 spaces instead of tab, max 3 indents, max couple function calls per line, a line should not exceed ~200chars etc. the usual).

Some samples included.

Sample with hardware RAID controller: these are rare and only rudimentary information is sufficient from these.

We will own the rights to the code to do as we please, in commercial and non-commercial use, and rights to redistribute / modify etc. but we don't really care if you use this code on other projects etc.

Not in a hurry, so relaxed deadline say 6 weeks is OK

Needs to be CLI utility, for example:

./smartctlParser.php /dev/sda

takes /dev/sda smartctl -a output and outputs it as serialized data, array that looks something like:

'model' => 'ST3000DM001',
'serial' => 'XYZ123',
'smart' => array(
'hours' => 22357,
'sectorsPending' => 0,
'sectorsUnrecoverable' => 5

This will be used to analyze the data and store on a database. Keep that in mind how and what needs to be outputted.

It should accept as input either device (executes smartctl -a), textfile or piped input.

Output should also contain self-test log

Compétences : Linux, PHP, Administration Système

en voir plus : output ffmpeg php script, mysql output sanitize php, parser mail grabber php, html parser word count php, read output html php, show ping output using php script, save html output code php script, html parser web service php, ioncube output decoded php, replay parser dota code php, parser exim linux php, output file php, php route planner script add, display text parser output, php dynamic table edit add online delete, php mysql list edit add, php form action sqlite add, php xml input proper utf indicate encoding, output excel php, php simplexml input proper utf, php mysql joomla classified add application, php mysql joombola classified add application, php mysql upload csv add update database, php commenting system, free text parser script mit php

Concernant l'employeur :
( 0 commentaires ) Helsinki, Finland

Nº du projet : #14336832

16 freelance font une offre moyenne de $296 pour ce travail


Hi There I have checked the requirement to create a website. I am Sam, having 7 years of experience in this domain personally to manage and execute the project as per client vision and my company always believe i Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(76 Commentaires)

Hello, I am an PHP Developer with more than 7 years of experience and shall get this done in about 5 days' time. Let me know if you have any doubts / queries about my expertise, will be more than happy to addre Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 5 jours
(134 Commentaires)

Dear Sir/Madam! I am a senior developer in Vietnam. I have 11 years experience with LAMP, 3 years AWS, 9 years with jQuery. I expert: Laravel, CakePHP, CI, Zend, Yii, Drupal, Wordpress, Expression Engine, Joomla. I Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 30 jours
(131 Commentaires)

ready to [login to view URL] your requirement. if you like my bid please send a message and we will discuss and start.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(142 Commentaires)

Hi, I have developed 100+ mobile application and 200+ websites and web application. I am experienced and hard-working developer with deep knowledge of Android, Java, AngularJS, Ionic, Cordova/phonegap, Meteor, Codei Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(82 Commentaires)

We work in low budget, good quality and ontime work. Over 8+ years of professional working experience in Web Development. Responsive Design with HTML, CSS, jQuery, PHP, Wordpress, Bootstrap, YAML, and more. I am highly Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 10 jours
(126 Commentaires)
%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(13 Commentaires)

I have read your project. I'm sure i can help you to do it. I have 7 years of experience in Web Development, System & Network Administrator and Security Researcher. Choose me then you will work with a Professiona Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(46 Commentaires)

I value trust the most. I will guarantee the perfect results firmly in the fastest time line. Please suggest a suitable time for discussion. Thank you for your time and consideration. Best regards.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(4 Commentaires)

Hi! I can write this tool by your requirements. Regards, Fedor.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 5 jours
(61 Commentaires)

Hello. I am a web developer with 15+-year experience . I work remotely on DigitalRay company - [login to view URL] - LA (USA). Technical knowledges: [login to view URL] JavaScript Ruby RoR ASP.Net C#, Java, Python, Zend, CakePHP, Symp Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(36 Commentaires)
%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(19 Commentaires)

Hello! How are you? This task could be done fast. I have many works like this. You can see my profile or see the links I have wrote above this. I can show you my works and talk about everything. My priority is get g Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 10 jours
(11 Commentaires)

Hi, I have reviewed your requirement and I can do this job as per your requirement. I have a advanced skills in WORDPRESS ,Joomla, Angular JS ,PHP, Codeigniter,MYSQL, Ajax,Joomla,JavaScript, API Integration,Plugin Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(23 Commentaires)

Hello More 20 years programming experience. I need more details to set real price and time. Regards. ----------------------------------------------------------------------------------------------------------------- Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 10 jours
(22 Commentaires)
%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(15 Commentaires)