Nornir - How to increase Netmiko/NAPALM connection timers #700
-
Hi, A Nornir newbie. I'm pulling an inventory of 300+ Cisco WAN routers from Netbox and i want to run commands against that inventory to either augment the Netbox data or build files that can be used by ELK to enrich data. All routers are using a central TACACS+ server and a significant proportion are connected over satellite. For those devices the round trip latency is at minimum 1/2 second for the ssh session to receive a prompt and the same again for authentication back to the TACACS+ server. Everytime i run the script i have a different number of successes failures regardless of NAPALM or Netmiko. I can manually connect to any of the failed devices. All produce the paramiko/netmiko trace below. I've played about with the nornir run delay and loop options and the number of workers in the init statement. The best result i have managed is nearly 90% success by using a single worker. I am not sure about NAPALM but from my reading I believe netniko gets it's 'conn_timer' from the host config? Can i get that from a netbox custom field and if so can i apply it to the InitNornir or Nornir run. What about NAPALM? If i can't adjust the timers is there an easy way to create a new inventory from the failed_hosts to have another attempt ? Any help/pointers much appreciated, Nick `Host 'bdr01-monuc-gom-DR': task 'Interface_Detail_Index' failed with traceback: During handling of the above exception, another exception occurred: Traceback (most recent call last): |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
here's where you can set this timer.
|
Beta Was this translation helpful? Give feedback.
here's where you can set this timer.