Python Forum
My backup is not complete - SSH Paramiko - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: My backup is not complete - SSH Paramiko (/thread-37846.html)



My backup is not complete - SSH Paramiko - Braulio - Jul-28-2022

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


RE: My backup is not complete - SSH Paramiko - Gribouillis - Jul-28-2022

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.


RE: My backup is not complete - SSH Paramiko - Braulio - Jul-28-2022

(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.