rubyipmi 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. checksums.yaml +15 -0
  2. data/Gemfile +5 -3
  3. data/README.md +24 -14
  4. data/Rakefile +82 -4
  5. data/VERSION +1 -1
  6. data/lib/rubyipmi.rb +36 -14
  7. data/lib/rubyipmi/commands/basecommand.rb +57 -119
  8. data/lib/rubyipmi/freeipmi/commands/basecommand.rb +29 -25
  9. data/lib/rubyipmi/freeipmi/commands/bmc.rb +3 -3
  10. data/lib/rubyipmi/freeipmi/commands/bmcconfig.rb +6 -6
  11. data/lib/rubyipmi/freeipmi/commands/bmcinfo.rb +3 -23
  12. data/lib/rubyipmi/freeipmi/commands/fru.rb +117 -23
  13. data/lib/rubyipmi/freeipmi/commands/lan.rb +32 -37
  14. data/lib/rubyipmi/freeipmi/commands/power.rb +1 -1
  15. data/lib/rubyipmi/freeipmi/commands/sensors.rb +53 -50
  16. data/lib/rubyipmi/freeipmi/connection.rb +16 -2
  17. data/lib/rubyipmi/freeipmi/errorcodes.rb +25 -2
  18. data/lib/rubyipmi/ipmitool/commands/basecommand.rb +20 -37
  19. data/lib/rubyipmi/ipmitool/commands/bmc.rb +1 -24
  20. data/lib/rubyipmi/ipmitool/commands/chassis.rb +1 -0
  21. data/lib/rubyipmi/ipmitool/commands/fru.rb +112 -30
  22. data/lib/rubyipmi/ipmitool/commands/lan.rb +55 -77
  23. data/lib/rubyipmi/ipmitool/commands/power.rb +10 -4
  24. data/lib/rubyipmi/ipmitool/commands/sensors.rb +53 -80
  25. data/lib/rubyipmi/ipmitool/connection.rb +19 -3
  26. data/lib/rubyipmi/ipmitool/errorcodes.rb +51 -3
  27. data/rubyipmi.gemspec +73 -33
  28. data/spec/Vagrantfile +45 -0
  29. data/spec/fixtures/freeipmi/bmc_config.txt +317 -0
  30. data/spec/fixtures/freeipmi/bmc_config_lan_conf.txt +19 -0
  31. data/spec/fixtures/freeipmi/bmc_info.txt +32 -0
  32. data/spec/fixtures/freeipmi/errors.txt +3 -0
  33. data/spec/fixtures/freeipmi/fru.txt +13 -0
  34. data/spec/fixtures/freeipmi/sensors.txt +29 -0
  35. data/spec/fixtures/ipmitool/bmc_info.txt +20 -0
  36. data/spec/fixtures/ipmitool/errors.txt +10 -0
  37. data/spec/fixtures/ipmitool/fru.txt +96 -0
  38. data/spec/fixtures/ipmitool/lan.txt +17 -0
  39. data/spec/fixtures/ipmitool/sensors.txt +105 -0
  40. data/spec/integration/bmc_spec.rb +49 -0
  41. data/spec/{chassis_config_spec.rb → integration/chassis_config_spec.rb} +6 -6
  42. data/spec/integration/chassis_spec.rb +26 -0
  43. data/spec/integration/connection_spec.rb +35 -0
  44. data/spec/{fru_spec.rb → integration/fru_spec.rb} +11 -10
  45. data/spec/{lan_spec.rb → integration/lan_spec.rb} +9 -7
  46. data/spec/integration/power_spec.rb +40 -0
  47. data/spec/{rubyipmi_spec.rb → integration/rubyipmi_spec.rb} +7 -10
  48. data/spec/{sensor_spec.rb → integration/sensor_spec.rb} +5 -20
  49. data/spec/manifests/default.pp +50 -0
  50. data/spec/puppetmodules/archive/LICENSE-2.0.txt +202 -0
  51. data/spec/puppetmodules/archive/Modulefile +8 -0
  52. data/spec/puppetmodules/archive/README.md +40 -0
  53. data/spec/puppetmodules/archive/manifests/download.pp +157 -0
  54. data/spec/puppetmodules/archive/manifests/extract.pp +81 -0
  55. data/spec/puppetmodules/archive/manifests/init.pp +70 -0
  56. data/spec/puppetmodules/archive/manifests/tar-gz.pp +7 -0
  57. data/spec/puppetmodules/archive/manifests/zip.pp +7 -0
  58. data/spec/puppetmodules/archive/metadata.json +26 -0
  59. data/spec/spec_helper.rb +35 -3
  60. data/spec/unit/freeipmi/bmc-info_spec.rb +42 -0
  61. data/spec/unit/freeipmi/bmc_spec.rb +44 -0
  62. data/spec/unit/freeipmi/connection_spec.rb +56 -0
  63. data/spec/unit/freeipmi/errorcodes_spec.rb +34 -0
  64. data/spec/unit/freeipmi/fru_spec.rb +77 -0
  65. data/spec/unit/freeipmi/lan_spec.rb +0 -0
  66. data/spec/unit/freeipmi/sensors_spec.rb +83 -0
  67. data/spec/unit/ipmitool/bmc_spec.rb +78 -0
  68. data/spec/unit/ipmitool/connection_spec.rb +58 -0
  69. data/spec/unit/ipmitool/errorcodes_spec.rb +34 -0
  70. data/spec/unit/ipmitool/fru_spec.rb +77 -0
  71. data/spec/unit/ipmitool/lan_spec.rb +93 -0
  72. data/spec/unit/ipmitool/sensors_spec.rb +95 -0
  73. data/spec/unit/rubyipmi_spec.rb +31 -0
  74. data/spec/vagrant +27 -0
  75. data/spec/vagrant.pub +1 -0
  76. metadata +157 -106
  77. data/.document +0 -5
  78. data/.rspec +0 -1
  79. data/Gemfile.lock +0 -33
  80. data/spec/bmc_spec.rb +0 -46
  81. data/spec/chassis_spec.rb +0 -26
  82. data/spec/connection_spec.rb +0 -31
  83. data/spec/power_spec.rb +0 -42
