Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: RANCID: Users

Cisco WLC error in log

 

 

RANCID users RSS feed   Index | Next | Previous | View Threaded


DSearle at geminigroup

Jun 13, 2012, 9:56 AM

Post #1 of 2 (740 views)
Permalink
Cisco WLC error in log

Hi,

I'm trying to get my Cisco 2504 WLC to talk with RANCID. With the help of the posts from here

http://www.shrubbery.net/pipermail/rancid-discuss/2012-March/006254.html

I have been able to get the router.db and .cloginrc setup correctly. I also have included the information into rancid-fe.

Here is the line in router.db
----
172.x.x.x:cisco-wlc5:up
----

.cloginrc
----
add user 172.x.x.x {user}
add autoenable 172.x.x.x 1
add password 172.x.x.x {password} {password}
add method 172.x.x.x ssh
----

If I manually do the following it works great:
----
rancid [at] akum:~$ bin/clogin 172.x.x.x
172.x.x.x
spawn ssh -c 3des -x -l {user} 172.x.x.x


(Cisco Controller)
User:
Password:***********
(Cisco Controller) >
(Cisco Controller) >show udi

NAME: "Chassis" , DESCR: "Cisco 2500 Series Wireless LAN Controller"
PID: AIR-CT2504-K9, VID: V01, SN:

(Cisco Controller) >show sysinfo

Manufacturer's Name.............................. Cisco Systems Inc.
Product Name..................................... Cisco Controller
Product Version.................................. 7.0.116.0
Bootloader Version............................... 1.0.16
Field Recovery Image Version..................... 1.0.0
Firmware Version................................. PIC 15.0
----

But when I run this:
----
rancid [at] akum:~$ bin/rancid-run -r 172.19.141.30
----

I see this in the log:
----
Trying to get all of the configs.
couldn't read file "--^M": no such file or directory
172.x.x.x: missed cmd(s): show sysinfo,show udi,show run-config commands
172.x.x.x: End of run not found
!
=====================================
Getting missed routers: round 1.
couldn't read file "--^M": no such file or directory
172.x.x.x: missed cmd(s): show sysinfo,show udi,show run-config commands
172.x.x.x: End of run not found
!
----

I'm not sure what file it couldn't read. If you could point me in the right direction it would be greatly appreciated. RANCID is a very nice program and has saved my hide a few times.

Thanks in advance!

Cheers,

-Dean


DSearle at geminigroup

Jun 14, 2012, 10:36 AM

Post #2 of 2 (712 views)
Permalink
Re: Cisco WLC error in log [In reply to]

I figured out my problem.

When I tried to run
----
rancid [at] akum:~$ bin/wlogin -f .clogin 172.x.x.x
": no such file or directory
----

Couldn't figure out what file it wasn't able to find. After combing through the file wlogin I went to save it and noticed this:
----
File Name to Write [DOS Format]: bin/wlogin
----
I tried the same thing with clogin and it did not mention anything about [DOS Format]. So I renamed wlogin to wlogin.old and created a new file, copied the code into the file and tested it out.

It now works. Something must have happened when I scp'd the file to my ubuntu server.

-Cheers

Dean Searle

RANCID users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.