Hostname/Device name is wrong within NCM for Cisco IOS XR devices.
First, copy the standard functions include file to the appropriate custom directory to ensure your modifications are preserved during future updates.
Source Path: $VOYENCE_HOME/package/cisco/iosxr/stdfuncs.inc
Destination Path: $VOYENCE_HOME/custompackage/cisco/iosxr/stdfuncs.inc
Note: After copying, verify that the ownership and file permissions on the destination file match the original source file exactly to avoid service execution errors.
Navigate to the ciscoTermGetHostName function within the newly copied file and update the logic for the hostname validation check.
Original Line: if (hostName == "")
Updated Line: if (hostName == "" || hostName == "System")
To apply the changes, the service must be restarted and the device data re-synchronized.
Restart Service: Execute a restart of the vcmaster service.
Clear Cache: Clear the cache to ensure no stale data remains. (within NCM application)
Targeted Pull: Perform a resource pull specifically for SystemProperties and Identity.