0

I'm using a python script to access to cisco switch using SSH or telnet .. I'm using module pexpect .. the connection done. My problem that, when I want to show all the configuration using

telconn.sendline("sh run " + "\r")

I can't see all the configuration cuz I face a problem with --more--. So how I can avoid this and what I can do to see all the configuration

Tariq
  • 101
  • 1
  • 1
  • 10

1 Answers1

1

You need to send terminal length 0 command first. That will disable pagination that is enabled on the router by default.

pajaja
  • 2,164
  • 4
  • 25
  • 33