Ylianst / MeshCentral

A complete web-based remote monitoring and management web site. Once setup you can install agents and perform remote desktop session to devices on the local network or over the Internet.
https://meshcentral.com
Apache License 2.0
4.08k stars 549 forks source link

Docs: Adding meshcentral server debug command #6369

Closed silversword411 closed 2 weeks ago

si458 commented 3 weeks ago

Great suggestion! Can u also add the fact its a FULL debug mode, so will spit everything out

And u can use --debug amt,web etc.. so only show certain debug messages? Basically it's all the values from the servers trace panel

silversword411 commented 3 weeks ago

Basically it's all the values from the servers trace panel

The panel doesn't show any values....and --help doesn't show all those things

me@machine:~$ /usr/bin/node /meshcentral/node_modules/meshcentral --help
MeshCentral v1.1.21, remote computer management web portal.
This software is open source under Apache 2.0 license.
Details at: https://www.meshcentral.com

Run as a background service
   --install/uninstall               Install MeshCentral as a background service.
   --start/stop/restart              Control MeshCentral background service.

Run standalone, console application
   --user [username]                 Always login as [username] if account exists.
   --port [number]                   Web server port number.
   --redirport [number]              Creates an additional HTTP server to redirect users to the HTTPS server.
   --exactports                      Server must run with correct ports or exit.
   --noagentupdate                   Server will not update mesh agent native binaries.
   --nedbtodb                        Transfer all NeDB records into current database.
   --listuserids                     Show a list of a user identifiers in the database.
   --cert [name], (country), (org)   Create a web server certificate with [name] server name.
                                     country and organization can optionally be set.

Server recovery commands, use only when MeshCentral is offline.
   --createaccount [userid]          Create a new user account.
   --resetaccount [userid]           Unlock an account, disable 2FA and set a new account password.
   --adminaccount [userid]           Promote account to site administrator.

Where are all the commands you can use?

...you aren't telling me https://github.com/silversword411/MeshCentral/blob/master/meshcentral.js#L142-L143

that json values are just args passed to the meshcentral....are you??!?!?!?!?!

si458 commented 3 weeks ago

Sorry, I was talking about the web ui my server trace page when u click tracing and select what u want to look at! These are all the debug values that's usable with the --debug option Screenshot_20240909_212134_Firefox

But yes, it's also a good idea these should really be added to the --help option too!

Ylianst commented 2 weeks ago

I am accept this and add more documentation.

Ylianst commented 2 weeks ago

Done (Link)