mrlhansen / idrac_exporter

Simple iDRAC exporter for Prometheus
MIT License
123 stars 37 forks source link

Dell R740 cannot obtain relevant metrics using iDRAC9 #48

Closed ilanni2460 closed 7 months ago

ilanni2460 commented 7 months ago

Dell R740 cannot obtain relevant metrics using iDRAC9

iDRAC version: 7.00.00.171

This is relevant information obtained through the redfish interface:

curl -k https://192.168.19.107/redfish/v1/Systems/System.Embedded.1

{
    "@Redfish.Settings": {
        "@odata.context": "/redfish/v1/$metadata#Settings.Settings",
        "@odata.type": "#Settings.v1_3_5.Settings",
        "SettingsObject": {
            "@odata.id": "/redfish/v1/Systems/System.Embedded.1/Settings"
        },
        "SupportedApplyTimes": ["OnReset"]
    },
    "@odata.context": "/redfish/v1/$metadata#ComputerSystem.ComputerSystem",
    "@odata.id": "/redfish/v1/Systems/System.Embedded.1",
    "@odata.type": "#ComputerSystem.v1_20_0.ComputerSystem",
    "Actions": {
        "#ComputerSystem.Reset": {
            "target": "/redfish/v1/Systems/System.Embedded.1/Actions/ComputerSystem.Reset",
            "ResetType@Redfish.AllowableValues": ["On", "ForceOff", "ForceRestart", "GracefulRestart", "GracefulShutdown", "PushPowerButton", "Nmi", "PowerCycle"]
        }
    },
    "AssetTag": "",
    "Bios": {
        "@odata.id": "/redfish/v1/Systems/System.Embedded.1/Bios"
    },
    "BiosVersion": "2.13.3",
    "BootProgress": {
        "LastState": "OSRunning"
    },
    "Boot": {
        "BootOptions": {
            "@odata.id": "/redfish/v1/Systems/System.Embedded.1/BootOptions"
        },
        "Certificates": {
            "@odata.id": "/redfish/v1/Systems/System.Embedded.1/Boot/Certificates"
        },
        "BootOrder": ["Boot0008", "Boot0001", "Boot0000", "Boot0002", "Boot0005", "Boot0006", "Boot0003"],
        "BootOrder@odata.count": 7,
        "BootSourceOverrideEnabled": "Disabled",
        "BootSourceOverrideMode": "UEFI",
        "BootSourceOverrideTarget": "None",
        "UefiTargetBootSourceOverride": null,
        "BootSourceOverrideTarget@Redfish.AllowableValues": ["None", "Pxe", "Floppy", "Cd", "Hdd", "BiosSetup", "Utilities", "UefiTarget", "SDCard", "UefiHttp"],
        "StopBootOnFault": "Never"
    },
    "Description": "Computer System which represents a machine (physical or virtual) and the local resources such as memory, cpu and other devices that can be accessed from that machine.",
    "EthernetInterfaces": {
        "@odata.id": "/redfish/v1/Systems/System.Embedded.1/EthernetInterfaces"
    },
    "GraphicalConsole": {
        "ConnectTypesSupported": ["KVMIP"],
        "ConnectTypesSupported@odata.count": 1,
        "MaxConcurrentSessions": 1,
        "ServiceEnabled": true
    },
    "HostName": "WindowsPE",
    "HostWatchdogTimer": {
        "FunctionEnabled": false,
        "Status": {
            "State": "Disabled"
        },
        "TimeoutAction": "None"
    },
    "HostingRoles": [],
    "HostingRoles@odata.count": 0,
    "Id": "System.Embedded.1",
    "IndicatorLED": "Lit",
    "IndicatorLED@Redfish.Deprecated": "Please migrate to use LocationIndicatorActive property",
    "Links": {
        "Chassis": [{
            "@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
        }],
        "Chassis@odata.count": 1,
        "CooledBy": [{
            "@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Thermal#/Fans/0"
        }, {
            "@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Thermal#/Fans/1"
        }, {
            "@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Thermal#/Fans/2"
        }, {
            "@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Thermal#/Fans/3"
        }, {
            "@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Thermal#/Fans/4"
        }, {
            "@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Thermal#/Fans/5"
        }],
        "CooledBy@odata.count": 6,
        "ManagedBy": [{
            "@odata.id": "/redfish/v1/Managers/iDRAC.Embedded.1"
        }],
        "ManagedBy@odata.count": 1,
        "Oem": {
            "Dell": {
                "@odata.type": "#DellOem.v1_3_0.DellOemLinks",
                "BootOrder": {
                    "@odata.id": "/redfish/v1/Systems/System.Embedded.1/Oem/Dell/DellBootSources"
                },
                "DellBootSources": {
                    "@odata.id": "/redfish/v1/Systems/System.Embedded.1/Oem/Dell/DellBootSources"
                },
                "DellSoftwareInstallationService": {
                    "@odata.id": "/redfish/v1/Systems/System.Embedded.1/Oem/Dell/DellSoftwareInstallationService"
                },
                "DellVideoCollection": {
                    "@odata.id": "/redfish/v1/Systems/System.Embedded.1/Oem/Dell/DellVideo"
                },
                "DellChassisCollection": {
                    "@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Oem/Dell/DellChassis"
                },
                "DellPresenceAndStatusSensorCollection": {
                    "@odata.id": "/redfish/v1/Systems/System.Embedded.1/Oem/Dell/DellPresenceAndStatusSensors"
                },
                "DellSensorCollection": {
                    "@odata.id": "/redfish/v1/Systems/System.Embedded.1/Oem/Dell/DellSensors"
                },
                "DellRollupStatusCollection": {
                    "@odata.id": "/redfish/v1/Systems/System.Embedded.1/Oem/Dell/DellRollupStatus"
                },
                "DellPSNumericSensorCollection": {
                    "@odata.id": "/redfish/v1/Systems/System.Embedded.1/Oem/Dell/DellPSNumericSensors"
                },
                "DellVideoNetworkCollection": {
                    "@odata.id": "/redfish/v1/Systems/System.Embedded.1/Oem/Dell/DellVideoNetwork"
                },
                "DellOSDeploymentService": {
                    "@odata.id": "/redfish/v1/Systems/System.Embedded.1/Oem/Dell/DellOSDeploymentService"
                },
                "DellMetricService": {
                    "@odata.id": "/redfish/v1/Systems/System.Embedded.1/Oem/Dell/DellMetricService"
                },
                "DellGPUSensorCollection": {
                    "@odata.id": "/redfish/v1/Systems/System.Embedded.1/Oem/Dell/DellGPUSensors"
                },
                "DellRaidService": {
                    "@odata.id": "/redfish/v1/Systems/System.Embedded.1/Oem/Dell/DellRaidService"
                },
                "DellNumericSensorCollection": {
                    "@odata.id": "/redfish/v1/Systems/System.Embedded.1/Oem/Dell/DellNumericSensors"
                },
                "DellBIOSService": {
                    "@odata.id": "/redfish/v1/Systems/System.Embedded.1/Oem/Dell/DellBIOSService"
                },
                "DellSlotCollection": {
                    "@odata.id": "/redfish/v1/Systems/System.Embedded.1/Oem/Dell/DellSlots"
                }
            }
        },
        "PoweredBy": [{
            "@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Power#/PowerSupplies/0"
        }, {
            "@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Power#/PowerSupplies/1"
        }],
        "PoweredBy@odata.count": 2
    },
    "LastResetTime": "2024-01-30T07:31:44-06:00",
    "LocationIndicatorActive": false,
    "Manufacturer": "Dell Inc.",
    "Memory": {
        "@odata.id": "/redfish/v1/Systems/System.Embedded.1/Memory"
    },
    "MemorySummary": {
        "MemoryMirroring": "System",
        "Status": {
            "Health": "OK",
            "HealthRollup": "OK",
            "State": "Enabled"
        },
        "Status@Redfish.Deprecated": "Please migrate to use Status in the individual Memory resources",
        "TotalSystemMemoryGiB": 64
    },
    "Model": "PowerEdge R740",
    "Name": "System",
    "NetworkInterfaces": {
        "@odata.id": "/redfish/v1/Systems/System.Embedded.1/NetworkInterfaces"
    },
    "Oem": {
        "Dell": {
            "@odata.type": "#DellOem.v1_3_0.DellOemResources",
            "DellSystem": {
                "BIOSReleaseDate": "12/13/2021",
                "BaseBoardChassisSlot": "NA",
                "BatteryRollupStatus": "OK",
                "BladeGeometry": "NotApplicable",
                "CMCIP": null,
                "CMCRollupStatus": null,
                "CPURollupStatus": "OK",
                "ChassisModel": null,
                "ChassisName": "Main System Chassis",
                "ChassisServiceTag": "DXXXXX",
                "ChassisSystemHeightUnit": 2,
                "CoolingRollupStatus": "OK",
                "CurrentRollupStatus": "OK",
                "EstimatedExhaustTemperatureCelsius": 27,
                "EstimatedSystemAirflowCFM": 62,
                "ExpressServiceCode": "XXXXX",
                "FanRollupStatus": "OK",
                "Id": "System.Embedded.1",
                "IDSDMRedundancyStatus": null,
                "IDSDMRollupStatus": null,
                "IntrusionRollupStatus": "OK",
                "IsOEMBranded": "False",
                "LastSystemInventoryTime": "2024-01-30T13:31:28+00:00",
                "LastUpdateTime": "2022-11-02T16:14:34+00:00",
                "LicensingRollupStatus": "OK",
                "ManagedSystemSize": "2 U",
                "MaxCPUSockets": 2,
                "MaxDIMMSlots": 24,
                "MaxPCIeSlots": 8,
                "MaxSystemMemoryMiB": 7864320,
                "MemoryOperationMode": "OptimizerMode",
                "Name": "DellSystem",
                "NodeID": "DXXXXX",
                "PSRollupStatus": "OK",
                "PlatformGUID": "334e4b4f-c0c4-3380-3310-004a4c4c4544",
                "PopulatedDIMMSlots": 2,
                "PopulatedPCIeSlots": 1,
                "PowerCapEnabledState": "Disabled",
                "SDCardRollupStatus": "OK",
                "SELRollupStatus": "OK",
                "ServerAllocationWatts": null,
                "StorageRollupStatus": "OK",
                "SysMemErrorMethodology": "Multi-bitECC",
                "SysMemFailOverState": "NotInUse",
                "SysMemLocation": "SystemBoardOrMotherboard",
                "SysMemPrimaryStatus": "OK",
                "SystemGeneration": "14G Monolithic",
                "SystemHealthRollupStatus": "OK",
                "SystemID": 1813,
                "SystemRevision": "I",
                "TempRollupStatus": "OK",
                "TempStatisticsRollupStatus": "OK",
                "UUID": "4c4c4544-004a-3310-8033-c4c04f4b4e33",
                "VoltRollupStatus": "OK",
                "smbiosGUID": "44454c4c-4a00-1033-8033-c4c04f4b4e33",
                "@odata.context": "/redfish/v1/$metadata#DellSystem.DellSystem",
                "@odata.type": "#DellSystem.v1_4_0.DellSystem",
                "@odata.id": "/redfish/v1/Systems/System.Embedded.1/Oem/Dell/DellSystem/System.Embedded.1"
            }
        }
    },
    "PCIeDevices": [{
        "@odata.id": "/redfish/v1/Chassis/System.Embedded.1/PCIeDevices/1-0"
    }, {
        "@odata.id": "/redfish/v1/Chassis/System.Embedded.1/PCIeDevices/25-0"
    }, {
        "@odata.id": "/redfish/v1/Chassis/System.Embedded.1/PCIeDevices/24-0"
    }, {
        "@odata.id": "/redfish/v1/Chassis/System.Embedded.1/PCIeDevices/0-28"
    }, {
        "@odata.id": "/redfish/v1/Chassis/System.Embedded.1/PCIeDevices/0-0"
    }, {
        "@odata.id": "/redfish/v1/Chassis/System.Embedded.1/PCIeDevices/0-17"
    }, {
        "@odata.id": "/redfish/v1/Chassis/System.Embedded.1/PCIeDevices/0-31"
    }, {
        "@odata.id": "/redfish/v1/Chassis/System.Embedded.1/PCIeDevices/3-0"
    }, {
        "@odata.id": "/redfish/v1/Chassis/System.Embedded.1/PCIeDevices/0-23"
    }],
    "PCIeDevices@odata.count": 9,
    "PCIeFunctions": [{
        "@odata.id": "/redfish/v1/Chassis/System.Embedded.1/PCIeDevices/1-0/PCIeFunctions/1-0-1"
    }, {
        "@odata.id": "/redfish/v1/Chassis/System.Embedded.1/PCIeDevices/1-0/PCIeFunctions/1-0-0"
    }, {
        "@odata.id": "/redfish/v1/Chassis/System.Embedded.1/PCIeDevices/25-0/PCIeFunctions/25-0-1"
    }, {
        "@odata.id": "/redfish/v1/Chassis/System.Embedded.1/PCIeDevices/25-0/PCIeFunctions/25-0-0"
    }, {
        "@odata.id": "/redfish/v1/Chassis/System.Embedded.1/PCIeDevices/24-0/PCIeFunctions/24-0-0"
    }, {
        "@odata.id": "/redfish/v1/Chassis/System.Embedded.1/PCIeDevices/0-28/PCIeFunctions/0-28-0"
    }, {
        "@odata.id": "/redfish/v1/Chassis/System.Embedded.1/PCIeDevices/0-0/PCIeFunctions/0-0-0"
    }, {
        "@odata.id": "/redfish/v1/Chassis/System.Embedded.1/PCIeDevices/0-17/PCIeFunctions/0-17-5"
    }, {
        "@odata.id": "/redfish/v1/Chassis/System.Embedded.1/PCIeDevices/0-31/PCIeFunctions/0-31-0"
    }, {
        "@odata.id": "/redfish/v1/Chassis/System.Embedded.1/PCIeDevices/3-0/PCIeFunctions/3-0-0"
    }, {
        "@odata.id": "/redfish/v1/Chassis/System.Embedded.1/PCIeDevices/0-28/PCIeFunctions/0-28-4"
    }, {
        "@odata.id": "/redfish/v1/Chassis/System.Embedded.1/PCIeDevices/0-23/PCIeFunctions/0-23-0"
    }, {
        "@odata.id": "/redfish/v1/Chassis/System.Embedded.1/PCIeDevices/0-31/PCIeFunctions/0-31-4"
    }],
    "PCIeFunctions@odata.count": 13,
    "PartNumber": "xxxxx",
    "PowerState": "On",
    "ProcessorSummary": {
        "Count": 2,
        "CoreCount": 24,
        "LogicalProcessorCount": 48,
        "Model": "Intel(R) Xeon(R) Silver 4214R CPU @ 2.40GHz",
        "Status": {
            "Health": "OK",
            "HealthRollup": "OK",
            "State": "Enabled"
        },
        "Status@Redfish.Deprecated": "Please migrate to use Status in the individual Processor resources",
        "ThreadingEnabled": true
    },
    "Processors": {
        "@odata.id": "/redfish/v1/Systems/System.Embedded.1/Processors"
    },
    "SKU": "DXXXXX",
    "SecureBoot": {
        "@odata.id": "/redfish/v1/Systems/System.Embedded.1/SecureBoot"
    },
    "SerialNumber": "XXXXXXX",
    "SimpleStorage": {
        "@odata.id": "/redfish/v1/Systems/System.Embedded.1/SimpleStorage"
    },
    "Status": {
        "Health": "OK",
        "HealthRollup": "OK",
        "State": "Enabled"
    },
    "Storage": {
        "@odata.id": "/redfish/v1/Systems/System.Embedded.1/Storage"
    },
    "SystemType": "Physical",
    "TrustedModules": [{
        "FirmwareVersion": "Unknown",
        "InterfaceType": null,
        "Status": {
            "State": "Disabled"
        }
    }],
    "TrustedModules@odata.count": 1,
    "UUID": "4c4c4544-004a-3310-8033-c4c04f4b4e33",
    "VirtualMedia": {
        "@odata.id": "/redfish/v1/Systems/System.Embedded.1/VirtualMedia"
    },
    "VirtualMediaConfig": {
        "ServiceEnabled": false
    }
}
mrlhansen commented 7 months ago

I need more specific information.

ilanni2460 commented 7 months ago

@mrlhansen Thank you very much for your timely reply. Today I used the latest binary package to re-obtain the latest metrics, and found that it can be obtained normally. I used docker to obtain it before. My guess is that the version of the docker image is relatively old. Thanks again.