Wayne Eisenberg | 14 Nov 23:14 2014

[rancid] problems with case sensitivity in v3.1

Hi again,

 

I’m having some trouble here, and not sure how to troubleshoot it. I have device DNS names that have capital letters in them (like SiteA.Router.Company.local), but by the time rancid goes to look in .cloginrc for the information needed there, it has converted everything to lower case and insists on stripping out my beautiful capital letters (sitea.router.company.local). Any ideas why it doesn’t like mixed case names? Can that be fixed?

 

Thanks,

Wayne

 

 



The information in this Internet e-mail (and any attachments) is confidential, may be legally privileged and is intended solely for the Addressee(s) named above. If you are not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, then any dissemination or copying of this e-mail (and any attachments) is prohibited and may be unlawful. If you received this e-mail in error, please immediately notify us by e-mail or telephone, then delete the message. Thank you.
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Konstantin Konstantin | 11 Nov 11:38 2014
Picon

Re: [rancid] Palo Alto Networks

fix it?

суббота, 18 января 2014 г., 18:45:03 UTC+4 пользователь Maria Jose Erquiaga написал:
Hi Everyone!

I'm having the same problem, but with Mikrotik.

I follow these instructions : http://falz.net/tech/rancid-mikrotik

and I have this error when I run Rancid :
exec failed router manufacturer mikrotik: No such file or directory

I'm using these files as well : http://falz.net/static/rancid/ and pearl5 is installed in my ubuntu server.
I have created the /var/lib/rancid/ap/router.db file as well with the IP of my devices
I have access to my device but I can't obtain the config file, I can see a file in /var/lib/rancid/all/configs but it is empty.-

Thanks in advance




Le jeudi 29 mars 2012 09:53:33 UTC-3, Guillaume Dupuis a écrit :
Nate Beck <Nate.Beck <at> jivesoftware.com> writes:

>
>
> Has anyone on the list worked with Palo Alto Network firewalls and Rancid?  I
was wondering if anyone has created a *login for them.
> Thanks-------------------
> Nathan BeckSr. IT Engineer
> Jive Software
> 503.972.9024

Hi Nate,

Did you find a *login script for PAN?

Thanks,

Guillaume Dupuis

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

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Robert Drake | 10 Nov 07:10 2014

[rancid] control_rancid slow start

has anyone looked at the control_rancid script recently?   Here are some 
timestamps from an example run from me (with a couple of added date 
stamps to show where the time goes).  I'm only running rancid against 
one file, but there are 1400 total devices in the group.

rancid-run -r <gw1-test-node> <testgroup>

starting: Mon Nov 10 00:33:34 EST 2014
begin control_rancid: Mon Nov 10 00:33:34 EST 2014

Trying to get all of the configs. Mon Nov 10 00:35:33 EST 2014
All routers sucessfully completed.

cvs diff: Diffing .
cvs diff: Diffing configs
cvs commit: Examining .
cvs commit: Examining configs

ending: Mon Nov 10 00:35:37 EST 2014

If I comment the following code out it runs in less than 3 seconds:

# check for 'up' routers missing in RCS.  no idea how this happens to 
some folks
for router in `cut -d\; -f1 ../routers.up` ; do
     if [ $RCSSYS = cvs ] ; then
     cvs status $router | grep -i 'status: unknown' > /dev/null 2>&1
     else
     svn status $router | grep '^?' > /dev/null 2>&1
     fi
     if [ $? -eq 0 ] ; then
     touch $router
     if [ $RCSSYS = cvs ] ; then
         cvs add -ko $router
     else
         svn add $router
     fi
     echo "$RCSSYS added missing router $router"
     fi
done

