PoSH-SSH Output To File Length Issues #608
Unanswered
packetflow21
asked this question in
Q&A
Replies: 1 comment
-
|
You should take a look at https://github.com/darkoperator/Posh-SSH/blob/master/Posh-SSH/Posh-SSH.psm1#L884 you can see it keeps reading util a regex matches the prompt and once it does it executes the next command |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I use the Posh-SSH module to authenticate to remote Cisco devices and run IOS commands that output to a local file. It works great when the remote command generates minimal output, example "show inventory | include NM".
The issue I'm having is when the remote command generates pages of output, example "show running-config". Specifically, the command output (to local file) starts writing at a point well after the beginning of the expected command output.
Here is my code snippet:
Any assistance would be greatly appreciated.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions