Skip to content
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

getting error in commands that take a long time to process. #10

Open
rromera opened this issue Apr 9, 2020 · 0 comments
Open

getting error in commands that take a long time to process. #10

rromera opened this issue Apr 9, 2020 · 0 comments

Comments

@rromera
Copy link

rromera commented Apr 9, 2020

Hi.

Im getting a credentials message error, but the problem is the time that the router take to finish the command.

This is the how to reproduce the problem - in my case I trying to get routing information of a barder gateway):
PS> Invoke-JunosCommand -Device $router -User $user -Password $password -Command "show route protocol bgp terse |no-more "
AVISO: There was a problem connecting to 192.168.99.8.
AVISO: Please make sure your credentials are correct, and that the device is reachable.

PS> Invoke-JunosCommand -Device $router -User $user -Password $password -Command "show route protocol bgp terse |no-more | last"
AVISO: There was a problem connecting to 192.168.99.8.
AVISO: Please make sure your credentials are correct, and that the device is reachable.

PS> Invoke-JunosCommand -Device $router -User $user -Password $password -Command "show version |no-more | last"

192.168.99.8

JUNOS jail runtime [20180730.2cd3a6e_builder_stable_11]
---(more 100%)---

PS>

In the 1st and 2nd commands the box take a long time to finish the execution and return a credential erros.
In the 3rd is a case that box reply quickly e show the result as expected.

TIA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant