From 634f6835c73fbf81bdc1f69465b64c2d9d784b5d Mon Sep 17 00:00:00 2001 From: jsastriawan Date: Wed, 5 Aug 2020 13:16:51 -0700 Subject: [PATCH] Add extra check if ChangeBootOrder unsuccessful --- index.html | 9 + output/index.htm | 2775 ++++++++++++++++++++++++++-------------------- 2 files changed, 1599 insertions(+), 1185 deletions(-) diff --git a/index.html b/index.html index ef3737e..8bd51ee 100644 --- a/index.html +++ b/index.html @@ -10442,6 +10442,10 @@ // Set the boot order to null, this is needed for some AMT versions that don't clear this automatically. amtstack.CIM_BootConfigSetting_ChangeBootOrder(null, function (stack, name, response, status) { if (status != 200) { messagebox("Power Action", format("PUT CIM_BootConfigSetting_ChangeBootOrder, Error #{0}", status) + ((response.Header && response.Header.WsmanError) ? (', ' + response.Header.WsmanError) : '')); return; } + if (response.Body.ReturnValue!=0) { + messagebox("Change Boot Order", "Change Boot Order returns "+ response.Body.ReturnValueStr); + return; + } amtstack.Put('AMT_BootSettingData', r, powerActionResponse2, 0, 1); }, 0, 1); } @@ -10490,6 +10494,11 @@ function powerActionResponse3(stack, name, response, status) { console.log('powerActionResponse3(' + name + ',' + response + ',' + status + ')'); if (errcheck(status, stack)) return; + if (response.Body.ReturnValue!=0) { + messagebox("Change Boot Order", "Change Boot Order returns "+ response.Body.ReturnValueStr); + return; + } + //console.log("Performing Power State Change..."); statusbox("Power Action", "Performing power action..."); var action = d5actionSelect.value; diff --git a/output/index.htm b/output/index.htm index f4892ae..c486b30 100644 --- a/output/index.htm +++ b/output/index.htm @@ -1,5 +1,5 @@  - + @@ -641,6 +641,43 @@ th { text-align: right; width: 180px; } + + MeshCommander @@ -666,7 +703,7 @@ th { Loading...

-