Shawn Laemmrich | 20 Feb 16:15 2016

[rancid] Rancid failing after OS upgrade

I've had rancid 3.2 running (on ubuntu) for weeks now without issues.  Yesterday, I upgraded the OS (ubuntu do-release-upgrade) and now rancid is giving me cvs errors when I run rancid-run

property 'svn:ignore' set on '.'
property 'svn:ignore' set on 'configs'
Updating '.':
At revision 3.
Sending        .
Sending        configs
Sending        router.db
Transmitting file data .
Committed revision 4.

svn: E125001: '/var/lib/rancid/bob/configs/.cvsignore' does not exist
Deleted .cvsignore

I usually use CVS instead of SVN but thought I'd give it a shot, since I got similar errors with CVS.

When I run rancid-run, I get this error in the log file almost immediately and it puts all my hosts in routers.down

So far I've tried

verifying clogin and all that stuff (works fine, I can use clogin to get into anything)

removing my rancid config, and re-running rancid-cvs to create the required directories (didn't help)

removing and purging rancid and cvs from the machine and re-installing (verified it installed correctly)

running rancid by hand rancid -t cisco for a device, which works fine and creates a file correctly.

So, it definitely seems to be a CVS thing, but for the life of me I can't figure out what it's mad about or how to make it work again.

Rancid-discuss mailing list
Rancid-discuss <at>
Angelo Höngens | 20 Feb 16:53 2016

[rancid] problem with rancid on centos7

Hey, I have an issue with rancid that I've been trying to debug. Rancid from epel won't work on my CentOS 7
boxes, and I'm hoping one of you can help me. I'm using the epel rpm, since I deploy everything from puppet
(no custom compiling or whatever). I first thought it was a bug in the packaging by the epel package manager
(and opened a bugzilla report), but I found out that if I recompile the package myself I get the same result.

I just blew away my VM and installed a new CentOS Linux release 7.1.1503 machine from a clean template (I use
for >200 other machines). I did a yum install rancid, which installed rancid-3.2-2.el7.x86_64 from epel7.

Why I see is that clogin works as root (and gives a correct error):

[root <at> nmo-ran-02 ~]# /usr/libexec/rancid/clogin foo
Error: password file (/root/.cloginrc) does not exist

But not as user:

[rancid <at> nmo-ran-02 ~]$ /usr/libexec/rancid/clogin foo
Error: invalid command name "aadd"

I have no idea where this aadd command comes from.. I see no differences in bash profile configs or the like.


Angelo Hongens

Rancid-discuss mailing list
Rancid-discuss <at>

Serge Torop | 18 Feb 21:51 2016

[rancid] Rancid can't fully save the config file of D-Link switch

Hello, all,

I have installed v 3.3.0 and try to work with D-Link switches.

My configuration scripts is:


dlink1;script;rancid -t dell
dlink1;command;dlink1::GetSystem;show switch
dlink1;command;dlink1::GetConf;show config effective


I have run "rancid-run dlinkdevices" and see config files
/usr/local/rancid/var/dlinkdevices/config/ and
with normal config content.

After script is finished in log file I see the messages:

Trying to get all of the configs. End of run not found
#------------------------------------------------------------------- End of run not found
Getting missed routers: round 1. End of run not found
#------------------------------------------------------------------- End of run not found

And config files ( and are empty or config
information not comletely saved
(with some parts of configuration).

Test command, for example, ./dllogin -c "show config" is work fine.

Can you help me find the misconfiguration or other working method?

Thank you in advance.


Serge P. Torop
Rancid-discuss mailing list
Rancid-discuss <at>

Lars Kruse | 15 Feb 20:30 2016

[rancid] Gathering switch information via SNMP or web interfaces


currently I am involved with the maintenance of a dozen switches (Netgear
GS724T, Netgear GS728TP and Netgear GS748T).
I would like to distribute notifications to our small group of administrators
after a switch configuration change was made by one of us.
As far as I understand RANCID, I assume that it could be used for this purpose.

Sadly our switches do not allow commandline access (ssh or telnet). They offer
only a web interface and SNMP.

I took a quick look at the rancid code and came to the conclusion that it uses
expect for all its operations. Thus I could imagine that it only works with
switches with commandline interfaces.

Please correct my assumptions above, if necessary.

I am prepared to write some code (extending RANCID or writing single-purpose
scripts for our environment).
But I cannot judge if it is possible (and desirable) to extend RANCID in a way
to would allow the gathering of information via SNMP or web interfaces (with all
the related complications of sessions and/or cookies).
Would someone please share some thoughts regarding this approach?

Thank you for your time!

Rancid-discuss mailing list
Rancid-discuss <at>

Viktor Steinmann | 15 Feb 10:56 2016

[rancid] HP 1920

Hey all

I'd like to take up the discussion from June 2015 about HP 1920 switches.


I have purchased some of these switches as well, and in fact the Web 
interface and the CLI suck. But you can get to a full CLI with some 
extra commands:

a) Enter "_cmdline-mode on"
b) The switch answers with "All commands can be displayed and executed. 
Continue? [Y/N]" on which you answer with "Y"
c) The switch will answer with the password prompt: "Please input password:"
d) The password to enter here is "Jinhua1920unauthorized"
e) The switch will output this: "Warning: Now you enter an all-command 
mode for developer's testing, some commands may affect operation by 
wrong use, please carefully use it with our engineer's direction."
f) Now you enter "system-view", which gives you the "enable" mode on 
this switch-type

