I wrote a python script to parse via TextFsm the output of cli command on a HP Procurve 2810 switch.
The odd thing is that it runs fine the first time and then the second one throws an EOFerror, the third one work, the fourth one not works and so on.
Inspecting the logs, netmiko is able to connect via ssh to the switch, skip the initial key pressure prompt, write down the credential and log into the switch (both in working and not working scenario)
"Thread-1 paramiko.transport INFO: Authentication (password) successful!"
I've also tried to manually connect and execute the same cli command on the switch to verify the behavior of the device but cli output is always the same. This is not caused by a parsing error. The EOF happens way before parsing stage. In fact, the error happens even without sending any command ("show arp" in the example below).
Playing with timeout values in device_config didn't affect this behavior.
Description of Issue/Question
I wrote a python script to parse via TextFsm the output of cli command on a HP Procurve 2810 switch. The odd thing is that it runs fine the first time and then the second one throws an EOFerror, the third one work, the fourth one not works and so on.
Inspecting the logs, netmiko is able to connect via ssh to the switch, skip the initial key pressure prompt, write down the credential and log into the switch (both in working and not working scenario) "Thread-1 paramiko.transport INFO: Authentication (password) successful!"
I've also tried to manually connect and execute the same cli command on the switch to verify the behavior of the device but cli output is always the same. This is not caused by a parsing error. The EOF happens way before parsing stage. In fact, the error happens even without sending any command ("show arp" in the example below).
Playing with timeout values in device_config didn't affect this behavior.
Setup
other than netmiko, ensure ntc_templates is installed
Netmiko version
Netmiko device_type
Steps to Reproduce the Issue
Execute the script multiple times. The first one works, the second not, the third one works, the fourth not and so on.
Error Traceback
see attachments (working.txt and eof-error.txt) eof-error.txt working.txt
Python code