Possible better option would be this (I think this will work with svn 
but I don't have a tree to test it on):

  cut -d: -f1 ../routers.up | xargs cvs status | grep -i 'status: unknown'

Example test case:

  (echo test ; cut -d: -f1 ../routers.up) | xargs cvs status | grep -i 
'status: unknown'
cvs status: nothing known about test
File: no file test              Status: Unknown

Another option might be to have a CLI argument that says "skip 
rebuilding router.db.* and checking CVS stuff because we're reasonably 
certain that is fine right now".  Finally, I would recommend abstracting 
most of the router.db.* rebuild into another script and rewriting it in 
perl because it's almost unreadable now.

I can submit patches if this is too much for informal email.

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

Shaun Krok | 4 Nov 08:40 2014

[rancid] Riverbed rancid script | Models : SH 1050 | SH 2050

Hi there

 

I am using a script I found on one of threads called rblogin.

It works and logs in fine .. I updated the rancid.types.base as well …

 

However it does not complete and get the configuration – fails with end of run !

 

Any ideas or if anyone has managed to get this work would be most helpful !

 

#! /usr/bin/expect --

##

##

## rancid 2.3.2a7

## Copyright (C) 1997-2006 by Terrapin Communications, Inc.

## All rights reserved.

##

## This software may be freely copied, modified and redistributed

## without fee for non-commerical purposes provided that this license

## remains intact and unmodified with any RANCID distribution.

##

## There is no warranty or other guarantee of fitness of this software.

## It is provided solely "as is".  The author(s) disclaim(s) all

## responsibility and liability with respect to this software's usage

## or its effect upon hardware, computer systems, other software, or

## anything else.

##

## Except where noted otherwise, rancid was written by and is maintained by

## Henry Kilmer, John Heasley, Andrew Partan, Pete Whiting, and Austin Schutz.

##

#

# The login expect scripts were based on Erik Sherk's gwtn, by permission.

#

# rblogin - Riverbed Steelhead login

#

 

 

 

Shaun Krok

Network Team

 

Herzliya Business Park

Herzliya Pituach 46140

Israel 

 

Telephone: +972 (0)732889406

Mobile: +972 (0)50 2424381

email:shaun.krok <at> 888holdings.com

 

 



This email message and its attachments are for the sole use of the intended recipient(s) and may not be shared with any other party. They may contain confidential information of 888 Holdings plc or its direct and indirect subsidiaries (together, the “888 Group”) and are to be regarded as confidential information under any non-disclosure agreement. Any review, use, disclosure or distribution by persons or entities other than the intended recipient(s) is prohibited. Nothing in this message is capable of or intended to create any legally binding obligation. The 888 Group will only ever assume a legally binding obligation where recorded in a written agreement duly executed by the authorized signatories of the relevant 888 Group company. The 888 Group accepts no liability for any personal views expressed in this message. If you are not the intended recipient, please contact the sender by return and destroy all copies of the original message and its attachments. Thank you
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Andrei Sabau | 31 Oct 08:20 2014
Picon

Re: [rancid] Rancid-discuss Digest, Vol 48, Issue 17

Hello Antonio Quesada,

I did not manage to make it work, unfortunately. I cannot remember what troubles I had but after some time I gave up. I believed i tried it on 2.1 because 3.1 was released later ?(not sure)

On 30 October 2014 22:00, <rancid-discuss-request <at> shrubbery.net> wrote:
Send Rancid-discuss mailing list submissions to
        rancid-discuss <at> shrubbery.net

To subscribe or unsubscribe via the World Wide Web, visit
        http://www.shrubbery.net/mailman/listinfo/rancid-discuss
or, via email, send a message with subject or body 'help' to
        rancid-discuss-request <at> shrubbery.net

You can reach the person managing the list at
        rancid-discuss-owner <at> shrubbery.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Rancid-discuss digest..."


Today's Topics:

   1. Re: Using Ravin's patch to jump through a gateway device to
      probe device not working in 3.1? (Antonio Quesada)


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

Message: 1
Date: Thu, 30 Oct 2014 19:12:31 +0000
From: Antonio Quesada <antonio.quesada <at> usan.com>
To: "rancid-discuss <at> shrubbery.net" <rancid-discuss <at> shrubbery.net>
Subject: Re: [rancid] Using Ravin's patch to jump through a gateway
        device to probe device not working in 3.1?
Message-ID:
        <24DA785F724DBB40B9655CFA49DE78282C2CA99D <at> NOR2K8EXCH1.usanad.com>
Content-Type: text/plain; charset="us-ascii"

Hi all,

Back in the 12th of June of 2014 Andrei Sabau inquired about Ravin's patch.

Andrei (or anyone else for that matter):  Did you get it to work?
Did you use the same patch as for version 2 (which I do not think so, but let me make sure). Would you mind sharing where you obtained the version 3 patch (or did you modify it yourself?)

I have a problem where using Ravin's patch may provide a solution.

Thank you!!

Antonio Quesada


This communication, and any attachments, is intended solely for the use of the individual or entity to which it is addressed and contains information that is proprietary, privileged and confidential. If you are not the intended recipient or the person responsible for delivering this communication to the intended recipient, you are prohibited from retaining, using, disseminating, forwarding, printing or copying this communication. If you have received this communication in error, please immediately notify the sender via return e-mail or telephone and delete the original message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20141030/f35d4fd0/attachment-0001.html>

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

Subject: Digest Footer

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

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

End of Rancid-discuss Digest, Vol 48, Issue 17
**********************************************

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Antonio Quesada | 30 Oct 20:12 2014

Re: [rancid] Using Ravin's patch to jump through a gateway device to probe device not working in 3.1?

Hi all,

 

Back in the 12th of June of 2014 Andrei Sabau inquired about Ravin’s patch.

 

Andrei (or anyone else for that matter):  Did you get it to work?

Did you use the same patch as for version 2 (which I do not think so, but let me make sure). Would you mind sharing where you obtained the version 3 patch (or did you modify it yourself?)

 

I have a problem where using Ravin’s patch may provide a solution.

 

Thank you!!

 

Antonio Quesada

 

 

This communication, and any attachments, is intended solely for the use of the individual or entity to which it is addressed and contains information that is proprietary, privileged and confidential. If you are not the intended recipient or the person responsible for delivering this communication to the intended recipient, you are prohibited from retaining, using, disseminating, forwarding, printing or copying this communication. If you have received this communication in error, please immediately notify the sender via return e-mail or telephone and delete the original message.
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Shaun Krok | 22 Oct 08:34 2014

[rancid] Diff issue with Cisco ACE

Hi

 

I am running 3.1 Rancid and all is working exceptionally well.

 

Small diff issue with the following

 

 

###snip

+ !Unable to open device /dev/pfm_drv

 

How would I go about suppressing this in the diff email

 

Thanks

 

Shaun

 

 

 

Shaun Krok

Network Team

 

Herzliya Business Park

Herzliya Pituach 46140

Israel 

 

Telephone: +972 (0)732889406

Mobile: +972 (0)50 2424381

email:shaun.krok <at> 888holdings.com

 

 



This email message and its attachments are for the sole use of the intended recipient(s) and may not be shared with any other party. They may contain confidential information of 888 Holdings plc or its direct and indirect subsidiaries (together, the “888 Group”) and are to be regarded as confidential information under any non-disclosure agreement. Any review, use, disclosure or distribution by persons or entities other than the intended recipient(s) is prohibited. Nothing in this message is capable of or intended to create any legally binding obligation. The 888 Group will only ever assume a legally binding obligation where recorded in a written agreement duly executed by the authorized signatories of the relevant 888 Group company. The 888 Group accepts no liability for any personal views expressed in this message. If you are not the intended recipient, please contact the sender by return and destroy all copies of the original message and its attachments. Thank you
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Howard Jones | 15 Oct 12:22 2014

[rancid] wraprancid for rancid 3.x?

Before I dig in, has anyone else already updated Jethro Binks' 
wraprancid script to deal with RANCID 3.x? Since rancid-fe is driven by 
rancid-types.conf now, I am assuming it will need some love.

I'm trying to merge two different department's internal RANCID servers, 
one fairly standard 3.x and one 2.x with some wrapper scripts for 
strange devices.

Thanks for any pointers,

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

Jos | 15 Oct 01:33 2014
Picon

[rancid] cisco-xr ASR9K and numbered ACL's

Hi

Am new to this list and hoping someone can help me with a problem please
that I can’t figure out yet or find an earlier posting and solution for.
We are running the latest rancid version 3.1 on a centos vm and collecting
a bunch of cisco configs, all is good except for our iosxr ASR9K’s and
numbered ACL’s. 
Rancid seems to strip out part of the lines as below:

Real config:
ipv4 access-list no-rfc1918

 10 remark Deny traffic to RFC 1918
20 deny ipv4 10.0.0.0/8 any
 30 deny ipv4 any 10.0.0.0/8
 40 deny ipv4 172.16.0.0/12 any
 50 deny ipv4 any 172.16.0.0/12
 60 deny ipv4 192.168.0.0/16 any
 70 deny ipv4 any 192.168.0.0/16
 80 permit ipv4 any any

Rancid collected config:
ipv4 access-list no-rfc1918
 remark Deny traffic to RFC 1918
 deny ipv4 10.0.0.0/8 any
 deny ipv4 any 10
 deny ipv4 172.16.0.0/12 any
 deny ipv4 any 172
 deny ipv4 192.168.0.0/16 any
 deny ipv4 any 192
 permit ipv4 any any

A minor problem where the ACL is obvious as above, but this is the
exception.
Can someone suggest a good fix or workaround for this please (preferably
without changing the ASR9K config), I trust it affects others with this
sort of config?
I can see earlier posts mention xrrancid but can’t find that in our 3.1
install.

Regards,
Jos 

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Shaun Krok | 12 Oct 06:27 2014
Picon

[rancid] rancid not working with partitions v11.x tmsh F5 LTM

Hi

I am busy to integrate Rancid into our network and have an issue with 
partitions on BIG IP LTM v11.x
All  works fine but Rancid does not backup all partitions …
I am using the script from GIT with TMSH commands

This command work from bash : tmsh -q -c "cd /; list recursive" but 
does not from the script ..

This is a snip from the forum where the issue was identified but is 
anyone aware if there is a fix :

Thanks

Shaun

here is a working tmsh version in the rancid git repo.

The only thing that doesn't work when adjusting the script to list all
partition co config is a tmsh -q -c "cd /; list recursive" - it errors 
out
due to extra double quotes required by the -c option.
On Dec 6, 2012 8:57 PM, "Darius Seroka" <dariusjs at gmail.com> wrote:

Shaun Krok
Network Team

--

-- 
Shaun Krok
Tel: 050 2424 381
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Shaun Krok | 11 Oct 19:59 2014
Picon

[rancid] rancid workinging with partitions v11.x tmsh F5 LTM

Hi

I am busy to integrate Rancid into our network and have an issue with 
partitions on BIG IP LTM v11.x
All  works fine but Rancid does not backup all partitions …
I am using the script from GIT with TMSH commands

This command work from bash : tmsh -q -c "cd /; list recursive" but 
does not from the script ..

This is a snip from the forum where the issue was identified but is 
anyone aware if there is a fix :

Thanks

Shaun

here is a working tmsh version in the rancid git repo.

The only thing that doesn't work when adjusting the script to list all
partition co config is a tmsh -q -c "cd /; list recursive" - it errors 
out
due to extra double quotes required by the -c option.
On Dec 6, 2012 8:57 PM, "Darius Seroka" <dariusjs at gmail.com> wrote:

Shaun Krok
Network Team

--

-- 
Shaun Krok
Tel: 050 2424 381
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss

Gmane