Ryan Milton | 12 Feb 22:30 2015
Picon

[rancid] New Rancid install

I have installed rancid before, but its too infrequent between installations, so I've run into the following roadblock.

-This is an ubuntu system.
-running as rancid user

running /usr/local/rancid/bin/rancid-cvs 

creates /usr/local/rancid/var/CVS/CVSROOT
rancid-run creates following error logs:

cvs commit: cannot open CVS/Entries for reading: No such file or directory
cvs commit: nothing known about `router.db'
cvs [commit aborted]: correct above errors first!

--------------

/usr/local/rancid/etc/rancid.conf  
shows:

BASEDIR=/usr/local/rancid/var; export BASEDIR
PATH=/usr/local/rancid/bin:/usr/bin:/usr/sbin:.:/bin:/usr/local/bin:/usr/bin; export PATH


CVSROOT=$BASEDIR/CVS; export CVSROOT
LOGDIR=$BASEDIR/logs; export LOGDIR

#LIST_OF_GROUPS="$LIST_OF_GROUPS noc billybobisp"
LIST_OF_GROUPS="networks"


all the permissions are good.

Never got anything like this:

[rancid <at> bigboy ~]$ /usr/local/rancid/bin/rancid-cvs No conflicts created by this import cvs checkout: Updating networking cvs checkout: Updating networking/configs cvs add: scheduling file `router.db' for addition cvs add: use 'cvs commit' to add this file permanently RCS file: /usr/local/rancid//var/CVS/networking/router.db,v done Checking in router.db; /usr/local/rancid//var/CVS/networking/router.db,v <-- router.db initial revision: 1.1 done [rancid <at> bigboy ~]$

Thanks for your help in advance.

Ryan Douglass Milton
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
James Bensley | 11 Feb 13:02 2015
Picon

[rancid] Reverse RANCID

Hi All,

I am think about writing a web interface that uses RANCID in the
background to make configuration changes on devices. Since RANCID has
a bunch of scripts for various device types my thinking is a
simple-ish web interface in which I can paste in some config and then
use RANCID to log into the device and input the config, also though I
can specify some commands and RANCID will run though them and capture
output which can be passed to Bash/PERL/Python scripts to interogate
the output and check that the BGP sessions have come back up or that
the number of routes in a VRF is still the same etc.

The goal is: Anything I do on the CLI when making changes to devices
can be automated.

I know I can push config using the RANCID CLI wrapper scripts but I'm
wondering if anyone has done this before to extend RANCID to also run
"show" style commands and interogated the output to make checks to
valid the success of the change, and also if anyone has made a web
interface already (other than the CVS types for RANCID's normal
purpose of backing up rather than pushing config) ?

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

