May 2026
Intermediate to advanced
418 pages
9h 29m
English
In Part 1: Netmiko, you saw that send_command() global configuration mode statements can be used for configuration. However, the send_config_set() method is generally preferred for applying multiple configuration lines—especially when entering sub-modes, such as interface configuration mode.
The send_command() method can be used to enter sub-modes, such as interface configuration mode (interface GigabitEthernet0/0/0), but the expect_string parameter must be used to handle prompt changes. The expect_string parameter in Netmiko’s send_command() method helps Netmiko determine when a command has completed execution by specifying a pattern to look for in the device’s prompt.
Read now
Unlock full access