Discussion:
[rancid] Rancid does not recive configuration from cisco device
Serge Torop
2015-11-03 07:43:49 UTC
Permalink
Hello, all,

I have new installation of Rancid (v 3.1) on Centos 6 from rpm packet.

After rancid.conf (see below) has configured I run rancid-cvs, the output
is:

[***@blade11 ciscodev]$ /usr/libexec/rancid/rancid-cvs

Committed revision 1.
Checked out revision 1.
At revision 1.
A configs
Adding configs

Committed revision 2.
A router.db
Adding router.db
Transmitting file data .
Committed revision 3.

Committed revision 4.
Checked out revision 4.
At revision 4.
A configs
Adding configs

Committed revision 5.
A router.db
Adding router.db
Transmitting file data .
Committed revision 6.

Committed revision 7.
Checked out revision 7.
At revision 7.
A configs
Adding configs

Committed revision 8.
A router.db
Adding router.db
Transmitting file data .
Committed revision 9.

Then I have created /var/rancid/ciscodev/router.db

[***@blade11 ciscodev]$ cat /var/rancid/ciscodev/router.db
10.37.6.46:cisco:up

and run rancid-run (without any output messages), in log file I see:

[***@blade11 ciscodev]$ cat /var/log/rancid/ciscodev.20151102.170455
starting: Mon Nov 2 17:04:55 MSK 2015

property 'svn:ignore' set on '.'
At revision 9.
Sending .

Committed revision 10.

ending: Mon Nov 2 17:04:56 MSK 2015

and again:

starting: Mon Nov 2 17:18:08 MSK 2015

Sending router.db
Transmitting file data .
Committed revision 13.

ending: Mon Nov 2 17:18:09 MSK 2015

* I recived email with content:

​​​​​Routers changed to down:
10.37.6.46:cisco:up

Added routers:
10.37.6.46:cisco:up

Everything is fine, but I don't see downloaded configuration files after
re-run rancid-run in each conf-directory


[***@blade11 ciscodev]$ ls -la /var/rancid/ciscodev/configs/
total 12
drwxr-x---. 3 rancid rancid 4096 Nov 2 17:02 .
drwxr-x---. 4 rancid rancid 4096 Nov 2 17:18 ..
drwxr-x---. 6 rancid rancid 4096 Nov 2 17:04 .svn

Test commands:

clogin -t 90 -c "show version" -f /var/rancid/.cloginrc 10.37.6.46
and
rancid -t cisco -d 10.37.6.46

working fine (login is ok and configuration downloading from device
to 10.37.6.46.raw is ok).

Can you give me any suggestions what is wrong in my configuration and why i
do not see
original configuration from my cisco device?

Also some strange content of file /var/rancid/ciscodevs/routers.down:
10:37.6.46:cisco:up

Thank you in advance!



My configuration of rancid (i'm using the SVN):

/etc/rancid/rancid.conf:

TERM=network;export TERM
TMPDIR=/tmp; export TMPDIR
BASEDIR=/var/rancid; export BASEDIR
PATH=/usr/libexec/rancid:/usr/sbin:/usr/bin:/usr/sbin:/bin:/usr/local/bin:/usr/bin;
export PATH
SENDMAIL="/usr/sbin/sendmail"

CVSROOT=$BASEDIR/SVN; export CVSROOT
LOGDIR=/var/log/rancid; export LOGDIR

RCSSYS=svn; export RCSSYS
NOPIPE=YES; export NOPIPE

FILTER_PWDS=NO; export FILTER_PWDS
NOCOMMSTR=NO; export NOCOMMSTR

MAX_ROUNDS=4; export MAX_ROUNDS
LIST_OF_GROUPS="ciscodev dlinkdev edgecoredev"


Working directory of rancid:

[***@blade11 rancid]$ ls -la
total 168
drwxr-x---. 9 rancid rancid 4096 Nov 2 17:02 .
drwxr-xr-x. 19 root root 4096 Oct 30 14:40 ..
-rw-rw-r--. 1 rancid rancid 20581 Nov 2 16:14 10.37.6.46.new
-rw-rw-r--. 1 rancid rancid 88221 Nov 2 16:14 10.37.6.46.raw
-rw-------. 1 rancid rancid 381 Oct 30 16:45 .bash_history
-rw-r--r--. 1 rancid rancid 18 Oct 16 2014 .bash_logout
-rw-r--r--. 1 rancid rancid 196 Oct 30 16:48 .bash_profile
-rw-r--r--. 1 rancid rancid 124 Oct 16 2014 .bashrc
drwxr-x---. 4 rancid rancid 4096 Nov 2 17:18 ciscodev
-rw-r-----. 1 rancid rancid 95 Nov 2 17:00 .cloginrc
drwxr-x---. 4 rancid rancid 4096 Nov 2 17:18 dlinkdev
drwxr-x---. 4 rancid rancid 4096 Nov 2 17:18 edgecoredev
drwxr-x---. 2 rancid rancid 4096 Oct 30 15:08 logs
drwx------. 2 rancid rancid 4096 Oct 30 14:56 .ssh
drwxr-x---. 3 rancid rancid 4096 Nov 2 17:02 .subversion
drwxr-x---. 6 rancid rancid 4096 Nov 2 17:02 SVN
--
Serge P. Torop
Alan McKinnon
2015-11-03 10:35:20 UTC
Permalink
Post by Serge Torop
Hello, all,
I have new installation of Rancid (v 3.1) on Centos 6 from rpm packet.
[snip]
Post by Serge Torop
10.37.6.46:cisco:up
^ ^

in rancid 3+ these separators are ";" and not ":"


The reason is that a colon clashes with IPv6 addresses in field 1


Alan
hayot alain
2015-11-03 11:00:19 UTC
Permalink
hi,
I do not why but i had the same problems with rancid 3.2 on juniper devices.
it work with version 2.3



Cordialement

-----
Alain HAYOT
Responsable Réseau

INALCO - LANGUES'O
65 rue des grands moulins
75013 Paris

téléphone bureau : 01 81 70 10 74


----- Mail original -----
De: "Alan McKinnon" <***@gmail.com>
À: rancid-***@shrubbery.net
Envoyé: Mardi 3 Novembre 2015 11:35:20
Objet: Re: [rancid] Rancid does not recive configuration from cisco device
Post by Serge Torop
Hello, all,
I have new installation of Rancid (v 3.1) on Centos 6 from rpm packet.
[snip]
Post by Serge Torop
10.37.6.46:cisco:up
^ ^

in rancid 3+ these separators are ";" and not ":"


The reason is that a colon clashes with IPv6 addresses in field 1


Alan
_______________________________________________
Rancid-discuss mailing list
Rancid-***@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
heasley
2015-11-03 17:44:16 UTC
Permalink
Post by hayot alain
hi,
I do not why but i had the same problems with rancid 3.2 on juniper devices.
that should not be - please provide details. junos is, without a doubt, the
most stable cli from a ranicd PoV.

Loading...