-
Notifications
You must be signed in to change notification settings - Fork 619
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add option to prefer --agentName over hostname when syncing name to server #6808
Comments
in theory you can set |
@redneck-f25 ok have checked, it does seem to only use that value on first launch/install, |
@si458 thanks for the check. i haven't forgotten. i just did not. in the PR comment i mentioned i will do :-). Please could you double-check that mesh flags 8 an 16 are not uses right now. Another reason for --agentName is, that even this year Windows and applications and services running on it (e.g. Mark Russinovich's psexec) have problems with (tcp-/dns-)hostnames longer than the NetBIOS-ComputerName limit (something like 15 or 16 octets). |
|
@si458 got in touch with translation tool, attached another PR to this issue Steps:
concerning changes:
|
@si458 what do you think about this issue and the PRs? It's a hassle to always stash and merge on vendor-updates :-). so i build a plugin, which resolves my needs: MeshCentral-Agentname2Servername (see the Bugs section). I would prefer to have this merged into the core. If you don't have the time for this (i.e. translations) we might close this issue and the PRs to get it out of our mind. Another word about debugging: The plugin depends on the MeshCentral-PluginHookScheduler which has a companion MeshCentral-PluginHookExample to explain the usage. Maybe it can support you and other contributors while debugging and improving (as the two WIP |
@redneck-f25 sorry mad a mad weekend. I will try to have a look on Wednesday on my development machine and see how it goes and come back to you! |
Is your feature request related to a problem? Please describe.
On embedded devices in our network the configured agent name (--agentName) changes on outer conditions while the hostname itself does not change. So we need have an option to prefer the agent name (if given as argument) over the hostname.
In this context it would also be nice to opt-in to be able to change the name an the server until then next connection. This makes ist easier to track changes while commissioning.
Describe the solution you'd like
See pull request and the Screenshot below.
Describe alternatives you've considered
We could use a plugin to detect the circumstance and drop the records from the DB and let the device reconnect.
Additional context

The text was updated successfully, but these errors were encountered: