350-401 · Question #1119
350-401 Question #1119: Real Exam Question with Answer & Explanation
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.
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
Explanation
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.
Common mistakes.
- A. While possible, Telnet is less secure and less common for modern network automation; Netmiko defaults to SSH unless explicitly configured otherwise for Telnet connections.
- C. 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.
- D. 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)
Reference. https://github.com/ktbyers/netmiko/blob/develop/docs/README.md
Topics
Community Discussion
No community discussion yet for this question.