[rancid] Re: Not working rancid with Cisco without enable.
john heasley
heas at shrubbery.net
Wed Jun 9 21:35:06 UTC 2010
Tue, Jun 08, 2010 at 06:53:34PM +0400, Aleksey P:
> 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.
it may be the command before this that failed. in general, for it to
runn all the commands, it needs enable. try
export NOPIPE=YES
rancid -d 172.16.2.2
172.16.2.2.raw will have the output from the device and .new the crunched
output.
> 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 :)
> _______________________________________________
> 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