Shawn Laemmrich | 20 Feb 16:15 2016
Picon

[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 xxx.yyy.zzz.aaa for a device, which works fine and creates a device.new 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> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Angelo Höngens | 20 Feb 16:53 2016
Picon

[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.

Ideas?

Angelo Hongens

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss

Serge Torop | 18 Feb 21:51 2016
Picon

[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:

1.
etc/rancid.types.base:

dlink1;script;rancid -t dell
dlink1;login;dllogin
dlink1;module;dell
dlink1;inloop;dell::inloop
dlink1;command;dlink1::GetSystem;show switch
dlink1;command;dlink1::GetConf;show config effective

2.
router.db:

10.37.11.210;dlink1;up
10.37.4.184;dlink1;up

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

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

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

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

Test command, for example, ./dllogin -c "show config" 10.37.4.184 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> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss

Lars Kruse | 15 Feb 20:30 2016
Picon

[rancid] Gathering switch information via SNMP or web interfaces

Hello,

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!

Cheers,
Lars
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss

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.

 > http://www.shrubbery.net/pipermail/rancid-discuss/2015-June/008557.html

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,
Viktor
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss

Sharone B. | 11 Feb 10:27 2016
Picon

[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.

~Sharone
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
David Ahrens | 9 Feb 16:45 2016

[rancid] Brocade 200 switches not working with Rancid

Hi,

 

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

#

brocade;script;brocaderancid

brocade;login;brocadelogin

 

 

Here’s my router.db

rancid-test.eng.citrite.net;smc;up

cc3750g;cisco;up

brocade200;brocade;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:

 

!RANCID-CONTENT-TYPE: Brocade

!

!

 

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

 

Thanks for your help,

David

 

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> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Tetsuo Handa | 9 Feb 11:30 2016
Picon

[rancid] Two suggestions about rancid-3.3.0

Hello.

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.

  /usr/local/rancid-3.3/etc/lg.conf
  $ENV{PATH}="/usr/local/rancid-3.3/bin:/usr/bin:/usr/sbin:/bin:.:/usr/local/bin:/usr/bin";

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

  /usr/local/rancid-3.3/share/rancid/lg.conf.sample
  $ENV{PATH}="/usr/local/rancid-3.3/bin:/usr/bin:/usr/sbin:/bin:.:/usr/local/bin:/usr/bin";

  /usr/local/rancid-3.3/share/rancid/rancid.conf.sample
  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.

  /usr/local/rancid-3.3/bin/clogin
  send_user " <at> PACKAGE <at>   <at> VERSION <at> \n"

  /usr/local/rancid-3.3/bin/jlogin
  send_user " <at> PACKAGE <at>   <at> VERSION <at> \n"

  /usr/local/rancid-3.3/bin/mtlogin
  send_user " <at> PACKAGE <at>   <at> VERSION <at> \n"

Regards.
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss

Dan Weintraub | 5 Feb 23:28 2016

[rancid] rancid git setup question

Hi,

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 1.8.3.1.

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 README.md
[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.

Thanks,
Dan





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



_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Ignacio Freyre | 3 Feb 17:36 2016
Picon

[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:

1.16
date 2016.02.03.14.51.59; author rancid; state Exp;
branches;
next 1.15;
commitid 10056B2140F607F79E7;

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Ignacio Freyre | 2 Feb 16:58 2016
Picon

[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/diff2html.py


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


scripts (both of them work):
http://stackoverflow.com/questions/3827862/convert-raw-diff-file-to-colorized-html-output
http://www.linuxjournal.com/content/convert-diff-output-colorized-html

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss

Gmane