tacticalrmm icon indicating copy to clipboard operation
tacticalrmm copied to clipboard

Update or Remove duplicate agent

Open cmiscloni opened this issue 4 years ago • 13 comments

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

cmiscloni avatar Sep 02 '21 10:09 cmiscloni

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

silversword411 avatar Sep 12 '21 01:09 silversword411

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 ?

cmiscloni avatar Sep 12 '21 07:09 cmiscloni

Is this for mesh or tactical?

dinger1986 avatar Sep 12 '21 09:09 dinger1986

Tactical

cmiscloni avatar Sep 12 '21 12:09 cmiscloni

Something along this maybe: #708

nr-plaxon avatar Sep 13 '21 10:09 nr-plaxon

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.

bbrendon avatar Sep 23 '21 23:09 bbrendon

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

silversword411 avatar Sep 24 '21 02:09 silversword411

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.

nr-plaxon avatar Sep 24 '21 05:09 nr-plaxon

by IdentifyingNumber (serial)

cmiscloni avatar Sep 24 '21 16:09 cmiscloni

by IdentifyingNumber (serial)

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

silversword411 avatar Sep 24 '21 17:09 silversword411

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.

dinger1986 avatar Oct 15 '21 07:10 dinger1986

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.

silversword411 avatar Nov 29 '21 14:11 silversword411

+1

jmoran-shafer avatar Dec 06 '23 17:12 jmoran-shafer