cancel
Showing results for 
Search instead for 
Did you mean: 
Create Post
Level 8

NCM remediation very slow

Hello,

we are dealing with some remediation scripts for installing Cisco Custom Macros and Cisco Login Banners, they are running very slow

on the devices they even get timeouts.Is there a way to speed them up?

Could be a possible reason for this, that NCM is waiting for a '#' character  at the prompt of the switch cli?

Kind Regards

Erich

Message was edited by: Erich Halmschlager

Labels (1)
Tags (3)
0 Kudos
4 Replies
Level 8

This sped up our script.  NCM was waiting and timing out on each line for a prompt.

${DisablePromptDetection}
banner login #
*****************************************************************
* ***** WARNING. AUTHORIZED USE ONLY. ***** *
* *
* This system is the property of XXXXXXXX and is for *
* authorized use only. All use is subject to monitoring and *
* recording to detect unauthorized activities and violations of *
* XXXX policy. Upon evidence of such acts, XXXX may pursue *
* disciplinary action, civil remedies or criminal prosecution. *
* *
* Continuing indicates your consent to these conditions of use. *
*****************************************************************

#
${EnablePromptDetection}

0 Kudos
Level 17

Are you able to post a sample remediation script? If you enable NCM session tracing, the session trace files should tell you where exactly it is timing out.

0 Kudos

This is the Login Banner Script which we are trying to install via NCM.

If i install this manuall is quite fast on all type of cisco switches.

I did a session trace for this and it seems that NCM is waiting for the correct prompt from the switch

Fuzzy match detector start detecting prompt. String1=_ String2=ginnswdi6002#

see attached the Session-trace file and the debug.txt

Any idea how to speed this up?

Similar problem with the installation of custom macros on the switches, the switch will not send the

expected prompt to NCM.

${EnterConfigMode}

no banner motd

banner login ^

_____________________________________________________________________________________________________________

$$\      $$\                               $$\                     $$\

$$ | $\  $$ |                              \__|                    $$ |

$$ |$$$\ $$ | $$$$$$\   $$$$$$\  $$$$$$$\  $$\ $$$$$$$\   $$$$$$\  $$ |

$$ $$ $$\$$ | \____$$\ $$  __$$\ $$  __$$\ $$ |$$  __$$\ $$  __$$\ $$ |

$$$$  _$$$$ | $$$$$$$ |$$ |  \__|$$ |  $$ |$$ |$$ |  $$ |$$ /  $$ |\__|

$$$  / \$$$ |$$  __$$ |$$ |      $$ |  $$ |$$ |$$ |  $$ |$$ |  $$ |   

$$  /   \$$ |\$$$$$$$ |$$ |      $$ |  $$ |$$ |$$ |  $$ |\$$$$$$$ |$$\

\__/     \__| \_______|\__|      \__|  \__|\__|\__|  \__| \____$$ |\__|

                                                         $$\   $$ |   

                                                         \$$$$$$  |   

                                                          \______/

     __                __   ___     ___      ___  ___  __          __                            

\ / /  \ |  |     /\  |__) |__     |__  |\ |  |  |__  |__) | |\ | / _`                           

|  \__/ \__/    /~~\ |  \ |___    |___ | \|  |  |___ |  \ | | \| \__>                           

                                                                                                 

       ___  __              __   ___  __  ___  __     __  ___  ___  __           __   ___        /

| |\ |  |  /  \     /\     |__) |__  /__`  |  |__) | /  `  |  |__  |  \     /\  |__) |__   /\   /

| | \|  |  \__/    /~~\    |  \ |___ .__/  |  |  \ | \__,  |  |___ |__/    /~~\ |  \ |___ /~~\ .

.

.

Your IP, Login Time, Username has been noted and has been sent to the server administrator!

This service is restricted to authorized users only. All activities on this system are logged.

Unauthorized access will be fully investigated and reported to the appropriate law enforcement agencies.

_____________________________________________________________________________________________________________

^

exit

write memory

Any idea how to speed this up?

Erich

0 Kudos

If you try a simpler message like

banner login ^Unauthorized access will be fully investigated and reported to the appropriate law enforcement agencies^


does it work fine?

0 Kudos