@@ -0,0 +1,19 @@
1
+ #
2
+ # Section Lan_Conf Comments
3
+ #
4
+ # In the Lan_Conf section, typical networking configuration is setup. Most users
5
+ # will choose to set "Static" for the "IP_Address_Source" and set the
6
+ # appropriate "IP_Address", "MAC_Address", "Subnet_Mask", etc. for the machine.
7
+ #
8
+ Section Lan_Conf
9
+ ## Possible values: Unspecified/Static/Use_DHCP/Use_BIOS/Use_Others
10
+ IP_Address_Source Use_DHCP
11
+ ## Give valid IP address
12
+ IP_Address 192.168.1.24
13
+ ## Give valid MAC address
14
+ MAC_Address 00:17:A4:49:AB:70
15
+ ## Give valid Subnet Mask
16
+ Subnet_Mask 255.255.255.0
17
+ ## Give valid IP address
18
+ Default_Gateway_IP_Address 192.168.1.1
19
+ EndSection
@@ -0,0 +1,32 @@
1
+ Device ID : 17
2
+ Device Revision : 1
3
+ Device SDRs : supported
4
+ Firmware Revision : 2.09
5
+ Device Available : yes (normal operation)
6
+ IPMI Version : 2.0
7
+ Sensor Device : supported
8
+ SDR Repository Device : supported
9
+ SEL Device : supported
10
+ FRU Inventory Device : supported
11
+ IPMB Event Receiver : unsupported
12
+ IPMB Event Generator : unsupported
13
+ Bridge : unsupported
14
+ Chassis Device : unsupported
15
+ Manufacturer ID : Hewlett-Packard (11)
16
+ Product ID : 8192
17
+
18
+ Channel Information
19
+
20
+ Channel Number : 2
21
+ Medium Type : 802.3 LAN
22
+ Protocol Type : IPMB-1.0
23
+ Active Session Count : 0
24
+ Session Support : multi-session
25
+ Vendor ID : Intelligent Platform Management Interface forum (7154)
26
+
27
+ Channel Number : 7
28
+ Medium Type : OEM
29
+ Protocol Type : KCS
30
+ Active Session Count : 0
31
+ Session Support : session-less
32
+ Vendor ID : Intelligent Platform Management Interface forum (7154)
@@ -0,0 +1,3 @@
1
+ authentication type unavailable for attempted privilege level
2
+ RuntimeError: /usr/local/sbin/bmc-info: authentication type unavailable for attempted privilege level
3
+ ipmi-fru: authentication type unavailable for attempted privilege level
@@ -0,0 +1,13 @@
1
+ FRU Inventory Device: Default FRU Device (ID 00h)
2
+
3
+ FRU Chassis Type: Rack Mount Chassis
4
+ FRU Chassis Part Number: 430027-005
5
+ FRU Chassis Serial Number: 2UX64201U2
6
+
7
+ FRU Board Manufacturing Date/Time: 01/01/96 - 00:00:00
8
+ FRU Board Manufacturer: HP
9
+ FRU Board Product Name: ProLiant DL380 G5
10
+ FRU Board Serial Number: 2UX64201U2
11
+ FRU Board Part Number: 430027-005
12
+
13
+ FRU Error: product info area checksum invalid
@@ -0,0 +1,29 @@
1
+ 1 | System Chassis 1 UID Light | OEM Reserved | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | 'OEM Event = 0000h'
2
+ 2 | System Chassis 2 Int. Health LED | OEM Reserved | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | 'OEM Event = 0000h'
3
+ 3 | System Chassis 3 Ext. Health LED | OEM Reserved | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | 'OEM Event = 0000h'
4
+ 4 | Power Supply 1 Power Supply 1 | Power Supply | Nominal | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | 'Presence detected'
5
+ 5 | Power Supply 2 Power Supply 2 | Power Supply | Nominal | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | 'Presence detected'
6
+ 6 | Power Supply 3 Power Supplies | Power Supply | Nominal | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | 'Fully Redundant'
7
+ 8 | Processor Module 1 VRM 1 | Power Unit | Nominal | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | 'Device Inserted/Device Present'
8
+ 9 | Processor Module 2 VRM 2 | Power Unit | Nominal | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | 'Device Inserted/Device Present'
9
+ 10 | System Internal Expansion Board 1 Fan 1 | Fan | Nominal | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | 'transition to Running'
10
+ 11 | System Internal Expansion Board 2 Fan 2 | Fan | Nominal | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | 'transition to Running'
11
+ 12 | System Internal Expansion Board 3 Fan 3 | Fan | Nominal | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | 'transition to Running'
12
+ 13 | System Internal Expansion Board 4 Fan 4 | Fan | Nominal | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | 'transition to Running'
13
+ 14 | Processor 1 Fan 5 | Fan | Nominal | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | 'transition to Running'
14
+ 15 | Processor 2 Fan 6 | Fan | Nominal | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | 'transition to Running'
15
+ 16 | Processor 3 Fan 7 | Fan | Nominal | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | 'transition to Running'
16
+ 17 | Processor 4 Fan 8 | Fan | Nominal | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | 'transition to Running'
17
+ 18 | Processor 5 Fan 9 | Fan | Nominal | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | 'transition to Running'
18
+ 19 | Processor 6 Fan 10 | Fan | Nominal | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | 'transition to Running'
19
+ 20 | Processor 7 Fan 11 | Fan | Nominal | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | 'transition to Running'
20
+ 21 | Processor 8 Fan 12 | Fan | Nominal | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | 'transition to Running'
21
+ 22 | System Board Fans | Fan | Nominal | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | 'Fully Redundant'
22
+ 24 | System Internal Expansion Board 5 Temp 1 | Temperature | Nominal | 42.00 | C | 0.00 | 0.00 | 0.00 | 67.00 | 70.00 | 75.00 | 'OK'
23
+ 25 | External Environment Temp 2 | Temperature | Nominal | 21.00 | C | 0.00 | 0.00 | 0.00 | 37.00 | 39.00 | 44.00 | 'OK'
24
+ 26 | Processor 10 Temp 3 | Temperature | Nominal | 35.00 | C | 0.00 | 0.00 | 0.00 | 68.00 | 127.00 | 127.00 | 'OK'
25
+ 27 | Processor 11 Temp 4 | Temperature | Nominal | 35.00 | C | 0.00 | 0.00 | 0.00 | 68.00 | 127.00 | 127.00 | 'OK'
26
+ 28 | Power Unit Temp 5 | Temperature | Nominal | 49.00 | C | 0.00 | 0.00 | 0.00 | 74.00 | 77.00 | 82.00 | 'OK'
27
+ 29 | Processor 12 Temp 6 | Temperature | Nominal | 35.00 | C | 0.00 | 0.00 | 0.00 | 68.00 | 127.00 | 127.00 | 'OK'
28
+ 30 | Processor 13 Temp 7 | Temperature | Nominal | 35.00 | C | 0.00 | 0.00 | 0.00 | 68.00 | 127.00 | 127.00 | 'OK'
29
+ 31 | System Board Power Meter | Current | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | 'Device Enabled'
@@ -0,0 +1,20 @@
1
+ Device ID : 17
2
+ Device Revision : 1
3
+ Firmware Revision : 2.9
4
+ IPMI Version : 2.0
5
+ Manufacturer ID : 11
6
+ Manufacturer Name : Hewlett-Packard
7
+ Product ID : 8192 (0x2000)
8
+ Product Name : Unknown (0x2000)
9
+ Device Available : yes
10
+ Provides Device SDRs : yes
11
+ Additional Device Support :
12
+ Sensor Device
13
+ SDR Repository Device
14
+ SEL Device
15
+ FRU Inventory Device
16
+ Aux Firmware Rev Info :
17
+ 0x00
18
+ 0x00
19
+ 0x00
20
+ 0x30
@@ -0,0 +1,10 @@
1
+ Authentication type NONE not supported
2
+ Authentication type NONE not supported
3
+ Error: Unable to establish LAN session
4
+ Get Device ID command failed
5
+ Unable to open SDR for reading
6
+
7
+ Authentication type NONE not supported
8
+ Authentication type NONE not supported
9
+ Error: Unable to establish LAN session
10
+ Get Device ID command failed
@@ -0,0 +1,96 @@
1
+ FRU Device Description : Builtin FRU Device (ID 0)
2
+ Chassis Type : -12 V
3
+ Chassis Serial : USE238F06P
4
+ Board Mfg Date : Sun Dec 31 23:00:00 1995
5
+ Board Mfg : HP
6
+ Board Product : ProLiant SL230s Gen8
7
+ Board Serial : USE238F0D0
8
+ Board Part Number : 650047-B21
9
+ Product Manufacturer : HP
10
+ Product Name : ProLiant SL230s Gen8
11
+ Product Part Number : 650047-B21
12
+ Product Serial : USE238F0D0
13
+ Product Asset Tag : 000015B90F82
14
+
15
+ FRU Device Description : CPU 1 DIMM 1 (ID 110)
16
+ Memory Size : 680 MB
17
+ Memory Type : Unknown (0x0B)
18
+ Voltage Intf : Unknown (0x0B)
19
+ Error Detect/Cor : Unknown (0x08)
20
+ Manufacturer : Unknown (0x00)
21
+ Serial Number : 00000000
22
+
23
+ FRU Device Description : CPU 1 DIMM 3 (ID 112)
24
+ Memory Size : 680 MB
25
+ Memory Type : Unknown (0x0B)
26
+ Voltage Intf : Unknown (0x0B)
27
+ Error Detect/Cor : Unknown (0x08)
28
+ Manufacturer : Unknown (0x00)
29
+ Serial Number : 00000000
30
+
31
+ FRU Device Description : CPU 1 DIMM 6 (ID 115)
32
+ Memory Size : 680 MB
33
+ Memory Type : Unknown (0x0B)
34
+ Voltage Intf : Unknown (0x0B)
35
+ Error Detect/Cor : Unknown (0x08)
36
+ Manufacturer : Unknown (0x00)
37
+ Serial Number : 00000000
38
+
39
+ FRU Device Description : CPU 1 DIMM 8 (ID 117)
40
+ Memory Size : 680 MB
41
+ Memory Type : Unknown (0x0B)
42
+ Voltage Intf : Unknown (0x0B)
43
+ Error Detect/Cor : Unknown (0x08)
44
+ Manufacturer : Unknown (0x00)
45
+ Serial Number : 00000000
46
+
47
+ FRU Device Description : CPU 2 DIMM 1 (ID 118)
48
+ Memory Size : 680 MB
49
+ Memory Type : Unknown (0x0B)
50
+ Voltage Intf : Unknown (0x0B)
51
+ Error Detect/Cor : Unknown (0x08)
52
+ Manufacturer : Unknown (0x00)
53
+ Serial Number : 00000000
54
+
55
+ FRU Device Description : CPU 2 DIMM 3 (ID 120)
56
+ Memory Size : 680 MB
57
+ Memory Type : Unknown (0x0B)
58
+ Voltage Intf : Unknown (0x0B)
59
+ Error Detect/Cor : Unknown (0x08)
60
+ Manufacturer : Unknown (0x00)
61
+ Serial Number : 00000000
62
+
63
+ FRU Device Description : CPU 2 DIMM 6 (ID 123)
64
+ Memory Size : 680 MB
65
+ Memory Type : Unknown (0x0B)
66
+ Voltage Intf : Unknown (0x0B)
67
+ Error Detect/Cor : Unknown (0x08)
68
+ Manufacturer : Unknown (0x00)
69
+ Serial Number : 00000000
70
+
71
+ FRU Device Description : CPU 2 DIMM 8 (ID 125)
72
+ Memory Size : 680 MB
73
+ Memory Type : Unknown (0x0B)
74
+ Voltage Intf : Unknown (0x0B)
75
+ Error Detect/Cor : Unknown (0x08)
76
+ Manufacturer : Unknown (0x00)
77
+ Serial Number : 00000000
78
+
79
+ FRU Device Description : CPU 1 (ID 16)
80
+ Product Manufacturer : Intel
81
+ Product Name : Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz
82
+
83
+ FRU Device Description : CPU 2 (ID 17)
84
+ Product Manufacturer : Intel
85
+ Product Name : Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz
86
+
87
+ FRU Device Description : BMC CONTROLLER (ID 238)
88
+ Product Manufacturer : HP
89
+ Product Name : BMC CONTROLLER
90
+ Product Part Number : iLO 4
91
+
92
+ FRU Device Description : MB BIOS (ID 239)
93
+ Product Manufacturer : HP
94
+ Product Name : SYSTEM BIOS
95
+ Product Part Number : P75
96
+ Product Version : 07/05/2012
@@ -0,0 +1,17 @@
1
+ Set in Progress : Set Complete
2
+ Auth Type Support :
3
+ Auth Type Enable : Callback :
4
+ : User : NONE MD2 MD5 PASSWORD OEM
5
+ : Operator : NONE MD2 MD5
6
+ : Admin : MD2 MD5
7
+ : OEM :
8
+ IP Address Source : DHCP Address
9
+ IP Address : 192.168.1.41
10
+ Subnet Mask : 255.255.255.0
11
+ MAC Address : 00:17:a4:49:ab:70
12
+ BMC ARP Control : ARP Responses Enabled, Gratuitous ARP Disabled
13
+ Gratituous ARP Intrvl : 0.0 seconds
14
+ Default Gateway IP : 192.168.1.1
15
+ 802.1q VLAN ID : Disabled
16
+ 802.1q VLAN Priority : 0
17
+ Cipher Suite Priv Max : Not Available
@@ -0,0 +1,105 @@
1
+ FCB FAN1 | 5600.000 | RPM | ok | na | 1500.000 | na | 25500.000 | 25500.000 | 25500.000
2
+ FCB FAN2 | 5600.000 | RPM | ok | na | 1500.000 | na | 25500.000 | 25500.000 | 25500.000
3
+ FCB FAN3 | 5600.000 | RPM | ok | na | 1500.000 | na | 25500.000 | 25500.000 | 25500.000
4
+ FCB FAN4 | 5600.000 | RPM | ok | na | 1500.000 | na | 25500.000 | 25500.000 | 25500.000
5
+ PEF Action | 0x0 | discrete | 0x1080| na | na | na | na | na | na
6
+ WatchDog2 | 0x0 | discrete | 0x0080| na | na | na | na | na | na
7
+ AC Pwr On | 0x0 | discrete | 0x0080| na | na | na | na | na | na
8
+ ACPI Pwr State | 0x0 | discrete | 0x0088| na | na | na | na | na | na
9
+ FCB Ambient1 | 21.000 | degrees C | ok | na | na | na | na | 50.000 | 255.000
10
+ FCB Ambient2 | 0.000 | degrees C | ok | na | na | na | na | 50.000 | 255.000
11
+ CPU1Status | 0x0 | discrete | 0x0080| na | na | na | na | na | na
12
+ CPU2Status | 0x0 | discrete | 0x0080| na | na | na | na | na | na
13
+ PS 12V | 12.152 | Volts | ok | 10.602 | 10.850 | 11.160 | 12.834 | 13.144 | 13.392
14
+ PS 5V | 5.018 | Volts | ok | 4.394 | 4.524 | 4.654 | 5.330 | 5.486 | 5.590
15
+ MLB TEMP 2 | 47.000 | degrees C | ok | na | na | na | 85.000 | 87.000 | 90.000
16
+ MLB TEMP 3 | 43.000 | degrees C | ok | na | na | na | 85.000 | 87.000 | 90.000
17
+ Processor 1 Temp | 23.000 | degrees C | ok | na | na | na | 81.000 | 85.000 | 90.000
18
+ MLB TEMP 1 | 45.000 | degrees C | ok | na | na | na | 85.000 | 87.000 | 90.000
19
+ Processor 2 Temp | 24.000 | degrees C | ok | na | na | na | 81.000 | 85.000 | 90.000
20
+ STBY 3.3V | 3.354 | Volts | ok | 2.907 | 2.976 | 3.079 | 3.526 | 3.629 | 3.681
21
+ PS Current | 14.000 | Amps | ok | na | na | na | 255.000 | 255.000 | 255.000
22
+ SEL Fullness | 0x0 | discrete | 0x0080| na | na | na | na | na | na
23
+ PCI BUS | 0x0 | discrete | 0x0080| na | na | na | na | na | na
24
+ Memory | 0x0 | discrete | 0x0080| na | na | na | na | na | na
25
+ VCORE 1 | 1.029 | Volts | ok | na | na | na | 2.117 | 2.117 | 2.117
26
+ VCORE 2 | 0.893 | Volts | ok | na | na | na | 2.958 | 2.958 | 2.958
27
+ NM Capability | na | discrete | na | na | na | na | na | na | na
28
+ Security | 0x0 | discrete | 0x0080| na | na | na | na | na | na
29
+ PSU 1 AC Status | 0x0 | discrete | 0x0080| na | na | na | na | na | na
30
+ PSU 2 AC Status | 0x0 | discrete | 0x0080| na | na | na | na | na | na
31
+ PSU 1 Present | 0x0 | discrete | 0x0180| na | na | na | na | na | na
32
+ PSU 2 Present | 0x0 | discrete | 0x0180| na | na | na | na | na | na
33
+ PSU 2 POUT | 21.000 | Amps | ok | na | na | na | na | na | na
34
+ PSU 1 POUT | 22.000 | Amps | ok | na | na | na | na | na | na
35
+ UID Light | 0x0 | discrete | 0x0080| na | na | na | na | na | na
36
+ Int. Health LED | 0x0 | discrete | 0x0080| na | na | na | na | na | na
37
+ Ext. Health LED | 0x0 | discrete | 0x0080| na | na | na | na | na | na
38
+ Power Supply 1 | 0x0 | discrete | 0x0180| na | na | na | na | na | na
39
+ Power Supply 2 | 0x0 | discrete | 0x0180| na | na | na | na | na | na
40
+ Power Supplies | 0x0 | discrete | 0x0180| na | na | na | na | na | na
41
+ VRM 1 | 0x0 | discrete | 0x0280| na | na | na | na | na | na
42
+ VRM 2 | 0x0 | discrete | 0x0280| na | na | na | na | na | na
43
+ Fan 1 | 45.080 | percent | ok | na | na | na | na | na | na
44
+ Fan 2 | 45.080 | percent | ok | na | na | na | na | na | na
45
+ Fan 3 | 45.080 | percent | ok | na | na | na | na | na | na
46
+ Fan 4 | 45.080 | percent | ok | na | na | na | na | na | na
47
+ Fan 5 | 41.944 | percent | ok | na | na | na | na | na | na
48
+ Fan 6 | 41.944 | percent | ok | na | na | na | na | na | na
49
+ Fan 7 | 36.064 | percent | ok | na | na | na | na | na | na
50
+ Fan 8 | 36.064 | percent | ok | na | na | na | na | na | na
51
+ Fan 9 | 36.064 | percent | ok | na | na | na | na | na | na
52
+ Fan 10 | 36.064 | percent | ok | na | na | na | na | na | na
53
+ Fan 11 | 36.064 | percent | ok | na | na | na | na | na | na
54
+ Fan 12 | 36.064 | percent | ok | na | na | na | na | na | na
55
+ Fans | 0x0 | discrete | 0x0180| na | na | na | na | na | na
56
+ Temp 1 | 37.000 | degrees C | ok | 0.000 | 0.000 | 0.000 | 67.000 | 70.000 | 75.000
57
+ Temp 2 | 20.000 | degrees C | ok | 0.000 | 0.000 | 0.000 | 37.000 | 39.000 | 44.000
58
+ Temp 3 | 40.000 | degrees C | ok | 0.000 | 0.000 | 0.000 | 68.000 | 127.000 | 127.000
59
+ Temp 4 | 40.000 | degrees C | ok | 0.000 | 0.000 | 0.000 | 68.000 | 127.000 | 127.000
60
+ Temp 5 | 49.000 | degrees C | ok | 0.000 | 0.000 | 0.000 | 74.000 | 77.000 | 82.000
61
+ Temp 6 | 40.000 | degrees C | ok | 0.000 | 0.000 | 0.000 | 68.000 | 127.000 | 127.000
62
+ Temp 7 | 40.000 | degrees C | ok | 0.000 | 0.000 | 0.000 | 68.000 | 127.000 | 127.000
63
+ Power Meter | 374 | Watts | ok | na | na | na | na | na | na
64
+ UID Light | 0x0 | discrete | 0x0080| na | na | na | na | na | na
65
+ Sys. Health LED | 0x0 | discrete | 0x0080| na | na | na | na | na | na
66
+ Memory | 0x0 | discrete | 0x4080| na | na | na | na | na | na
67
+ Power Supply 1 | 1200.000 | Watts | nc | na | na | na | na | na | na
68
+ Power Supply 2 | 1200.000 | Watts | nc | na | na | na | na | na | na
69
+ Power Supply 3 | 1200.000 | Watts | nc | na | na | na | na | na | na
70
+ Power Supply 4 | 1200.000 | Watts | nc | na | na | na | na | na | na
71
+ Fan 3 | 46.648 | unspecified | nc | na | na | na | na | na | na
72
+ Fan 4 | 46.648 | unspecified | nc | na | na | na | na | na | na
73
+ 01-Inlet Ambient | 19.000 | degrees C | ok | na | na | na | na | 42.000 | 46.000
74
+ 02-CPU 1 | 40.000 | degrees C | ok | na | na | na | na | 70.000 | 0.000
75
+ 03-CPU 2 | 40.000 | degrees C | ok | na | na | na | na | 70.000 | 0.000
76
+ 04-P1 DIMM 1-4 | 27.000 | degrees C | ok | na | na | na | na | 87.000 | 0.000
77
+ 05-P1 DIMM 5-8 | 25.000 | degrees C | ok | na | na | na | na | 87.000 | 0.000
78
+ 06-P2 DIMM 1-4 | 26.000 | degrees C | ok | na | na | na | na | 87.000 | 0.000
79
+ 07-P2 DIMM 5-8 | 27.000 | degrees C | ok | na | na | na | na | 87.000 | 0.000
80
+ 08-HD Max | 35.000 | degrees C | ok | na | na | na | na | 60.000 | 0.000
81
+ 09-Chipset | 44.000 | degrees C | ok | na | na | na | na | 105.000 | 0.000
82
+ 10-VR P1 | 34.000 | degrees C | ok | na | na | na | na | 115.000 | 120.000
83
+ 11-VR P2 | 35.000 | degrees C | ok | na | na | na | na | 115.000 | 120.000
84
+ 12-VR P1 Zone | 27.000 | degrees C | ok | na | na | na | na | 90.000 | 95.000
85
+ 13-VR P2 Zone | 27.000 | degrees C | ok | na | na | na | na | 90.000 | 95.000
86
+ 14-VR P1 Mem | 31.000 | degrees C | ok | na | na | na | na | 115.000 | 120.000
87
+ 15-VR P1 Mem | 29.000 | degrees C | ok | na | na | na | na | 115.000 | 120.000
88
+ 16-VR P2 Mem | 32.000 | degrees C | ok | na | na | na | na | 115.000 | 120.000
89
+ 17-VR P2 Mem | 29.000 | degrees C | ok | na | na | na | na | 115.000 | 120.000
90
+ 18-VR P1Mem Zone | 30.000 | degrees C | ok | na | na | na | na | 90.000 | 95.000
91
+ 19-VR P2Mem Zone | 31.000 | degrees C | ok | na | na | na | na | 90.000 | 95.000
92
+ 20-SuperCap Max | 21.000 | degrees C | ok | na | na | na | na | 65.000 | 0.000
93
+ 21-HD Controller | 40.000 | degrees C | ok | na | na | na | na | 100.000 | 0.000
94
+ 22-LOM | na | degrees C | na | na | na | na | na | 100.000 | 0.000
95
+ 23-LOM Card | na | degrees C | na | na | na | na | na | 100.000 | 0.000
96
+ 24-PCI 1 | na | degrees C | na | na | na | na | na | 100.000 | 0.000
97
+ 25-PCI 2 Zone | 25.000 | degrees C | ok | na | na | na | na | 65.000 | 70.000
98
+ 26-PCI 2 | 50.000 | degrees C | ok | na | na | na | na | 100.000 | 0.000
99
+ 42-P/S Board | 24.000 | degrees C | ok | na | na | na | na | 80.000 | 85.000
100
+ 43-Sys Exhaust | 29.000 | degrees C | ok | na | na | na | na | 90.000 | 95.000
101
+ 44-HD zone | 29.000 | degrees C | ok | na | na | na | na | 65.000 | 0.000
102
+ C3 P2I Bay 1 | 0.000 | unspecified | nc | na | na | na | na | na | na
103
+ C3 P2I Bay 2 | 0.000 | unspecified | nc | na | na | na | na | na | na
104
+ C3 P2I Bay 3 | 0.000 | unspecified | nc | na | na | na | na | na | na
105
+ C3 P2I Bay 4 | 0.000 | unspecified | nc | na | na | na | na | na | na
@@ -0,0 +1,49 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
+ describe "Bmc" do
3
+
4
+ before :each do
5
+ user ||= ENV["ipmiuser"] || "admin"
6
+ pass ||= ENV["ipmipass"] || "password"
7
+ host ||= ENV["ipmihost"] || "10.0.1.16"
8
+ provider ||= ENV["ipmiprovider"] || "ipmitool"
9
+ @conn = Rubyipmi.connect(user, pass, host, provider)
10
+
11
+ end
12
+
13
+ it "creates a bmc object" do
14
+ @conn.bmc.should_not be_nil
15
+
16
+ end
17
+
18
+ it "options should change after calling info" do
19
+ before = @conn.bmc.options.clone
20
+ info = @conn.bmc.info
21
+ after = @conn.bmc.options.clone
22
+ before.length.should be < after.length
23
+ end
24
+
25
+ it 'should retrun a max retry count' do
26
+ @conn.bmc.max_retry_count.should > 0
27
+ end
28
+
29
+ it "should reset the bmc device" do
30
+ @conn.bmc.reset('cold').should_not be_nil
31
+ end
32
+
33
+ it "should reset the bmc device warmly" do
34
+ @conn.bmc.reset('warm').should_not be_nil
35
+ end
36
+
37
+ it "reset should fail when type is wrong" do
38
+ expect{@conn.bmc.reset('freezing')}.to raise_exception
39
+ end
40
+
41
+ it "is able to retrieve the bmc info" do
42
+ @conn.bmc.info.should_not be_nil
43
+ end
44
+
45
+ it "is able to retrieve the guid" do
46
+ @conn.bmc.guid.should_not be_nil
47
+ end
48
+
49
+ end
@@ -1,13 +1,13 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
1
+ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
2
 
