mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Added AMT on, off, reset power commands to meshctrl.js, #4038
This commit is contained in:
parent
876562682e
commit
92dac1df8b
2 changed files with 13 additions and 0 deletions
|
@ -955,6 +955,7 @@ module.exports.CreateAmtManager = function (parent) {
|
|||
// If not LMS, has a AMT stack present and is in connected state, perform power operation.
|
||||
if ((dev.connType != 2) && (dev.state == 1) && (dev.amtstack != null)) {
|
||||
// Action: 2 = Power on, 8 = Power down, 10 = reset
|
||||
parent.debug('amt', dev.name, "performPowerAction", action);
|
||||
dev.powerAction = action;
|
||||
try { dev.amtstack.RequestPowerStateChange(action, performPowerActionResponse); } catch (ex) { }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue