Which ncclient manager call prevents others from modifying the device while a script runs?
Choose an answer
Tap an option to check your answer.
Correct answer: m.lock(target='running').
Why this is the answer
The m.lock(target='running') call in ncclient acquires a lock on the running configuration, preventing other NETCONF sessions or users from making changes to the device's configuration while the script is executing. This ensures configuration consistency and avoids conflicts. m.lock(config='running') is incorrect because config is not a valid parameter for the lock method; the correct parameter is target. m.freeze() is not a standard ncclient method for locking configurations; the lock method is used for this purpose.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed