Skip to content

Instantly share code, notes, and snippets.

@fcharlier
Created March 20, 2014 11:52
Show Gist options
  • Save fcharlier/9662117 to your computer and use it in GitHub Desktop.
Save fcharlier/9662117 to your computer and use it in GitHub Desktop.
Commit: 1f0bb50fc283accf0d1819d332d13473955072cc
=============================================
/detect.py
Info: detect_hpa : No controllers detected.
Traceback (most recent call last):
File "./detect.py", line 411, in <module>
_main()
File "./detect.py", line 403, in _main
detect_megacli(hrdw)
File "./detect.py", line 102, in detect_megacli
info['PdType']))
KeyError: 'PdType'
=============================================
=============================================
megacli -adpCount
--------------------
Controller Count: 1.
Exit Code: 0x01
=============================================
megacli -EncInfo -a0
--------------------
Number of enclosures on adapter 0 -- 2
Enclosure 0:
Device ID : 6
Number of Slots : 12
Number of Power Supplies : 2
Number of Fans : 3
Number of Temperature Sensors : 1
Number of Alarms : 1
Number of SIM Modules : 0
Number of Physical Drives : 2
Status : Normal
Position : 1
Connector Name : Port 0 - 3
Enclosure type : SES
FRU Part Number : N/A
Enclosure Serial Number : N/A
ESM Serial Number : N/A
Enclosure Zoning Mode : N/A
Partner Device Id : 65535
Inquiry data :
Vendor Identification : LSI CORP
Product Identification : SAS2X28
Product Revision Level : 0717
Vendor Specific : x36-55.7.23.0
Number of Voltage Sensors :2
Voltage Sensor :0
Voltage Sensor Status :OK
Voltage Value :5070 milli volts
Voltage Sensor :1
Voltage Sensor Status :OK
Voltage Value :12020 milli volts
Number of Power Supplies : 2
Power Supply : 0
Power Supply Status : Not Installed
Power Supply : 1
Power Supply Status : Not Installed
Number of Fans : 3
Fan : 0
Fan Speed :Low Speed
Fan Status : OK
Fan : 1
Fan Speed :Low Speed
Fan Status : OK
Fan : 2
Fan Speed :Low Speed
Fan Status : OK
Number of Temperature Sensors : 1
Temp Sensor : 0
Temperature : 27
Temperature Sensor Status : OK
Number of Chassis : 1
Chassis : 0
Chassis Status : OK
Enclosure 1:
Device ID : 252
Number of Slots : 8
Number of Power Supplies : 0
Number of Fans : 0
Number of Temperature Sensors : 0
Number of Alarms : 0
Number of SIM Modules : 1
Number of Physical Drives : 0
Status : Normal
Position : 1
Connector Name : Unavailable
Enclosure type : SGPIO
FRU Part Number : N/A
Enclosure Serial Number : N/A
ESM Serial Number : N/A
Enclosure Zoning Mode : N/A
Partner Device Id : Unavailable
Inquiry data :
Vendor Identification : LSI
Product Identification : SGPIO
Product Revision Level : N/A
Vendor Specific :
Exit Code: 0x00
=============================================
megacli -PDGetNum -a0
--------------------
Number of Physical Drives on Adapter 0: 2
Exit Code: 0x02
=============================================
megacli -pdinfo -PhysDrv[252:0] -a0
--------------------
Adapter 0: Device at Enclosure - 252, Slot - 0 is not found.
Exit Code: 0x00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment