cBackup / main

Releases, documentation and issue tracker
http://cbackup.me
GNU Affero General Public License v3.0
30 stars 17 forks source link

timeout. Command: show run . SSH response expect is failed #60

Open mpollero opened 3 years ago

mpollero commented 3 years ago

Hello. I've built new Cbackup Worker to backup via SSH our Network Switch configuration But if I run this command the result is: Task backup, node 239: timeout. Command: show run . SSH response expect is failed. Check comman....

If in same Cbackp Worker I try instead "show run int 1" for example this works fine. What can be the reason of this and How can I solve? Thanks a lot!

mpollero commented 3 years ago

To complete my problem: This worker function well and it give good result: Protocol | SSH terminal lenght 1000 show run int brief logout

If on same switch I run this task it return timeout error: Protocol | SSH terminal lenght 1000 show run logout

skreemer commented 3 years ago

I was getting something similar, if you can instead of "terminal length 1000", try "terminal page 0" (or whatever you need to make it infinite), then set the timeout value for a multiple of 10 to what it currently is now. You can also set the timeout value to something ridiculous and set the "CLI Custom Prompt" to be what the line prompt is (as an example in the ASAs I normally work on the prompt is "#")

One of my customers has a config that's much much longer then everyone else and it took me a while to get the timeout correct.