[GH-ISSUE #685] Update or Remove duplicate agent #2380

Open
opened 2026-03-14 03:47:01 +03:00 by kerem · 13 comments
Owner

Originally created by @cmiscloni on GitHub (Sep 2, 2021).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/685

By reinstalling the agent, a duplicate computer appears on console, add the possibility to update or remove it in settings.
Thanks

Originally created by @cmiscloni on GitHub (Sep 2, 2021). Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/685 By reinstalling the agent, a duplicate computer appears on console, add the possibility to update or remove it in settings. Thanks
Author
Owner

@silversword411 commented on GitHub (Sep 12, 2021):

I noticed in mesh options there's a feature that "removes disconnected agents"

You might be able to set that to clean agents after x time not connected, but that might kill valid agent's

<!-- gh-comment-id:917528699 --> @silversword411 commented on GitHub (Sep 12, 2021): I noticed in mesh options there's a feature that "removes disconnected agents" You might be able to set that to clean agents after x time not connected, but that might kill valid agent's
Author
Owner

@cmiscloni commented on GitHub (Sep 12, 2021):

The problem is when we 're reinstalling a computer (same computername) , a second agent is create. Maybe if it's possible to create a background task which find the duplicate name and keep only the most recent ?

<!-- gh-comment-id:917575949 --> @cmiscloni commented on GitHub (Sep 12, 2021): The problem is when we 're reinstalling a computer (same computername) , a second agent is create. Maybe if it's possible to create a background task which find the duplicate name and keep only the most recent ?
Author
Owner

@dinger1986 commented on GitHub (Sep 12, 2021):

Is this for mesh or tactical?

<!-- gh-comment-id:917599035 --> @dinger1986 commented on GitHub (Sep 12, 2021): Is this for mesh or tactical?
Author
Owner

@cmiscloni commented on GitHub (Sep 12, 2021):

Tactical

<!-- gh-comment-id:917626920 --> @cmiscloni commented on GitHub (Sep 12, 2021): Tactical
Author
Owner

@nr-plaxon commented on GitHub (Sep 13, 2021):

Something along this maybe: #708

<!-- gh-comment-id:918036115 --> @nr-plaxon commented on GitHub (Sep 13, 2021): Something along this maybe: #708
Author
Owner

@bbrendon commented on GitHub (Sep 23, 2021):

Sounds great but how would you know its a duplicate?
PS. Don't say hostname because I've seen plenty of idiots with duplicate host names on their network.

<!-- gh-comment-id:926232613 --> @bbrendon commented on GitHub (Sep 23, 2021): Sounds great but how would you know its a duplicate? PS. Don't say hostname because I've seen plenty of idiots with duplicate host names on their network.
Author
Owner

@silversword411 commented on GitHub (Sep 24, 2021):

By MAC address, then hostname. Isn't that what everyone else does? ;)

<!-- gh-comment-id:926293642 --> @silversword411 commented on GitHub (Sep 24, 2021): By MAC address, then hostname. Isn't that what everyone else does? ;)
Author
Owner

@nr-plaxon commented on GitHub (Sep 24, 2021):

MAC address by itself would work. Who puts a physical NIC to a different host nowadays… Maybe limit this to agents marked as clients and skip servers. Showing a list of duplicates in the process of the maintenance task so the user can cancel would also be a safety net.

<!-- gh-comment-id:926350499 --> @nr-plaxon commented on GitHub (Sep 24, 2021): MAC address by itself would work. Who puts a physical NIC to a different host nowadays… Maybe limit this to agents marked as clients and skip servers. Showing a list of duplicates in the process of the maintenance task so the user can cancel would also be a safety net.
Author
Owner

@cmiscloni commented on GitHub (Sep 24, 2021):

by IdentifyingNumber (serial)

<!-- gh-comment-id:926751634 --> @cmiscloni commented on GitHub (Sep 24, 2021): by IdentifyingNumber (serial)
Author
Owner

@silversword411 commented on GitHub (Sep 24, 2021):

by IdentifyingNumber (serial)

No, because there's machines with "to be filled in by OEM" out there

<!-- gh-comment-id:926795543 --> @silversword411 commented on GitHub (Sep 24, 2021): > by IdentifyingNumber (serial) No, because there's machines with "to be filled in by OEM" out there
Author
Owner

@dinger1986 commented on GitHub (Oct 15, 2021):

Can probably close this also as covered in #708 as @nr-plaxon mentioned. Agreed best doing it on mac address is the only way or manually is the other option if thats added to mass delete.

<!-- gh-comment-id:944075712 --> @dinger1986 commented on GitHub (Oct 15, 2021): Can probably close this also as covered in #708 as @nr-plaxon mentioned. Agreed best doing it on mac address is the only way or manually is the other option if thats added to mass delete.
Author
Owner

@silversword411 commented on GitHub (Nov 29, 2021):

You now have a manual method of bulk deleting old agents:
github.com/wh1te909/tacticalrmm@2c8f207454
https://github.com/wh1te909/tacticalrmm/pull/830/commits/3f3ab088d233734db0375681dd66fba2ed518154

By: agentver or days since last checkin

Will be in next release.

<!-- gh-comment-id:981704080 --> @silversword411 commented on GitHub (Nov 29, 2021): You now have a manual method of bulk deleting old agents: https://github.com/wh1te909/tacticalrmm/commit/2c8f207454884fa47ce245e4c3a6567e44cbd47b https://github.com/wh1te909/tacticalrmm/pull/830/commits/3f3ab088d233734db0375681dd66fba2ed518154 By: agentver or days since last checkin Will be in next release.
Author
Owner

@jmoran-shafer commented on GitHub (Dec 6, 2023):

+1

<!-- gh-comment-id:1843390240 --> @jmoran-shafer commented on GitHub (Dec 6, 2023): +1
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tacticalrmm#2380
No description provided.