Chard, Alex (RET-SYD | 9 Feb 10:47 2015
Picon

[rancid] Fortigate diffs when nothing actually changed

Hi All,

I know I have seen this discussed a few times on here but I haven’t been able to find the resolution in the archives.

 

I am running Rancid 3 (not sure how to check exact version).

I have fortigates backed up in Rancid. They periodically drop/add commands from the config, and then revert back at the next backup.

This means I end up with config diffs like the following:

 

retrieving revision 1.11

diff -U 4 -r1.11 rausyd-lan-fw02s.corp.regn.net <at> <at> -59530,8 +59530,9 <at> <at>

          set dataset "traffic.Top10.IM.Users.Volume"

          set category traffic

          set favorite no

          set graph-type bar

+ exit

          set style auto

          set dimension 3D

              config x-series

                  set caption ''

followed by:

retrieving revision 1.12

diff -U 4 -r1.12 rausyd-lan-fw02s.corp.regn.net <at> <at> -59530,9 +59530,8 <at> <at>

          set dataset "traffic.Top10.IM.Users.Volume"

          set category traffic

          set favorite no

          set graph-type bar

- exit

          set style auto

          set dimension 3D

              config x-series

                  set caption ''

 

I do have the pager turned off, so that’s not the issue.

 

And a partly related question, is there a way to have rancid download a config file by SCP rather than execute commands to retrieve it?

It seems to me this might be more successful – and also an easy way to grab config from devices that aren’t supported.

 

Thanks,

Alex

 

This e-mail is for the use of the intended recipient(s) only. If you have received this e-mail in error, please notify the sender immediately and then delete it. If you are not the intended recipient, you must not use, disclose or distribute this e-mail without the author's permission. We have taken precautions to minimise the risk of transmitting software viruses, but we advise you to carry out your own virus checks on any attachment to this e-mail. We cannot accept liability for any loss or damage caused by software viruses.
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Thomas Greer | 7 Feb 14:31 2015
Picon

[rancid] Rancid 3.1.99 Alpha git integration issues.

Hi All

I’ve recently (read today) installed the above alpha in anticipation of the git support. I’ve setup
rancid a few times before, but I’m struggling with the git stuff.

When I run rancid-cvs after a fresh install, I get a load of errors.

-bash-4.1$ ./bin/rancid-cvs
error: Malformed value for push.default: simple
error: Must be one of nothing, matching, tracking or current.
fatal: bad config file line 6 in /usr/local/rancid//.gitconfig
error: Malformed value for push.default: simple
error: Must be one of nothing, matching, tracking or current.
fatal: bad config file line 6 in /usr/local/rancid//.gitconfig
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
error: Malformed value for push.default: simple
error: Must be one of nothing, matching, tracking or current.
fatal: bad config file line 6 in /usr/local/rancid//.gitconfig
error: Malformed value for push.default: simple
error: Must be one of nothing, matching, tracking or current.
fatal: bad config file line 6 in /usr/local/rancid//.gitconfig
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
error: Malformed value for push.default: simple
error: Must be one of nothing, matching, tracking or current.
fatal: bad config file line 6 in /usr/local/rancid//.gitconfig
error: Malformed value for push.default: simple
error: Must be one of nothing, matching, tracking or current.
fatal: bad config file line 6 in /usr/local/rancid//.gitconfig
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git

My rancid.conf contains:

# Select which RCS system to use, "cvs" (default), "svn" or "git".  Do not
# change this after CVSROOT has been created with rancid-cvs.  Changing between
# these requires manual conversions.
RCSSYS=git; export RCSSYS

The README and UPGRADING mention nothing specific to initialising git other than to run rancid-cvs.

Running on Centos 6.6
git version 1.7.1

Any help would be appreciated with this.

Thanks

Thomas
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Jonathan Lucas | 6 Feb 16:00 2015
Picon

[rancid] An issue with bin/clogin

Hello Everyone,
    I am having an issue with rancid (3.1) failing to log in using the clogin script.  As far as I know, the configs are all properly set up, insofar as I received no errors until I ran bin/clogin.  I am using CentOS 6.6 as my base OS.  So far, I have tried creating a fresh test user on the device and I have verified that the password works when using a straight telnet or ssh session.  It is only when attempting to connect via the clogin script that I see it fail on the password prompt.  Please let me know what other information I can provide, i.e. version numbers, steps already taken, etc.

- - Jon
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Buchan Milne | 6 Feb 16:41 2015
Picon

[rancid] Collaborative development for rancid (e.g. git / github)

Is there a reason why the development of rancid is not done in a more
collaborative fashion?

Having submitted a basic fix, and not knowing what it's future will be,
I checked to see if there is a public VCS repository for rancid. I
searched on github, and found that there were a few repositories created
by users who imported some version of rancid, some with a few commits,
but some with a few hundred:

https://github.com/dotwaffle/rancid-git
https://github.com/reca/rancid
https://github.com/ssinyagin/rancid-ssi
https://github.com/supine/rancid-bzr-git-multihop
https://github.com/jahkeup/rancid3-git
https://github.com/jalmeida/rancid-3.1
https://github.com/codeout/rancid
https://github.com/onlight/rancid

There are also a few git repos on github that just contain additional
scripts for rancid:

https://github.com/JeroenvHeugten/rancid-huawei
https://github.com/b225ccc/rancid-linerate
https://github.com/ajschroeder/rancid

And in other git repos too:
https://bitbucket.org/aquerubin/rancid-vyatta

Wouldn't it make sense to have a public repo for rancid, preferably git,
and if there is no other infrastructure planned, github is probably the
easiest.

I see someone at Facebook has also made a tac_plus repo:
https://github.com/facebook/tac_plus

Regards,
Buchan

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

Buchan Milne | 3 Feb 16:49 2015
Picon

[rancid] Looking glass is broken in 3.1

The looking glass CGIs (lg.cgi, lgform.cgi) in 3.1 weren't updated for
the change in format of the router.db:

Please find a patch fixing this attached (if it hasn't yet been fixed).

Regards,
Buchan
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Sergey V. Lobanov | 2 Feb 18:31 2015
Picon

[rancid] DLink DGS3627G basic support (dl36rancid)

Hello,

Added basic support for D-Link DGS3627G (for RANCID 3.1)

Based on
http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20131029/5c2dda2e/attachment-0001.obj
(http://web.archive.org/web/20150202171220/http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20131029/5c2dda2e/attachment-0001.obj )

Used default dllogin from ftp://ftp.shrubbery.net/pub/rancid/rancid-3.1.tar.gz

dl36rancid attached
Patch for orignial dlrancid also attached

-- 
wbr, 
Sergey V. Lobanov 

Attachment (dl36rancid): text/x-perl, 14 KiB
Attachment (dl36rancid.patch): text/x-diff, 1779 bytes
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Nick Hilliard | 1 Feb 19:14 2015

[rancid] ipv6 compatible ip address sort

This patch fixes the ipv6 prefix-list sorting problems which affect perl
5.18 and later.

The sorting problems happen because ipaddrval() returns undef, so the sort
function attempts to sort on the same index key.  Before perl5.18, the
default behaviour was to return hash keys in a consistent order.  On 5.18+,
this order is deliberately randomised.

The patch changes sortbyipaddr to use a lexical sort on the hex value of
the key because numerical sort breaks for 128 bit keys.  It should be
plug-in compatible with all the locally defined ipaddrval()/sortbyipaddr()
implementations in each function.

Nick
Attachment (ipaddrval.pl): text/x-perl-script, 582 bytes
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Vinay Dongre | 30 Jan 05:49 2015
Picon

[rancid] Rancid for huawei router

DearTeam,

I have configured rancid on Cisco and it is working fine. For on huawei 
router it is not working. I have tried by using hc2login nad h3crancid.. 
but no lunck :(.

Please need help.

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

Cuttler, Brian (HEALTH | 26 Jan 20:33 2015

[rancid] Rancid, Cisco login, but no local account

We are moving to Cisco and will be using TACACS authentication, we had been using HP switches with local accounts.

 

The new switches will only fall back to local account when TACACS access fails. So I’m not sure how to configure rancid to pick up the switch configs.

 

We do not control the TACACS server, accounts have expiring passwords…

 

Can Rancid use snmp to do so, or can someone with experience in this suggest something?

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

Gmane