Python Forum

Full Version: My backup is not complete - SSH Paramiko
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have been working with paramiko to automate backups of my Cisco devices (Router & SW). I got SSH to work and I was able to get the configuration with the SHO RUN command, but I can't see all the configuration when I generate the file. I applied the TERMINAL LENG 0 command before executing SH RUN but the file it generates only reaches line 2022. (see images).

CODE:

https://imgur.com/gallery/YiKGqJw

PROBLEM:

https://imgur.com/gallery/kgLBt0G

I don't get the whole configuration
I don't know if it is related to the issue but the two close at the end instead of close() make my eyes suffer.
(Jul-28-2022, 06:16 PM)Gribouillis Wrote: [ -> ]I don't know if it is related to the issue but the two close at the end instead of close() make my eyes suffer.

This was unrelated, but I already closed them so your eyes don't suffer lol

Thanks for the tip.