Network Management

Script used to configure a Banner on a Cisco device takes a long time or times out in NCM

The Execute Command Script used to configure a banner on a Cisco device takes a long time.

First published date

10/11/2018 5:56 PM

Last published date

10/11/2018 5:56 PM

Overview

The Execute Command Script used to configure a banner on a Cisco device runs slowly or times out. When using Network Configuration Manager (NCM) to add or modify a banner, disable prompt detection to improve the script performance.

Product section

Network Configuration Manager

Resolution

When using NCM to add or modify a banner, disable prompt detection as this is only one command and the NCM logic will check often for a prompt, causing excessive time for the script to complete.

To work around this, add macros in the script to tell NCM not to check for a prompt, and then turn the prompt detection back on after the banner command is complete.

${DisablePromptDetection} will turn this off and ${EnablePromptDetection} will re-enable it.

 

In the command, enter the following:

conf t

${DisablePromptDetection} 

banner motd ^C

*******

Banner Text here

*******

end

${EnablePromptDetection}

This results in a speedier process.