Switchport Display Values
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-05-2023 09:48 AM
Most of the switchports (dscy_switchport) use the display value from the interface_name column. They are typically in a format like Ethernet19/1 which does not have the switch or router they are from. Our engineers were hoping that switchport records would display in the format interface_name:cmdb_ci.name (ie Ethernet19/1:dis01.jfk3)
Is there any way to change the dscy_switchport to the desired display value without causing issues with auto discovery?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-05-2023 11:39 AM
One possible solution would be to create a separate field called display name and then set that field to display=true. That way it wouldn't change the name field itself or how it is identified but it would change how it is displayed in lists.
The opinions expressed here are the opinions of the author, and are not endorsed by ServiceNow or any other employer, company, or entity.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-05-2023 12:54 PM
Interesting, I was able to add a new calculated field u_port_name with the requested format and set it to the display value. However, in the ci related items view, it does not change.
It looks like the relationship view uses the name field of the dscy_switchport record and not the display value set.
Next thing to determine would be to see if making updating the name field results in discovery conflict.s
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-05-2023 01:26 PM
Yup, looks like dscy_switchport.name is overwritten by default discovery of a switch 😞