From 4cdfd2314731767d3d55ccc6bf12ff98fd23accf Mon Sep 17 00:00:00 2001 From: Anton Andreevich Moroz Date: Mon, 19 Sep 2022 15:50:46 +0300 Subject: [PATCH] Add support create agentless gpoups in meshctrl.js --- meshctrl.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meshctrl.js b/meshctrl.js index 57b3c838ab..33a5b6f13e 100644 --- a/meshctrl.js +++ b/meshctrl.js @@ -579,6 +579,7 @@ if (args['_'].length == 0) { console.log("\r\nOptional arguments:\r\n"); console.log(" --desc [description] - New group description."); console.log(" --amtonly - New group is agent-less, Intel AMT only."); + console.log(" --agentless - New group is agent-less only."); console.log(" --features [number] - Set device group features, sum of numbers below."); console.log(" 1 = Auto-Remove 2 = Hostname Sync"); console.log(" 4 = Record Sessions"); @@ -1356,6 +1357,7 @@ function serverConnect() { var op = { action: 'createmesh', meshname: args.name, meshtype: 2, responseid: 'meshctrl' }; if (args.desc) { op.desc = args.desc; } if (args.amtonly) { op.meshtype = 1; } + if (args.agentless) { op.meshtype = 3; } if (args.features) { op.flags = parseInt(args.features); } if (args.consent) { op.consent = parseInt(args.consent); } ws.send(JSON.stringify(op));