[rancid] Not working rancid with Cisco without enable.

Aleksey P paleola at gmail.com
Tue Jun 8 14:53:34 UTC 2010


Hello. I can't understand why rancid didn't work with Cisco Routers
(Switches) without enable password!?
OS - FreeBSD
Here some of config:
/usr/local/libexec/rancid]# vi /usr/local/etc/rancid/.cloginrc
# THIS IS FOR CISCO
add noenable 172.16.2.2 1
#add autoenable 172.16.2.2 1
add user 172.16.2.2 username
add password 172.16.2.2 password
add method 172.16.2.2 ssh

Trying /usr/local/libexec/rancid/clogin -t 90 -c"show configuration"
172.16.2.2
All work just fine - no enable promt - show configuration - that is all we
need:

 /usr/local/libexec/rancid/clogin -t 90 -c"show configuration" 172.16.2.2
172.16.2.2
spawn ssh -c 3des -x -l username 172.16.2.2
username at 172.16.2.2's password:

Router>
Router>terminal length 0
Router>>show configuration
...
here we see our config
...
end

Router>exit
Connection to 172.16.2.2 closed.

But if i run rancid-run in my logs i will see:

Trying to get all of the configs.
172.16.2.2: missed cmd(s): show configuration
172.16.2.2: End of run not found
!
=====================================
Getting missed routers: round 1.
172.16.2.2: missed cmd(s): show configuration
172.16.2.2: End of run not found

I can't understand why it works like this.
Help me if u can :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20100608/6e205a0c/attachment.html 


More information about the Rancid-discuss mailing list