ExamGecko
Question list
Search
Search

Related questions











Question 924 - 350-401 discussion

Report
Export

Refer to the Exhibit.

Refer to the Exhibit. Running the script causes the output in the exhibit. What should be the first line of the script?

A.

from ncclient import manager

Answers
A.

from ncclient import manager

B.

import manager

Answers
B.

import manager

C.

from ncclient import *

Answers
C.

from ncclient import *

D.

ncclient manager import

Answers
D.

ncclient manager import

Suggested answer: A

Explanation:

hencclientlibrary in Python is used for network programming, particularly with NETCONF protocol which is often utilized in managing network devices, including those from Cisco. Themanagerclass withinncclientis responsible for establishing a NETCONF session with a network device. The error message in the exhibit indicates that themanagerattribute could not be found, which suggests that the import statement was incorrect. The correct import statement ensures that themanagerclass is available in the script's namespace, allowing the script to use it to connect to the network device.


asked 10/10/2024
Robert McConnell
32 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first