Add support create agentless gpoups in meshctrl.js
Anton Andreevich Moroz committed
Sep 19, 2022 at 15:50 UTC
4cdfd2314731767d3d55ccc6bf12ff98fd23accf
1 file changed
+2
meshctrl.js
+2
@@ -579,6 +579,7 @@ if (args['_'].length == 0) {
579
console.log("\r\nOptional arguments:\r\n");
580
console.log(" --desc [description] - New group description.");
581
console.log(" --amtonly - New group is agent-less, Intel AMT only.");
582
+ console.log(" --agentless - New group is agent-less only.");
583
console.log(" --features [number] - Set device group features, sum of numbers below.");
584
console.log(" 1 = Auto-Remove 2 = Hostname Sync");
585
console.log(" 4 = Record Sessions");
@@ -1356,6 +1357,7 @@ function serverConnect() {
1357
var op = { action: 'createmesh', meshname: args.name, meshtype: 2, responseid: 'meshctrl' };
1358
if (args.desc) { op.desc = args.desc; }
1359
if (args.amtonly) { op.meshtype = 1; }
1360
+ if (args.agentless) { op.meshtype = 3; }
1361
if (args.features) { op.flags = parseInt(args.features); }
1362
if (args.consent) { op.consent = parseInt(args.consent); }
1363
ws.send(JSON.stringify(op));