A network administrator is preparing a Python script 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 the client manager in prevent colleague making changes to the device while the script is running?

IT Questions BankCategory: CCNPA network administrator is preparing a Python script 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 the client manager in prevent colleague making changes to the device while the script is running?
A network administrator is preparing a Python script 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 the client manager in prevent colleague making changes to the device while the script is running? 1ITExamAnswers Staff asked 1 month ago
Question:
A network administrator is preparing a Python script 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 the client manager in prevent colleague making changes to the device while the script is running?

  • A. m.lock (config=’running’)
  • B. m.lock (target=’running’)
  • C. m.freeze (target=’running’)
  • D. m.freeze(config=’running’)

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.

More Questions: CCNP 350-401 Dumps


Related Articles