mirror of
https://github.com/amidaware/tacticalrmm.git
synced 2026-04-26 15:05:57 +03:00
[PR #2347] [CLOSED] Add management command to remove duplicate agents #3876
Labels
No labels
In Process
bug
bug
dev-triage
documentation
duplicate
enhancement
fixed
good first issue
help wanted
integration
invalid
pull-request
question
requires agent update
security
ui tweak
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tacticalrmm#3876
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/amidaware/tacticalrmm/pull/2347
Author: @PeetMcK
Created: 11/16/2025
Status: ❌ Closed
Base:
develop← Head:macOS-refactorv2📝 Commits (4)
36eae42Add macOS mesh agent tar.gz archive delivery with .msh config90953ebEnhance macOS mesh agent download with SHA256 checksums and randomized filenamesce5cc77Add management command to remove duplicate agents136032aMerge branch 'amidaware:develop' into macOS-refactorv2📊 Changes
4 files changed (+323 additions, -5 deletions)
View changed files
➕
api/tacticalrmm/agents/management/commands/remove_duplicate_agents.py(+221 -0)📝
api/tacticalrmm/apiv3/views.py(+12 -1)📝
api/tacticalrmm/core/tests.py(+4 -4)📝
api/tacticalrmm/core/utils.py(+86 -0)📄 Description
Summary
Add new management command to identify and remove duplicate agent records based on serial number or hostname.
Features
--serialnumber(default): Remove duplicates by serial number--hostname: Remove duplicates by hostname--deleteflag to execute--ignore-empty-serialflag to skip agents without serial numbersUsage
Example Output
Testing
Already Tested
--serialnumberdry-run and--deleteon test instance and live data--hostnamedry-run and--deleteon test instance and live dataRecommended Test Validation Plan
--ignore-empty-serialflag behavior with agents missing serial numberslast_seentimestamps🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.