[rancid] Re: Help on Cisco Devices with RO access. End of run not found.

john heasley heas at shrubbery.net
Wed Nov 4 16:16:24 UTC 2009


Wed, Nov 04, 2009 at 05:41:14PM +0530, Sreekanth K:
> Dear All,
> 
> I am facing a problem while using RANCID for certain set of Cisco devices.
> I have a set of devices to which I have only limited access and do not have
> the enable passwords.
> I have created new rancid and clogin scripts named cwrancid and cwlogin.
> I am not able to run rancid for these devices; I have hashed all the
> commands on cwrancid except "show startup-config".
> When I use cwlogin to directly attempt on my TestRouter, I am able to
> complete successfully.
> Logs appended below.
> 
> Appreciate help from the fraternity since I have exhausted my skills. :)
> 
> Cheers!!!
> Sreekanth.
> ================ Logs from RANCID ================
> [rancid at rancid bin]$ ./cwrancid -d Testrouter.rou
> executing cwlogin -t 90 -c"show startup-config" Testrouter.rou
> Testrouter.rou: missed cmd(s): show startup-config
> Testrouter.rou: missed cmd(s): show startup-config
> Testrouter.rou: End of run not found
> Testrouter.rou: End of run not found
> !
> [rancid at rancid bin]$
> [rancid at rancid bin]$ ./cwlogin -t 90 -c"show startup-config" Testrouter.rou
> testrouter.rou
> spawn telnet testrouter.rou
> Trying 192.168.2.4...
> Connected to testrouter.rou.
> Escape character is '^]'.
> CCCCC
> ########################################################################
> ###                                                                  ###
> ###              * WARNING * WARNING * WARNING * WARNING *           ###
> ###             ** FOR AUTHORISED NETWORK PERSONNEL ONLY **          ###
> ###             ============================== =============          ###
> 

remove the #s from the banner.  see cloginrc(1).

> < ---- Truncated Output ------ >
> ntp server 192.168.2.240
> end
> Testrouter >exit
> Connection closed by foreign host.
> [rancid at rancid bin]$
> ================ Logs from RANCID ================

> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss


More information about the Rancid-discuss mailing list