Now you have full access to the CLI, which is very much standard (e.g. 
with "display current-configuration" you'll get the full configuration).

Hope this helps.

Kind regards,
Rancid-discuss mailing list
Rancid-discuss <at>

Sharone B. | 11 Feb 10:27 2016

[rancid] SSR SmartEdge/Ericsson Router - rancid compatibility?

Hi Guys,

I'm sorry if this has been posted before, I was wondering whether these anyone has managed to get rancid working with these devices. When I try to login via clogin I get the error below;

spawn hpuifilter -- ssh -c 3des -x -l ranciduser X.X.X.X
no matching cipher found: client 3des-cbc server aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,aes256-cbc,arcfour128

Error: Couldn't login

Any advice is welcome.

Rancid-discuss mailing list
Rancid-discuss <at>
David Ahrens | 9 Feb 16:45 2016

[rancid] Brocade 200 switches not working with Rancid



I have a number of old Brocade 200 SAN switches that I’m trying to add to rancid so I can have rancid backup the switch configs.


I added the following lines to rancid.types.base for Brocade:


# Brocade 200a






Here’s my router.db;smc;up




I’ve attached the brocadelogin and  brocaderancid scripts for collecting the switch configs.


When I run rancid-run,  the attached log files shows the switch configuration was collected from the switch,  but no data was written to brocade200.raw.   


The file brocade200  contains:






I have rancid working with my Cisco and Dell PowerConnect switches,  so I know rancid is installed and configured properly.


Thanks for your help,



Attachment (brocadelogin): application/octet-stream, 35 KiB
Attachment (brocaderancid): application/octet-stream, 21 KiB
Attachment (EI.20160209.074020): application/octet-stream, 33 KiB
Rancid-discuss mailing list
Rancid-discuss <at>
Tetsuo Handa | 9 Feb 11:30 2016

[rancid] Two suggestions about rancid-3.3.0


I just looked at rancid-3.3.0.tar.gz and noticed two bugs.

Bug1: . is not removed from PATH in the following four files.


  PATH=/usr/local/rancid-3.3/bin:/usr/bin:/usr/sbin:/bin:.:/usr/local/bin:/usr/bin; export PATH


  PATH=/usr/local/rancid-3.3/bin:/usr/bin:/usr/sbin:/bin:.:/usr/local/bin:/usr/bin; export PATH

Bug2:  <at> PACKAGE <at>  and  <at> VERSION <at>  are not replaced in the following three files.

  send_user " <at> PACKAGE <at>   <at> VERSION <at> \n"

  send_user " <at> PACKAGE <at>   <at> VERSION <at> \n"

  send_user " <at> PACKAGE <at>   <at> VERSION <at> \n"

Rancid-discuss mailing list
Rancid-discuss <at>

Dan Weintraub | 5 Feb 23:28 2016

[rancid] rancid git setup question


I’m a first time user having a question about making rancid work with git. I’m on CentOS 7 with rancid
3.3.0, perl v5.16.3, and git

I read that "no attempt will be made to create the repository when running rancid-cvs” so I cloned my empty
git repo into the rancid $BASEDIR and pointed at it in the rancid.conf:

CVSROOT=$BASEDIR/rancid-backups/; export CVSROOT

I then ran rancid-cvs, but I don’t understand the behavior. I would expect it to prepare the CVSROOT, but
it made a new folder and repo named after my sole group. It then made a new folder in my intended git repo
($CVSROOT), with my group name, but it looks like a .git directory:

[rancid <at> rancid rancid-backups]$ ls -al
total 20
drwxr-x--- 7 rancid rancid 4096 Feb  5 22:01 myGroup
drwxr-xr-x 8 rancid rancid 4096 Feb  5 22:01 .git
-rw-r--r-- 1 rancid rancid   60 Feb  5 22:01
[rancid <at> rancid rancid-backups]$ ls -al myGroup/
total 40
drwxr-x---  2 rancid rancid 4096 Feb  5 22:01 branches
-rw-r-----  1 rancid rancid   66 Feb  5 22:01 config
-rw-r-----  1 rancid rancid   73 Feb  5 22:01 description
-rw-r-----  1 rancid rancid   23 Feb  5 22:01 HEAD
drwxr-x---  2 rancid rancid 4096 Feb  5 22:01 hooks
drwxr-x---  2 rancid rancid 4096 Feb  5 22:01 info
drwxr-x--- 11 rancid rancid 4096 Feb  5 22:01 objects
drwxr-x---  4 rancid rancid 4096 Feb  5 22:01 refs

When I run rancid-run, it puts the config files in the myGroup directory of the BASEDIR, but it also seems to
touch some objects in the myGroup .git directory.

I then thought that I would only use the repo generated my rancid-cvs, so I put the CVSROOT back to default and
tried again. It still makes a $CVSROOT/myGroup directory that doesn’t seem to make sense. I would
appreciate it if someone could explain what’s going on or recommend some good documentation on getting
rancid and git set up.


Dan Weintraub | Systems Engineer
V: 877.327.8422 x
mailto:Dan.Weintraub <at> |

Rancid-discuss mailing list
Rancid-discuss <at>
Ignacio Freyre | 3 Feb 17:36 2016

[rancid] cvs time in UTC

Hi, i noticed cvs stores time info in UTC time. Is there a way to change to the system time which uses gmt?
In this example the actual system time was 9:41:39, but cvs stored the time as 12:41:39, i got the email with the diff but the time is wrong.

cvs diff -u -4 -r1.15 configs/test-router

Index: configs/test-router
RCS file: /var/lib/rancid/CVS/prueba/configs/test-router,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -4 -r1.15 -r1.16
--- configs/test-router 3 Feb 2016 12:41:39 -0000 1.15
+++ configs/test-router 3 Feb 2016 14:51:59 -0000 1.16

under CVS root:

date 2016.; author rancid; state Exp;
next 1.15;
commitid 10056B2140F607F79E7;

Rancid-discuss mailing list
Rancid-discuss <at>
Ignacio Freyre | 2 Feb 16:58 2016

[rancid] html colorized mail diffs

thanks heasley, ultimately i made it work just changing the rancid config file.

the python script is much more easy to read, i went with that one.

1) chmod +x /var/lib/rancid/

2) config change -> /etc/rancid/rancid.conf
MAILHEADERS="Content-Type: text/html; charset=ISO-8859-1"; export MAILHEADERS
DIFFSCRIPT="/var/lib/rancid/"; export DIFFSCRIPT

scripts (both of them work):

Rancid-discuss mailing list
Rancid-discuss <at>