-
Notifications
You must be signed in to change notification settings - Fork 727
Dublicated Devices #7339
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
base: master
Are you sure you want to change the base?
Dublicated Devices #7339
Conversation
|
I propose a git commit squash |
|
We discussed this at the meeting, we are going to have a think. Edit: maybe we could do a nodeid replace across the database!? |
it was also about some plugins?!? I am very new to MeshCentral, but I noticed, now the burner, it has not a real relation db schema. Every information is just stored in a JSON in a doc. So to do a replace, every JSON has to be analyzed. Tomorrow I will take a look again at the DB. Besides, it is just an option that can be chosen, it is not forced. But yes, I am welcomed for ideas and I will take a look what I can do. A further question. I had to change the main function to async, because I had trouble receiving the value from the DB without. In case no one has seen it ;) |
|
@stephannn yes the plugins was a sudden brain wave I had in my mind. For example the script task plugin has its own database But it stores information like nodeid ran this command This command is run on against that node If the node suddenly got deleted The plugin would be like WTF where's the node gone? But indeed your unique case as u explained about the AD made a valid point! So the hostnane would always be unique etc so its easy to clean up etc and u wasn't too bothered about history etc!!! Im thinking of maybe merging it but adding a disclaimer in the schema and also displaying a warning in the |
|
@si458 , I took a look again and I think I can add an update for the table power to replace the nodeid with the new one. However, I still have two question. I think when an agent registers, it does not transfer der BIOS ID to check if the new node with the same hostname is really the same device that is going to be replaced. This information will just be in the sinode doc later on. |
|
What is the current status of: |
Hi,
I made a new pull request about duplicated nodes with the same name in MeshCentral. When the property preventDuplicateDevices is set to true and an agent tries to register with an existing name again, the old node gets removed and the new one added.
Please let me know what you think
Edit: #6990