diff --git a/meshagent.js b/meshagent.js index 297c3b25..f4fa5419 100644 --- a/meshagent.js +++ b/meshagent.js @@ -1889,7 +1889,10 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) { if (!device.intelamt) { device.intelamt = {}; } if ((command.intelamt.Versions != null) && (typeof command.intelamt.Versions == 'object')) { if ((command.intelamt.Versions.AMT != null) && (typeof command.intelamt.Versions.AMT == 'string') && (command.intelamt.Versions.AMT.length < 12) && (device.intelamt.ver != command.intelamt.Versions.AMT)) { changes.push('AMT version'); device.intelamt.ver = command.intelamt.Versions.AMT; change = 1; log = 1; } - if ((command.intelamt.Versions.Sku != null) && (typeof command.intelamt.Versions.Sku == 'string')) { var sku = parseInt(command.intelamt.Versions.Sku); if (device.intelamt.sku !== command.intelamt.sku) { device.intelamt.sku = sku; change = 1; log = 1; } } + if ((command.intelamt.Versions.Sku != null) && (typeof command.intelamt.Versions.Sku == 'string')) { + const sku = parseInt(command.intelamt.Versions.Sku); + if (device.intelamt.sku !== sku) { device.intelamt.sku = sku; change = 1; log = 1; } + } } if ((command.intelamt.ProvisioningState != null) && (typeof command.intelamt.ProvisioningState == 'number') && (device.intelamt.state != command.intelamt.ProvisioningState)) { changes.push('AMT state'); device.intelamt.state = command.intelamt.ProvisioningState; change = 1; log = 1; } if ((command.intelamt.Flags != null) && (typeof command.intelamt.Flags == 'number') && (device.intelamt.flags != command.intelamt.Flags)) { diff --git a/views/default-mobile.handlebars b/views/default-mobile.handlebars index 6f469ea4..0312f671 100644 --- a/views/default-mobile.handlebars +++ b/views/default-mobile.handlebars @@ -4070,7 +4070,7 @@ ); // Show the right settings - QV('d7amtkvm', (currentNode.intelamt != null && ((currentNode.intelamt.ver != null) || (currentNode.agent == null))) && ((deskState == 0) || (desktop.contype == 2))); + QV('d7amtkvm', (currentNode.intelamt != null && ((typeof currentNode.intelamt.sku != 'number') || ((currentNode.intelamt.sku & 16) == 0)) && ((currentNode.intelamt.ver != null) || (currentNode.agent == null))) && ((deskState == 0) || (desktop.contype == 2))); QV('d7meshkvm', ((currentNode.agent != null) && (currentNode.agent.caps & 1) && ((deskState == false) || (desktop.contype == 1)))); // Enable buttons @@ -5831,7 +5831,13 @@ x += addDetailItem("Security", (node.intelamt.tls == 1) ? "Secured using TLS" : "TLS is not setup", s); // Check that the Intel AMT user is setup and there is no warnings (1 = invalid credentials, 8 = trying) x += addDetailItem("Admin Credentials", ((node.intelamt.user) == null || (node.intelamt.user == '') || ((node.intelamt.warn != null) && ((node.intelamt.warn & 9) != 0))) ? "Not Known" : "Known", s); - if (x != '') { sections.push({ name: "Intel® Active Management Technology (Intel® AMT)", html: x, img: 'amt' }); } + if (x != '') { + if ((typeof node.intelamt.sku == 'number') && ((node.intelamt.sku & 16) != 0)) { + sections.push({ name: "Intel® Standard Manageability (Intel® SM)", html: x, img: 'amt' }); + } else { + sections.push({ name: "Intel® Active Management Technology (Intel® AMT)", html: x, img: 'amt' }); + } + } } if (hardware.identifiers) { diff --git a/views/default.handlebars b/views/default.handlebars index 2c762fde..fa1357e7 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -619,7 +619,7 @@
-
Intel® AMT Redirection port or KVM feature is disabled, click here to enable it.
+
Redirection port or KVM feature is disabled, click here to enable it.
@@ -655,7 +655,7 @@ - + Disconnected
@@ -731,7 +731,7 @@
-
Intel® AMT Redirection port or KVM feature is disabled, click here to enable it.
+
Redirection port or KVM feature is disabled, click here to enable it.
@@ -864,7 +864,7 @@
-

Intel® AMT -

+

Intel® AMT -

@@ -7255,6 +7255,15 @@ QV('p15uploadCore', (node.agent != null) && (node.agent.caps != null) && ((node.agent.caps & 16) != 0)); QH('p15coreName', ((node.agent != null) && (node.agent.core != null))?node.agent.core:''); + // Set the Intel AMT / Intel SM tab name + if ((node.intelamt != null) && (typeof node.intelamt.sku == 'number') && ((node.intelamt.sku & 16) != 0)) { + QH('MainDevAmt', "Intel®SM"); + QH('p14deviceNamePrefix', "Intel® SM"); + } else { + QH('MainDevAmt', "Intel®AMT"); + QH('p14deviceNamePrefix', "Intel® AMT"); + } + // Setup/Refresh Intel AMT tab var amtFrameNode = Q('p14iframe').contentWindow.getCurrentMeshNode(); if ((amtFrameNode != null) && (amtFrameNode._id != currentNode._id)) { Q('p14iframe').contentWindow.disconnect(); } @@ -8371,7 +8380,7 @@ ); } // Show the right settings - QV('td7amtkvm', (currentNode.intelamt != null && ((currentNode.intelamt.ver != null) || (currentNode.agent == null))) && ((deskState == 0) || (desktop.contype == 2))); + QV('td7amtkvm', ((currentNode.intelamt != null) && ((typeof currentNode.intelamt.sku != 'number') || ((currentNode.intelamt.sku & 16) == 0)) && ((currentNode.intelamt.ver != null) || (currentNode.agent == null))) && ((deskState == 0) || (desktop.contype == 2))); QV('td7meshkvm', (webRtcDesktop) || ((currentNode.agent != null) && (currentNode.agent.caps & 1) && ((deskState == 0) || (desktop.contype == 1)))); QV('td7rdpkvm', ((currentNode.agent != null) && ((currentNode.agent.id == 3) || (currentNode.agent.id == 4)) && ((deskState == 0) || (desktop.contype == 4)))); @@ -11164,7 +11173,13 @@ x += addDetailItem("Security", (node.intelamt.tls == 1)?"Secured using TLS":"TLS is not setup", s); // Check that the Intel AMT user is setup and there is no warnings (1 = invalid credentials, 8 = trying) x += addDetailItem("Admin Credentials", ((node.intelamt.user) == null || (node.intelamt.user == '') || ((node.intelamt.warn != null) && ((node.intelamt.warn & 9) != 0)))?"Not Known":"Known", s); - if (x != '') { sections.push({ name: "Intel® Active Management Technology (Intel® AMT)", html: x, img: 'amt64.png' }); } + if (x != '') { + if ((typeof node.intelamt.sku == 'number') && ((node.intelamt.sku & 16) != 0)) { + sections.push({ name: "Intel® Standard Manageability (Intel® SM)", html: x, img: 'amt64.png' }); + } else { + sections.push({ name: "Intel® Active Management Technology (Intel® AMT)", html: x, img: 'amt64.png' }); + } + } } if (hardware.identifiers) {