NCM SSH capture of devices not functioning - "Exception caught in GRPC captureRunningConfig..."
search cancel

NCM SSH capture of devices not functioning - "Exception caught in GRPC captureRunningConfig..."

book

Article ID: 273393

calendar_today

Updated On:

Products

CA Spectrum DX NetOps

Issue/Introduction

Configuring Spectrum NCM for the capture of running configs off Cisco devices. When querying one of them, it results in a GRPC error in the return of the running configuration as per debug log from NCM:

Aug 31, 2023 15:48:23.825 (captureRunningConfig for host: xxx.xxx.xxx.xxx) -  CiscoSCP mindterm captureConfig starting:
Aug 31, 2023 15:48:23.825 (captureRunningConfig for host: xxx.xxx.xxx.xxx) -     config: running-config
Aug 31, 2023 15:48:23.825 (captureRunningConfig for host: xxx.xxx.xxx.xxx) -     host: XXX.XXX.XXX.XXX
Aug 31, 2023 15:48:23.825 (captureRunningConfig for host: xxx.xxx.xxx.xxx) -     username: lab
Aug 31, 2023 15:48:23.825 (captureRunningConfig for host: xxx.xxx.xxx.xxx) -     password: xxxxxxxx
Aug 31, 2023 15:48:23.935 (captureRunningConfig for host: xxx.xxx.xxx.xxx) -     login returned true
Aug 31, 2023 15:48:23.935 (captureRunningConfig for host: xxx.xxx.xxx.xxx) -     error: Success
Aug 31, 2023 15:48:23.951 (captureRunningConfig for host: xxx.xxx.xxx.xxx) - captureRunningConfigRun attempts down to: 0
Aug 31, 2023 15:48:23.953 (grpc-default-executor-0) - Exception caught in GRPC captureRunningConfig8523794
java.io.IOException: InputStreamPipe closed

Environment

DX NetOps Spectrum all Releases

Resolution

The last line indicates that the target device is closing the connection:

java.io.IOException: InputStreamPipe closed

But the login returns true:

Aug 31, 2023 15:51:58.544 (captureRunningConfig for host: 20.20.20.2) -     config: running-config
Aug 31, 2023 15:51:58.544 (captureRunningConfig for host: 20.20.20.2) -     host: 20.20.20.2
Aug 31, 2023 15:51:58.544 (captureRunningConfig for host: 20.20.20.2) -     username: lab
Aug 31, 2023 15:51:58.544 (captureRunningConfig for host: 20.20.20.2) -     password: xxxxxxxx
Aug 31, 2023 15:51:58.649 (captureRunningConfig for host: 20.20.20.2) -     login returned true
Aug 31, 2023 15:51:58.649 (captureRunningConfig for host: 20.20.20.2) -     error: Success

Check if the device is configured to allow Spectrum to capture anything from it. It's possible that when Spectrum tries, the device rejects the commands and just closes the connection.

Investigate on the device side and see why it's closing the connection.