Submit a ticketCall us

Looking to compare latest NPM features with previous versions of NPM?
The NPM new feature summary offers a comparison of new features and improvements offered with this release.

 

Home > Success Center > Network Configuration Manager (NCM) > Remediation script is slow on Cisco compared to manual

Remediation script is slow on Cisco compared to manual

Created by Malik Haider, last modified by Malik Haider on Jul 06, 2016

Views: 25 Votes: 0 Revisions: 4

Updated July 1, 2016

Overview

This article provides brief information and a resolution to the issue when Remediation script is slow on Cisco compared to manual. 

You have  configured a  number of compliance rules for Cisco WLC in NCM. There are different checks and remediation scripts. When the script is running, it takes a lot of time to deliver about 50 commands to WLC. If it is copied/pasted using the same commands and direct SSH connection to WLC, everything works faster.

 

 

It takes more than 10 minutes to execute it.

 

Here is same command entered from direct CLI connection to WLC, and it just takes 10 seconds:

 

xxxxxxx$ ssh 10.175.157.254

The authenticity of host '10.175.157.254 (10.175.157.254)' can't be established.

RSA key fingerprint is SHA256:xxxxxxxxxxxxxxxxxxxxxxxxxxxx.

Are you sure you want to continue connecting (yes/no)? yes

Warning: Permanently added '10.175.157.254' (RSA) to the list of known hosts.

 

(Cisco Controller)

User: rxxxxxxx

Password:*********

(Cisco Controller) >

(Cisco Controller) >

(Cisco Controller) >show time  

              

(Cisco Controller) >show time

 

Time............................................. Fri Jun 24 09:35:27 2016

 

Timezone delta................................... 0:0

Timezone location................................

 

NTP Servers

    NTP Polling Interval.........................     3600

 

     Index     NTP Key Index                  NTP Server                  NTP Msg Auth Status

    -------  ----------------------------------------------------------------------------------

       1              0                                10.150.66.33       AUTH DISABLED

       2              0                               178.63.40.146       AUTH DISABLED

 

(Cisco Controller) >

(Cisco Controller) >

(Cisco Controller) >

(Cisco Controller) >

(Cisco Controller) >config

(Cisco Controller) config>

(Cisco Controller) config>advanced 802.11a channel dca interval 12

 

(Cisco Controller) config> advanced 802.11a channel dca anchor-time 8

 

(Cisco Controller) config>

(Cisco Controller) config>802.11a disable network

 

Disabling the 802.11a network may strand mesh APs. Are you sure you want to continue? (y/n)y

 

 

(Cisco Controller) config>

(Cisco Controller) config> advanced 802.11a channel dca chan-width-11n 80

 

(Cisco Controller) config>802.11a enable network

 

(Cisco Controller) config>

(Cisco Controller) config> advanced 802.11a channel dca sensitivity medium

 

(Cisco Controller) config> advanced 802.11a channel dca min-metric -95

 

(Cisco Controller) config> advanced 802.11a channel load enable

 

(Cisco Controller) config> advanced 802.11a channel device enable

 

(Cisco Controller) config> advanced 802.11a monitor Channel-list all

 

(Cisco Controller) config> advanced 802.11a reporting neighbor 180

 

Already Configured with the value

 

(Cisco Controller) config> advanced 802.11a reporting interference 120

 

Already Configured with the value

 

(Cisco Controller) config> advanced 802.11a profile clients global 20

 

Global client count profile set.

 

(Cisco Controller) config>

(Cisco Controller) config>exit

(Cisco Controller) >

(Cisco Controller) >

(Cisco Controller) >show time

 

Time............................................. Fri Jun 24 09:35:38 2016

 

Timezone delta................................... 0:0

Timezone location................................

 

NTP Servers

    NTP Polling Interval.........................     3600

 

     Index     NTP Key Index                  NTP Server                  NTP Msg Auth Status

    -------  ----------------------------------------------------------------------------------

       1              0                                10.150.66.33       AUTH DISABLED

       2              0                               178.63.40.146       AUTH DISABLED

 

 

(Cisco Controller) >

Environment

All NCM versions

 

Cause 

From session trace:

[24.06.2016 9:22:10] --> (Cisco Controller) >
[24.06.2016 9:22:10] Incomplete buffer with prompt is detected - save all lines to echo buffer
[24.06.2016 9:22:10] Echo not detected yet. Push back data to echo buffer, EchoBuffer = <<<
(Cisco Controller) >
>>>
[24.06.2016 9:22:10] Start detecting command echo in echo buffer...
[24.06.2016 9:22:10] Detected echo on emtpy command
[24.06.2016 9:22:10] Echo is detected, EchoBuffer = <<<
(Cisco Controller) >
>>>
[24.06.2016 9:22:10] Remove Prompt - detected prompt line via RegEx
[24.06.2016 9:22:10] Remove Prompt - prompt line is on invalid place, Save It. value=
(Cisco Controller) >
FoundPromptLine=(Cisco Controller) >

[24.06.2016 9:22:10] Echo and prompt are removed if they exist, out buffer = <<<
(Cisco Controller) >
>>>
[24.06.2016 9:22:10] Start check prompt for menu-based device
[24.06.2016 9:22:10] Process Line = <>

[24.06.2016 9:22:10] Process Line = <(Cisco Controller) >>
[24.06.2016 9:22:10] Fuzzy match detector start detecting prompt. String1=(ciscocontroller)> String2=(ciscocontroller)>
[24.06.2016 9:22:10] Parse Command 
[24.06.2016 9:22:10] <-- 

[24.06.2016 9:22:10] Process Line = <>
[24.06.2016 9:22:10] --> 
[24.06.2016 9:22:10] --> (Cisco Controller) >
[24.06.2016 9:22:10] Incomplete buffer with prompt is detected - save all lines to echo buffer
[24.06.2016 9:22:10] Echo not detected yet. Push back data to echo buffer, EchoBuffer = <<<
(Cisco Controller) >
>>>
[24.06.2016 9:22:10] Start detecting command echo in echo buffer...
[24.06.2016 9:22:10] Detected echo on emtpy command
[24.06.2016 9:22:10] Echo is detected, EchoBuffer = <<<
(Cisco Controller) >
>>>
[24.06.2016 9:22:10] Remove Prompt - detected prompt line via RegEx
[24.06.2016 9:22:10] Remove Prompt - prompt line is on invalid place, Save It. value=
(Cisco Controller) >
FoundPromptLine=(Cisco Controller) >

[24.06.2016 9:22:10] Echo and prompt are removed if they exist, out buffer = <<<
(Cisco Controller) >
>>>
[24.06.2016 9:22:10] Start check prompt for menu-based device
[24.06.2016 9:22:10] Process Line = <>
[24.06.2016 9:22:10] Process Line = <(Cisco Controller) >>
[24.06.2016 9:22:10] Fuzzy match detector start detecting prompt. String1=(ciscocontroller)> String2=(ciscocontroller)>
[24.06.2016 9:22:10] SendNextCommand Done: Disconnecting
[24.06.2016 9:22:10] Process Line = <>
[24.06.2016 9:22:11] TimerTick: mstrData=<> State=3 - Connected to server - idle
[24.06.2016 9:22:11] Pending Disconnect = True
[24.06.2016 9:22:11] Disconnected - From: 10.175.157.254

 

Command mode prompt is not recognized by NCM after the device has entered to config mode.

 

Resolution

Please add to device template the following line to resolve issue:
<Command Name="PromptIgnoreSequences" Value="config"/>

 

 

 

 

Last modified
02:07, 6 Jul 2016

Tags

Classifications

Public