200-901 Question 196
Select 3A network engineer is tasked with retrieving the running configuration of a network device using the NETCONF protocol. The engineer writes a Python script utilizing the ncclient library. Which of the following elements are required to establish a successful NETCONF session with the device?
- A
The hostname or IP address of the target device
- B
The port number on which the NETCONF service is running
- C
A REST API token for authentication
- D
The username and password for the device
- E
The YANG model file for the device configuration
Show answer and explanation
Correct answers: A, B, D
Explanation
To establish a NETCONF session using the ncclient library, you need the target device's hostname or IP address, the port number for the NETCONF service (usually 830), and valid authentication credentials (username and password or key-based). REST API tokens are irrelevant in this context, and YANG models are utilized later during data manipulation but are not required for session establishment.
- A. Correct.
The hostname or IP address is required to identify and connect to the target device.
- B. Correct.
The port number is needed to connect to the specific service running NETCONF, typically port 830.
- C. Incorrect.
REST API tokens are not used in NETCONF. Authentication for NETCONF typically relies on username/password or key-based mechanisms.
- D. Correct.
A valid username and password are required for authentication to establish a NETCONF session.
- E. Incorrect.
While YANG models define the structure of data used in NETCONF, they are not required to establish a session. They are used later for data manipulation or validation.