3
3
  describe "Chassis Config" do
4
4
 
5
5
  before :each do
6
- user = ENV["ipmiuser"]
7
- pass = ENV["ipmipass"]
8
- host = ENV["ipmihost"]
9
- provider = ENV["ipmiprovider"]
10
- @conn = Rubyipmi.connect(user, pass, host, provider)
6
+ user ||= ENV["ipmiuser"] || "admin"
7
+ pass ||= ENV["ipmipass"] || "password"
8
+ host ||= ENV["ipmihost"] || "10.0.1.16"
9
+ provider ||= ENV["ipmiprovider"] || "ipmitool"
10
+ @conn = Rubyipmi.connect(user, pass, host, provider)
11
11
 
12
12
  end
13
13
 
@@ -0,0 +1,26 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
+
3
+ describe "Chassis" do
4
+
5
+ before :each do
6
+ user ||= ENV["ipmiuser"] || "admin"
7
+ pass ||= ENV["ipmipass"] || "password"
8
+ host ||= ENV["ipmihost"] || "10.0.1.16"
9
+ provider ||= ENV["ipmiprovider"] || "ipmitool"
10
+ @conn = Rubyipmi.connect(user, pass, host, provider)
11
+
12
+ end
13
+
14
+ it "test to turn uid light on for 5 seconds" do
15
+ value = @conn.chassis.identify(true, 5)
16
+ sleep(6)
17
+ value.should == true
18
+ end
19
+
20
+ it "test to turn uid light on then off" do
21
+ @conn.chassis.identify(true)
22
+ sleep(2)
23
+ @conn.chassis.identify(false).should == true
24
+ end
25
+
26
+ end