Skip to content

Conversation

@d-sharmagit
Copy link
Contributor

PR Description:

Scan all Servers (cmdb_ci_server). For each one, check if there is another CI in cmdb_ci_computer with the same name but not a server (sys_class_name != cmdb_ci_server).
If found, log the server name and the duplicate CI’s class; keep a running duplicate count; finally log the total.

@bird-03 bird-03 self-assigned this Oct 26, 2025
@bird-03
Copy link
Contributor

bird-03 commented Oct 26, 2025

Hey @d-sharmagit
Thanks for your contribution!!

Code looks good and it's useful script in identifying the duplicate servers. We are accepting this for now though recommend to update the description with proper tile as what this PR is about instaed of 'Diksh code hac 06'

Happy Hacking

@d-sharmagit d-sharmagit changed the title Diksh code hac 06 check duplicates from server class Oct 26, 2025
@d-sharmagit
Copy link
Contributor Author

Udated

@bird-03
Copy link
Contributor

bird-03 commented Oct 26, 2025

Thanks for change!

@bird-03 bird-03 merged commit 8155a28 into ServiceNowDevProgram:main Oct 26, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants