question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Scrapli fall down with timeout error even though timeouts are increased.

See original GitHub issue

Hello. Describe the bug When I perform a long-term operation, scapli fails with the timeout exception. But the timers are increased

To Reproduce def test_scrapli():] my_device = { "host": "X.X.X.X", "auth_username": "username", "auth_password": "password", "auth_strict_key": False, 'port': 22, 'timeout_ops': 120, 'timeout_socket': 120, 'timeout_transport': 120, 'timeout_exit': False, 'ssh_config_file': False, } conn = IOSXEDriver(**my_device) conn.open() response = conn.send_command("cellular 0 lte sim activate slot 0") print(response.result)

Screenshots screen

OS (please complete the following information):

  • OS: Linux Ubuntu 18
  • scrapli version: scrapli==2020.7.4
  • version of any optional extras (paramiko|ssh2-python|textfsm, etc.): scrapli-ssh2==2020.6.6

Additional context logs.txt

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
artyomovscommented, Jul 7, 2020

@carlmontanari Checked it. Works perfect. Script is waiting for prompt as expected. Thank you very much for your lib and fast response:)

1reaction
artyomovscommented, Jul 6, 2020

Hi @carlmontanari . Thanks for the instant response. I’ll try to cover all your questions:

  1. The prompt is the same. I can run this command via terminal. Please, check GIF. 30KKdCDYXQ
  2. scrapli pips versions: nornir-scrapli (2020.4.11) scrapli (2020.7.4) scrapli-ssh2 (2020.6.6)
  3. The print(conn.channel.timeout_ops) gives 120 (exactly the timeout that I set).

I hope I helped you to debug. If you have any questions - please feel free to ask.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Advanced Usage - Scrapli - GitHub Pages
After the telnet session is created the timeout is reset to the timeout_transport value (more on that in a second). For system transport,...
Read more >
scrapli 2020.5.9 - PyPI
As stated, scrapli is a python library focused on connecting to devices, specifically network devices via SSH or Telnet. scrapli is built ...
Read more >
Dealing with timeout error while web scraping - Stack Overflow
Is there a way to make my request more manageable or should i use some other libraries/modules for this purpose. Error message :...
Read more >
scrapli: Python SSH|Telnet Screen Scraping Library - YouTube
A not so quick overview about the Python library scrapli. Scrapli is a network-device focused SSH|Telnet screen scraping library designed to ...
Read more >
scrapli - Reddit post and comment search - SocialGrep
scrapli : python (and go) telnet/ssh/netconf client update 97 · Big ol' documentation overhaul... · Added a custom built asynctelnet transport -- not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found