[rancid] Problem using rancid

Matt Almgren malmgren at skyfire.com
Fri Jan 10 20:12:28 UTC 2014

I could be mistaken here, but it appears you're not in privilege mode when rancid tries to do "show run".   There's no # in the prompt.

Maybe this value should be set to "1" for rancid to "enable" the device.

 add autonenable    0

 -- Matt

From: "Cl�ment M." <mezino.clement at gmail.com<mailto:mezino.clement at gmail.com>>
Date: Friday, January 10, 2014 6:08 AM
To: "rancid-discuss at shrubbery.net<mailto:rancid-discuss at shrubbery.net>" <rancid-discuss at shrubbery.net<mailto:rancid-discuss at shrubbery.net>>
Subject: [rancid] Problem using rancid


I'm having some issues using rancid at work.

I want to manage cisco switches and everything works fine except for one :(

In fact, most of them are using telnet and the one that doesn't work uses ssh.

Here's where I am so far :

clogin -c "show run"
spawn ssh -p 22 -c 3des -x -l admin
SW>terminal length 0
SW>terminal width 132
SW>show run
% Invalid input detected at '^' marker.

Connection to closed.

Not working !

But when i try a telnet switch, it's all good :

My cloginrc looks like this :

add method         {ssh:22}
add user           admin
add autonenable    0
add method 192.168.1.*          {telnet:23}
add password 192.168.1.*        {"pass"} {"enable_pass"} --> (Same for all)

I'm using telnet for all my switches except for this one. I'm running rancid on a RHEL 6 system.
Can you help me ?


This message is being sent by Skyfire Labs. It is intended exclusively for the individuals and entities to which it is addressed. This communication, including any attachments, may contain information that is proprietary, privileged, confidential, or otherwise subject to restrictions on disclosure pursuant to applicable law. If you are not the named addressee, you are not authorized to read, print, retain copy or disseminate this message or any part of it. If you have received this message in error, please notify the sender immediately by email and delete all copies of this message. This message is protected by applicable legal privileges and is confidential.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20140110/f395d1d2/attachment.html>

More information about the Rancid-discuss mailing list