Update NetOps NCM to update Cisco IOS XR device/hostname
search cancel

Update NetOps NCM to update Cisco IOS XR device/hostname

book

Article ID: 441717

calendar_today

Updated On:

Products

VMware Smart Assurance Network Observability

Issue/Introduction

Hostname/Device name is wrong within NCM for Cisco IOS XR devices.

Resolution

1. File Preparation and Permissions

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.


2. Code Modification

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")


3. Service Restart and Cache Refresh

To apply the changes, the service must be restarted and the device data re-synchronized.

  1. Restart Service: Execute a restart of the vcmaster service.

  2. Clear Cache: Clear the cache to ensure no stale data remains. (within NCM application)

  3. Targeted Pull: Perform a resource pull specifically for SystemProperties and Identity.