nerdexam
Cisco

350-401 · Question #1119

Refer to the exhibit. Which action does the Python script accomplish?

The correct answer is B. connects to the device using SSH and exports the routing table information. The Python script utilizes a network automation library like Netmiko to establish an SSH connection to a network device and then executes commands to retrieve and export routing table information.

Submitted by brentm· Mar 6, 2026Automation

Question

Refer to the exhibit. Which action does the Python script accomplish?

Options

  • Aconnects to the device using Telnet and exports the routing table information
  • Bconnects to the device using SSH and exports the routing table information
  • Cdisplays the output of the show command in an unformatted way
  • Ddisplays the output of the show command in a formatted way

How the community answered

(23 responses)
  • A
    4% (1)
  • B
    83% (19)
  • C
    9% (2)
  • D
    4% (1)

Why each option

The Python script utilizes a network automation library like Netmiko to establish an SSH connection to a network device and then executes commands to retrieve and export routing table information.

Aconnects to the device using Telnet and exports the routing table information

While possible, Telnet is less secure and less common for modern network automation; Netmiko defaults to SSH unless explicitly configured otherwise for Telnet connections.

Bconnects to the device using SSH and exports the routing table informationCorrect

Python scripts commonly use libraries like Netmiko, which by default uses SSH for secure communication with network devices, to execute `show` commands such as `show ip route`. This process collects the command output, effectively 'exporting' or retrieving routing table information from the device for further processing or analysis.

Cdisplays the output of the show command in an unformatted way

The script typically receives raw command output from the device. Whether it's displayed in an unformatted or formatted way depends on the subsequent Python code, but the primary action is connecting and executing the command to retrieve data.

Ddisplays the output of the show command in a formatted way

Displaying formatted output is a secondary processing step that happens after the script connects, runs a command, and retrieves its output. The core action described is the acquisition of information from the device.

Concept tested: Network automation with Python (Netmiko)

Source: https://github.com/ktbyers/netmiko/blob/develop/docs/README.md

Topics

#Python scripting#Network automation#SSH#Routing table export

Community Discussion

No community discussion yet for this question.

Full 350-401 Practice