-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running "terminal length 0" in SSHShellStream does not return any output #591
Comments
This is at the ssh.net library level. When you create the stream and do a read don you get output?
|
In version 3.1.3 running mentioned commands in output we have a response from the devices, so the output looks like:
Running the same in 3.2.3 does return only below output:
If I remove "terminal length 0" command in 3.2.3 I do have an output of interfaces however they have been truncated as the output is bigger than default 24 lines. |
what would happen if you added a
before the
It could be it takes now longer for the shellstream to be created with all the updates the library did and we are hitting a race condition |
Adding "Start-Sleep -Seconds 3" did not resolve it. |
Wonder if it is related to this, since you are using the .Net objects it seems to be more of a library issue StreamReader on ShellStream runs into a lock · Issue #1485 · sshnet/SSH.NETgithub.com
|
In version 3.1.3 once connected to Cisco Switches in SSHShellStream running "terminal length 0" with bellow commands to display multiple lines was working fine.
Since 3.2.3 same commands are failing to generate any output.
$shellStream = New-SSHShellStream -SessionId $SessionID.SessionId
$shellStream.WriteLine("terminal length 0")
$shellStream.WriteLine("show interfaces status | include disabled.* 99 ")
I was able to force to import version 3.1.3 as a workaround.
The text was updated successfully, but these errors were encountered: