CiscoCisco
300-435 · Question #106
300-435 Question #106: Real Exam Question with Answer & Explanation
Sign in or unlock 300-435 to reveal the answer and full explanation for question #106. The question stem and answer options stay visible for context.
Network Automation Foundation
Question
Which of the following Netmiko code snippets correctly uses the `send_command()` method and a valid `device_type` to retrieve interface IP information?
Options
- Afrom netmiko import ConnectHandler router = { 'device_type': 'cisco_ios', 'host': '10.0.10.1', 'username': 'johndoe', 'password': 'Cisco!23!' } net_connect = ConnectHandler(**router) output = net_connect.send_command('show ip int brief') print(output)
- Bfrom netmiko import ConnectHandler router = { 'device_type': 'cisco_ios', 'host': '10.0.10.1', 'username': 'johndoe', 'password': 'Cisco!23!' } net_connect = ConnectHandler(**router) output = net_connect.command('show ip int brief') print(output)
- Cfrom netmiko import ConnectHandler router = { 'device_type': 'ios_xe', 'host': '10.0.10.1', 'username': 'johndoe', 'password': 'Cisco!23!' } net_connect = ConnectHandler(**router) output = net_connect.show_command('show ip int brief') print(output)
- Dfrom netmiko import ConnectHandler router = { 'device_type': 'cisco_ios_xe', 'host': '10.0.10.1', 'username': 'johndoe', 'password': 'Cisco!23!' } net_connect = ConnectHandler(**router) output = net_connect.command('show ip int brief') print(output)
Unlock 300-435 to see the answer
You've previewed enough free 300-435 questions. Unlock 300-435 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#Netmiko#Python scripting#Network automation#CLI commands