cmdb-ci_ip_address - Name overwrite
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2023 09:57 AM
I believe there is a Business rule or job which updates the "name" field on cmdb_ci_ip_address table with the IP address value. I found a BR "Set IP Address to Name" which is doing it but it states "Name" same as "Asset Tag", is there any other BR which is updating name on the Ip address table?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-22-2025 08:52 AM
It appears this business rule was corrupted when the data type of the ip_address field on this table was changed from a string field to a validated ip address field during a version upgrade. As far as I can tell the name field no longer gets properly set. We modified the BR in our instance to use a script to set the name field to the display value of the ip_address field. Someone with more motivation might open a ticket with ServiceNow to have them fix this for everyone. 🙂
Something like this:
updateName();
function updateName(){
current.name = current.ip_address.getDisplayValue() + '';
}