MeshCommander icon indicating copy to clipboard operation
MeshCommander copied to clipboard

meshcmd source code?

Open rgl opened this issue 5 years ago • 5 comments

I do not seem to find meshcmd in this repository nor in https://github.com/Ylianst?tab=repositories. Can you help me find its source code?

rgl avatar Jul 01 '20 20:07 rgl

It's in the MeshCentral repository but it depends on custom node.js modules with names that conflict with existing modules and core modules. Those are in MeshAgent.

nomis avatar Jul 11 '20 18:07 nomis

For meshcmd, if you grab the following files and put them in the same directory:

All files from meshcentral/agents/modules_meshcmd. The meshctrl.js file and meshservice.exe from here.

Then you can run:

meshservice.exe meshctrl.js

And you will see it's the same as running meshctrl.exe. In fact, meshctrl.exe is the just MeshAgent from MeshCentral with JavaScript appended to it. Hope that helps.

Ylianst avatar Jul 27 '20 00:07 Ylianst

Thanks for the explanations!

Is the whole amt library contained in https://github.com/Ylianst/MeshCentral/tree/master/amt?

Does it make sense to convert it into a stand-alone node library (a separate repository/npm package) so it could be used by others?

@nomis, are you trying to port/incorporate/convert this amt library in https://github.com/nomis/intel-amt?

rgl avatar Aug 15 '20 18:08 rgl

That repository just contains things I needed to do that MeshCommander couldn't like creating a server certificate without giving MeshCommander the Root CA private key. I also implemented KVM redirection because MeshCommander is mostly Windows-only and WebSocket redirection isn't currently working on Intel AMT 12.

nomis avatar Aug 15 '20 19:08 nomis

It seems the amt library is at two places:

  1. https://github.com/Ylianst/MeshCentral/tree/master/amt
  2. https://github.com/Ylianst/MeshCentral/tree/master/agents/modules_meshcmd

Which one is the canonical source code?

I ended up using the code from the first at https://github.com/rgl/intel-amt-toggle-power-example, but I'm not sure if I'm using the correct one.

rgl avatar Aug 22 '20 21:08 rgl