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
Arista driver will fail if terminal width 511 command fails #2175
Comments
We also notice this with our Arista switches. Is there a workaround (other than giving the user authorization for this command)? |
Not right now, someone would have to submit a PR to at least not crash on this failure. Why can't this be allowed as an authorization command. It is pretty desirable from an automation perspective to allow this (i.e. even if we fix this, you are likely going to run into problems without the proper terminal width). |
@ktbyers after investigating a bit more I think the issue we have is different. Let me know if I should open another github issue. We are not seeing the Instead we experience random behaviour, on all our 60 Arista devices with EOS 4.18.11M.
Failures look like this:
|
Another observation that might help. I have a netmiko based script called
I can continue running |
@nrocco Sorry your issue slipped through...if you are still working on your problem (still experiencing it, then we should open up a new issue on it). |
Hi @ktbyers, thanks for coming back to this comment. Highly appreciated. We are not 100% sure if we still have this issue but that is because we have a work around in place by overriding
Once we have some time we will remove this work around and see if we can still reproduce the problem. If we can reproduce, we will open a new fresh github issue, as per your recommendation. Thanks for this awesome library btw. |
I am also having this issue:
My user doesn't have authorization to execute that command |
@jessebutryn Yes, in general the fix is to convince your security to allow permissions to that (since it is a totally benign terminal setting). If that doesn't work, you can try using the |
Netmiko tries to verify this command successfully occurred in session_preparation() so if it fails then the SSH connection fails (in the session_preparation step).
This can occur if user does not have permissions to execute that command. One end-user that ran into this would see:
% Authorization denied for command 'terminal width 511'
When he tried to execute that command and get a:
The text was updated successfully, but these errors were encountered: