aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve McIntyre <steve.mcintyre@linaro.org>2014-12-24 00:10:17 +0000
committerSteve McIntyre <steve.mcintyre@linaro.org>2014-12-24 00:10:17 +0000
commitdd0c0011fd70eac723d52feefab1cc918fade991 (patch)
tree347f48a99130b081693d7bab2d81a378b1f4410e
parent27d4b580d53b3cf5a10c73f5d6398018a4dcd410 (diff)
Turn off paging on long output altogether
use "terminal datadump" on SX300 use "terminal length 0" on Catalyst Change-Id: I123c047a27cd6f82db7d4578f0c5cfbc8d61bf69
-rw-r--r--drivers/CiscoCatalyst.py2
-rw-r--r--drivers/CiscoSX300.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/CiscoCatalyst.py b/drivers/CiscoCatalyst.py
index a5af25b..8eb01e6 100644
--- a/drivers/CiscoCatalyst.py
+++ b/drivers/CiscoCatalyst.py
@@ -56,7 +56,7 @@ class CiscoCatalyst(SwitchDriver):
self._login(username, password, enablepassword)
# Try to avoid paged output
- self.connection.setwinsize(132, 1000)
+ self._cli("terminal length 0")
# And grab details about the switch. in case we need it
self._get_systemdata()
diff --git a/drivers/CiscoSX300.py b/drivers/CiscoSX300.py
index e2c0bd2..579c034 100644
--- a/drivers/CiscoSX300.py
+++ b/drivers/CiscoSX300.py
@@ -53,8 +53,8 @@ class CiscoSX300(SwitchDriver):
self.connection = pexpect.spawn(self.exec_string, logfile = self.logfile)
self._login(username, password)
- # Try to avoid paged output
- self.connection.setwinsize(132, 1000)
+ # Avoid paged output
+ self._cli("terminal datadump")
# And grab details about the switch. in case we need it
self._get_systemdata()