NCM capture of running or starting config fails with the following errors generated in the NCMSERV.OUT
log:
Oct 19, 2024 14:44:01.157 - com.aprisma.spectrum.scmd.ScmService.NCM Server Started with services : [io.grpc.ServerServiceDefinition@272113c4]
com.jcraft.jsch.JSchException: Auth fail for methods 'publickey,keyboard-interactive,password'
at com.jcraft.jsch.Session.connect(Session.java:521)
at com.jcraft.jsch.Session.connect(Session.java:199)
at com.aprisma.spectrum.scmd.JschSSH.getSession(JschSSH.java:97)
at com.aprisma.spectrum.scmd.CustomSSH.jschCustomCapture(CustomSSH.java:82)
at com.aprisma.spectrum.scmd.CustomSSH.capture(CustomSSH.java:56)
at com.aprisma.spectrum.scmd.ScmServiceImpl.captureRunningConfigImpl(ScmServiceImpl.java:704)
at com.aprisma.spectrum.scmd.ScmServiceImpl.captureRunningConfigRun(ScmServiceImpl.java:474)
at com.aprisma.spectrum.scmd.ScmServiceImpl$1.run(ScmServiceImpl.java:4151)
at java.base/java.lang.Thread.run(Unknown Source)
com.jcraft.jsch.JSchException: Auth fail for methods 'publickey,keyboard-interactive,password'
And in the debug output, we see:
Oct 20, 2024 18:31:41.828 (captureRunningConfig for host: 192.168.0.1) - Session created successfully
Oct 20, 2024 18:31:41.834 (captureRunningConfig for host: 192.168.0.1) - Execute sucessful com.jcraft.jsch.ChannelShell@5yyxxxx
Oct 20, 2024 18:31:41.853 (captureRunningConfig for host: 192.168.0.1) - Channel connection sucessfull :
Oct 20, 2024 18:31:41.930 (captureRunningConfig for host: 192.168.0.1) - getSSHOutput() started waitTries :5
Oct 20, 2024 18:31:41.930 (captureRunningConfig for host: 192.168.0.1) - while true loop counter :0
Oct 20, 2024 18:31:42.932 (captureRunningConfig for host: 192.168.0.1) - while true loop counter :1
Oct 20, 2024 18:31:43.936 (captureRunningConfig for host: 192.168.0.1) - while true loop counter :2
Oct 20, 2024 18:31:44.939 (captureRunningConfig for host: 192.168.0.1) - while true loop counter :3
Oct 20, 2024 18:31:45.941 (captureRunningConfig for host: 192.168.0.1) - while true loop counter :4
Oct 20, 2024 18:31:46.942 (captureRunningConfig for host: 192.168.0.1) - while true loop counter :5
Oct 20, 2024 18:31:46.942 (captureRunningConfig for host: 192.168.0.1) - exit-status: -1
DX NetOps Spectrum all currently supported releases
The exit status is -1
which means it has failed to connect due to SSH authentication problems with the device.
We've seen issues where the 'Enable Password
' is set on the Device Family level:
If config capture still fails; remove the 'Enable Password
' field content and test again.