Discussion:
[rancid] Help on Cisco Devices with RO access. End of run not found.
Sreekanth K
2009-11-04 12:11:14 UTC
Permalink
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 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 bin]$
[***@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 ** ###
### ============================== ============= ###


< ---- Truncated Output ------ >
ntp server 192.168.2.240
end
Testrouter >exit
Connection closed by foreign host.
[***@rancid bin]$
================ Logs from RANCID ================
john heasley
2009-11-04 16:16:24 UTC
Permalink
Post by 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 ================
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
!
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).
Post by Sreekanth K
< ---- Truncated Output ------ >
ntp server 192.168.2.240
end
Testrouter >exit
Connection closed by foreign host.
================ Logs from RANCID ================
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Sreekanth K
2009-11-10 17:19:48 UTC
Permalink
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 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 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 bin]$
================ Logs from RANCID ================

Some suggestions to help me out ?

Cheers!!
Sreekanth
Post by Sreekanth K
Post by Sreekanth K
Dear All,
I am facing a problem while using RANCID for certain set of Cisco
devices.
Post by Sreekanth K
I have a set of devices to which I have only limited access and do not
have
Post by Sreekanth K
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 ================
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
!
Testrouter.rou
Post by Sreekanth K
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).
Post by Sreekanth K
< ---- Truncated Output ------ >
ntp server 192.168.2.240
end
Testrouter >exit
Connection closed by foreign host.
================ Logs from RANCID ================
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
--
Best Regards
K Sreekanth
09941914363
john heasley
2009-11-10 20:29:00 UTC
Permalink
Post by Sreekanth K
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 ================
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
!
testrouter.rou
spawn telnet testrouter.rou
Trying 10.157.37.2...
Connected to testrouter.rou.
Escape character is '^]'.
User Access Verification
Username: rancid
Testrouter>
^ the rancid script looks for #. you'll ahve to change it.

Loading...