lib/utils/job-utils/command-parser.js
function _parseSmartInfoSection(lines) {
        /*
         *Example data:

         === START OF INFORMATION SECTION ===
         Device Model:     Micron_P400e-MTFDDAK200MAR
         Serial Number:    1144031E6FB3
         LU WWN Device Id: 5 00a075 1031e6fb3
         Firmware Version: 0135
         User Capacity:    200,049,647,616 bytes [200 GB]
         */
        var result = {};
        //ignore the first line
        for (var i = 1; i < lines.length; i+=1) {
            _parseSmartColonLine(lines[i], result);
        }
        return result;
    }
function _parseSmartInfoSection(lines) {
        /*
         *Example data:

         === START OF INFORMATION SECTION ===
         Device Model:     Micron_P400e-MTFDDAK200MAR
         Serial Number:    1144031E6FB3
         LU WWN Device Id: 5 00a075 1031e6fb3
         Firmware Version: 0135
         User Capacity:    200,049,647,616 bytes [200 GB]
         */
        var result = {};
        //ignore the first line
        for (var i = 1; i < lines.length; i+=1) {
            _parseSmartColonLine(lines[i], result);
        }
        return result;
    }
function _parseSmartInfoSection ( lines ) { /*
         *Example data:

         === START OF INFORMATION SECTION ===
         Device Model:     Micron_P400e-MTFDDAK200MAR
         Serial Number:    1144031E6FB3
         LU WWN Device Id: 5 00a075 1031e6fb3
         Firmware Version: 0135
         User Capacity:    200,049,647,616 bytes [200 GB]
         */ var result = { } ; //ignore the first line for ( var i = 1 ; i < lines . length ; i += 1 ) { _parseSmartColonLine ( lines [ i ] , result ) ; } return result ; }
Parse the SMART information section

@param {Array} The data to parse, it has been splitted by lines
@return {Object}
Parse the SMART information section