darkoperator / darkoperator/Posh-SSH

Running "terminal length 0" in SSHShellStream does not return any output

Open
#591 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PowerShell
Stars
1.1k
Forks
222
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the New-SSHShellStream entry point and reproduce the issue against the reported 3.2.3 and 3.1.3 versions using the two Cisco commands in the report. Compare the shell stream behavior and determine why terminal length 0 suppresses subsequent output; done means the commands again return their expected output in the affected version.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
cli, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.