-
Notifications
You must be signed in to change notification settings - Fork 63
Description
Hi,
I am in the process of creating a Cisco ACI APIC driver, but the APICs and netshot does not really want to play nice on SSH, from the host where netshot is running in a container, ssh connections work with "ssh -oHostKeyAlgorithms=+ssh-rsa ... ", and the configuration file has the settings for ssh-rsa:
netshot.cli.ssh.hostkeyalgorithms = rsa-sha2-256,rsa-sha2-512,ssh-rsa,ssh-dss,ecdsa-sha2-nistp256
Increasing the log level to netshot.log.level = ALL, also does not help, as more information about the scheduling and worker tasks are provided, but this does not seem to affect the SSH Session log level at all, the error seen is always the same:
2025-04-30 07:56:01,075 WARN [NetshotRunnerScheduler_Worker-7] CliScript: Error while opening SSH connection to 10.190.3.11:22.
java.io.IOException: Session.connect: java.io.IOException: End of IO Stream Read
at onl.netfishers.netshot.device.access.Ssh.connect(Ssh.java:516)
at onl.netfishers.netshot.device.access.Ssh.connect(Ssh.java:427)
at onl.netfishers.netshot.device.script.CliScript.connectRun(CliScript.java:316)
at onl.netfishers.netshot.device.script.CliScript.connectRun(CliScript.java:146)
at onl.netfishers.netshot.work.tasks.TakeSnapshotTask.run(TakeSnapshotTask.java:227)
at onl.netfishers.netshot.work.TaskJob.execute(TaskJob.java:105)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
Caused by: com.jcraft.jsch.JSchException: Session.connect: java.io.IOException: End of IO Stream Read
at com.jcraft.jsch.Session.connect(Session.java:569)
at onl.netfishers.netshot.device.access.Ssh.connect(Ssh.java:501)
... 7 common frames omitted
Caused by: java.io.IOException: End of IO Stream Read
at com.jcraft.jsch.IO.getByte(IO.java:97)
at com.jcraft.jsch.Session.read(Session.java:1231)
at com.jcraft.jsch.Session.connect(Session.java:339)
... 8 common frames omitted
2025-04-30 07:56:01,077 ERROR [NetshotRunnerScheduler_Worker-7] TakeSnapshotTask: Task 10693. Error while taking the snapshot.
There is in the netshot.conf reference this comment:
netshot.log.class.ClassName = DEBUG: sets the log level of a specific class ClassName to a custom level. This obviously requires some knowledge of the Netshot internal code.
But can that be used to enable more debug logging from the SSH session and if so how?
Version used is 0.20.1