In this lesson, we will cover:

  • What is the Netmiko Delay Factor?
  • What is a Global Delay Factor?
  • What is FastCLI?
  • How to adjust the Delay Factor settings.

Intro to Netmiko's Delay Factor

Delay Factor is a setting within Netmiko that allows you to alter the amount of delay Netmiko will use when interacting with the device. This is useful when a device or command responds slowly or when interacting with a device over high latency links.

This section will look at the two different types of delay factor that can be configured, along with the fast_cli setting, and how this affects our delay factors.

Delay Factor

By default, Netmiko will wait 100 seconds for a send_command to complete. In other words, it will look for the device’s command prompt (or expected_string) for 100 seconds before timing out. However, you may need to increase this setting when a device takes longer than this timeout to finish sending the output. From experience, I have seen Cisco Catalysis devices taking an extremely long time to output a show run, for example.

Members Only Content
Join today and get access to:
  • Full deep-dive course library (inc. Batfish, pyATS, Netmiko)
  • Code repositories inc. full course code, scripts and examples
  • 24x7 Multi-vendor labs (Arista, Cisco, Juniper)
  • Private online community
  • Monthly online meetups

100% Satisfaction Guaranteed!
Cancel your membership at any time.


Join Today
Close You've successfully subscribed to Packet Coders.
Close Success! Your account is fully activated, you now have access to all content.
Close Welcome back! You've successfully signed in.
Close Nearly there! To activate your account, please click the link in the email we just sent you.