rest api方式的带外管理,方便运维二次开发,好东西,啥也说了,采购新服务器时注意要支持哟
https://support.huawei.com/enterprise/zh/doc/EDOC1000126991?idPath=23710424|251364417|251364851|251622314
https://metal.equinix.com/blog/redfish-and-the-future-of-bare-metal-server-automation/
1. curl -k -u root:calvin https://10.10.7.103/redfish/v1/
{
"@odata.context": "/redfish/v1/$metadata#ServiceRoot.ServiceRoot",
"@odata.id": "/redfish/v1",
"@odata.type": "#ServiceRoot.v1_0_2.ServiceRoot",
"AccountService": {
"@odata.id": "/redfish/v1/Managers/iDRAC.Embedded.1/AccountService"
},
"Chassis": {
"@odata.id": "/redfish/v1/Chassis"
},
"Description": "Root Service",
"EventService": {
"@odata.id": "/redfish/v1/EventService"
},
"Id": "RootService",
"JsonSchemas": {
"@odata.id": "/redfish/v1/JSONSchemas"
},
"Links": {
"Sessions": {
"@odata.id": "/redfish/v1/Sessions"
}
},
"Managers": {
"@odata.id": "/redfish/v1/Managers"
},
"Name": "Root Service",
"RedfishVersion": "1.0.2",
"Registries": {
"@odata.id": "/redfish/v1/Registries"
},
"SessionService": {
"@odata.id": "/redfish/v1/SessionService"
},
"Systems": {
"@odata.id": "/redfish/v1/Systems"
},
"Tasks": {
"@odata.id": "/redfish/v1/TaskService"
}
}
2. curl -k -u root:calvin https://10.10.7.103/redfish/v1/Systems/System.Embedded.1
{
"@odata.context": "/redfish/v1/$metadata#ComputerSystem.ComputerSystem",
"@odata.id": "/redfish/v1/Systems/System.Embedded.1",
"@odata.type": "#ComputerSystem.v1_1_0.ComputerSystem",
"Actions": {
"#ComputerSystem.Reset": {
"ResetType@Redfish.AllowableValues": [
"On",
"ForceOff",
"GracefulRestart",
"PushPowerButton",
"Nmi"
],
"target": "/redfish/v1/Systems/System.Embedded.1/Actions/ComputerSystem.Reset"
}
},
"AssetTag": "",
"Bios": {
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/Bios"
},
"BiosVersion": "2.5.5",
"Boot": {
"BootSourceOverrideEnabled": "Once",
"BootSourceOverrideTarget": "None",
"BootSourceOverrideTarget@Redfish.AllowableValues": [
"None",
"Pxe",
"Cd",
"Floppy",
"Hdd",
"BiosSetup",
"Utilities",
"UefiTarget",
"SDCard"
],
"UefiTargetBootSourceOverride": ""
},
"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"
},
"HostName": "MINWINPC",
"Id": "System.Embedded.1",
"IndicatorLED": "Off",
"Links": {
"Chassis": [
{
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
}
],
"Chassis@odata.count": 1,
"CooledBy": [
{
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded.1"
},
{
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded.2"
},
{
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded.3"
},
{
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded.4"
},
{
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded.5"
},
{
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded.6"
}
],
"CooledBy@odata.count": 6,
"ManagedBy": [
{
"@odata.id": "/redfish/v1/Managers/iDRAC.Embedded.1"
}
],
"ManagedBy@odata.count": 1,
"Oem": {
"Dell": {
"@odata.type": "#DellComputerSystem.v1_0_0.DellComputerSystem",
"BootOrder": {
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/BootSources"
}
}
},
"PoweredBy": [
{
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Power/PowerSupplies/PSU.Slot.1"
},
{
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Power/PowerSupplies/PSU.Slot.2"
}
],
"PoweredBy@odata.count": 2
},
"Manufacturer": "Dell Inc.",
"MemorySummary": {
"Status": {
"Health": "OK",
"HealthRollup": "OK",
"State": "Enabled"
},
"TotalSystemMemoryGiB": 192
},
"Model": "PowerEdge R730",
"Name": "System",
"PartNumber": "0WCJNTA08",
"PowerState": "On",
"ProcessorSummary": {
"Count": 2,
"Model": "Intel(R) Xeon(R) CPU E5-2640 v4 @ 2.40GHz",
"Status": {
"Health": "OK",
"HealthRollup": "OK",
"State": "Enabled"
}
},
"Processors": {
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/Processors"
},
"SKU": "1QB4YM2",
"SecureBoot": {
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/SecureBoot"
},
"SerialNumber": "CNWS3007BM00QO",
"SimpleStorage": {
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/Storage/Controllers"
},
"Status": {
"Health": "OK",
"HealthRollup": "OK",
"State": "Enabled"
},
"SystemType": "Physical",
"UUID": "4c4c4544-0051-4210-8034-b1c04f594d32"
}
3. curl -k -u root:calvin https://10.10.7.103/redfish/v1/Managers/iDRAC.Embedded.1
{
"@odata.context": "/redfish/v1/$metadata#Manager.Manager",
"@odata.id": "/redfish/v1/Managers/iDRAC.Embedded.1",
"@odata.type": "#Manager.v1_0_2.Manager",
"Actions": {
"#Manager.Reset": {
"ResetType@Redfish.AllowableValues": [
"GracefulRestart"
],
"target": "/redfish/v1/Managers/iDRAC.Embedded.1/Actions/Manager.Reset"
},
"Oem": {
"OemManager.v1_1_0#OemManager.ExportSystemConfiguration": {
"ExportFormat@Redfish.AllowableValues": [
"XML",
"JSON"
],
"ExportUse@Redfish.AllowableValues": [
"Default",
"Clone",
"Replace"
],
"IncludeInExport@Redfish.AllowableValues": [
"Default",
"IncludeReadOnly",
"IncludePasswordHashValues"
],
"ShareParameters": {
"ShareParameters@Redfish.AllowableValues": [
"IPAddress",
"ShareName",
"FileName",
"UserName",
"Password",
"Workgroup"
],
"ShareType@Redfish.AllowableValues": [
"NFS",
"CIFS"
],
"Target@Redfish.AllowableValues": [
"ALL",
"IDRAC",
"BIOS",
"NIC",
"RAID"
]
},
"target": "/redfish/v1/Managers/iDRAC.Embedded.1/Actions/Oem/EID_674_Manager.ExportSystemConfiguration"
},
"OemManager.v1_1_0#OemManager.ImportSystemConfiguration": {
"HostPowerState@Redfish.AllowableValues": [
"On",
"Off"
],
"ImportSystemConfiguration@Redfish.AllowableValues": [
"TimeToWait",
"ImportBuffer"
],
"ShareParameters": {
"ShareParameters@Redfish.AllowableValues": [
"IPAddress",
"ShareName",
"FileName",
"UserName",
"Password",
"Workgroup"
],
"ShareType@Redfish.AllowableValues": [
"NFS",
"CIFS"
],
"Target@Redfish.AllowableValues": [
"ALL",
"IDRAC",
"BIOS",
"NIC",
"RAID"
]
},
"ShutdownType@Redfish.AllowableValues": [
"Graceful",
"Forced",
"NoReboot"
],
"target": "/redfish/v1/Managers/iDRAC.Embedded.1/Actions/Oem/EID_674_Manager.ImportSystemConfiguration"
},
"OemManager.v1_1_0#OemManager.ImportSystemConfigurationPreview": {
"ImportSystemConfigurationPreview@Redfish.AllowableValues": [
"ImportBuffer"
],
"ShareParameters": {
"ShareParameters@Redfish.AllowableValues": [
"IPAddress",
"ShareName",
"FileName",
"UserName",
"Password",
"Workgroup"
],
"ShareType@Redfish.AllowableValues": [
"NFS",
"CIFS"
],
"Target@Redfish.AllowableValues": [
"ALL"
]
},
"target": "/redfish/v1/Managers/iDRAC.Embedded.1/Actions/Oem/EID_674_Manager.ImportSystemConfigurationPreview"
}
}
},
"CommandShell": {
"ConnectTypesSupported": [
"SSH",
"Telnet",
"IPMI"
],
"ConnectTypesSupported@odata.count": 3,
"MaxConcurrentSessions": 5,
"ServiceEnabled": true
},
"DateTime": "2021-12-17T08:11:57-06:00",
"DateTimeLocalOffset": "-06:00",
"Description": "BMC",
"EthernetInterfaces": {
"@odata.id": "/redfish/v1/Managers/iDRAC.Embedded.1/EthernetInterfaces"
},
"FirmwareVersion": "2.50.50.50",
"GraphicalConsole": {
"ConnectTypesSupported": [
"KVMIP"
],
"ConnectTypesSupported@odata.count": 1,
"MaxConcurrentSessions": 6,
"ServiceEnabled": true
},
"Id": "iDRAC.Embedded.1",
"Links": {
"ManagerForChassis": [
{
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
}
],
"ManagerForChassis@odata.count": 1,
"ManagerForServers": [
{
"@odata.id": "/redfish/v1/Systems/System.Embedded.1"
}
],
"ManagerForServers@odata.count": 1,
"Oem": {
"Jobs": [
{
"@odata.id": "/redfish/v1/Managers/iDRAC.Embedded.1/Jobs"
}
],
"Jobs@odata.count": 1
}
},
"LogServices": {
"@odata.id": "/redfish/v1/Managers/iDRAC.Embedded.1/LogServices"
},
"ManagerType": "BMC",
"Model": "13G Monolithic",
"Name": "Manager",
"NetworkProtocol": {
"@odata.id": "/redfish/v1/Managers/iDRAC.Embedded.1/NetworkProtocol"
},
"Redundancy": [ ],
"Redundancy@odata.count": 0,
"SerialConsole": {
"ConnectTypesSupported": [ ],
"ConnectTypesSupported@odata.count": 0,
"MaxConcurrentSessions": 0,
"ServiceEnabled": false
},
"SerialInterfaces": {
"@odata.id": "/redfish/v1/Managers/iDRAC.Embedded.1/SerialInterfaces"
},
"Status": {
"Health": "OK",
"State": "Enabled"
},
"UUID": "324d594f-c0b1-3480-4210-00514c4c4544",
"VirtualMedia": {
"@odata.id": "/redfish/v1/Managers/iDRAC.Embedded.1/VirtualMedia"
}
}