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

removal of device nodes using meshctrl #4753

Closed
Takeiteasyeh opened this issue Nov 12, 2022 · 10 comments · Fixed by #5487
Closed

removal of device nodes using meshctrl #4753

Takeiteasyeh opened this issue Nov 12, 2022 · 10 comments · Fixed by #5487

Comments

@Takeiteasyeh
Copy link

I have not found a way to actually remove a device through meshctrl.js after issuing an uninstall command and have not found another workaround other than doing it from inside the meshcentral ui.

Can this be added to meshctrl?

@Ylianst Ylianst self-assigned this Nov 15, 2022
@Ylianst
Copy link
Owner

Ylianst commented Nov 15, 2022

Your right. I had not noticed this, working on adding that now.

@Ylianst
Copy link
Owner

Ylianst commented Nov 15, 2022

Added "removedevice" to meshctrl.js, will be in MeshCentral v1.0.98.

@tiagogbarbosa
Copy link

Sorry to reopen, but im trying to remove all offline from one group, but i think meshctrl is waiting for uninstall, because removedevice return 'ok' but dont remove the device from group/meshcentral

@si458
Copy link
Collaborator

si458 commented Oct 31, 2023

Sorry to reopen, but im trying to remove all offline from one group, but i think meshctrl is waiting for uninstall, because removedevice return 'ok' but dont remove the device from group/meshcentral

whats the command/exmaple you are using?

@tiagogbarbosa
Copy link

/srv/meshc/node_modules/meshcentral/meshctrl.js --url wss://mesh.xxxxxxx:443 RemoveDevice --loginuser xxxxxxxxx --loginpass xxxxxxxxx --id 'Y9UVQggLEoMSEpB2pmvY@EKoe7iYnXVYUVLwSuySVup3AOMSaHZyjGQlJFK5DnNi'

return "ok"

@si458
Copy link
Collaborator

si458 commented Oct 31, 2023

/srv/meshc/node_modules/meshcentral/meshctrl.js --url wss://mesh.xxxxxxx:443 RemoveDevice --loginuser xxxxxxxxx --loginpass xxxxxxxxx --id 'Y9UVQggLEoMSEpB2pmvY@EKoe7iYnXVYUVLwSuySVup3AOMSaHZyjGQlJFK5DnNi'

return "ok"

are you running the command from the meshcentral server itself or remotely?

@tiagogbarbosa
Copy link

it self, i think the command is correct, because i can listdevices and any other command, but, removedevice wont remove, just return ok

@si458
Copy link
Collaborator

si458 commented Oct 31, 2023

never used the meshctrl but yeh just tried it and its the same here!
it doesnt remove a computer thats inactive i specify
weird?

@si458 si458 reopened this Oct 31, 2023
@si458
Copy link
Collaborator

si458 commented Oct 31, 2023

@tiagogbarbosa found the bug for you! doing a PR soon to fix for you

WORKAROUND: if using the normal domain send --id as node//IDGOESHERE if using a subdomain use node/DOMAINHERE/IDGOESHERE

@tiagogbarbosa
Copy link

Ty!!!

*closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants