harsha senaratna | 1 Sep 12:20 2010
Picon

[rancid] Fwd: rancid and cvsweb...plz...help...

hi

i installed rancid and working fine while back up the network
devices.But i cant access the configuration files using cvsweb.
once i get into cvsweb nothing displayed

here are my configurations

vi /etc/cvsweb/cvsweb.conf

 <at> CVSrepositories = (
       'local'   => ['Local Repository', '/var/cvs'],
       'networking' => ['Networking Devices',
'/usr/local/rancid/var/networking'],

vi /usr/local/rancid/etc/rancid.conf

BASEDIR=/usr/local/rancid/var; export BASEDIR
CVSROOT=$BASEDIR/CVS; export CVSROOT

[root <at> RANCID01 var]# pwd

/usr/local/rancid/var

[root <at> RANCID01 var]# ls -al
total 20
drwxrwxrwx 5 rancid netadm 4096 Aug 31 16:51 .
drwxrwx--- 9 rancid netadm 4096 Sep  1 14:09 ..
drwxrwxr-x 3 rancid netadm 4096 Aug 31 16:22 CVS
drwxr-x--- 2 rancid netadm 4096 Sep  1 14:58 logs
(Continue reading)

Gareth Hopkins | 1 Sep 18:09 2010
Picon

Re: [rancid] Fwd: rancid and cvsweb...plz...help...

Hi, 


You need to export your CVS directory, so change /usr/local/rancid/var/networking to /usr/local/rancid/var/CVS in cvsweb.conf

Cheers, 

Gareth 

2010/9/1 harsha senaratna <harshaabba <at> gmail.com>
hi

i installed rancid and working fine while back up the network
devices.But i cant access the configuration files using cvsweb.
once i get into cvsweb nothing displayed

here are my configurations

vi /etc/cvsweb/cvsweb.conf

<at> CVSrepositories = (
       'local'   => ['Local Repository', '/var/cvs'],
       'networking' => ['Networking Devices',
'/usr/local/rancid/var/networking'],

vi /usr/local/rancid/etc/rancid.conf

BASEDIR=/usr/local/rancid/var; export BASEDIR
CVSROOT=$BASEDIR/CVS; export CVSROOT

[root <at> RANCID01 var]# pwd

/usr/local/rancid/var

[root <at> RANCID01 var]# ls -al
total 20
drwxrwxrwx 5 rancid netadm 4096 Aug 31 16:51 .
drwxrwx--- 9 rancid netadm 4096 Sep  1 14:09 ..
drwxrwxr-x 3 rancid netadm 4096 Aug 31 16:22 CVS
drwxr-x--- 2 rancid netadm 4096 Sep  1 14:58 logs
drwxr-x--- 3 rancid netadm 4096 Sep  1 14:59 networking
[root <at> C-SVRANCID01 var]#

configuration file resides cd /usr/local/rancid/var/networking/configs/


[root <at> RANCID01 configs]# ls
10.100.100.1  10.100.140.1  10.100.234.1  10.100.252.1

[root <at> RANCID01 configs]#

Is it a issue related to permissions? please help me to get rid of
this small issue.

im willing to give more info you need

tnx

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <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.cgi/rancid-discuss
Brian G | 1 Sep 20:54 2010
Picon

[rancid] Email notifications - summary at the top

 
I've recently acquired a server that is running rancid (2.3.4).  I noticed the email notifications do not include a summary of what files have changes.
 
Here is an example from another server I run which shows a quick summary at the top of the email on what routers "changed"  
 
 bur-7606     |   16 ++++++----------
 menoalls-7606 |   20 ++++++++++----------
 ville-7609      |   15 ++++++---------
 3 files changed, 22 insertions(+), 29 deletions(-)
 
 
How can I get 2.3.4 to include the "summary"?  Could it be differences in the diff version or cvsweb installed?
 
Thanks,
Brian
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
harsha senaratna | 2 Sep 05:02 2010
Picon

Re: [rancid] Fwd: rancid and cvsweb...plz...help...

hi

tnx a lot for your response.I did the change what you have mentioned.
I attached the screen shot after did the change now i only see the
CVSROOT directory.

Im not that much expert with cvs.

[root <at> RANCID01 CVS]# pwd

/usr/local/rancid/var/CVS

[root <at> RANCID01 CVS]# ls -al
total 16
drwxrwxr-x 4 rancid netadm 4096 Sep  2 08:26 .
drwxrwxrwx 5 rancid netadm 4096 Aug 31 16:51 ..
drwxrwxr-x 3 rancid netadm 4096 May 17 10:03 CVSROOT

[root <at> RANCID01 configs]# pwd
/usr/local/rancid/var/networking/configs
[root <at> RANCID01 configs]# ls -al
total 44
drwxrwxrwx 2 rancid netadm 4096 Sep  2 00:12 .
drwxr-x--- 3 rancid netadm 4096 Sep  2 00:12 ..
-rwxrwxrwx 1 rancid netadm 8811 Sep  2 00:05 10.100.100.1
-rw-r----- 1 rancid netadm 3080 Sep  2 00:05 10.100.140.1
-rw-r----- 1 rancid netadm 6419 Sep  2 00:05 10.100.234.1
-rw-r----- 1 rancid netadm 8756 Sep  2 00:06 10.100.252.1

so kindly help me to get solve this.

tnx
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Brian G | 2 Sep 03:23 2010
Picon

Re: [rancid] Email notifications - summary at the top


   Actually, this was the rancid-core and rancid-util package that got 
installed from the debian (lenny) release.  Not sure what they changed in 
this release to do this.  (or what file to be specific)

--------------------------------------------------
From: "Brian G" <xenophon21 <at> hotmail.com>
Sent: Wednesday, September 01, 2010 7:56 PM
To: "john heasley" <heas <at> shrubbery.net>
Subject: Re: [rancid] Email notifications - summary at the top

> Happen to know which file got modified to make it do that?  I was looking 
> to add this, as it's neat to see what changed at the top of the email.
>
> --------------------------------------------------
> From: "john heasley" <heas <at> shrubbery.net>
> Sent: Wednesday, September 01, 2010 5:59 PM
> To: "Brian G" <xenophon21 <at> hotmail.com>
> Subject: Re: [rancid] Email notifications - summary at the top
>
>> Wed, Sep 01, 2010 at 01:54:37PM -0500, Brian G:
>>>
>>> I've recently acquired a server that is running rancid (2.3.4).  I 
>>> noticed the email notifications do not include a summary of what files 
>>> have changes.
>>>
>>> Here is an example from another server I run which shows a quick summary 
>>> at the top of the email on what routers "changed"
>>>
>>>  bur-7606     |   16 ++++++----------
>>>  menoalls-7606 |   20 ++++++++++----------
>>>  ville-7609      |   15 ++++++---------
>>>  3 files changed, 22 insertions(+), 29 deletions(-)
>>>
>>>
>>> How can I get 2.3.4 to include the "summary"?  Could it be differences 
>>> in the diff version or cvsweb installed?
>>>
>>> Thanks,
>>> Brian
>>> _______________________________________________
>>> Rancid-discuss mailing list
>>> Rancid-discuss <at> shrubbery.net
>>> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>>
>> it was a local change.
>> 
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

Jon Lewis | 2 Sep 06:41 2010

Re: [rancid] Email notifications - summary at the top

I must have added this to ours way back when I installed it.  It's just a 
tiny change in control_rancid adding the diffstat command.  Obviously, 
make sure you have diffstat installed.

# Mail out the diffs (if there are any).
if [ -s $TMP.diff ]; then
     sendmail -t <<EMAIL
To: $mailrcpt
Subject: $subject
Precedence: bulk

`diffstat $TMP.diff`

`cat $TMP.diff`
EMAIL

On Wed, 1 Sep 2010, Brian G wrote:

>
>  Actually, this was the rancid-core and rancid-util package that got 
> installed from the debian (lenny) release.  Not sure what they changed in 
> this release to do this.  (or what file to be specific)
>
> --------------------------------------------------
> From: "Brian G" <xenophon21 <at> hotmail.com>
> Sent: Wednesday, September 01, 2010 7:56 PM
> To: "john heasley" <heas <at> shrubbery.net>
> Subject: Re: [rancid] Email notifications - summary at the top
>
>> Happen to know which file got modified to make it do that?  I was looking 
>> to add this, as it's neat to see what changed at the top of the email.
>> 
>> --------------------------------------------------
>> From: "john heasley" <heas <at> shrubbery.net>
>> Sent: Wednesday, September 01, 2010 5:59 PM
>> To: "Brian G" <xenophon21 <at> hotmail.com>
>> Subject: Re: [rancid] Email notifications - summary at the top
>> 
>>> Wed, Sep 01, 2010 at 01:54:37PM -0500, Brian G:
>>>> 
>>>> I've recently acquired a server that is running rancid (2.3.4).  I 
>>>> noticed the email notifications do not include a summary of what files 
>>>> have changes.
>>>> 
>>>> Here is an example from another server I run which shows a quick summary 
>>>> at the top of the email on what routers "changed"
>>>> 
>>>>  bur-7606     |   16 ++++++----------
>>>>  menoalls-7606 |   20 ++++++++++----------
>>>>  ville-7609      |   15 ++++++---------
>>>>  3 files changed, 22 insertions(+), 29 deletions(-)
>>>> 
>>>> 
>>>> How can I get 2.3.4 to include the "summary"?  Could it be differences in 
>>>> the diff version or cvsweb installed?
>>>> 
>>>> Thanks,
>>>> Brian
>>>> _______________________________________________
>>>> Rancid-discuss mailing list
>>>> Rancid-discuss <at> shrubbery.net
>>>> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>>> 
>>> it was a local change.
>>> 
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss <at> shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>

----------------------------------------------------------------------
  Jon Lewis, MCP :)           |  I route
  Senior Network Engineer     |  therefore you are
  Atlantic Net                |
_________ http://www.lewis.org/~jlewis/pgp for PGP public key_________
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

Mordechai T. Abzug | 2 Sep 09:24 2010

[rancid] rad devices?

Has anyone written rancid support for Rad devices such as the megaplex
2100?

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

Gareth Hopkins | 2 Sep 09:51 2010
Picon

Re: [rancid] Fwd: rancid and cvsweb...plz...help...

Hi, 


Looks like your cvs tree is not correctly configured. 

What output do you get if you run the following (as rancid user)

cvs log /usr/local/rancid/var/networking/configs/10.100.100.1

Cheers, 

Gareth 

On Thu, Sep 2, 2010 at 5:02 AM, harsha senaratna <harshaabba <at> gmail.com> wrote:
hi

tnx a lot for your response.I did the change what you have mentioned.
I attached the screen shot after did the change now i only see the
CVSROOT directory.

Im not that much expert with cvs.

[root <at> RANCID01 CVS]# pwd

/usr/local/rancid/var/CVS

[root <at> RANCID01 CVS]# ls -al
total 16
drwxrwxr-x 4 rancid netadm 4096 Sep  2 08:26 .
drwxrwxrwx 5 rancid netadm 4096 Aug 31 16:51 ..
drwxrwxr-x 3 rancid netadm 4096 May 17 10:03 CVSROOT

[root <at> RANCID01 configs]# pwd
/usr/local/rancid/var/networking/configs
[root <at> RANCID01 configs]# ls -al
total 44
drwxrwxrwx 2 rancid netadm 4096 Sep  2 00:12 .
drwxr-x--- 3 rancid netadm 4096 Sep  2 00:12 ..
-rwxrwxrwx 1 rancid netadm 8811 Sep  2 00:05 10.100.100.1
-rw-r----- 1 rancid netadm 3080 Sep  2 00:05 10.100.140.1
-rw-r----- 1 rancid netadm 6419 Sep  2 00:05 10.100.234.1
-rw-r----- 1 rancid netadm 8756 Sep  2 00:06 10.100.252.1


so kindly help me to get solve this.

tnx

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Per Carlson | 2 Sep 09:33 2010

Re: [rancid] Email notifications - summary at the top

>  Actually, this was the rancid-core and rancid-util package that got
> installed from the debian (lenny) release.  Not sure what they changed in
> this release to do this.  (or what file to be specific)

Try installing diffstat, it's only considered an "Suggest" on Debian.

--

-- 
Pelle

RFC1925, truth 11:
 Every old idea will be proposed again with a different name and
 a different presentation, regardless of whether it works.
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

Per Carlson | 2 Sep 10:08 2010

Re: [rancid] Fwd: rancid and cvsweb...plz...help...

> tnx a lot for your response.I did the change what you have mentioned.
> I attached the screen shot after did the change now i only see the
> CVSROOT directory.

you have a couple of other options as well in cvsweb.conf

>  <at> CVSrepositories = (
>       'local'   => ['Local Repository', '/var/cvs'],
>       'networking' => ['Networking Devices',
> '/usr/local/rancid/var/networking'],

# The default CVS root.  Note that  <at> CVSrepositories is list, not a hash,
# so you'll want to use 2 * 0-based-index-number here; or set this directly
# to the default's symbolic name. Unless specified, the first valid one in
#  <at> CVSrepositories is used as the default.
#
# For example:
#
#$cvstreedefault = $CVSrepositories[2 * 0];
#$cvstreedefault = 'local';

as you have configured the 'local' repository first in
 <at> CVSrepositories, it will use that as default. either get rid of it
(or comment it out), or add a specific default. in your case that
would look like:

$cvstreedefault = 'networking';

you can also hide the CVSROOT:

%DEFAULTVALUE = (
    # hidecvsroot: Don't show the CVSROOT directory.  Note that this is
    # just the default for a user settable option (like others in this
    # %DEFAULTVALUE hash); it won't really prevent access to CVSROOT.
    # See  <at> ForbiddenFiles for that.
    #   1      Do not include the top-level CVSROOT directory in dir listings
    #   0      Treat the top-level CVSROOT directory just like all other dirs
    "hidecvsroot" => "1",

--

-- 
Pelle

RFC1925, truth 11:
 Every old idea will be proposed again with a different name and
 a different presentation, regardless of whether it works.
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss


Gmane