NCM configuration capture fails with Error 252 after changing username to a domain username in DX NetOps Spectrum
search cancel

NCM configuration capture fails with Error 252 after changing username to a domain username in DX NetOps Spectrum

book

Article ID: 438619

calendar_today

Updated On:

Products

Network Observability

Issue/Introduction

 Network Configuration Manager (NCM) was unable to capture host configurations after the username was changed to a domain-based format (Domain\user). The capture failed with a login error in the logs: "Error [252] Host [IP_ADDRESS]: Login has failed. Didn't see device prompt as expected."

 

Environment

Version 24.x 25.x

Cause

The NCM Perl scripts treated the single backslash in the domain username as an escape character rather than a literal character, leading to authentication failure.

debug.log.1750766039476
 Script Name : /opt/CA/Spectrum/NCM/cache/script_0x12345ff_0x12345e7_cap_run_1
 Executable Name : /opt/CA/Spectrum/bin/perl
 Executable Path :
 User Arguments : [30, 45]
 Environment Arguments : [PERL=/opt/CA/Spectrum/bin/perl, PERLLIB=/opt/CA/Spectrum/lib/perl, PERL5LIB=/opt/CA/Spectrum/lib/perl]
Apr 21, 2026 10:01:20.805 (captureRunningConfig for host: [IP_ADDRESS}) - captureConfigScriptImpl configFilename : /opt/CA/Spectrum/NCM/cache/SCM_0x12345ff
Apr 21, 2026 10:01:20.805 (captureRunningConfig for host: [IP_ADDRESS}) - captureConfigScriptImpl : calling captureRunning script
Apr 21, 2026 10:01:20.805 (captureRunningConfig for host: [IP_ADDRESS}) -  RunScript captureRunning starting
Apr 21, 2026 10:01:20.805 (captureRunningConfig for host: [IP_ADDRESS}) -     Config Filename : /opt/CA/Spectrum/NCM/cache/SCM_0x12345ff
Apr 21, 2026 10:01:20.805 (captureRunningConfig for host: [IP_ADDRESS}) - Executing command : [/opt/CA/Spectrum/bin/perl, /opt/CA/Spectrum/NCM/cache/script_0x12345ff_0x12345e7_cap_run_1, [IP_ADDRESS}, DOMAIN\spectrumuser, xxxxxxxx, xxxxxxxx, 30, 45], Process Timeout : 3600000
Apr 21, 2026 10:01:55.753 (captureRunningConfig for host: [IP_ADDRESS}) -  Exception occured :8523794
252

Host [IP_ADDRESS}:
Login has failed. Didn't see device prompt as expected.

Apr 21, 2026 10:01:55.753 (captureRunningConfig for host: [IP_ADDRESS}) - captureRunningConfigRun attempts down to: 0
Apr 21, 2026 10:01:55.753 (grpc-default-executor-421569) - Exception caught in GRPC captureRunningConfig8523794
252

Host [IP_ADDRESS}:
Login has failed. Didn't see device prompt as expected.

 

Resolution

The username configuration was updated to use a double backslash (domain\\spectrumuser) to ensure the backslash was treated as a literal character

User : [DOMAIN]\\spectrumuser
 Password : xxxxxxxx
 Enable Password: SCRIPT
 Capture File Name : SCM_0x12345ff
Apr 21, 2026 10:05:42.203 (captureRunningConfig for host: [IP_ADDRESS]) - Script Configuration :
 Script Name : /opt/CA/Spectrum/NCM/cache/script_0x12345ff_0x12345e7_cap_run_1
 Executable Name : /opt/CA/Spectrum/bin/perl
 Executable Path :
 User Arguments : [30, 45]
 Environment Arguments : [PERL=/opt/CA/Spectrum/bin/perl, PERLLIB=/opt/CA/Spectrum/lib/perl, PERL5LIB=/opt/CA/Spectrum/lib/perl]
Apr 21, 2026 10:05:42.203 (captureRunningConfig for host: [IP_ADDRESS]) - captureConfigScriptImpl configFilename : /opt/CA/Spectrum/NCM/cache/SCM_0x12345ff
Apr 21, 2026 10:05:42.203 (captureRunningConfig for host: [IP_ADDRESS]) - captureConfigScriptImpl : calling captureRunning script
Apr 21, 2026 10:05:42.203 (captureRunningConfig for host: [IP_ADDRESS]) -  RunScript captureRunning starting
Apr 21, 2026 10:05:42.203 (captureRunningConfig for host: [IP_ADDRESS]) -     Config Filename : /opt/CA/Spectrum/NCM/cache/SCM_0x12345ff
Apr 21, 2026 10:05:42.203 (captureRunningConfig for host: [IP_ADDRESS]) - Executing command : [/opt/CA/Spectrum/bin/perl, /opt/CA/Spectrum/NCM/cache/script_0x12345ff_0x12345e7_cap_run_1, [IP_ADDRESS], [DOMAIN]\\spectrumuser, xxxxxxxx, xxxxxxxxxx, 30, 45], Process Timeout : 3600000
Apr 21, 2026 10:07:33.032 (captureRunningConfig for host: [IP_ADDRESS]) - RunScript captureRunning ending.
Apr 21, 2026 10:07:33.052 (captureRunningConfig for host: [IP_ADDRESS]) - captureConfigScriptImpl finished for host [IP_ADDRESS]