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

Sreekanth K sreekanth.krishna at gmail.com
Tue Nov 10 17:19:48 UTC 2009


Hello John and all,

Tried the same... Deleted the login banner altogether... still no luck...
Note: I have used no enable in cloginrc and have hashed away all the
commands and added show startup-config in the cwrancid file which I have
created... No other changes :(

================ 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]$ ./cwlogin -t 90 -c"show startup-config" Testrouter.rou

testrouter.rou

spawn telnet testrouter.rou

Trying 10.157.37.2...

Connected to testrouter.rou.

Escape character is '^]'.



User Access Verification

Username: rancid

Password:



Testrouter>

Testrouter>terminal length 0

Testrouter>show startup-config

Using 6692 out of 29688 bytes

!

! Last configuration change at 10:29:40 GMT Tue Nov 10 2009 by rancid

! NVRAM config last updated at 10:29:44 GMT Tue Nov 10 2009 by rancid

!

version 12.2

< ---- Truncated Output ------ >

ntp server 192.168.2.240

end

Testrouter>exit

Connection closed by foreign host.

[rancid at rancid bin]$
================ Logs from RANCID ================

Some suggestions to help me out ?

Cheers!!
Sreekanth

On Wed, Nov 4, 2009 at 9:46 PM, john heasley <heas at shrubbery.net> wrote:

> 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
>



-- 
Best Regards
K Sreekanth
09941914363
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091110/0f6ec281/attachment.html 


More information about the Rancid-discuss mailing list