firehol/netdata

View on GitHub
src/go/plugin/go.d/modules/storcli/testdata/megaraid-controllers-info.json

Summary

Maintainability
Test Coverage
{
  "Controllers": [
    {
      "Command Status": {
        "CLI Version": "007.2807.0000.0000 Dec 22, 2023",
        "Operating system": "Linux 6.5.13-1-pve",
        "Controller": 0,
        "Status": "Success",
        "Description": "None"
      },
      "Response Data": {
        "Basics": {
          "Controller": 0,
          "Model": "ServeRAID M5015 SAS/SATA Controller",
          "Serial Number": "SV04616189",
          "Current Controller Date/Time": "04/17/2024, 18:28:30",
          "Current System Date/time": "04/17/2024, 18:30:05",
          "SAS Address": "500605b002e04f10",
          "PCI Address": "00:0a:00:00",
          "Mfg Date": "11/11/10",
          "Rework Date": "00/00/00",
          "Revision No": ""
        },
        "Version": {
          "Firmware Package Build": "12.15.0-0239",
          "Firmware Version": "2.130.403-4660",
          "Bios Version": "3.30.02.2_4.16.08.00_0x06060A05",
          "Preboot CLI Version": "04.04-020:#%00009",
          "WebBIOS Version": "6.0-54-e_50-Rel",
          "NVDATA Version": "2.09.03-0058",
          "Boot Block Version": "2.02.00.00-0000",
          "Bootloader Version": "09.250.01.219",
          "Driver Name": "megaraid_sas",
          "Driver Version": "07.725.01.00-rc1"
        },
        "Bus": {
          "Vendor Id": 4096,
          "Device Id": 121,
          "SubVendor Id": 4116,
          "SubDevice Id": 946,
          "Host Interface": "PCI-E",
          "Device Interface": "SAS-6G",
          "Bus Number": 10,
          "Device Number": 0,
          "Function Number": 0,
          "Domain ID": 0
        },
        "Pending Images in Flash": {
          "Image name": "No pending images"
        },
        "Status": {
          "Controller Status": "Optimal",
          "Memory Correctable Errors": 0,
          "Memory Uncorrectable Errors": 0,
          "ECC Bucket Count": 0,
          "Any Offline VD Cache Preserved": "No",
          "BBU Status": 0,
          "PD Firmware Download in progress": "No",
          "Support PD Firmware Download": "Yes",
          "Lock Key Assigned": "No",
          "Failed to get lock key on bootup": "No",
          "Lock key has not been backed up": "No",
          "Bios was not detected during boot": "No",
          "Controller must be rebooted to complete security operation": "No",
          "A rollback operation is in progress": "No",
          "At least one PFK exists in NVRAM": "No",
          "SSC Policy is WB": "No",
          "Controller has booted into safe mode": "No",
          "Controller shutdown required": "No",
          "Controller has booted into certificate provision mode": "No"
        },
        "Supported Adapter Operations": {
          "Rebuild Rate": "Yes",
          "CC Rate": "Yes",
          "BGI Rate ": "Yes",
          "Reconstruct Rate": "Yes",
          "Patrol Read Rate": "Yes",
          "Alarm Control": "Yes",
          "Cluster Support": "No",
          "BBU": "Yes",
          "Spanning": "Yes",
          "Dedicated Hot Spare": "Yes",
          "Revertible Hot Spares": "Yes",
          "Foreign Config Import": "Yes",
          "Self Diagnostic": "Yes",
          "Allow Mixed Redundancy on Array": "No",
          "Global Hot Spares": "Yes",
          "Deny SCSI Passthrough": "No",
          "Deny SMP Passthrough": "No",
          "Deny STP Passthrough": "No",
          "Support more than 8 Phys": "Yes",
          "FW and Event Time in GMT": "No",
          "Support Enhanced Foreign Import": "Yes",
          "Support Enclosure Enumeration": "Yes",
          "Support Allowed Operations": "Yes",
          "Abort CC on Error": "Yes",
          "Support Multipath": "Yes",
          "Support Odd & Even Drive count in RAID1E": "No",
          "Support Security": "Yes",
          "Support Config Page Model": "Yes",
          "Support the OCE without adding drives": "Yes",
          "Support EKM": "Yes",
          "Snapshot Enabled": "Yes",
          "Support PFK": "No",
          "Support PI": "No",
          "Support Ld BBM Info": "No",
          "Support Shield State": "No",
          "Block SSD Write Disk Cache Change": "No",
          "Support Suspend Resume BG ops": "No",
          "Support Emergency Spares": "Yes",
          "Support Set Link Speed": "No",
          "Support Boot Time PFK Change": "No",
          "Support JBOD": "No",
          "Disable Online PFK Change": "No",
          "Support Perf Tuning": "No",
          "Support SSD PatrolRead": "Yes",
          "Real Time Scheduler": "Yes",
          "Support Reset Now": "Yes",
          "Support Emulated Drives": "No",
          "Headless Mode": "Yes",
          "Dedicated HotSpares Limited": "No",
          "Point In Time Progress": "No",
          "Extended LD": "No",
          "Support Uneven span ": "No",
          "Support Config Auto Balance": "No",
          "Support Maintenance Mode": "No",
          "Support Diagnostic results": "No",
          "Support Ext Enclosure": "No",
          "Support Sesmonitoring": "No",
          "Support SecurityonJBOD": "No",
          "Support ForceFlash": "No",
          "Support DisableImmediateIO": "Yes",
          "Support LargeIOSupport": "No",
          "Support DrvActivityLEDSetting": "Yes",
          "Support FlushWriteVerify": "No",
          "Support CPLDUpdate": "No",
          "Support ForceTo512e": "No",
          "Support discardCacheDuringLDDelete": "No",
          "Support JBOD Write cache": "No",
          "Support Large QD Support": "No",
          "Support Ctrl Info Extended": "No",
          "Support IButton less": "No",
          "Support AES Encryption Algorithm": "No",
          "Support Encrypted MFC": "No",
          "Support Snapdump": "No",
          "Support Force Personality Change": "No",
          "Support Dual Fw Image": "No",
          "Support PSOC Update": "No",
          "Support Secure Boot": "No",
          "Support Debug Queue": "No",
          "Support Least Latency Mode": "Yes",
          "Support OnDemand Snapdump": "No",
          "Support Clear Snapdump": "No",
          "Support PHY current speed": "No",
          "Support Lane current speed": "No",
          "Support NVMe Width": "No",
          "Support Lane DeviceType": "No",
          "Support Extended Drive performance Monitoring": "No",
          "Support NVMe Repair": "No",
          "Support Platform Security": "No",
          "Support None Mode Params": "No",
          "Support Extended Controller Property": "No",
          "Support Smart Poll Interval for DirectAttached": "No",
          "Support Write Journal Pinning": "No",
          "Support SMP Passthru with Port Number": "No",
          "Support SnapDump Preboot Trace Buffer Toggle": "No",
          "Support Parity Read Cache Bypass": "No",
          "Support NVMe Init Error Device ConnectorIndex": "No",
          "Support VolatileKey": "No",
          "Support PSOC Part Information": "No",
          "Support Slow array threshold calculation": "No",
          "Support PCIe Reference Clock override": "No",
          "Support PCIe PERST override": "No",
          "Support Drive FW Download Mask": "No",
          "Support Start of day PL log capture": "No",
          "Support Drive Unrecovered Medium Error Count": "No"
        },
        "Enterprise Key management": {
          "Capability": "Supported",
          "Boot Agent": "Not Available",
          "Configured": "No"
        },
        "Supported PD Operations": {
          "Force Online": "Yes",
          "Force Offline": "Yes",
          "Force Rebuild": "Yes",
          "Deny Force Failed": "No",
          "Deny Force Good/Bad": "No",
          "Deny Missing Replace": "No",
          "Deny Clear": "No",
          "Deny Locate": "No",
          "Support Power State": "No",
          "Set Power State For Cfg": "No",
          "Support T10 Power State": "No",
          "Support Temperature": "Yes",
          "NCQ": "No",
          "Support Max Rate SATA": "No",
          "Support Degraded Media": "No",
          "Support Parallel FW Update": "No",
          "Support Drive Crypto Erase": "No",
          "Support SSD Wear Gauge": "No",
          "Support Sanitize": "No",
          "Support Extended Sanitize": "No"
        },
        "Supported VD Operations": {
          "Read Policy": "Yes",
          "Write Policy": "Yes",
          "IO Policy": "Yes",
          "Access Policy": "Yes",
          "Disk Cache Policy": "Yes",
          "Reconstruction": "Yes",
          "Deny Locate": "No",
          "Deny CC": "No",
          "Allow Ctrl Encryption": "No",
          "Enable LDBBM": "No",
          "Support FastPath": "Yes",
          "Performance Metrics": "Yes",
          "Power Savings": "No",
          "Support Powersave Max With Cache": "No",
          "Support Breakmirror": "No",
          "Support SSC WriteBack": "Yes",
          "Support SSC Association": "Yes",
          "Support VD Hide": "No",
          "Support VD Cachebypass": "No",
          "Support VD discardCacheDuringLDDelete": "No",
          "Support VD Scsi Unmap": "No"
        },
        "HwCfg": {
          "ChipRevision": " B2",
          "BatteryFRU": "N/A",
          "Front End Port Count": 0,
          "Backend Port Count": 8,
          "BBU": "Present",
          "Alarm": "Disable",
          "Serial Debugger": "Present",
          "NVRAM Size": "32KB",
          "Flash Size": "8MB",
          "On Board Memory Size": "512MB",
          "CacheVault Flash Size": "NA",
          "TPM": "Absent",
          "Upgrade Key": "Present",
          "On Board Expander": "Absent",
          "Temperature Sensor for ROC": "Absent",
          "Temperature Sensor for Controller": "Absent",
          "Upgradable CPLD": "Absent",
          "Upgradable PSOC": "Absent",
          "Current Size of CacheCade (GB)": 0,
          "Current Size of FW Cache (MB)": 349
        },
        "Policies": {
          "Policies Table": [
            {
              "Policy": "Predictive Fail Poll Interval",
              "Current": "300 sec",
              "Default": ""
            },
            {
              "Policy": "Interrupt Throttle Active Count",
              "Current": "16",
              "Default": ""
            },
            {
              "Policy": "Interrupt Throttle Completion",
              "Current": "50 us",
              "Default": ""
            },
            {
              "Policy": "Rebuild Rate",
              "Current": "30 %",
              "Default": "30%"
            },
            {
              "Policy": "PR Rate",
              "Current": "30 %",
              "Default": "30%"
            },
            {
              "Policy": "BGI Rate",
              "Current": "30 %",
              "Default": "30%"
            },
            {
              "Policy": "Check Consistency Rate",
              "Current": "30 %",
              "Default": "30%"
            },
            {
              "Policy": "Reconstruction Rate",
              "Current": "30 %",
              "Default": "30%"
            },
            {
              "Policy": "Cache Flush Interval",
              "Current": "4s",
              "Default": ""
            }
          ],
          "Flush Time(Default)": "4s",
          "Drive Coercion Mode": "1GB",
          "Auto Rebuild": "On",
          "Battery Warning": "On",
          "ECC Bucket Size": 15,
          "ECC Bucket Leak Rate (hrs)": 24,
          "Restore Hot Spare on Insertion": "Off",
          "Expose Enclosure Devices": "On",
          "Maintain PD Fail History": "On",
          "Reorder Host Requests": "On",
          "Auto detect BackPlane": "SGPIO/i2c SEP",
          "Load Balance Mode": "Auto",
          "Security Key Assigned": "Off",
          "Disable Online Controller Reset": "Off",
          "Use drive activity for locate": "Off"
        },
        "Boot": {
          "BIOS Enumerate VDs": 1,
          "Stop BIOS on Error": "On",
          "Delay during POST": 4,
          "Spin Down Mode": "None",
          "Enable Ctrl-R": "No",
          "Enable Web BIOS": "Yes",
          "Enable PreBoot CLI": "Yes",
          "Enable BIOS": "Yes",
          "Max Drives to Spinup at One Time": 4,
          "Maximum number of direct attached drives to spin up in 1 min": 20,
          "Delay Among Spinup Groups (sec)": 12,
          "Allow Boot with Preserved Cache": "Off"
        },
        "High Availability": {
          "Topology Type": "None",
          "Cluster Permitted": "No",
          "Cluster Active": "No"
        },
        "Defaults": {
          "Phy Polarity": 0,
          "Phy PolaritySplit": 0,
          "Strip Size": "128 KB",
          "Write Policy": "WB",
          "Read Policy": "No Read Ahead",
          "Cache When BBU Bad": "Off",
          "Cached IO": "Off",
          "VD PowerSave Policy": "Controller Defined",
          "Default spin down time (mins)": 30,
          "Coercion Mode": "1 GB",
          "ZCR Config": "Unknown",
          "Max Chained Enclosures": 16,
          "Direct PD Mapping": "No",
          "Restore Hot Spare on Insertion": "No",
          "Expose Enclosure Devices": "Yes",
          "Maintain PD Fail History": "Yes",
          "Zero Based Enclosure Enumeration": "No",
          "Disable Puncturing": "Yes",
          "EnableLDBBM": "No",
          "DisableHII": "No",
          "Un-Certified Hard Disk Drives": "Allow",
          "SMART Mode": "Mode 6",
          "Enable LED Header": "No",
          "LED Show Drive Activity": "No",
          "Dirty LED Shows Drive Activity": "No",
          "EnableCrashDump": "No",
          "Disable Online Controller Reset": "No",
          "Treat Single span R1E as R10": "No",
          "Power Saving option": "Enabled",
          "TTY Log In Flash": "No",
          "Auto Enhanced Import": "No",
          "BreakMirror RAID Support": "No",
          "Disable Join Mirror": "No",
          "Enable Shield State": "No",
          "Time taken to detect CME": "60 sec"
        },
        "Capabilities": {
          "Supported Drives": "SAS, SATA",
          "RAID Level Supported": "RAID0, RAID1(2 or more drives), RAID5, RAID6, RAID00, RAID10(2 or more drives per span), RAID50, RAID60",
          "Enable JBOD": "No",
          "Mix in Enclosure": "Allowed",
          "Mix of SAS/SATA of HDD type in VD": "Not Allowed",
          "Mix of SAS/SATA of SSD type in VD": "Not Allowed",
          "Mix of SSD/HDD in VD": "Not Allowed",
          "SAS Disable": "No",
          "Max Arms Per VD": 32,
          "Max Spans Per VD": 8,
          "Max Arrays": 128,
          "Max VD per array": 16,
          "Max Number of VDs": 64,
          "Max Parallel Commands": 1008,
          "Max SGE Count": 60,
          "Max Data Transfer Size": "8192 sectors",
          "Max Strips PerIO": 42,
          "Max Configurable CacheCade Size(GB)": 512,
          "Max Transportable DGs": 0,
          "Enable Snapdump": "No",
          "Enable SCSI Unmap": "Yes",
          "Read cache bypass enabled for Parity RAID LDs": "No",
          "FDE Drive Mix Support": "No",
          "Min Strip Size": "8 KB",
          "Max Strip Size": "1.000 MB"
        },
        "Scheduled Tasks": {
          "Consistency Check Reoccurrence": "168 hrs",
          "Next Consistency check launch": "04/20/2024, 03:00:00",
          "Patrol Read Reoccurrence": "168 hrs",
          "Next Patrol Read launch": "04/20/2024, 03:00:00",
          "Battery learn Reoccurrence": "672 hrs",
          "Next Battery Learn": "04/18/2024, 18:32:56",
          "OEMID": "Lenovo"
        },
        "Security Protocol properties": {
          "Security Protocol": "None"
        },
        "Drive Groups": 1,
        "TOPOLOGY": [
          {
            "DG": 0,
            "Arr": "-",
            "Row": "-",
            "EID:Slot": "-",
            "DID": "-",
            "Type": "RAID6",
            "State": "Optl",
            "BT": "N",
            "Size": "58.207 TB",
            "PDC": "dsbl",
            "PI": "N",
            "SED": "N",
            "DS3": "none",
            "FSpace": "N",
            "TR": "N"
          },
          {
            "DG": 0,
            "Arr": 0,
            "Row": "-",
            "EID:Slot": "-",
            "DID": "-",
            "Type": "RAID6",
            "State": "Optl",
            "BT": "N",
            "Size": "58.207 TB",
            "PDC": "dsbl",
            "PI": "N",
            "SED": "N",
            "DS3": "none",
            "FSpace": "N",
            "TR": "N"
          },
          {
            "DG": 0,
            "Arr": 0,
            "Row": 0,
            "EID:Slot": "252:3",
            "DID": 35,
            "Type": "DRIVE",
            "State": "Onln",
            "BT": "N",
            "Size": "14.551 TB",
            "PDC": "dsbl",
            "PI": "N",
            "SED": "N",
            "DS3": "none",
            "FSpace": "-",
            "TR": "N"
          },
          {
            "DG": 0,
            "Arr": 0,
            "Row": 1,
            "EID:Slot": "252:5",
            "DID": 31,
            "Type": "DRIVE",
            "State": "Onln",
            "BT": "N",
            "Size": "14.551 TB",
            "PDC": "dsbl",
            "PI": "N",
            "SED": "N",
            "DS3": "none",
            "FSpace": "-",
            "TR": "N"
          },
          {
            "DG": 0,
            "Arr": 0,
            "Row": 2,
            "EID:Slot": "252:4",
            "DID": 30,
            "Type": "DRIVE",
            "State": "Onln",
            "BT": "N",
            "Size": "14.551 TB",
            "PDC": "dsbl",
            "PI": "N",
            "SED": "N",
            "DS3": "none",
            "FSpace": "-",
            "TR": "N"
          },
          {
            "DG": 0,
            "Arr": 0,
            "Row": 3,
            "EID:Slot": "252:7",
            "DID": 32,
            "Type": "DRIVE",
            "State": "Onln",
            "BT": "N",
            "Size": "14.551 TB",
            "PDC": "dsbl",
            "PI": "N",
            "SED": "N",
            "DS3": "none",
            "FSpace": "-",
            "TR": "N"
          },
          {
            "DG": 0,
            "Arr": 0,
            "Row": 4,
            "EID:Slot": "252:0",
            "DID": 34,
            "Type": "DRIVE",
            "State": "Onln",
            "BT": "N",
            "Size": "14.551 TB",
            "PDC": "dsbl",
            "PI": "N",
            "SED": "N",
            "DS3": "none",
            "FSpace": "-",
            "TR": "N"
          },
          {
            "DG": 0,
            "Arr": 0,
            "Row": 5,
            "EID:Slot": "252:1",
            "DID": 33,
            "Type": "DRIVE",
            "State": "Onln",
            "BT": "N",
            "Size": "14.551 TB",
            "PDC": "dsbl",
            "PI": "N",
            "SED": "N",
            "DS3": "none",
            "FSpace": "-",
            "TR": "N"
          }
        ],
        "Virtual Drives": 1,
        "VD LIST": [
          {
            "DG/VD": "0/0",
            "TYPE": "RAID6",
            "State": "Optl",
            "Access": "RW",
            "Consist": "Yes",
            "Cache": "RWBD",
            "Cac": "-",
            "sCC": "ON",
            "Size": "58.207 TB",
            "Name": "Sluthub"
          }
        ],
        "Physical Drives": 6,
        "PD LIST": [
          {
            "EID:Slt": "252:0",
            "DID": 34,
            "State": "Onln",
            "DG": 0,
            "Size": "14.551 TB",
            "Intf": "SATA",
            "Med": "HDD",
            "SED": "N",
            "PI": "N",
            "SeSz": "512B",
            "Model": "ST16000NM001G-2KK103",
            "Sp": "U",
            "Type": "-"
          },
          {
            "EID:Slt": "252:1",
            "DID": 33,
            "State": "Onln",
            "DG": 0,
            "Size": "14.551 TB",
            "Intf": "SATA",
            "Med": "HDD",
            "SED": "N",
            "PI": "N",
            "SeSz": "512B",
            "Model": "ST16000NM001G-2KK103",
            "Sp": "U",
            "Type": "-"
          },
          {
            "EID:Slt": "252:3",
            "DID": 35,
            "State": "Onln",
            "DG": 0,
            "Size": "14.551 TB",
            "Intf": "SATA",
            "Med": "HDD",
            "SED": "N",
            "PI": "N",
            "SeSz": "512B",
            "Model": "ST16000NM001G-2KK103",
            "Sp": "U",
            "Type": "-"
          },
          {
            "EID:Slt": "252:4",
            "DID": 30,
            "State": "Onln",
            "DG": 0,
            "Size": "14.551 TB",
            "Intf": "SATA",
            "Med": "HDD",
            "SED": "N",
            "PI": "N",
            "SeSz": "512B",
            "Model": "ST16000NM001G-2KK103",
            "Sp": "U",
            "Type": "-"
          },
          {
            "EID:Slt": "252:5",
            "DID": 31,
            "State": "Onln",
            "DG": 0,
            "Size": "14.551 TB",
            "Intf": "SATA",
            "Med": "HDD",
            "SED": "N",
            "PI": "N",
            "SeSz": "512B",
            "Model": "ST16000NM001G-2KK103",
            "Sp": "U",
            "Type": "-"
          },
          {
            "EID:Slt": "252:7",
            "DID": 32,
            "State": "Onln",
            "DG": 0,
            "Size": "14.551 TB",
            "Intf": "SATA",
            "Med": "HDD",
            "SED": "N",
            "PI": "N",
            "SeSz": "512B",
            "Model": "ST16000NM001G-2KK103",
            "Sp": "U",
            "Type": "-"
          }
        ],
        "Enclosures": 1,
        "Enclosure LIST": [
          {
            "EID": 252,
            "State": "OK",
            "Slots": 8,
            "PD": 6,
            "PS": 0,
            "Fans": 0,
            "TSs": 0,
            "Alms": 0,
            "SIM": 1,
            "Port#": "-",
            "ProdID": "SGPIO",
            "VendorSpecific": " "
          }
        ],
        "BBU_Info": [
          {
            "Model": "iBBU08",
            "State": "Optimal",
            "RetentionTime": "48 hours +",
            "Temp": "34C",
            "Mode": "4",
            "MfgDate": "2011/03/18",
            "Next Learn": "2024/04/18  18:32:56"
          }
        ]
      }
    }
  ]
}