Which operation of he in client manager prevent colleague making changes to the device while the scrip is running?

Posted by: Pdfprep Category: 350-401 Tags: , ,

A network administrator is preparing a Python scrip to configure a Cisco IOS XE-based device on the network. The administrator is worried that colleagues will make changes to the device while the script is running.

Which operation of he in client manager prevent colleague making changes to the device while the scrip is running?
A . m.lock(config=’running’)
B . m.lock(target=’running’)
C . m.freeze(target=’running’)
D . m.freeze(config=’running’)

Answer: B

Explanation:

The example below shows the usage of lock command:

def demo(host, user, names):

With manager. Connect(host=host, port=22, username=user) as m:

With m.locked(target=’running’):

for n in names:

m.edit_config (target=’running’, config=template % n)

The command “m.locked (target=’running’)” causes a lock to be acquired on the

running datastore.

Leave a Reply

Your email address will not be published.