How to Distinguish Core, Distribution, Access Switch in CMDB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi All,
In cmdb_ci_ip_switch, we don't have a clear way to distinguish IP Switches aside from the naming convention, but the naming convention won't be enough as it could easily be misread or overlooked.
Is there any way to easily distinguish these IP Switches especially for generating Reports or Queries?
Regards!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @FriendlyDude ,
You’re correct that relying solely on naming conventions can be risky. The most reliable way to distinguish Core, Distribution, and Access switches in cmdb_ci_ip_switch is to add a dedicated field with choices:
Core, Distribution, Access. This makes reporting and queries much simpler and avoids confusion.
If adding a field is not possible, you can still infer the type using CI relationships:
Core switch: Usually at the top of the hierarchy, has many Used by child devices, and few or no parents.
Distribution switch: Has both a parent (Core) and children (Access).
Access switch: Typically has only a parent (Distribution) and no children.
In ServiceNow, you can check this by opening a switch record and looking under Related Items / CI Relationships:
Depends on → shows parent switches
Used by or Contains → shows child devices
Adding a Switch Type choice field is the simplest and most reliable solution, while relationships can be used for inference if needed.
Thanks & Regards,
Muhammad Iftikhar
If my response helped, please mark it as the accepted solution so others can benefit as well.