Created
August 2, 2019 23:40
-
-
Save champtar/76611d614949ba90a3bf6411d3cb7f75 to your computer and use it in GitHub Desktop.
Huawei redfish 412 precondition failed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl -u 'Administrator:<redacted>' -k https://192.168.1.2/redfish/v1/Systems/1/Bios/Settings -vvvs | jq . | |
* Trying 192.168.1.2... | |
* TCP_NODELAY set | |
* Connected to 192.168.1.2 (192.168.1.2) port 443 (#0) | |
* ALPN, offering h2 | |
* ALPN, offering http/1.1 | |
* successfully set certificate verify locations: | |
* CAfile: /etc/pki/tls/certs/ca-bundle.crt | |
CApath: none | |
} [5 bytes data] | |
* TLSv1.3 (OUT), TLS handshake, Client hello (1): | |
} [512 bytes data] | |
* TLSv1.3 (IN), TLS handshake, Server hello (2): | |
{ [104 bytes data] | |
* TLSv1.2 (IN), TLS handshake, Certificate (11): | |
{ [912 bytes data] | |
* TLSv1.2 (IN), TLS handshake, Server key exchange (12): | |
{ [333 bytes data] | |
* TLSv1.2 (IN), TLS handshake, Server finished (14): | |
{ [4 bytes data] | |
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16): | |
} [70 bytes data] | |
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1): | |
} [1 bytes data] | |
* TLSv1.2 (OUT), TLS handshake, Finished (20): | |
} [16 bytes data] | |
* TLSv1.2 (IN), TLS handshake, Finished (20): | |
{ [16 bytes data] | |
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384 | |
* ALPN, server accepted to use http/1.1 | |
* Server certificate: | |
* subject: C=CN; O=Huawei; ST=GuangDong; L=ShenZhen; OU=IT; CN=huawei | |
* start date: Nov 7 02:04:51 2018 GMT | |
* expire date: Nov 4 02:04:51 2028 GMT | |
* issuer: C=CN; O=Huawei; CN=Huawei IT Product CA | |
* SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway. | |
* Server auth using Basic with user 'Administrator' | |
} [5 bytes data] | |
> GET /redfish/v1/Systems/1/Bios/Settings HTTP/1.1 | |
> Host: 192.168.1.2 | |
> Authorization: Basic <redacted> | |
> User-Agent: curl/7.64.0 | |
> Accept: */* | |
> | |
{ [5 bytes data] | |
< HTTP/1.1 200 OK | |
< Date: Fri, 02 Aug 2019 22:52:29 GMT | |
< X-Frame-Options: SAMEORIGIN | |
< X-Download-Options: noopen | |
< Content-Security-Policy: default-src 'none'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; connect-src 'self' wss://*:*; img-src 'self' data:; frame-src 'self'; font-src 'self'; object-src 'self'; style-src 'self' 'unsafe-inline' | |
< OData-Version: 4.0 | |
< Cache-Control: max-age=0, no-cache, no-store, must-revalidate | |
< ETag: W/"57270ade" | |
< Link: </redfish/v1/SchemaStore/en/Bios.json>;rel=describedby | |
< Allow: GET,PATCH,POST | |
< Content-Length: 567 | |
< X-XSS-Protection: 1; mode=block | |
< Strict-Transport-Security: max-age=31536000; includeSubDomains | |
< X-Content-Type-Options: nosniff | |
< Expires: 0 | |
< Content-Type: application/json;charset=utf-8 | |
< | |
{ [567 bytes data] | |
* Connection #0 to host 192.168.1.2 left intact | |
{ | |
"@odata.context": "/redfish/v1/$metadata#Systems/Members/1/Bios/Settings/$entity", | |
"@odata.id": "/redfish/v1/Systems/1/Bios/Settings", | |
"@odata.type": "#Bios.v1_0_0.Bios", | |
"Id": "Settings", | |
"Name": "BIOS Configuration Pending Settings", | |
"AttributeRegistry": "BiosAttributeRegistry.1.9.9", | |
"Attributes": { | |
"PXE3Setting": "Disabled" | |
}, | |
"Actions": { | |
"Oem": { | |
"Huawei": { | |
"#Settings.Revoke": { | |
"target": "/redfish/v1/Systems/1/Bios/Settings/Actions/Oem/Huawei/Settings.Revoke", | |
"@Redfish.ActionInfo": "/redfish/v1/Systems/1/Bios/Settings/SettingsRevokeActionInfo" | |
} | |
} | |
} | |
} | |
} | |
##################################################################################### | |
$ curl -u 'Administrator:<redacted>' -k https://192.168.1.2/redfish/v1/Systems/1/Bios/ -vvvs | jq . | |
* Trying 192.168.1.2... | |
* TCP_NODELAY set | |
* Connected to 192.168.1.2 (192.168.1.2) port 443 (#0) | |
* ALPN, offering h2 | |
* ALPN, offering http/1.1 | |
* successfully set certificate verify locations: | |
* CAfile: /etc/pki/tls/certs/ca-bundle.crt | |
CApath: none | |
} [5 bytes data] | |
* TLSv1.3 (OUT), TLS handshake, Client hello (1): | |
} [512 bytes data] | |
* TLSv1.3 (IN), TLS handshake, Server hello (2): | |
{ [104 bytes data] | |
* TLSv1.2 (IN), TLS handshake, Certificate (11): | |
{ [912 bytes data] | |
* TLSv1.2 (IN), TLS handshake, Server key exchange (12): | |
{ [333 bytes data] | |
* TLSv1.2 (IN), TLS handshake, Server finished (14): | |
{ [4 bytes data] | |
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16): | |
} [70 bytes data] | |
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1): | |
} [1 bytes data] | |
* TLSv1.2 (OUT), TLS handshake, Finished (20): | |
} [16 bytes data] | |
* TLSv1.2 (IN), TLS handshake, Finished (20): | |
{ [16 bytes data] | |
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384 | |
* ALPN, server accepted to use http/1.1 | |
* Server certificate: | |
* subject: C=CN; O=Huawei; ST=GuangDong; L=ShenZhen; OU=IT; CN=huawei | |
* start date: Nov 7 02:04:51 2018 GMT | |
* expire date: Nov 4 02:04:51 2028 GMT | |
* issuer: C=CN; O=Huawei; CN=Huawei IT Product CA | |
* SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway. | |
* Server auth using Basic with user 'Administrator' | |
} [5 bytes data] | |
> GET /redfish/v1/Systems/1/Bios/ HTTP/1.1 | |
> Host: 192.168.1.2 | |
> Authorization: Basic <redacted> | |
> User-Agent: curl/7.64.0 | |
> Accept: */* | |
> | |
{ [5 bytes data] | |
< HTTP/1.1 200 OK | |
< Date: Fri, 02 Aug 2019 22:53:04 GMT | |
< X-Frame-Options: SAMEORIGIN | |
< X-Download-Options: noopen | |
< Content-Security-Policy: default-src 'none'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; connect-src 'self' wss://*:*; img-src 'self' data:; frame-src 'self'; font-src 'self'; object-src 'self'; style-src 'self' 'unsafe-inline' | |
< OData-Version: 4.0 | |
< Cache-Control: max-age=0, no-cache, no-store, must-revalidate | |
< ETag: W/"82919325" | |
< Link: </redfish/v1/SchemaStore/en/Bios.json>;rel=describedby | |
< Allow: GET,POST | |
< Content-Length: 20995 | |
< X-XSS-Protection: 1; mode=block | |
< Strict-Transport-Security: max-age=31536000; includeSubDomains | |
< X-Content-Type-Options: nosniff | |
< Expires: 0 | |
< Content-Type: application/json;charset=utf-8 | |
< | |
{ [5 bytes data] | |
* Connection #0 to host 192.168.1.2 left intact | |
{ | |
"@odata.context": "/redfish/v1/$metadata#Systems/Members/1/Bios/$entity", | |
"@odata.id": "/redfish/v1/Systems/1/Bios", | |
"@odata.type": "#Bios.v1_0_0.Bios", | |
"Id": "Bios", | |
"Name": "BIOS Configuration Current Settings", | |
"AttributeRegistry": "BiosAttributeRegistry.1.9.9", | |
"Attributes": { | |
"CustomPowerPolicy": "Custom", | |
"PCIeSRIOVSupport": "Enabled", | |
"PCIeARISupport": "Disabled", | |
"CLKGenSpreadSpectrum": "Disabled", | |
"DisplayMode": "OnboardGraphics", | |
"IOAPICMode": "Disabled", | |
"SystemErrorEn": "Enabled", | |
"PoisonEn": "Enabled", | |
"FDMSupport": "Enabled", | |
"EMCAEn": "Enabled", | |
"EMCACSMIEn": "EMCAGen2CSMI", | |
"WHEASupportEn": "Enabled", | |
"WHEALogMemoryEn": "Enabled", | |
"WHEALogProcEn": "Enabled", | |
"WHEALogPCIEn": "Enabled", | |
"KTIFailoverSMIEn": "Enabled", | |
"IIOErrorEn": "Enabled", | |
"IIOErrRegistersClearEn": "Enabled", | |
"SupportOSCtrlAER": "Disabled", | |
"ProcessorActiveCore": "All", | |
"ProcessorHyperThreadingDisable": "Enabled", | |
"CheckCPUBIST": "Disabled", | |
"MonitorMwaitEnable": "Disabled", | |
"ExecuteDisableBit": "Enabled", | |
"ProcessorLTSXEnable": "Disabled", | |
"ProcessorVMXEnable": "Enabled", | |
"MLCStreamerPrefetcherEnable": "Enabled", | |
"MLCSpatialPrefetcherEnable": "Enabled", | |
"DCUStreamerPrefetcherEnable": "Enabled", | |
"DCUIPPrefetcherEnable": "Enabled", | |
"LLCPrefetchEnable": "Disabled", | |
"DCUModeSelection": "Select32KB8WayWithoutECC", | |
"ProcessorX2APIC": "Disabled", | |
"AESEnable": "Enabled", | |
"ISOCEn": "Auto", | |
"NUMAEn": "Enabled", | |
"SerialDebugMsgLvl": "Disabled", | |
"QPILinkSpeed": "Auto", | |
"KTILinkL0pEn": "Enabled", | |
"KTILinkL1En": "Enabled", | |
"DirectoryModeEn": "Enabled", | |
"SNCEn": "Disabled", | |
"XPTPrefetchEn": "Disabled", | |
"KTIPrefetchEn": "Enabled", | |
"IRQThreshold": "Auto", | |
"StaleAtoSOptEn": "Disabled", | |
"LLCDeadLineAlloc": "Enabled", | |
"DFXOSBEn": "Auto", | |
"EnforcePOR": "Auto", | |
"DDRFreqLimit": "Auto", | |
"AttemptFastBootCold": "Auto", | |
"MemTestOnFastBoot": "Auto", | |
"RMTOnColdFastBoot": "Auto", | |
"ADREn": "Enabled", | |
"LegacyADRModeEn": "Disabled", | |
"ADRDataSaveMode": "NVDIMMs", | |
"EraseArmNVDIMMS": "Disabled", | |
"RestoreNVDIMMS": "Enabled", | |
"InterNVDIMMS": "Disabled", | |
"CustomRefreshRateEn": "Disabled", | |
"CustomRefreshRate": 20, | |
"PagePolicy": "Auto", | |
"MemInterleaveGran1LM": "Auto", | |
"IMCInterleaving": "Auto", | |
"ChannelInterleaving": "Auto", | |
"RankInterleaving": "Auto", | |
"SocketInterleaveBelow4GB": "Disabled", | |
"MirrorMode": "Disabled", | |
"PartialMirrorSAD0": "Disabled", | |
"PartialMirrorUefi": "Disabled", | |
"PartialMirrorUefiPercent": 0, | |
"RankSparing": "Disabled", | |
"MultiSparingRanks": "TwoRank", | |
"SpareErrTh": 6000, | |
"LeakyBktLo": 17, | |
"LeakyBktHi": 16, | |
"ADDDCEn": "Enabled", | |
"ADDDCErrInjEn": "Enabled", | |
"PatrolScrub": "Enabled", | |
"PatrolScrubDuration": 24, | |
"SetSecureEraseAllDIMMs": "Enabled", | |
"EnableBIOSSSALoader": "Auto", | |
"EnableBIOSSSARMT": "Auto", | |
"BIOSSSAPerBitMargining": "Auto", | |
"BIOSSSADisplayTables": "Auto", | |
"BIOSSSAPerDisplayPlots": "Auto", | |
"BIOSSSALoopCount": 16, | |
"BIOSSSABacksideMargining": "Auto", | |
"BIOSSSAEarlyReadIdMargining": "Auto", | |
"BIOSSSAStepSizeOverride": "Auto", | |
"BIOSSSARxDqs": "Auto", | |
"BIOSSSARxVref": "Auto", | |
"BIOSSSATxDq": "Auto", | |
"BIOSSSATxVref": "Auto", | |
"BIOSSSACmdAll": "Auto", | |
"BIOSSSACmdVref": "Auto", | |
"BIOSSSACtlAll": "Auto", | |
"BIOSSSAEridDelay": "Auto", | |
"BIOSSSAEridVref": "Auto", | |
"BIOSSSADebugMessages": "Auto", | |
"EnableBIOSSSARMTonFCB": "Auto", | |
"CompletionTimeout0": "Enabled", | |
"CompletionTimeoutValue0": "Timeout260msTo900ms", | |
"PCIePortLinkSpeed0": "Auto", | |
"DeEmphasis0": "Level-3.5dB", | |
"PCIeMaxPayload0": "Auto", | |
"PCIeASPM0": "Disabled", | |
"MSIEn0": "Disabled", | |
"DISL0STx0": "Disabled", | |
"ECRC0": "Disabled", | |
"PCIePortDisable1": "Auto", | |
"PCIeLinkDis1": "Enabled", | |
"PCIePortLinkSpeed1": "Auto", | |
"DeEmphasis1": "Level-3.5dB", | |
"PCIeMaxPayload1": "Auto", | |
"PCIeASPM1": "Disabled", | |
"MSIEn1": "Disabled", | |
"DISL0STx1": "Disabled", | |
"ECRC1": "Disabled", | |
"PCIePortDisable2": "Auto", | |
"PCIeLinkDis2": "Enabled", | |
"PCIePortLinkSpeed2": "Auto", | |
"DeEmphasis2": "Level-3.5dB", | |
"PCIeMaxPayload2": "Auto", | |
"PCIeASPM2": "Disabled", | |
"MSIEn2": "Disabled", | |
"DISL0STx2": "Disabled", | |
"ECRC2": "Disabled", | |
"PCIePortDisable3": "Auto", | |
"PCIeLinkDis3": "Enabled", | |
"PCIePortLinkSpeed3": "Auto", | |
"DeEmphasis3": "Level-6.0dB", | |
"PCIeMaxPayload3": "Auto", | |
"PCIeASPM3": "Disabled", | |
"MSIEn3": "Disabled", | |
"DISL0STx3": "Disabled", | |
"ECRC3": "Disabled", | |
"PCIePortDisable4": "Auto", | |
"PCIeLinkDis4": "Enabled", | |
"PCIePortLinkSpeed4": "Auto", | |
"DeEmphasis4": "Level-6.0dB", | |
"PCIeMaxPayload4": "Auto", | |
"PCIeASPM4": "Disabled", | |
"MSIEn4": "Disabled", | |
"DISL0STx4": "Disabled", | |
"ECRC4": "Disabled", | |
"PCIePortDisable5": "Auto", | |
"PCIeLinkDis5": "Enabled", | |
"PCIePortLinkSpeed5": "Auto", | |
"DeEmphasis5": "Level-6.0dB", | |
"PCIeMaxPayload5": "Auto", | |
"PCIeASPM5": "Disabled", | |
"MSIEn5": "Disabled", | |
"DISL0STx5": "Disabled", | |
"ECRC5": "Disabled", | |
"PCIePortDisable6": "Auto", | |
"PCIeLinkDis6": "Enabled", | |
"PCIePortLinkSpeed6": "Auto", | |
"DeEmphasis6": "Level-6.0dB", | |
"PCIeMaxPayload6": "Auto", | |
"PCIeASPM6": "Disabled", | |
"MSIEn6": "Disabled", | |
"DISL0STx6": "Disabled", | |
"ECRC6": "Disabled", | |
"PCIePortDisable7": "Auto", | |
"PCIeLinkDis7": "Enabled", | |
"PCIePortLinkSpeed7": "Auto", | |
"DeEmphasis7": "Level-6.0dB", | |
"PCIeMaxPayload7": "Auto", | |
"PCIeASPM7": "Disabled", | |
"MSIEn7": "Disabled", | |
"DISL0STx7": "Disabled", | |
"ECRC7": "Disabled", | |
"PCIePortDisable8": "Auto", | |
"PCIeLinkDis8": "Enabled", | |
"PCIePortLinkSpeed8": "Auto", | |
"DeEmphasis8": "Level-6.0dB", | |
"PCIeMaxPayload8": "Auto", | |
"PCIeASPM8": "Disabled", | |
"MSIEn8": "Disabled", | |
"DISL0STx8": "Disabled", | |
"ECRC8": "Disabled", | |
"PCIePortDisable9": "Auto", | |
"PCIeLinkDis9": "Enabled", | |
"PCIePortLinkSpeed9": "Auto", | |
"DeEmphasis9": "Level-6.0dB", | |
"PCIeMaxPayload9": "Auto", | |
"PCIeASPM9": "Disabled", | |
"MSIEn9": "Disabled", | |
"DISL0STx9": "Disabled", | |
"ECRC9": "Disabled", | |
"PCIePortDisable10": "Auto", | |
"PCIeLinkDis10": "Enabled", | |
"PCIePortLinkSpeed10": "Auto", | |
"DeEmphasis10": "Level-6.0dB", | |
"PCIeMaxPayload10": "Auto", | |
"PCIeASPM10": "Disabled", | |
"MSIEn10": "Disabled", | |
"DISL0STx10": "Disabled", | |
"ECRC10": "Disabled", | |
"PCIePortDisable11": "Auto", | |
"PCIeLinkDis11": "Enabled", | |
"PCIePortLinkSpeed11": "Auto", | |
"DeEmphasis11": "Level-6.0dB", | |
"PCIeMaxPayload11": "Auto", | |
"PCIeASPM11": "Disabled", | |
"MSIEn11": "Disabled", | |
"DISL0STx11": "Disabled", | |
"ECRC11": "Disabled", | |
"PCIePortDisable12": "Auto", | |
"PCIeLinkDis12": "Enabled", | |
"PCIePortLinkSpeed12": "Auto", | |
"DeEmphasis12": "Level-6.0dB", | |
"PCIeMaxPayload12": "Auto", | |
"PCIeASPM12": "Disabled", | |
"MSIEn12": "Disabled", | |
"DISL0STx12": "Disabled", | |
"ECRC12": "Disabled", | |
"PCIePortDisable13": "Auto", | |
"PCIeLinkDis13": "Enabled", | |
"PCIePortLinkSpeed13": "Auto", | |
"DeEmphasis13": "Level-3.5dB", | |
"PCIeMaxPayload13": "Auto", | |
"PCIeASPM13": "Disabled", | |
"MSIEn13": "Disabled", | |
"DISL0STx13": "Disabled", | |
"ECRC13": "Disabled", | |
"PCIePortDisable17": "Auto", | |
"PCIeLinkDis17": "Enabled", | |
"PCIePortLinkSpeed17": "Auto", | |
"DeEmphasis17": "Level-3.5dB", | |
"PCIeMaxPayload17": "Auto", | |
"PCIeASPM17": "Disabled", | |
"MSIEn17": "Disabled", | |
"DISL0STx17": "Disabled", | |
"ECRC17": "Disabled", | |
"CompletionTimeout1": "Enabled", | |
"CompletionTimeoutValue1": "Timeout260msTo900ms", | |
"PCIePortDisable21": "Auto", | |
"PCIeLinkDis21": "Enabled", | |
"PCIePortLinkSpeed21": "Auto", | |
"DeEmphasis21": "Level-3.5dB", | |
"PCIeMaxPayload21": "Auto", | |
"PCIeASPM21": "Disabled", | |
"MSIEn21": "Disabled", | |
"DISL0STx21": "Disabled", | |
"ECRC21": "Disabled", | |
"PCIePortDisable22": "Auto", | |
"PCIeLinkDis22": "Enabled", | |
"PCIePortLinkSpeed22": "Auto", | |
"DeEmphasis22": "Level-6.0dB", | |
"PCIeMaxPayload22": "Auto", | |
"PCIeASPM22": "Disabled", | |
"MSIEn22": "Disabled", | |
"DISL0STx22": "Disabled", | |
"ECRC22": "Disabled", | |
"PCIePortDisable23": "Auto", | |
"PCIeLinkDis23": "Enabled", | |
"PCIePortLinkSpeed23": "Auto", | |
"DeEmphasis23": "Level-6.0dB", | |
"PCIeMaxPayload23": "Auto", | |
"PCIeASPM23": "Disabled", | |
"MSIEn23": "Disabled", | |
"DISL0STx23": "Disabled", | |
"ECRC23": "Disabled", | |
"PCIePortDisable24": "Auto", | |
"PCIeLinkDis24": "Enabled", | |
"PCIePortLinkSpeed24": "Auto", | |
"DeEmphasis24": "Level-6.0dB", | |
"PCIeMaxPayload24": "Auto", | |
"PCIeASPM24": "Disabled", | |
"MSIEn24": "Disabled", | |
"DISL0STx24": "Disabled", | |
"ECRC24": "Disabled", | |
"PCIePortDisable25": "Auto", | |
"PCIeLinkDis25": "Enabled", | |
"PCIePortLinkSpeed25": "Auto", | |
"DeEmphasis25": "Level-6.0dB", | |
"PCIeMaxPayload25": "Auto", | |
"PCIeASPM25": "Disabled", | |
"MSIEn25": "Disabled", | |
"DISL0STx25": "Disabled", | |
"ECRC25": "Disabled", | |
"PCIePortDisable26": "Auto", | |
"PCIeLinkDis26": "Enabled", | |
"PCIePortLinkSpeed26": "Auto", | |
"DeEmphasis26": "Level-6.0dB", | |
"PCIeMaxPayload26": "Auto", | |
"PCIeASPM26": "Disabled", | |
"MSIEn26": "Disabled", | |
"DISL0STx26": "Disabled", | |
"ECRC26": "Disabled", | |
"PCIePortDisable27": "Auto", | |
"PCIeLinkDis27": "Enabled", | |
"PCIePortLinkSpeed27": "Auto", | |
"DeEmphasis27": "Level-6.0dB", | |
"PCIeMaxPayload27": "Auto", | |
"PCIeASPM27": "Disabled", | |
"MSIEn27": "Disabled", | |
"DISL0STx27": "Disabled", | |
"ECRC27": "Disabled", | |
"PCIePortDisable28": "Auto", | |
"PCIeLinkDis28": "Enabled", | |
"PCIePortLinkSpeed28": "Auto", | |
"DeEmphasis28": "Level-6.0dB", | |
"PCIeMaxPayload28": "Auto", | |
"PCIeASPM28": "Disabled", | |
"MSIEn28": "Disabled", | |
"DISL0STx28": "Disabled", | |
"ECRC28": "Disabled", | |
"PCIePortDisable29": "Auto", | |
"PCIeLinkDis29": "Enabled", | |
"PCIePortLinkSpeed29": "Auto", | |
"DeEmphasis29": "Level-6.0dB", | |
"PCIeMaxPayload29": "Auto", | |
"PCIeASPM29": "Disabled", | |
"MSIEn29": "Disabled", | |
"DISL0STx29": "Disabled", | |
"ECRC29": "Disabled", | |
"PCIePortDisable30": "Auto", | |
"PCIeLinkDis30": "Enabled", | |
"PCIePortLinkSpeed30": "Auto", | |
"DeEmphasis30": "Level-6.0dB", | |
"PCIeMaxPayload30": "Auto", | |
"PCIeASPM30": "Disabled", | |
"MSIEn30": "Disabled", | |
"DISL0STx30": "Disabled", | |
"ECRC30": "Disabled", | |
"PCIePortDisable31": "Auto", | |
"PCIeLinkDis31": "Enabled", | |
"PCIePortLinkSpeed31": "Auto", | |
"DeEmphasis31": "Level-6.0dB", | |
"PCIeMaxPayload31": "Auto", | |
"PCIeASPM31": "Disabled", | |
"MSIEn31": "Disabled", | |
"DISL0STx31": "Disabled", | |
"ECRC31": "Disabled", | |
"PCIePortDisable32": "Auto", | |
"PCIeLinkDis32": "Enabled", | |
"PCIePortLinkSpeed32": "Auto", | |
"DeEmphasis32": "Level-6.0dB", | |
"PCIeMaxPayload32": "Auto", | |
"PCIeASPM32": "Disabled", | |
"MSIEn32": "Disabled", | |
"DISL0STx32": "Disabled", | |
"ECRC32": "Disabled", | |
"PCIePortDisable33": "Auto", | |
"PCIeLinkDis33": "Enabled", | |
"PCIePortLinkSpeed33": "Auto", | |
"DeEmphasis33": "Level-6.0dB", | |
"PCIeMaxPayload33": "Auto", | |
"PCIeASPM33": "Disabled", | |
"MSIEn33": "Disabled", | |
"DISL0STx33": "Disabled", | |
"ECRC33": "Disabled", | |
"PCIePortDisable34": "Auto", | |
"PCIeLinkDis34": "Enabled", | |
"PCIePortLinkSpeed34": "Auto", | |
"DeEmphasis34": "Level-3.5dB", | |
"PCIeMaxPayload34": "Auto", | |
"PCIeASPM34": "Disabled", | |
"MSIEn34": "Disabled", | |
"DISL0STx34": "Disabled", | |
"ECRC34": "Disabled", | |
"PCIePortDisable38": "Auto", | |
"PCIeLinkDis38": "Enabled", | |
"PCIePortLinkSpeed38": "Auto", | |
"DeEmphasis38": "Level-3.5dB", | |
"PCIeMaxPayload38": "Auto", | |
"PCIeASPM38": "Disabled", | |
"MSIEn38": "Disabled", | |
"DISL0STx38": "Disabled", | |
"ECRC38": "Disabled", | |
"Cb3DCAEn0": "Disabled", | |
"Cb3DCAEn1": "Disabled", | |
"VTdSupport": "Enabled", | |
"InterruptRemap": "Enabled", | |
"PassThroughDMA": "Enabled", | |
"ATS": "Enabled", | |
"PostedInterrupt": "Enabled", | |
"CoherencySupport": "Enabled", | |
"VMDConfigEnable": "Disabled", | |
"PCIeAICEnabled0": "Disabled", | |
"PCIeAICPortEnable0": "Disabled", | |
"PCIeAICPortEnable1": "Disabled", | |
"PCIeAICPortEnable2": "Disabled", | |
"PCIeAICPortEnable3": "Disabled", | |
"PCIeAICHotPlugEnable0": "Disabled", | |
"PCIeAICEnabled1": "Disabled", | |
"PCIeAICPortEnable4": "Disabled", | |
"PCIeAICPortEnable5": "Disabled", | |
"PCIeAICPortEnable6": "Disabled", | |
"PCIeAICPortEnable7": "Disabled", | |
"PCIeAICHotPlugEnable1": "Disabled", | |
"PCIeAICEnabled2": "Disabled", | |
"PCIeAICPortEnable8": "Disabled", | |
"PCIeAICPortEnable9": "Disabled", | |
"PCIeAICPortEnable10": "Disabled", | |
"PCIeAICPortEnable11": "Disabled", | |
"PCIeAICHotPlugEnable2": "Disabled", | |
"PCIeAICEnabled3": "Disabled", | |
"PCIeAICPortEnable12": "Disabled", | |
"PCIeAICPortEnable13": "Disabled", | |
"PCIeAICPortEnable14": "Disabled", | |
"PCIeAICPortEnable15": "Disabled", | |
"PCIeAICHotPlugEnable3": "Disabled", | |
"PCIeAICEnabled4": "Disabled", | |
"PCIeAICPortEnable16": "Disabled", | |
"PCIeAICPortEnable17": "Disabled", | |
"PCIeAICPortEnable18": "Disabled", | |
"PCIeAICPortEnable19": "Disabled", | |
"PCIeAICHotPlugEnable4": "Disabled", | |
"PCIeAICEnabled5": "Disabled", | |
"PCIeAICPortEnable20": "Disabled", | |
"PCIeAICPortEnable21": "Disabled", | |
"PCIeAICPortEnable22": "Disabled", | |
"PCIeAICPortEnable23": "Disabled", | |
"PCIeAICHotPlugEnable5": "Disabled", | |
"DFXEnable": "Disabled", | |
"PCI64BitResourceAllocation": "Enabled", | |
"MCTPEn": "Enabled", | |
"PCIeGlobalASPM": "Disabled", | |
"PcieRelaxedOrdering": "Enabled", | |
"UFSDisable": "Enabled", | |
"ProcessorEISTEnable": "Enabled", | |
"ConfigTDPLevel": "Nominal", | |
"PStateDomain": "All", | |
"ProcessorEISTPSDFunc": "HWAll", | |
"ProcessorSinglePCTLEn": "Disabled", | |
"ProcessorSPD": "Disabled", | |
"BootPState": "MaxPerformance", | |
"EETurboDisable": "Enabled", | |
"PowerSaving": "Disabled", | |
"SystemCPUUsage": 95, | |
"TurboMode": "Enabled", | |
"TurboPowerLimitLock": "Disabled", | |
"ProcessorFlexibleRatioOverrideEnable": "Disabled", | |
"ProcessorFlexibleRatio": 0, | |
"ProcessorHWPMEnable": "Disabled", | |
"ProcessorHWPMInterrupt": "Disabled", | |
"ProcessorEPPEnable": "Enabled", | |
"ProcessorEPPProfile": "BalancedPerformance", | |
"ProcessorAPSRocketing": "Disabled", | |
"ProcessorScalability": "Disabled", | |
"EnableXE": "Enabled", | |
"OverclockingLock": "Enabled", | |
"ProcessorAutonomousCStateEnable": "Disabled", | |
"C6Enable": "Disabled", | |
"ProcessorC1eEnable": "Disabled", | |
"OSCx": "ACPIC2", | |
"PackageCState": "Auto", | |
"PkgCLatNeg": "Disabled", | |
"TStateEnable": "Enabled", | |
"PwrPerfTuning": "OSControlsEPB", | |
"ProcessorOutofBandAlternateEPB": "OSControlsEPB", | |
"AltEngPerfBIAS": "BalancedPerformance", | |
"OnDieThermalThrottling": "Disabled", | |
"ProchotLock": "Enabled", | |
"EnableProcHot": "InputOnly", | |
"EnableThermalMonitor": "Enabled", | |
"ProchotResponseRatio": 0, | |
"TCCActivationOffset": 0, | |
"Thermalthrottlingsupport": "CLTT", | |
"Thermalmemtrip": "Disabled", | |
"MemhotSupport": "Disabled", | |
"MemhotOutputOnlyOpt": "TemphiOnly", | |
"CKEProgramming": "Disabled", | |
"CKEIdleTimer": 20, | |
"APDEn": "Disabled", | |
"PPDEn": "Enabled", | |
"DDRTCKEEn": "Enabled", | |
"PCHPCIeGlobalASPM": "PerIndividualPort", | |
"PCHPCIeUX16MaxPayloadSize": "MPL512B", | |
"PCHPCIeUX8MaxPayloadSize": "MPL512B", | |
"PCIeRootPortEn0": "Enabled", | |
"PCIeRootPortASPM0": "Disabled", | |
"PCIeRootPortSpeed0": "Auto", | |
"PCIeRootPortMSIE0": "Enabled", | |
"PCIeTopology0": "Unknown", | |
"PCIeRootPortMaxPayLoadSize0": "MPL128B", | |
"PCIeRootPortEn1": "Enabled", | |
"PCIeRootPortASPM1": "Disabled", | |
"PCIeRootPortSpeed1": "Auto", | |
"PCIeRootPortMSIE1": "Enabled", | |
"PCIeTopology1": "Unknown", | |
"PCIeRootPortMaxPayLoadSize1": "MPL128B", | |
"PCIeRootPortEn2": "Enabled", | |
"PCIeRootPortASPM2": "Disabled", | |
"PCIeRootPortSpeed2": "Auto", | |
"PCIeRootPortMSIE2": "Enabled", | |
"PCIeTopology2": "Unknown", | |
"PCIeRootPortMaxPayLoadSize2": "MPL128B", | |
"PCIeRootPortEn3": "Enabled", | |
"PCIeRootPortASPM3": "Disabled", | |
"PCIeRootPortSpeed3": "Auto", | |
"PCIeRootPortMSIE3": "Enabled", | |
"PCIeTopology3": "Unknown", | |
"PCIeRootPortMaxPayLoadSize3": "MPL128B", | |
"PCIeRootPortEn6": "Enabled", | |
"PCIeRootPortASPM6": "Disabled", | |
"PCIeRootPortSpeed6": "Auto", | |
"PCIeRootPortMSIE6": "Enabled", | |
"PCIeTopology6": "Unknown", | |
"PCIeRootPortMaxPayLoadSize6": "MPL128B", | |
"PCIeRootPortEn7": "Enabled", | |
"PCIeRootPortASPM7": "Disabled", | |
"PCIeRootPortSpeed7": "Auto", | |
"PCIeRootPortMSIE7": "Enabled", | |
"PCIeTopology7": "Unknown", | |
"PCIeRootPortMaxPayLoadSize7": "MPL128B", | |
"PCIeRootPortEn8": "Enabled", | |
"PCIeRootPortASPM8": "Disabled", | |
"PCIeRootPortSpeed8": "Auto", | |
"PCIeRootPortMSIE8": "Enabled", | |
"PCIeTopology8": "Unknown", | |
"PCIeRootPortMaxPayLoadSize8": "MPL128B", | |
"PCIeRootPortEn9": "Enabled", | |
"PCIeRootPortASPM9": "Disabled", | |
"PCIeRootPortSpeed9": "Auto", | |
"PCIeRootPortMSIE9": "Enabled", | |
"PCIeTopology9": "Unknown", | |
"PCIeRootPortMaxPayLoadSize9": "MPL128B", | |
"PCIeRootPortEn10": "Enabled", | |
"PCIeRootPortASPM10": "Disabled", | |
"PCIeRootPortSpeed10": "Auto", | |
"PCIeRootPortMSIE10": "Enabled", | |
"PCIeTopology10": "Unknown", | |
"PCIeRootPortMaxPayLoadSize10": "MPL128B", | |
"PCIeRootPortEn11": "Enabled", | |
"PCIeRootPortASPM11": "Disabled", | |
"PCIeRootPortSpeed11": "Auto", | |
"PCIeRootPortMSIE11": "Enabled", | |
"PCIeTopology11": "Unknown", | |
"PCIeRootPortMaxPayLoadSize11": "MPL128B", | |
"PCIeRootPortEn12": "Enabled", | |
"PCIeRootPortASPM12": "Disabled", | |
"PCIeRootPortSpeed12": "Auto", | |
"PCIeRootPortMSIE12": "Enabled", | |
"PCIeTopology12": "Unknown", | |
"PCIeRootPortMaxPayLoadSize12": "MPL128B", | |
"PCIeRootPortEn13": "Enabled", | |
"PCIeRootPortASPM13": "Disabled", | |
"PCIeRootPortSpeed13": "Auto", | |
"PCIeRootPortMSIE13": "Enabled", | |
"PCIeTopology13": "Unknown", | |
"PCIeRootPortMaxPayLoadSize13": "MPL128B", | |
"PCIeRootPortEn14": "Enabled", | |
"PCIeRootPortASPM14": "Disabled", | |
"PCIeRootPortSpeed14": "Auto", | |
"PCIeRootPortMSIE14": "Enabled", | |
"PCIeTopology14": "Unknown", | |
"PCIeRootPortMaxPayLoadSize14": "MPL128B", | |
"PCIeRootPortEn15": "Enabled", | |
"PCIeRootPortASPM15": "Disabled", | |
"PCIeRootPortSpeed15": "Auto", | |
"PCIeRootPortMSIE15": "Enabled", | |
"PCIeTopology15": "Unknown", | |
"PCIeRootPortMaxPayLoadSize15": "MPL128B", | |
"PCIeRootPortEn16": "Enabled", | |
"PCIeRootPortASPM16": "Disabled", | |
"PCIeRootPortSpeed16": "Auto", | |
"PCIeRootPortMSIE16": "Enabled", | |
"PCIeTopology16": "Unknown", | |
"PCIeRootPortMaxPayLoadSize16": "MPL128B", | |
"PCIeRootPortEn17": "Enabled", | |
"PCIeRootPortASPM17": "Disabled", | |
"PCIeRootPortSpeed17": "Auto", | |
"PCIeRootPortMSIE17": "Enabled", | |
"PCIeTopology17": "Unknown", | |
"PCIeRootPortMaxPayLoadSize17": "MPL128B", | |
"PCIeRootPortEn18": "Enabled", | |
"PCIeRootPortASPM18": "Disabled", | |
"PCIeRootPortSpeed18": "Auto", | |
"PCIeRootPortMSIE18": "Enabled", | |
"PCIeTopology18": "Unknown", | |
"PCIeRootPortMaxPayLoadSize18": "MPL128B", | |
"PCIeRootPortEn19": "Enabled", | |
"PCIeRootPortASPM19": "Disabled", | |
"PCIeRootPortSpeed19": "Auto", | |
"PCIeRootPortMSIE19": "Enabled", | |
"PCIeTopology19": "Unknown", | |
"PCIeRootPortMaxPayLoadSize19": "MPL128B", | |
"PCHSATA": "Enabled", | |
"SATAInterfaceMode": "AHCI", | |
"SATAAlternateID": "Disabled", | |
"SATARAIDLoadEFIDriver": "Disabled", | |
"SATAPort0": "Enabled", | |
"SATAHotPlug0": "Enabled", | |
"SATAExternal0": "Disabled", | |
"SATAType0": "HDD", | |
"SATATopology0": "Unknown", | |
"SATAPort1": "Enabled", | |
"SATAHotPlug1": "Enabled", | |
"SATAExternal1": "Disabled", | |
"SATAType1": "HDD", | |
"SATATopology1": "Unknown", | |
"SATAPort2": "Enabled", | |
"SATAHotPlug2": "Enabled", | |
"SATAExternal2": "Disabled", | |
"SATAType2": "HDD", | |
"SATATopology2": "Unknown", | |
"SATAPort3": "Enabled", | |
"SATAHotPlug3": "Enabled", | |
"SATAExternal3": "Disabled", | |
"SATAType3": "HDD", | |
"SATATopology3": "Unknown", | |
"SATAPort4": "Enabled", | |
"SATAHotPlug4": "Enabled", | |
"SATAExternal4": "Disabled", | |
"SATAType4": "HDD", | |
"SATATopology4": "Unknown", | |
"SATAPort5": "Enabled", | |
"SATAHotPlug5": "Enabled", | |
"SATAExternal5": "Disabled", | |
"SATAType5": "HDD", | |
"SATATopology5": "Unknown", | |
"SATAPort6": "Enabled", | |
"SATAHotPlug6": "Enabled", | |
"SATAExternal6": "Disabled", | |
"SATAType6": "HDD", | |
"SATATopology6": "Unknown", | |
"SATAPort7": "Enabled", | |
"SATAHotPlug7": "Enabled", | |
"SATAExternal7": "Disabled", | |
"SATAType7": "HDD", | |
"SATATopology7": "Unknown", | |
"PCHSSATA": "Enabled", | |
"SSATAInterfaceMode": "AHCI", | |
"SSATAAlternateID": "Disabled", | |
"SSATARAIDLoadEFIDriver": "Disabled", | |
"SSATAPort0": "Enabled", | |
"SSATAHotPlug0": "Enabled", | |
"SSATAExternal0": "Disabled", | |
"SSATAType0": "HDD", | |
"SSATATopology0": "Unknown", | |
"SSATAPort1": "Enabled", | |
"SSATAHotPlug1": "Enabled", | |
"SSATAExternal1": "Disabled", | |
"SSATAType1": "HDD", | |
"SSATATopology1": "Unknown", | |
"SSATAPort2": "Enabled", | |
"SSATAHotPlug2": "Enabled", | |
"SSATAExternal2": "Disabled", | |
"SSATAType2": "HDD", | |
"SSATATopology2": "Unknown", | |
"SSATAPort3": "Enabled", | |
"SSATAHotPlug3": "Enabled", | |
"SSATAExternal3": "Disabled", | |
"SSATAType3": "HDD", | |
"SSATATopology3": "Unknown", | |
"SSATAPort4": "Enabled", | |
"SSATAHotPlug4": "Enabled", | |
"SSATAExternal4": "Disabled", | |
"SSATAType4": "HDD", | |
"SSATATopology4": "Unknown", | |
"SSATAPort5": "Enabled", | |
"SSATAHotPlug5": "Enabled", | |
"SSATAExternal5": "Disabled", | |
"SSATAType5": "HDD", | |
"SSATATopology5": "Unknown", | |
"USBPrecondition": "Disabled", | |
"PCHUSBManualMode": "Disabled", | |
"BTCG": "Enabled", | |
"USB3PinsTermination": "DisableAllPins", | |
"EnableUSB3Pin0": "Disabled", | |
"EnableUSB3Pin1": "Disabled", | |
"EnableUSB3Pin2": "Disabled", | |
"EnableUSB3Pin3": "Disabled", | |
"EnableUSB3Pin4": "Disabled", | |
"EnableUSB3Pin5": "Disabled", | |
"EnableUSB3Pin6": "Disabled", | |
"EnableUSB3Pin7": "Disabled", | |
"EnableUSB3Pin8": "Disabled", | |
"EnableUSB3Pin9": "Disabled", | |
"PCHUSBPerPortCtl": "Enabled", | |
"PCHUSBHSPort0": "Enabled", | |
"PCHUSBHSPort1": "Enabled", | |
"PCHUSBHSPort2": "Enabled", | |
"PCHUSBHSPort3": "Enabled", | |
"PCHUSBHSPort4": "Enabled", | |
"PCHUSBHSPort5": "Enabled", | |
"PCHUSBHSPort6": "Enabled", | |
"PCHUSBHSPort7": "Enabled", | |
"PCHUSBHSPort8": "Enabled", | |
"PCHUSBHSPort9": "Enabled", | |
"PCHUSBHSPort10": "Enabled", | |
"PCHUSBHSPort11": "Enabled", | |
"PCHUSBHSPort12": "Enabled", | |
"PCHUSBHSPort13": "Enabled", | |
"PCHUSBSSPort0": "Enabled", | |
"PCHUSBSSPort1": "Enabled", | |
"PCHUSBSSPort2": "Enabled", | |
"PCHUSBSSPort3": "Enabled", | |
"PCHUSBSSPort4": "Enabled", | |
"PCHUSBSSPort5": "Enabled", | |
"PCHUSBSSPort6": "Enabled", | |
"PCHUSBSSPort7": "Enabled", | |
"PCHUSBSSPort8": "Enabled", | |
"PCHUSBSSPort9": "Enabled", | |
"XHCIDisMSICapability": "Disabled", | |
"XHCIOCMapEnabled": "Enabled", | |
"XHCIWakeOnUsbEnabled": "Disabled", | |
"PCHUSBDegradeBar": "Disabled", | |
"PCHADREn": "Enabled", | |
"ADRGPIOSel": "GPIOB", | |
"ADRHostPartitionReset": "PlatformPOR", | |
"FPKPortConfig0": "Enabled", | |
"FPKPortConfig1": "Enabled", | |
"FPKPortConfig2": "Enabled", | |
"FPKPortConfig3": "Enabled", | |
"BMCWDTEnable": "Disabled", | |
"BMCWDTTimeout": 20, | |
"BMCWDTAction": "HardReset", | |
"OSWDTEnable": "Disabled", | |
"OSWDTTimeout": 5, | |
"OSWDTAction": "HardReset", | |
"APEISupport": "Enabled", | |
"APEIEinjType": "Disabled", | |
"CREnable": "Enabled", | |
"GlobalTerminalType": "VT100", | |
"GlobalBaudRate": "Rate115200", | |
"GlobalDataBits": "Bits8", | |
"GlobalParity": "None", | |
"GlobalStopBits": "Bit1", | |
"GlobalFlowControl": "None", | |
"CRInfoWaitTime": "Seconds0", | |
"CRAfterPost": "Yes", | |
"AutoRefresh": "Disabled", | |
"SysDBGLevel": "Disabled", | |
"ComBaseAddr": "Com3F8", | |
"SlotPxeDis": "Enabled", | |
"CdnSupport": "Enabled", | |
"PXE1Setting": "Enabled", | |
"PXE2Setting": "Disabled", | |
"PXE3Setting": "Enabled", | |
"PXE4Setting": "Disabled", | |
"WakeOnPME": "Disabled", | |
"WakeOnS5": "Disabled", | |
"WakeOnS5DayOfMonth": 1, | |
"BootType": "LegacyBoot", | |
"QuickBoot": "Enabled", | |
"QuietBoot": "Disabled", | |
"PXEBootToLanUEFI": "Enabled", | |
"PXEBootToLanLegacy": "Enabled", | |
"NetworkProtocol": "UEFIIPv4", | |
"PXEOnly": "Disabled", | |
"PXERetryCount": 1, | |
"USBBoot": "Enabled", | |
"SPBoot": "Enabled", | |
"BootRetry": "Enabled", | |
"NoBootDevCtr": "Disabled", | |
"BootTypeOrder0": "HardDiskDrive", | |
"BootTypeOrder1": "DVDROMDrive", | |
"BootTypeOrder2": "PXE", | |
"BootTypeOrder3": "Others", | |
"OemSecureBoot": "Disabled" | |
}, | |
"@Redfish.Settings": { | |
"@odata.type": "#Settings.v1_0_2.Settings", | |
"ETag": "cf75fb91", | |
"Messages": null, | |
"Time": null, | |
"SettingsObject": { | |
"@odata.id": "/redfish/v1/Systems/1/Bios/Settings" | |
} | |
}, | |
"Actions": { | |
"#Bios.ResetBios": { | |
"target": "/redfish/v1/Systems/1/Bios/Actions/Bios.ResetBios", | |
"@Redfish.ActionInfo": "/redfish/v1/Systems/1/Bios/ResetBiosActionInfo" | |
} | |
} | |
} | |
############################################################################3 | |
$ curl -u 'Administrator:<redacted>' -XPATCH https://192.168.1.2/redfish/v1/Systems/1/Bios/Settings -d '{"Attributes": {"PXE3Setting": "Disabled"}}' -k -vvv -H 'Content-Type: application/json' -H 'If-Match: W/"cf75fb91"' | |
* Trying 192.168.1.2... | |
* TCP_NODELAY set | |
* Connected to 192.168.1.2 (192.168.1.2) port 443 (#0) | |
* ALPN, offering h2 | |
* ALPN, offering http/1.1 | |
* successfully set certificate verify locations: | |
* CAfile: /etc/pki/tls/certs/ca-bundle.crt | |
CApath: none | |
* TLSv1.3 (OUT), TLS handshake, Client hello (1): | |
* TLSv1.3 (IN), TLS handshake, Server hello (2): | |
* TLSv1.2 (IN), TLS handshake, Certificate (11): | |
* TLSv1.2 (IN), TLS handshake, Server key exchange (12): | |
* TLSv1.2 (IN), TLS handshake, Server finished (14): | |
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16): | |
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1): | |
* TLSv1.2 (OUT), TLS handshake, Finished (20): | |
* TLSv1.2 (IN), TLS handshake, Finished (20): | |
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384 | |
* ALPN, server accepted to use http/1.1 | |
* Server certificate: | |
* subject: C=CN; O=Huawei; ST=GuangDong; L=ShenZhen; OU=IT; CN=huawei | |
* start date: Nov 7 02:04:51 2018 GMT | |
* expire date: Nov 4 02:04:51 2028 GMT | |
* issuer: C=CN; O=Huawei; CN=Huawei IT Product CA | |
* SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway. | |
* Server auth using Basic with user 'Administrator' | |
> PATCH /redfish/v1/Systems/1/Bios/Settings HTTP/1.1 | |
> Host: 192.168.1.2 | |
> Authorization: Basic <redacted> | |
> User-Agent: curl/7.64.0 | |
> Accept: */* | |
> Content-Type: application/json | |
> If-Match: W/"cf75fb91" | |
> Content-Length: 43 | |
> | |
* upload completely sent off: 43 out of 43 bytes | |
< HTTP/1.1 412 Precondition Failed | |
< Date: Fri, 02 Aug 2019 22:55:51 GMT | |
< X-Frame-Options: SAMEORIGIN | |
< X-Download-Options: noopen | |
< Content-Security-Policy: default-src 'none'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; connect-src 'self' wss://*:*; img-src 'self' data:; frame-src 'self'; font-src 'self'; object-src 'self'; style-src 'self' 'unsafe-inline' | |
< OData-Version: 4.0 | |
< Cache-Control: max-age=0, no-cache, no-store, must-revalidate | |
< ETag: W/"57270ade" | |
< X-XSS-Protection: 1; mode=block | |
< Strict-Transport-Security: max-age=31536000; includeSubDomains | |
< X-Content-Type-Options: nosniff | |
< Expires: 0 | |
< Content-Length: 0 | |
< Content-Type: application/json;charset=utf-8 | |
< | |
* Connection #0 to host 192.168.1.2 left intact | |
############################################################################ | |
$ curl -u 'Administrator:<redacted>' -XPATCH https://192.168.1.2/redfish/v1/Systems/1/Bios/Settings -d '{"Attributes": {"PXE3Setting": "Disabled"}}' -k -vvv -H 'Content-Type: application/json' -H 'If-Match: W/"57270ade"' -s | jq . | |
* Trying 192.168.1.2... | |
* TCP_NODELAY set | |
* Connected to 192.168.1.2 (192.168.1.2) port 443 (#0) | |
* ALPN, offering h2 | |
* ALPN, offering http/1.1 | |
* successfully set certificate verify locations: | |
* CAfile: /etc/pki/tls/certs/ca-bundle.crt | |
CApath: none | |
} [5 bytes data] | |
* TLSv1.3 (OUT), TLS handshake, Client hello (1): | |
} [512 bytes data] | |
* TLSv1.3 (IN), TLS handshake, Server hello (2): | |
{ [104 bytes data] | |
* TLSv1.2 (IN), TLS handshake, Certificate (11): | |
{ [912 bytes data] | |
* TLSv1.2 (IN), TLS handshake, Server key exchange (12): | |
{ [333 bytes data] | |
* TLSv1.2 (IN), TLS handshake, Server finished (14): | |
{ [4 bytes data] | |
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16): | |
} [70 bytes data] | |
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1): | |
} [1 bytes data] | |
* TLSv1.2 (OUT), TLS handshake, Finished (20): | |
} [16 bytes data] | |
* TLSv1.2 (IN), TLS handshake, Finished (20): | |
{ [16 bytes data] | |
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384 | |
* ALPN, server accepted to use http/1.1 | |
* Server certificate: | |
* subject: C=CN; O=Huawei; ST=GuangDong; L=ShenZhen; OU=IT; CN=huawei | |
* start date: Nov 7 02:04:51 2018 GMT | |
* expire date: Nov 4 02:04:51 2028 GMT | |
* issuer: C=CN; O=Huawei; CN=Huawei IT Product CA | |
* SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway. | |
* Server auth using Basic with user 'Administrator' | |
} [5 bytes data] | |
> PATCH /redfish/v1/Systems/1/Bios/Settings HTTP/1.1 | |
> Host: 192.168.1.2 | |
> Authorization: Basic <redacted> | |
> User-Agent: curl/7.64.0 | |
> Accept: */* | |
> Content-Type: application/json | |
> If-Match: W/"57270ade" | |
> Content-Length: 43 | |
> | |
} [43 bytes data] | |
* upload completely sent off: 43 out of 43 bytes | |
{ [5 bytes data] | |
< HTTP/1.1 200 OK | |
< Date: Fri, 02 Aug 2019 22:57:06 GMT | |
< X-Frame-Options: SAMEORIGIN | |
< X-Download-Options: noopen | |
< Content-Security-Policy: default-src 'none'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; connect-src 'self' wss://*:*; img-src 'self' data:; frame-src 'self'; font-src 'self'; object-src 'self'; style-src 'self' 'unsafe-inline' | |
< OData-Version: 4.0 | |
< Cache-Control: max-age=0, no-cache, no-store, must-revalidate | |
< ETag: W/"57270ade" | |
< Content-Length: 567 | |
< X-XSS-Protection: 1; mode=block | |
< Strict-Transport-Security: max-age=31536000; includeSubDomains | |
< X-Content-Type-Options: nosniff | |
< Expires: 0 | |
< Content-Type: application/json;charset=utf-8 | |
< | |
{ [567 bytes data] | |
* Connection #0 to host 192.168.1.2 left intact | |
{ | |
"@odata.context": "/redfish/v1/$metadata#Systems/Members/1/Bios/Settings/$entity", | |
"@odata.id": "/redfish/v1/Systems/1/Bios/Settings", | |
"@odata.type": "#Bios.v1_0_0.Bios", | |
"Id": "Settings", | |
"Name": "BIOS Configuration Pending Settings", | |
"AttributeRegistry": "BiosAttributeRegistry.1.9.9", | |
"Attributes": { | |
"PXE3Setting": "Disabled" | |
}, | |
"Actions": { | |
"Oem": { | |
"Huawei": { | |
"#Settings.Revoke": { | |
"target": "/redfish/v1/Systems/1/Bios/Settings/Actions/Oem/Huawei/Settings.Revoke", | |
"@Redfish.ActionInfo": "/redfish/v1/Systems/1/Bios/Settings/SettingsRevokeActionInfo" | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment