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

Working WLC backups for NCM 6.1 and WLC 6.0.X

Anybody have a working script for NCM 6.1 and Cisco WLCs running 6.0.X or 7.0.X code?

Here's what I'm using today:

<Configuration-Management Device="Cisco WLC" SystemOID=" 1.3.6.1.4.1.9.1.828">
    <Commands>
        <Command Name="PreCommand" Value="${CRLF}"/>
              <Command Name="RESET" Value=""/>
        <Command Name="DownloadConfig" Value="show run-config"/>
        <Command Name="More" Value="Press Enter to continue Or &lt;Ctrl Z&gt; to abort"/>
    </Commands>
</Configuration-Management>

The issue I'm seeing is that the WLC appears to have two different "more" prompts.  Mid-config section the prompt is:
--More or (q)uit current module or <ctrl-z> to abort

At the end of each section, the prompt is:
Press Enter to continue or <ctrl-z> to abort

Enabling tracing shows this repeating over and over in the logs:
[5/4/2011 2:24:21 PM] TimerTick: mstrData=<> State=3 - Connected to server - idle
[5/4/2011 2:24:21 PM] Pending Disconnect = False
[5/4/2011 2:24:21 PM] Pre-Commands: Waiting more than 3 seconds for response start sending pre-command if any...
[5/4/2011 2:24:21 PM] Config Prompt detector error: Invalid procedure call or argumentCurrentLine:
[5/4/2011 2:24:21 PM] Fuzzy match detector start detecting prompt. String1= String2=(ciscocontroller)>
[5/4/2011 2:24:21 PM] TimerTick: Just tick-tockin away. ..

Also seeing this same issue on our 4400s running 6.0.202 and a 5508 running 7.0.X.

Any suggestions or known working scripts?

0 Kudos
4 Replies
Level 7

We have been using the following WLC template by Jodros:

 

<!-- edited with Notepad by Jodros-->
<!--SolarWinds Network Management Tools-->
<!--Copyright 2005 SolarWinds.Net All rights reserved-->
<Configuration-Management Device="Cisco WLC" SystemOID=" 1.3.6.1.4.1.14179.1.1.4.3">
 <Commands>
   <Command Name="DisablePaging" Value="config paging disable" Delay="300"/>
  <Command Name="DownloadConfig" Value="show run-config commands"/>
  <Command Name="Reboot" Value=""/> 
  <Command Name="EnterConfigMode" Value=""/> 
  <Command Name="ExitConfigMode" Value=""/> 
  <Command Name="Startup" Value=""/> 
  <Command Name="Running" Value=""/> 
  <Command Name="UploadConfig" Value=""/> 
  <Command Name="DownloadConfigIndirect" Value=""/> 
  <Command Name="UploadConfigIndirect" Value=""/> 
  <Command Name="EraseConfig" Value=""/> 
  <Command Name="SaveConfig" Value=""/> 
  <Command Name="Version" Value=""/> 
  <Command Name="PreCommand" Value="${CRLF}" Delay="1"/> 
  <Command Name="More" Value="(q)uit" Delay="1"/> 
  <Command Name="MenuBased" Value="false"/>  
  <Command Name="VirtualPrompt" Value="(Cisco Controller) >"/>
 </Commands>
</Configuration-Management>

It is working great for our 6.0 WLCs.

0 Kudos
Level 10

TFTP is the only way to get this without --More-- Lines that I have come across, as there is not a way to turn off paging.(again from what I ahve been able to find)

Back up the Current WLC Template:

Replace the current WLC tempalte Commands with the following and set the transfer protocol to TFTP:

<Command Name="Reset" Value=""/>

            <Command Name="PreCommand" Value="y"/>

            <Command Name="MenuBased" Value="false"/>

            <Command Name="DownloadConfig" Value="show run-config commands"/>

            <Command Name="DownloadConfigIndirect" Value="transfer upload mode tftp${CRLF} transfer upload datatype config${CRLF} transfer upload filename ${StorageFilename}${CRLF} transfer upload serverip ${StorageAddress}${CRLF} transfer upload start${CRLF}y"/>

            <Command Name="More" Value=" or "/>

            <Command Name="Version" Value="show sysinfo"/>

 

Note: With this also the SSH ro Telnet will give an output as TFTP, but will still probably have a more lineor two.

0 Kudos
Level 7

I have the same issue. Anyone ever come up with a solution?

0 Kudos

Have you tried playing with the  terminal length command in order to try to get rid of teh "more"?

On some devices, the syntax looks like this...  <Command Name="RESET" Value="terminal length 1000" />

0 Kudos