Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meshcmd source code? #17

Open
rgl opened this issue Jul 1, 2020 · 5 comments
Open

meshcmd source code? #17

rgl opened this issue Jul 1, 2020 · 5 comments
Assignees
Labels
Fixed - Confirm & Verify question Further information is requested

Comments

@rgl
Copy link

rgl commented Jul 1, 2020

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?

@nomis
Copy link
Contributor

nomis commented Jul 11, 2020

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.

@Ylianst
Copy link
Owner

Ylianst commented Jul 27, 2020

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 Ylianst self-assigned this Jul 27, 2020
@Ylianst Ylianst added Fixed - Confirm & Verify question Further information is requested labels Jul 27, 2020
@rgl
Copy link
Author

rgl commented Aug 15, 2020

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?

@nomis
Copy link
Contributor

nomis commented Aug 15, 2020

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.

@rgl
Copy link
Author

rgl commented Aug 22, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed - Confirm & Verify question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants