Skip to content

Instantly share code, notes, and snippets.

@NilashishC
Last active May 6, 2021 12:28
Show Gist options
  • Save NilashishC/62cf8e945ac9a49e743fb2b553b8716d to your computer and use it in GitHub Desktop.
Save NilashishC/62cf8e945ac9a49e743fb2b553b8716d to your computer and use it in GitHub Desktop.
With paramiko
=============================================
7.8s receive: debug1="sending b'show privilege'"
8.5s receive: debug2="elapsed time for b'show privilege' is 0.6761984630000004"
8.5s receive: debug1="sending b'terminal length 0'"
9.2s receive: debug2="elapsed time for b'terminal length 0' is 0.7048374580000001"
9.2s receive: debug1="sending b'terminal width 511'"
9.9s receive: debug2="elapsed time for b'terminal width 511' is 0.7234405829999986"
9.9s receive: debug1="sending b'show version'"
11.8s receive: debug2="elapsed time for b'show version' is 1.9406158309999988"
11.9s receive: debug1="sending b'show inventory'"
12.5s receive: debug2="elapsed time for b'show inventory' is 0.6642985800000005"
12.5s receive: debug1="sending b'show vlan | json'"
15.6s receive: debug2="elapsed time for b'show vlan | json' is 3.0500671079999986"
15.6s receive: debug1="sending b'show running-config | section ^vlan'"
16.7s receive: debug2="elapsed time for b'show running-config | section ^vlan' is 1.077060490000001"
16.8s receive: debug1="sending b'show license host-id'"
17.5s receive: debug2="elapsed time for b'show license host-id' is 0.7084046410000013"
With libssh and default buffer size in read_nonblocking
=========================================================
10.6s receive: debug1="sending b'show privilege'"
11.3s receive: debug2="elapsed time for b'show privilege' is 0.6715347189999985"
11.3s receive: debug1="sending b'terminal length 0'"
11.9s receive: debug2="elapsed time for b'terminal length 0' is 0.6508538640000001"
11.9s receive: debug1="sending b'terminal width 511'"
12.7s receive: debug2="elapsed time for b'terminal width 511' is 0.7419683689999985"
12.7s receive: debug1="sending b'show version'"
14.6s receive: debug2="elapsed time for b'show version' is 1.909365288"
14.6s receive: debug1="sending b'show inventory'"
15.3s receive: debug2="elapsed time for b'show inventory' is 0.673755057000001"
15.3s receive: debug1="sending b'show vlan | json'"
84.2s receive: debug2="elapsed time for b'show vlan | json' is 1068.895027147"
84.2s receive: debug1="sending b'show running-config | section ^vlan'"
85.3s receive: debug2="elapsed time for b'show running-config | section ^vlan' is 1.0293215199999395"
85.4s receive: debug1="sending b'show license host-id'"
86.0s receive: debug2="elapsed time for b'show license host-id' is 0.6607324169999629"
With libssh and buffer size 8096 in read_nonblocking
==========================================================
7.8s receive: debug1="sending b'show privilege'"
8.5s receive: debug2="elapsed time for b'show privilege' is 0.6750622569999987"
8.5s receive: debug1="sending b'terminal length 0'"
9.2s receive: debug2="elapsed time for b'terminal length 0' is 0.698967584"
9.2s receive: debug1="sending b'terminal width 511'"
9.9s receive: debug2="elapsed time for b'terminal width 511' is 0.7140276300000004"
9.9s receive: debug1="sending b'show version'"
11.9s receive: debug2="elapsed time for b'show version' is 1.9206860830000014"
11.9s receive: debug1="sending b'show inventory'"
12.5s receive: debug2="elapsed time for b'show inventory' is 0.6724501720000013"
12.6s receive: debug1="sending b'show vlan | json'"
95.9s receive: debug2="elapsed time for b'show vlan | json' is 283.338186504"
95.9s receive: debug1="sending b'show running-config | section ^vlan'"
96.9s receive: debug2="elapsed time for b'show running-config | section ^vlan' is 0.9914968169999838"
97.0s receive: debug1="sending b'show license host-id'"
97.7s receive: debug2="elapsed time for b'show license host-id' is 0.6632950979999919"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment