NCM capture fails for custom NCM SSH device family in Spectrum 23.3.3
search cancel

NCM capture fails for custom NCM SSH device family in Spectrum 23.3.3

book

Article ID: 367797

calendar_today

Updated On:

Products

DX NetOps CA Spectrum

Issue/Introduction

The devices in the custom NCM SSH device family requires the enable password. When it is supplied the following error occurs:

SPC-OCC-10747: Error capturing configuration for host: Failure.

Environment

Spectrum 23.3.3

Cause

This is a known issue in Spectrum 23.3.1 to 23.3.5. If the enable password is supplied the NCM capture will fail.

https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/spectrum/23-3/release-information/issues-resolved.html

Symptom: After upgrading to 23.3.1 or higher, NCM Capture is not working with the commands for custom families (with Enable Password provided). 
Resolution: With this fix, Spectrum resolves this issue and ensures that all captures now work properly with the commands and scripts for the custom device families. (DE589173, 33636838, 33637992, 23.3.6)

 

Resolution

As a workaround used a modified version of the Cisco NX OS Capture_Running_Script to capture the device's configuration.

Line 115

from:       if( $login_output !~ /\#\s*\z/ )

to:      if( $login_output !~ /\>\s*\z/ )

Line 121

from:   
      if( $login_output !~ /\#\s*\z/ )  # Replace '#' is the prompt character here
      {
  #        we don't have the '#' prompt, means we still can't exec commands
           $msg = "Exec prompt not found.";
           $ssh->close();
           return( 249, $msg );
      }

to: 
      $ssh->send("enable");
      $ssh->waitfor('Password:\s*', 5);
     my $exec_output =  $ssh->send("$epass");

Added the Additional Script Parameters:

  • T1 : 10
  • T2 : 10

Added the Error Code Mappings:

  • 255 -> Usage error
  • 252 -> Login error
  • 249 -> Exec prompt not found error
  • 244 -> Error retrieving configuration
  • 253 -> Unexpected output