logicminds / rubyipmi

Command line wrapper for ipmitool and freeipmi
GNU Lesser General Public License v2.1
35 stars 32 forks source link

Bugfix: bmc.info may not as you expected. #10

Closed crhan closed 11 years ago

crhan commented 11 years ago

it's now produce

{"Device ID"=>"17",
 "Device Revision"=>"1",
 "Firmware Revision"=>"2.9",
 "IPMI Version"=>"2.0",
 "Manufacturer ID"=>"11",
 "Manufacturer Name"=>"Hewlett-Packard",
 "Product ID"=>"8192 (0x2000)",
 "Product Name"=>"Unknown (0x2000)",
 "Device Available"=>"yes",
 "Provides Device SDRs"=>"yes",
 "Additional Device Support"=>"",
 "Sensor Device"=>
  ["SDR Repository Device", "SEL Device", "FRU Inventory Device"],
 "Aux Firmware Rev Info"=>"",
 "0x00"=>["0x00", "0x00", "0x30"]}

But I think you may expected as this:

{
  'Device ID' => '17',
  'Device Revision' => '1',
  'Firmware Revision' => '2.9',
  'IPMI Version' => '2.0',
  'Manufacturer ID' => '11',
  'Manufacturer Name' => 'Hewlett-Packard',
  'Product ID' => '8192 (0x2000)',
  'Product Name' => 'Unknown (0x2000)',
  'Device Available' => 'yes',
  'Provides Device SDRs' => 'yes',
  'Additional Device Support' => [
    'Sensor Device',
    'SDR Repository Device',
    'SEL Device',
    'FRU Inventory Device'
  ],
  'Aux Firmware Rev Info' => [
    '0x00',
    '0x00',
    '0x00',
    '0x30'
  ]
}

And it's fixed~

logicminds commented 11 years ago

What model of hardware was this with?