From ml at kenweb.org Tue Sep 1 01:42:27 2009 From: ml at kenweb.org (ML) Date: Mon, 31 Aug 2009 21:42:27 -0400 Subject: [rancid] Trouble automating TFTP downloading using clogin Message-ID: <4A9C7C03.4030906@kenweb.org> I'm trying to script clogin to login to some switches and pull an IOS image via tftp. clogin -t 300 -c 'copy tftp://1.1.1.1/file.bin flash:' 2.2.2.2 I see the copy command appear to execute on the remote switch but the operation ever starts. I verified with remote tftp server that not a single packet ever reaches it. There is essentially zero output during the vty session after the copy starts. I can successfully execute other commands, just not 'copy'. What could be happening? From rwest at zyedge.com Tue Sep 1 01:58:07 2009 From: rwest at zyedge.com (Ryan West) Date: Mon, 31 Aug 2009 21:58:07 -0400 Subject: [rancid] Re: Trouble automating TFTP downloading using clogin In-Reply-To: <4A9C7C03.4030906@kenweb.org> References: <4A9C7C03.4030906@kenweb.org> Message-ID: <6E21B2BDEF6E714EA0B5BA8D5D0E1401248E269DBC@zy-ex1.zyedge.local> ML, Looks like you're missing carriage returns. Try creating a file with 3 carriage returns at the bottom, I recently upgraded a series of switches using the same method. Clogin -x -ryan -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of ML Sent: Monday, August 31, 2009 9:42 PM To: rancid-discuss at shrubbery.net Subject: [rancid] Trouble automating TFTP downloading using clogin I'm trying to script clogin to login to some switches and pull an IOS image via tftp. clogin -t 300 -c 'copy tftp://1.1.1.1/file.bin flash:' 2.2.2.2 I see the copy command appear to execute on the remote switch but the operation ever starts. I verified with remote tftp server that not a single packet ever reaches it. There is essentially zero output during the vty session after the copy starts. I can successfully execute other commands, just not 'copy'. What could be happening? _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From bmahaffey at pelco.com Tue Sep 1 20:22:14 2009 From: bmahaffey at pelco.com (Mahaffey, Brian) Date: Tue, 1 Sep 2009 13:22:14 -0700 Subject: [rancid] Re: Trouble automating TFTP downloading using clogin In-Reply-To: <4A9C7C03.4030906@kenweb.org> References: <4A9C7C03.4030906@kenweb.org> Message-ID: <4BBAF403456ED74981E7164ED3A4C224016FDD90@CA-EVS02.pelco.org> I used Quotes " instead of ' and I saw the command execute, the issue I see is that it doesn't prompt you to accept image destination name the same way if you did it manually on the command line. More tftp.sh Clogin -c "copy tftp://10.10.15.11/c2800nm-adventerprisek9-mz.124-23.bin flash:" SPAIN-C2811.PELCO.ORG -bash-3.2$ ./tftp.sh SPAIN-c2811.pelco.org spawn ssh -c 3des -x -l user SPAIN-c2811.pelco.org CCC DO NOT LOGIN TO THIS DEVICE! Password: SPAIN-C2811# SPAIN-C2811#terminal length 0 SPAIN-C2811#copy tftp://10.200.2.11/c2800nm-adventerprisek9-mz.124-23.bin flash: Error: TIMEOUT reached -bash-3.2$ -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of ML Sent: Monday, August 31, 2009 6:42 PM To: rancid-discuss at shrubbery.net Subject: [rancid] Trouble automating TFTP downloading using clogin I'm trying to script clogin to login to some switches and pull an IOS image via tftp. clogin -t 300 -c 'copy tftp://1.1.1.1/file.bin flash:' 2.2.2.2 I see the copy command appear to execute on the remote switch but the operation ever starts. I verified with remote tftp server that not a single packet ever reaches it. There is essentially zero output during the vty session after the copy starts. I can successfully execute other commands, just not 'copy'. What could be happening? _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss - ------------------------------------------------------------------------------ Confidentiality Notice: The information contained in this transmission is legally privileged and confidential, intended only for the use of the individual(s) or entities named above. This email and any files transmitted with it are the property of Pelco. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you receive this communication in error, please notify us immediately by telephone call to +1-559-292-1981 or forward the e-mail to administrator at pelco.com and then permanently delete the e-mail and destroy all soft and hard copies of the message and any attachments. Thank you for your cooperation. - ------------------------------------------------------------------------------ From david at infotrek.co.uk Tue Sep 1 21:25:57 2009 From: david at infotrek.co.uk (David Croft) Date: Tue, 1 Sep 2009 23:25:57 +0200 Subject: [rancid] Re: Trouble automating TFTP downloading using clogin In-Reply-To: <4A9C7C03.4030906@kenweb.org> References: <4A9C7C03.4030906@kenweb.org> Message-ID: Your script may be stalling on a prompt. I use this script to turn off file prompts before the copy: clogin -c "conf t; file prompt quiet; exit; copy scp://user:pass at server/$script running-config; conf t; no file prompt quiet" $router David 2009/9/1 ML : > I'm trying to script clogin to login to some switches and pull an IOS > image via tftp. > > clogin -t 300 -c 'copy tftp://1.1.1.1/file.bin flash:' 2.2.2.2 > > I see the copy command appear to execute on the remote switch but the > operation ever starts. ?I verified with remote tftp server that not a > single packet ever reaches it. ?There is essentially zero output during > the vty session after the copy starts. ?I can successfully execute other > commands, just not 'copy'. > > > What could be happening? > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > From jyun at m5net.com Thu Sep 3 20:46:43 2009 From: jyun at m5net.com (Joon Yun) Date: Thu, 3 Sep 2009 16:46:43 -0400 Subject: [rancid] Re: FreeBSD 7.2 & rancid/expect/tcl ports In-Reply-To: <42C9996A-C4DA-441A-8924-E4F6BC0E7FC2@berkeley.edu> Message-ID: Hello Mr. Zimmerman, Just out of curiosity, what exactly happened when RANCID used to hang for you and did it just go away when you upgraded or did you actually discover a bug and it got fixed? I hope you and the rest of gnag are doing well. Regards, Joon Yun -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of David Paul Zimmerman Sent: Thursday, August 27, 2009 1:11 PM To: rancid-discuss at shrubbery.net Subject: [rancid] FreeBSD 7.2 & rancid/expect/tcl ports Hi, Sometimes I wish I was able to refer to a message that would get me out of a jam, so I thought I'd share the results of an upgrade I've just finished to my RANCID servers: FreeBSD 7.2-RELEASE-p3 rancid-2.3.2 Really Awesome New Cisco confIg Differ expect-nox11-5.44.1.11_1 A sophisticated scripter based on tcl/tk tcl-8.4.19_3,1 Tool Command Language All seems to be working well, no RANCID hangs since the upgrade on August 10th. dp _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From mathiruban at sltnet.lk Fri Sep 4 03:22:27 2009 From: mathiruban at sltnet.lk (mathiruban) Date: Fri, 04 Sep 2009 08:22:27 +0500 Subject: [rancid] Monitoring BGP in Rancid Message-ID: Dear Team, Is it possible to monitor the BGP status in links using Rancid looking glass? If BGP is down, can I get the email notification? Rgds, R.Mathiruban From jlewis at lewis.org Sun Sep 6 20:06:45 2009 From: jlewis at lewis.org (Jon Lewis) Date: Sun, 6 Sep 2009 16:06:45 -0400 (EDT) Subject: [rancid] Re: Monitoring BGP in Rancid In-Reply-To: References: Message-ID: On Fri, 4 Sep 2009, mathiruban wrote: > Dear Team, > > Is it possible to monitor the BGP status in links using Rancid looking glass? > If BGP is down, can I get the email notification? I don't see why you couldn't add a show ip bg sum to the commands run...but the problem I'd see with doing that in rancid is that if you're talking about BGP (full routes, peering) with external AS's, the number of prefixes received is likely to be in constant flux, causing a diff every time rancid runs. ---------------------------------------------------------------------- Jon Lewis | I route Senior Network Engineer | therefore you are Atlantic Net | _________ http://www.lewis.org/~jlewis/pgp for PGP public key_________ From heas at shrubbery.net Sun Sep 6 23:48:23 2009 From: heas at shrubbery.net (john heasley) Date: Sun, 6 Sep 2009 23:48:23 +0000 Subject: [rancid] Re: Monitoring BGP in Rancid In-Reply-To: References: Message-ID: <20090906234823.GD2287@shrubbery.net> Sun, Sep 06, 2009 at 04:06:45PM -0400, Jon Lewis: > On Fri, 4 Sep 2009, mathiruban wrote: > > > Dear Team, > > > > Is it possible to monitor the BGP status in links using Rancid looking glass? > > If BGP is down, can I get the email notification? > > I don't see why you couldn't add a show ip bg sum to the commands > run...but the problem I'd see with doing that in rancid is that if you're > talking about BGP (full routes, peering) with external AS's, the > number of prefixes received is likely to be in constant flux, causing a > diff every time rancid runs. > > ---------------------------------------------------------------------- > Jon Lewis | 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 attached is used for cisco. you'll have to make your own adjustments to rancid-fe and whatever else within the script. -------------- next part -------------- #! /usr/bin/perl ## ## $Id: cbgp,v 1.4 2005/05/16 07:14:05 heas Exp $ ## ## Copyright (C) 1997-2004 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. ## # # RANCID - Really Awesome New Cisco confIg Differ # # usage: rancid [-d] [-l] [-f filename | $host] # use Getopt::Std; getopts('dfl'); $log = $opt_l; $debug = $opt_d; $file = $opt_f; $host = $ARGV[0]; $clean_run = 0; $timeo = 90; # clogin timeout in seconds my(%filter_pwds); # password filtering mode # This routine is used to print out the router configuration sub ProcessHistory { my($new_hist_tag,$new_command,$command_string, at string)=(@_); if((($new_hist_tag ne $hist_tag) || ($new_command ne $command)) && defined %history) { print eval "$command \%history"; undef %history; } if (($new_hist_tag) && ($new_command) && ($command_string)) { if ($history{$command_string}) { $history{$command_string} = "$history{$command_string}@string"; } else { $history{$command_string} = "@string"; } } elsif (($new_hist_tag) && ($new_command)) { $history{++$#history} = "@string"; } else { print "@string"; } $hist_tag = $new_hist_tag; $command = $new_command; 1; } sub numerically { $a <=> $b; } # This is a sort routing that will sort numerically on the # keys of a hash as if it were a normal array. sub keynsort { local(%lines)=@_; local($i) = 0; local(@sorted_lines); foreach $key (sort numerically keys(%lines)) { $sorted_lines[$i] = $lines{$key}; $i++; } @sorted_lines; } # This is a sort routing that will sort on the # keys of a hash as if it were a normal array. sub keysort { local(%lines)=@_; local($i) = 0; local(@sorted_lines); foreach $key (sort keys(%lines)) { $sorted_lines[$i] = $lines{$key}; $i++; } @sorted_lines; } # This is a sort routing that will sort on the # values of a hash as if it were a normal array. sub valsort{ local(%lines)=@_; local($i) = 0; local(@sorted_lines); foreach $key (sort values %lines) { $sorted_lines[$i] = $key; $i++; } @sorted_lines; } # This is a numerical sort routing (ascending). sub numsort { local(%lines)=@_; local($i) = 0; local(@sorted_lines); foreach $num (sort {$a <=> $b} keys %lines) { $sorted_lines[$i] = $lines{$num}; $i++; } @sorted_lines; } # This is a sort routine that will sort on the # ip address when the ip address is anywhere in # the strings. sub ipsort { local(%lines)=@_; local($i) = 0; local(@sorted_lines); foreach $addr (sort sortbyipaddr keys %lines) { $sorted_lines[$i] = $lines{$addr}; $i++; } @sorted_lines; } # These two routines will sort based upon IP addresses sub ipaddrval { my(@a) = ($_[0] =~ m#^(\d+)\.(\d+)\.(\d+)\.(\d+)$#); $a[3]+256*($a[2]+256*($a[1]+256*$a[0])); } sub sortbyipaddr { &ipaddrval($a) <=> &ipaddrval($b); } # This routine parses "show ip bgp summary" sub ShowBgpSum { my($hdrout) = 0; print STDERR " In ShowBgpSum: $_" if ($debug); $hdr = sprintf("%-20s%10s\t%s\n", "Neighbor", "AS", "State"); while () { tr/\015//d; last if(/^$prompt/); next if(/^(\s*|\s*$cmd\s*)$/); return(1) if /(Invalid input detected|Type help or )/; # the pager can not be disabled per-session on the PIX s/^<-+ More -+>\s*//; if (/^\s*(\d+\.\d+\.\d+\.\d+)\s*\d\s*(\d+)\s*.*\s+(\d+)$/) { $ip = $1; $as = $2; $state = "up"; if (! $hdrout) { $hdrout++; ProcessHistory("","","","$hdr"); } $line = sprintf("%-20s%10s\t%s\n", $ip, $as, $state); ProcessHistory("BGP","ipsort","$1","$line") && next; } if (/^\s*(\d+\.\d+\.\d+\.\d+)\s*\d\s*(\d+)\s*.*\s+(\S+)\s*$/) { $ip = $1; $as = $2; $state = "down"; if (! $hdrout) { $hdrout++; ProcessHistory("","","","$hdr"); } $line = sprintf("%-20s%10s\t%s\n", $ip, $as, $state); ProcessHistory("BGP","ipsort","$1","$line") && next; } } ProcessHistory("","","","!\n"); return(0); } # This routine parses "show ip bgp summary" sub ShowBgp6Sum { my($hdrout) = 0; print STDERR " In ShowBgp6Sum: $_" if ($debug); $hdr = sprintf("%-40s%10s\t%s\n", "Neighbor", "AS", "State"); while () { tr/\015//d; last if(/^$prompt/); next if(/^(\s*|\s*$cmd\s*)$/); return(1) if /(Invalid input detected|Type help or )/; # the pager can not be disabled per-session on the PIX s/^<-+ More -+>\s*//; # v6_ip \n # ... AS ... (N_prefixes|Connect/etc) if (/^(\S+(:\S*)+)\s*$/) { $ip = $1; if (! $hdrout) { $hdrout++; ProcessHistory("","","","$hdr"); } $_ = ; tr/\015//d; if (/^\s+\d\s+(\d+)\s+.*\s+(\d+)$/) { $as = $1; $state = "up"; $line = sprintf("%-40s%10s\t%s\n", $ip, $as, $state); ProcessHistory("BGP","numsort","$as","$line") && next; } /^\s+\d\s+(\d+)\s+.*\s+(\S+)\s*$/; $as = $1; $state = "down"; $line = sprintf("%-40s%10s\t%s\n", $ip, $as, $state); ProcessHistory("BGP","numsort","$as","$line"); next; } # v6_ip ... AS ... N_prefixes if (/^(\S+(:\S*)+)\s+\d\s+(\d+)\s+.*\s+(\d+)\s*$/) { $ip = $1; $as = $3; $state = "up"; if (! $hdrout) { $hdrout++; ProcessHistory("","","","$hdr"); } $line = sprintf("%-40s%10s\t%s\n", $ip, $as, $state); ProcessHistory("BGP","numsort","$as","$line"); next; } # v6_ip ... AS ... Connect/OpenConfirm/etc if (/^(\S+(:\S?)+)\s+\d\s+(\d+)\s+.*\s+(\S+)\s*$/) { $ip = $1; $as = $3; $state = "up"; if (! $hdrout) { $hdrout++; ProcessHistory("","","","$hdr"); } $line = sprintf("%-40s%10s\t%s\n", $ip, $as, $state); ProcessHistory("BGP","numsort","$as","$line"); next; } # may be an ipv4 peer addr # v6_ip ... AS ... N_prefixes if (/^\s*(\d+\.\d+\.\d+\.\d+)\s*\d\s*(\d+)\s*.*\s+(\d+)$/) { $ip = $1; $as = $2; $state = "up"; if (! $hdrout) { $hdrout++; ProcessHistory("","","","$hdr"); } $line = sprintf("%-40s%10s\t%s\n", $ip, $as, $state); ProcessHistory("BGP","numsort","$as","$line") && next; } # v4_ip ... AS ... Connect/OpenConfirm/etc if (/^\s*(\d+\.\d+\.\d+\.\d+)\s*\d\s*(\d+)\s*.*\s+(\S+)$/) { $ip = $1; $as = $2; $state = "down"; if (! $hdrout) { $hdrout++; ProcessHistory("","","","$hdr"); } $line = sprintf("%-40s%10s\t%s\n", $ip, $as, $state); ProcessHistory("BGP","numsort","$as","$line") && next; } } return(0); } # dummy function sub DoNothing {print STDOUT;} # Main %commands=( 'show ip bgp summary' => "ShowBgpSum", 'show ipv6 bgp summary' => "ShowBgp6Sum", 'show ip bgp ipv6 unicast summary' => "ShowBgp6Sum", ); # keys() doesnt return things in the order entered and the order of the # cmds is important (show version first and write term last). pita @commands=( "show ip bgp summary", "show ipv6 bgp summary", "show ip bgp ipv6 unicast summary" ); $cisco_cmds=join(";", at commands); $cmds_regexp=join("|", at commands); open(OUTPUT,">$host.new") || die "Can't open $host.new for writing: $!\n"; select(OUTPUT); # make OUTPUT unbuffered if debugging if ($debug) { $| = 1; } if ($file) { print STDERR "opening file $host\n" if ($debug); print STDOUT "opening file $host\n" if ($log); open(INPUT,"<$host") || die "open failed for $host: $!\n"; } else { print STDERR "executing clogin -t $timeo -c\"$cisco_cmds\" $host\n" if ($debug); print STDOUT "executing clogin -t $timeo -c\"$cisco_cmds\" $host\n" if ($log); if (defined($ENV{NOPIPE})) { system "clogin -t $timeo -c \"$cisco_cmds\" $host $host.raw 2>&1" || die "clogin failed for $host: $!\n"; open(INPUT, "< $host.raw") || die "clogin failed for $host: $!\n"; } else { open(INPUT,"clogin -t $timeo -c \"$cisco_cmds\" $host ) { tr/\015//d; NEXT:if (/[>#]\s?exit$/) { $clean_run=1; last; } if (/^Error:/) { print STDOUT ("$host clogin error: $_"); print STDERR ("$host clogin error: $_") if ($debug); $clean_run=0; last; } while (/#\s*($cmds_regexp)\s*$/) { $cmd = $1; if (!defined($prompt)) { $prompt = ($_ =~ /^([^#]+#)/)[0]; $prompt =~ s/([][}{)(\\])/\\$1/g; print STDERR ("PROMPT MATCH: $prompt\n") if ($debug); } print STDERR ("HIT COMMAND:$_") if ($debug); if (! defined($commands{$cmd})) { print STDERR "$host: found unexpected command - \"$cmd\"\n"; $clean_run = 0; last TOP; } $rval = &{$commands{$cmd}}; delete($commands{$cmd}); if ($rval == -1) { $clean_run = 0; last TOP; } goto NEXT; } } print STDOUT "Done $logincmd: $_\n" if ($log); # Flush History ProcessHistory("","","",""); # Cleanup close(INPUT); close(OUTPUT); if (defined($ENV{NOPIPE})) { unlink("$host.raw") if (! $debug); } # check for completeness if (scalar(%commands) || !$clean_run) { if (scalar(%commands)) { printf(STDOUT "$host: missed cmd(s): %s\n", join(',', keys(%commands))); printf(STDERR "$host: missed cmd(s): %s\n", join(',', keys(%commands))) if ($debug); } if (!$clean_run) { print STDOUT "$host: End of run not found\n"; print STDERR "$host: End of run not found\n" if ($debug); system("/usr/bin/tail -1 $host.new"); } unlink "$host.new" if (! $debug); } From Teemu.Pulliainen at mloy.fi Wed Sep 9 10:10:20 2009 From: Teemu.Pulliainen at mloy.fi (Pulliainen Teemu) Date: Wed, 9 Sep 2009 13:10:20 +0300 Subject: [rancid] Greater than -sign in Juniper configs Message-ID: <7357F0F84F889C4E9CF4856EABD452A5352364D54D@mlbl010.mloy.local> Hi all, Rancid has been missing some config changes in one of our Juniper (Netscreen) firewalls. While checking it out, I noticed that the configuration fetcher script seems to quit whenever it reaches a firewall policy with a > sign in the description field. Removing the greater than -signs from the configuration seems to have fixed the issue. Best regards, Teemu Pulliainen -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090909/cd981e8f/attachment.html From heas at shrubbery.net Wed Sep 9 17:20:23 2009 From: heas at shrubbery.net (john heasley) Date: Wed, 9 Sep 2009 10:20:23 -0700 Subject: [rancid] Re: Greater than -sign in Juniper configs In-Reply-To: <7357F0F84F889C4E9CF4856EABD452A5352364D54D@mlbl010.mloy.local> References: <7357F0F84F889C4E9CF4856EABD452A5352364D54D@mlbl010.mloy.local> Message-ID: <20090909172023.GA21798@shrubbery.net> Wed, Sep 09, 2009 at 01:10:20PM +0300, Pulliainen Teemu: > Hi all, > > Rancid has been missing some config changes in one of our Juniper (Netscreen) firewalls. While checking it out, I noticed that the configuration fetcher script seems to quit whenever it reaches a firewall policy with a > sign in the description field. > > Removing the greater than -signs from the configuration seems to have fixed the issue. > This shouldnt be. Please ensure that you are running the most recent version of rancid. If it still occurs, please send the output of jrancid -dl rtrname to me. From dpz at berkeley.edu Thu Sep 10 01:32:49 2009 From: dpz at berkeley.edu (David Paul Zimmerman) Date: Wed, 9 Sep 2009 18:32:49 -0700 Subject: [rancid] Re: FreeBSD 7.2 & rancid/expect/tcl ports In-Reply-To: References: Message-ID: <1B07DFDC-CAC1-400E-8A2A-E9F14152ABDA@berkeley.edu> Hi, Joon. Glad to hear from you! When RANCID would hang, it would generally exhibit symptoms that were consistent with http://www.shrubbery.net/rancid/#osystems. The RANCID run would be stuck up through one specific device's expect/tcl execution, which would require "kill"ing the youngest child in that process tree. I wasn't experiencing the problem before this particular upgrade, but have experienced it in the past during attempted port refreshes; in those cases, I couldn't proceed forward until I either backed out of the expect and tcl port upgrades, or found some expect/tcl combination that allowed me to make some forward progress (if not to exactly the versions I wanted). Looking at the Web page I referred to earlier, it appears that the expect 5.44 issues it discusses may be fixed, at least in the combination of OS and ports that I'm currently on. dp On Sep 3, 2009, at 1:46 PM, Joon Yun wrote: > Hello Mr. Zimmerman, > > Just out of curiosity, what exactly happened when RANCID used to > hang for you and did it just go away when you upgraded or did you > actually discover a bug and it got fixed? > > I hope you and the rest of gnag are doing well. > > Regards, > Joon Yun > > > -----Original Message----- > From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net > ] On Behalf Of David Paul Zimmerman > Sent: Thursday, August 27, 2009 1:11 PM > To: rancid-discuss at shrubbery.net > Subject: [rancid] FreeBSD 7.2 & rancid/expect/tcl ports > > Hi, > > Sometimes I wish I was able to refer to a message that would get me > out of a jam, so I thought I'd share the results of an upgrade I've > just finished to my RANCID servers: > > FreeBSD 7.2-RELEASE-p3 > > rancid-2.3.2 Really Awesome New Cisco confIg Differ > expect-nox11-5.44.1.11_1 A sophisticated scripter based on tcl/tk > tcl-8.4.19_3,1 Tool Command Language > > All seems to be working well, no RANCID hangs since the upgrade on > August 10th. > > dp From twelcome at tenet.ac.za Thu Sep 10 12:40:18 2009 From: twelcome at tenet.ac.za (Traiano Welcome) Date: Thu, 10 Sep 2009 14:40:18 +0200 Subject: [rancid] RANCID CVS conflicts during update Message-ID: <4AA8F3B2.3070206@tenet.ac.za> Hi List When I add a router to the router.db and do a rancid-run, I get the following errors in the logs: -- starting: Thu Sep 10 14:30:43 SAST 2009 M router.db There were CVS conflicts during update. M router.db ending: Thu Sep 10 14:30:43 SAST 2009 -- I noticed the problem when I decided to remove the router from rancid.db and tried to add it back a few minutes later. Now, if I leave it out, rancid does it's run properly for the other routers, but as soon as I try to add the router line back (I've checked the line syntax), it's breaks with the log message above. If I try to manually cvs update the router.db, I get: -- rancid at stuff:~/routers_slow$ cvs update router.db M router.db --- Is it likely the CVS repository might be broken in some way? If so, is there a way to get it back into a consistent state? Thanks in Advance, Traiano From CBell at thig.com Thu Sep 10 13:16:42 2009 From: CBell at thig.com (Chris Bell) Date: Thu, 10 Sep 2009 09:16:42 -0400 Subject: [rancid] RANCID and CVSWEB Message-ID: <173187BEB332D743AFC36A03B8A0A39301C0A0FB65@gnvmail01.thig.com> I spent the better part of yesterday, last night, and this morning trying to figure out how to get cvsweb to work with RANCID. I'm running Redhat 5.x and have Rancid installed to the default directory path /usr/local/rancid. For cvsweb, I am using 3.0.6-4. In my cvsweb.conf (/etc/cvsweb/cvsweb.conf) I have this config: @CVSrepositories = ( 'local' => ['Local Repository', '/var/cvs'], 'rancid' => ['rancid', '/usr/local/rancid/var/CVS/'] # 'freebsd' => ['FreeBSD', '/var/ncvs'], # 'openbsd' => ['OpenBSD', '/var/ncvs'], # 'netbsd' => ['NetBSD', '/var/ncvs'], # 'ruby' => ['Ruby', '/var/anoncvs/ruby'], That path, points to the CVSROOT for Rancid. When I browse to ...http://server/cgi-bin/cvsweb.cgi/, the local repo is available, but there is no drop down box to go to the 'rancid' repo. If I comment out the local repo in the cvsweb.conf, I get this error when trying to browse to the same url: Error: No valid CVS roots found! See @CVSrepositories in the configuration file (/etc/cvsweb/cvsweb.conf) This leads me to believe that there is not a permission issue on the .conf file, because if there was - changing by commenting out a repo would not make a difference. Any idea on what I'm doing wrong? Sorry if this has been covered, but I honestly couldn't find it anyplace that offered a solution. Several discussions about it on the cvsweb list, but nothing that offered a solution. This worked like a charm and out of the box with Ubuntu when I did it a couple of years ago -- but unfortunately I'm not able to build this box on Ubuntu, has to be Redhat. Christopher Bell, CCNA Network Operations Manager Tower Hill Insurance Group, Inc. 352-332-8800, ext 1734 CONFIDENTIAL NOTICE: This email including any attachments, contains confidential information belonging to the sender. It may also be privileged or otherwise protected by work product immunity or other legal rules. This information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this emailed information is strictly prohibited. If you have received this email in error, please immediately notify us by reply email of the error and then delete this email immediately. From rwest at zyedge.com Thu Sep 10 13:24:32 2009 From: rwest at zyedge.com (Ryan West) Date: Thu, 10 Sep 2009 09:24:32 -0400 Subject: [rancid] Re: RANCID and CVSWEB In-Reply-To: <173187BEB332D743AFC36A03B8A0A39301C0A0FB65@gnvmail01.thig.com> References: <173187BEB332D743AFC36A03B8A0A39301C0A0FB65@gnvmail01.thig.com> Message-ID: <6E21B2BDEF6E714EA0B5BA8D5D0E140124918296DD@zy-ex1.zyedge.local> Chris, Looks like you're missing a trailing comma. This is a working cvsweb install with RANCID: @CVSrepositories = ( # 'local' => ['Local Repository', '/var/lib/cvs'], 'neteng' => ['NetEng Devices', '/usr/local/rancid/var/CVS'], ); $cvstreedefault = 'neteng'; Also, I'm sure you don't want to hear this right now, but I would recommend WebSVN whenever you're ready to make the change from CVS. It's a little unnerving when you convert, but I'm quite happy with the WebSVN interface and the development team there is more active. -ryan -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Chris Bell Sent: Thursday, September 10, 2009 9:17 AM To: 'rancid-discuss at shrubbery.net' Subject: [rancid] RANCID and CVSWEB I spent the better part of yesterday, last night, and this morning trying to figure out how to get cvsweb to work with RANCID. I'm running Redhat 5.x and have Rancid installed to the default directory path /usr/local/rancid. For cvsweb, I am using 3.0.6-4. In my cvsweb.conf (/etc/cvsweb/cvsweb.conf) I have this config: @CVSrepositories = ( 'local' => ['Local Repository', '/var/cvs'], 'rancid' => ['rancid', '/usr/local/rancid/var/CVS/'] # 'freebsd' => ['FreeBSD', '/var/ncvs'], # 'openbsd' => ['OpenBSD', '/var/ncvs'], # 'netbsd' => ['NetBSD', '/var/ncvs'], # 'ruby' => ['Ruby', '/var/anoncvs/ruby'], That path, points to the CVSROOT for Rancid. When I browse to ...http://server/cgi-bin/cvsweb.cgi/, the local repo is available, but there is no drop down box to go to the 'rancid' repo. If I comment out the local repo in the cvsweb.conf, I get this error when trying to browse to the same url: Error: No valid CVS roots found! See @CVSrepositories in the configuration file (/etc/cvsweb/cvsweb.conf) This leads me to believe that there is not a permission issue on the .conf file, because if there was - changing by commenting out a repo would not make a difference. Any idea on what I'm doing wrong? Sorry if this has been covered, but I honestly couldn't find it anyplace that offered a solution. Several discussions about it on the cvsweb list, but nothing that offered a solution. This worked like a charm and out of the box with Ubuntu when I did it a couple of years ago -- but unfortunately I'm not able to build this box on Ubuntu, has to be Redhat. Christopher Bell, CCNA Network Operations Manager Tower Hill Insurance Group, Inc. 352-332-8800, ext 1734 CONFIDENTIAL NOTICE: This email including any attachments, contains confidential information belonging to the sender. It may also be privileged or otherwise protected by work product immunity or other legal rules. This information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this emailed information is strictly prohibited. If you have received this email in error, please immediately notify us by reply email of the error and then delete this email immediately. _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From Todd at equivoice.com Thu Sep 10 13:23:43 2009 From: Todd at equivoice.com (Todd Heide) Date: Thu, 10 Sep 2009 08:23:43 -0500 Subject: [rancid] Re: RANCID and CVSWEB In-Reply-To: <173187BEB332D743AFC36A03B8A0A39301C0A0FB65@gnvmail01.thig.com> References: <173187BEB332D743AFC36A03B8A0A39301C0A0FB65@gnvmail01.thig.com> Message-ID: <082FEA82DC985B4F8A6B412D5AC4E22001B3FE0E@exchange.Equivoice.local> I have run into this same problem with Fedora Core. It turned out to be the permissions in the directories where the CVS files are stored. They need to be readable by Apache. drwxrwxr-x 3 Rancid Rancid 4096 Sep 10 08:04 configs drwxrwxr-x 10 Rancid netadm 4096 Jul 16 15:43 rancid This was the only way I was able to get CVSweb to work with Rancid. I think the default setting was drwxrwx--- 10 Rancid netadm 4096 Jul 16 15:43 rancid Thanks Todd Nothing ever goes as planned, Its a hell of a notion, Even pharaohs turn to sand, Like a drop in the ocean -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Chris Bell Sent: Thursday, September 10, 2009 8:17 AM To: 'rancid-discuss at shrubbery.net' Subject: [rancid] RANCID and CVSWEB I spent the better part of yesterday, last night, and this morning trying to figure out how to get cvsweb to work with RANCID. I'm running Redhat 5.x and have Rancid installed to the default directory path /usr/local/rancid. For cvsweb, I am using 3.0.6-4. In my cvsweb.conf (/etc/cvsweb/cvsweb.conf) I have this config: @CVSrepositories = ( 'local' => ['Local Repository', '/var/cvs'], 'rancid' => ['rancid', '/usr/local/rancid/var/CVS/'] # 'freebsd' => ['FreeBSD', '/var/ncvs'], # 'openbsd' => ['OpenBSD', '/var/ncvs'], # 'netbsd' => ['NetBSD', '/var/ncvs'], # 'ruby' => ['Ruby', '/var/anoncvs/ruby'], That path, points to the CVSROOT for Rancid. When I browse to ...http://server/cgi-bin/cvsweb.cgi/, the local repo is available, but there is no drop down box to go to the 'rancid' repo. If I comment out the local repo in the cvsweb.conf, I get this error when trying to browse to the same url: Error: No valid CVS roots found! See @CVSrepositories in the configuration file (/etc/cvsweb/cvsweb.conf) This leads me to believe that there is not a permission issue on the .conf file, because if there was - changing by commenting out a repo would not make a difference. Any idea on what I'm doing wrong? Sorry if this has been covered, but I honestly couldn't find it anyplace that offered a solution. Several discussions about it on the cvsweb list, but nothing that offered a solution. This worked like a charm and out of the box with Ubuntu when I did it a couple of years ago -- but unfortunately I'm not able to build this box on Ubuntu, has to be Redhat. Christopher Bell, CCNA Network Operations Manager Tower Hill Insurance Group, Inc. 352-332-8800, ext 1734 CONFIDENTIAL NOTICE: This email including any attachments, contains confidential information belonging to the sender. It may also be privileged or otherwise protected by work product immunity or other legal rules. This information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this emailed information is strictly prohibited. If you have received this email in error, please immediately notify us by reply email of the error and then delete this email immediately. _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From CBell at thig.com Thu Sep 10 13:30:23 2009 From: CBell at thig.com (Chris Bell) Date: Thu, 10 Sep 2009 09:30:23 -0400 Subject: [rancid] Re: RANCID and CVSWEB In-Reply-To: <6E21B2BDEF6E714EA0B5BA8D5D0E140124918296DD@zy-ex1.zyedge.local> References: <173187BEB332D743AFC36A03B8A0A39301C0A0FB65@gnvmail01.thig.com> <6E21B2BDEF6E714EA0B5BA8D5D0E140124918296DD@zy-ex1.zyedge.local> Message-ID: <173187BEB332D743AFC36A03B8A0A39301C0A0FB66@gnvmail01.thig.com> Hi.. thanks, I added the comma, but it made no difference. I've actually tried it both ways. I've also tried changing the cvstreedefault variable to 'rancid' from 'local' and it makes no difference. To be honest, I know little to nothing about CVS other than how it works with Rancid - which is the only thing I use it for. I've heard before that using SVN is better however. -----Original Message----- From: Ryan West [mailto:rwest at zyedge.com] Sent: Thursday, September 10, 2009 9:25 AM To: Chris Bell; 'rancid-discuss at shrubbery.net' Subject: RE: RANCID and CVSWEB Chris, Looks like you're missing a trailing comma. This is a working cvsweb install with RANCID: @CVSrepositories = ( # 'local' => ['Local Repository', '/var/lib/cvs'], 'neteng' => ['NetEng Devices', '/usr/local/rancid/var/CVS'], ); $cvstreedefault = 'neteng'; Also, I'm sure you don't want to hear this right now, but I would recommend WebSVN whenever you're ready to make the change from CVS. It's a little unnerving when you convert, but I'm quite happy with the WebSVN interface and the development team there is more active. -ryan -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Chris Bell Sent: Thursday, September 10, 2009 9:17 AM To: 'rancid-discuss at shrubbery.net' Subject: [rancid] RANCID and CVSWEB I spent the better part of yesterday, last night, and this morning trying to figure out how to get cvsweb to work with RANCID. I'm running Redhat 5.x and have Rancid installed to the default directory path /usr/local/rancid. For cvsweb, I am using 3.0.6-4. In my cvsweb.conf (/etc/cvsweb/cvsweb.conf) I have this config: @CVSrepositories = ( 'local' => ['Local Repository', '/var/cvs'], 'rancid' => ['rancid', '/usr/local/rancid/var/CVS/'] # 'freebsd' => ['FreeBSD', '/var/ncvs'], # 'openbsd' => ['OpenBSD', '/var/ncvs'], # 'netbsd' => ['NetBSD', '/var/ncvs'], # 'ruby' => ['Ruby', '/var/anoncvs/ruby'], That path, points to the CVSROOT for Rancid. When I browse to ...http://server/cgi-bin/cvsweb.cgi/, the local repo is available, but there is no drop down box to go to the 'rancid' repo. If I comment out the local repo in the cvsweb.conf, I get this error when trying to browse to the same url: Error: No valid CVS roots found! See @CVSrepositories in the configuration file (/etc/cvsweb/cvsweb.conf) This leads me to believe that there is not a permission issue on the .conf file, because if there was - changing by commenting out a repo would not make a difference. Any idea on what I'm doing wrong? Sorry if this has been covered, but I honestly couldn't find it anyplace that offered a solution. Several discussions about it on the cvsweb list, but nothing that offered a solution. This worked like a charm and out of the box with Ubuntu when I did it a couple of years ago -- but unfortunately I'm not able to build this box on Ubuntu, has to be Redhat. Christopher Bell, CCNA Network Operations Manager Tower Hill Insurance Group, Inc. 352-332-8800, ext 1734 CONFIDENTIAL NOTICE: This email including any attachments, contains confidential information belonging to the sender. It may also be privileged or otherwise protected by work product immunity or other legal rules. This information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this emailed information is strictly prohibited. If you have received this email in error, please immediately notify us by reply email of the error and then delete this email immediately. _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss CONFIDENTIAL NOTICE: This email including any attachments, contains confidential information belonging to the sender. It may also be privileged or otherwise protected by work product immunity or other legal rules. This information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this emailed information is strictly prohibited. If you have received this email in error, please immediately notify us by reply email of the error and then delete this email immediately. From CBell at thig.com Thu Sep 10 13:37:19 2009 From: CBell at thig.com (Chris Bell) Date: Thu, 10 Sep 2009 09:37:19 -0400 Subject: [rancid] Re: RANCID and CVSWEB In-Reply-To: <082FEA82DC985B4F8A6B412D5AC4E22001B3FE0E@exchange.Equivoice.local> References: <173187BEB332D743AFC36A03B8A0A39301C0A0FB65@gnvmail01.thig.com> <082FEA82DC985B4F8A6B412D5AC4E22001B3FE0E@exchange.Equivoice.local> Message-ID: <173187BEB332D743AFC36A03B8A0A39301C0A0FB67@gnvmail01.thig.com> I keep thinking it's permissions too, but I don't see a problem with the permissions: /usr/local/rancid/ drwxr-xr-x 9 rancid rancid 4096 Sep 9 15:46 var /usr/local/rancid/var/ drwxrwxr-x 7 rancid rancid 4096 Sep 9 15:46 CVS drwxr-x--- 4 rancid rancid 4096 Sep 9 15:57 configs1 drwxr-x--- 4 rancid rancid 4096 Sep 9 16:05 configs2 drwxr-x--- 4 rancid rancid 4096 Sep 9 16:06 configs3 drwxr-x--- 4 rancid rancid 4096 Sep 9 16:07 configs4 [root at blah ~]# ls -l /usr/local/rancid/var/CVS/ total 24 drwxrwxr-x 3 rancid rancid 4096 Sep 9 16:07 CVSROOT -rw-r----- 1 rancid rancid 58 Sep 9 15:46 Entries.Log drwxrwxr-x 3 rancid rancid 4096 Sep 9 15:57 configs1 drwxrwxr-x 3 rancid rancid 4096 Sep 9 16:05 configs2 drwxrwxr-x 3 rancid rancid 4096 Sep 9 16:06 configs3 drwxrwxr-x 3 rancid rancid 4096 Sep 9 16:07 configs4 and on the /etc/cvsweb/cvsweb.conf -rw-r--r-- 1 root root 22997 Sep 10 13:32 cvsweb.conf -----Original Message----- From: Todd Heide [mailto:Todd at equivoice.com] Sent: Thursday, September 10, 2009 9:24 AM To: Chris Bell; rancid-discuss at shrubbery.net Subject: RE: [rancid] RANCID and CVSWEB I have run into this same problem with Fedora Core. It turned out to be the permissions in the directories where the CVS files are stored. They need to be readable by Apache. drwxrwxr-x 3 Rancid Rancid 4096 Sep 10 08:04 configs drwxrwxr-x 10 Rancid netadm 4096 Jul 16 15:43 rancid This was the only way I was able to get CVSweb to work with Rancid. I think the default setting was drwxrwx--- 10 Rancid netadm 4096 Jul 16 15:43 rancid Thanks Todd Nothing ever goes as planned, Its a hell of a notion, Even pharaohs turn to sand, Like a drop in the ocean -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Chris Bell Sent: Thursday, September 10, 2009 8:17 AM To: 'rancid-discuss at shrubbery.net' Subject: [rancid] RANCID and CVSWEB I spent the better part of yesterday, last night, and this morning trying to figure out how to get cvsweb to work with RANCID. I'm running Redhat 5.x and have Rancid installed to the default directory path /usr/local/rancid. For cvsweb, I am using 3.0.6-4. In my cvsweb.conf (/etc/cvsweb/cvsweb.conf) I have this config: @CVSrepositories = ( 'local' => ['Local Repository', '/var/cvs'], 'rancid' => ['rancid', '/usr/local/rancid/var/CVS/'] # 'freebsd' => ['FreeBSD', '/var/ncvs'], # 'openbsd' => ['OpenBSD', '/var/ncvs'], # 'netbsd' => ['NetBSD', '/var/ncvs'], # 'ruby' => ['Ruby', '/var/anoncvs/ruby'], That path, points to the CVSROOT for Rancid. When I browse to ...http://server/cgi-bin/cvsweb.cgi/, the local repo is available, but there is no drop down box to go to the 'rancid' repo. If I comment out the local repo in the cvsweb.conf, I get this error when trying to browse to the same url: Error: No valid CVS roots found! See @CVSrepositories in the configuration file (/etc/cvsweb/cvsweb.conf) This leads me to believe that there is not a permission issue on the .conf file, because if there was - changing by commenting out a repo would not make a difference. Any idea on what I'm doing wrong? Sorry if this has been covered, but I honestly couldn't find it anyplace that offered a solution. Several discussions about it on the cvsweb list, but nothing that offered a solution. This worked like a charm and out of the box with Ubuntu when I did it a couple of years ago -- but unfortunately I'm not able to build this box on Ubuntu, has to be Redhat. Christopher Bell, CCNA Network Operations Manager Tower Hill Insurance Group, Inc. 352-332-8800, ext 1734 CONFIDENTIAL NOTICE: This email including any attachments, contains confidential information belonging to the sender. It may also be privileged or otherwise protected by work product immunity or other legal rules. This information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this emailed information is strictly prohibited. If you have received this email in error, please immediately notify us by reply email of the error and then delete this email immediately. _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss CONFIDENTIAL NOTICE: This email including any attachments, contains confidential information belonging to the sender. It may also be privileged or otherwise protected by work product immunity or other legal rules. This information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this emailed information is strictly prohibited. If you have received this email in error, please immediately notify us by reply email of the error and then delete this email immediately. From CBell at thig.com Thu Sep 10 13:45:10 2009 From: CBell at thig.com (Chris Bell) Date: Thu, 10 Sep 2009 09:45:10 -0400 Subject: [rancid] Re: RANCID and CVSWEB In-Reply-To: <173187BEB332D743AFC36A03B8A0A39301C0A0FB68@gnvmail01.thig.com> References: <173187BEB332D743AFC36A03B8A0A39301C0A0FB65@gnvmail01.thig.com> <6E21B2BDEF6E714EA0B5BA8D5D0E140124918296DD@zy-ex1.zyedge.local> <173187BEB332D743AFC36A03B8A0A39301C0A0FB66@gnvmail01.thig.com> <6E21B2BDEF6E714EA0B5BA8D5D0E140124918296E3@zy-ex1.zyedge.local> <173187BEB332D743AFC36A03B8A0A39301C0A0FB68@gnvmail01.thig.com> Message-ID: <173187BEB332D743AFC36A03B8A0A39301C0A0FB6A@gnvmail01.thig.com> Actually that happens either way .... with the local repo commented out or not. -----Original Message----- From: Chris Bell Sent: Thursday, September 10, 2009 9:39 AM To: 'Ryan West' Subject: RE: RANCID and CVSWEB Only when I remove the 'local' variable. [Thu Sep 10 13:30:23 2009] [error] [client x.x.x.x] Root '/usr/local/rancid/var/CVS' defined in @CVSrepositories is not a directory, entry ignored at /var/www/cgi-bin/cvsweb.cgi line 481. [Thu Sep 10 13:30:24 2009] [error] [client x.x.x.x] Root '/usr/local/rancid/var/CVS' defined in @CVSrepositories is not a directory, entry ignored at /var/www/cgi-bin/cvsweb.cgi line 481. [Thu Sep 10 13:30:25 2009] [error] [client x.x.x.x] Root '/usr/local/rancid/var/CVS' defined in @CVSrepositories is not a directory, entry ignored at /var/www/cgi-bin/cvsweb.cgi line 481. [Thu Sep 10 13:30:25 2009] [error] [client x.x.x.x] Root '/usr/local/rancid/var/CVS' defined in @CVSrepositories is not a directory, entry ignored at /var/www/cgi-bin/cvsweb.cgi line 481. [Thu Sep 10 13:30:26 2009] [error] [client x.x.x.x] Root '/usr/local/rancid/var/CVS' defined in @CVSrepositories is not a directory, entry ignored at /var/www/cgi-bin/cvsweb.cgi line 481. [Thu Sep 10 13:30:28 2009] [error] [client x.x.x.x] Root '/usr/local/rancid/var/CVS' defined in @CVSrepositories is not a directory, entry ignored at /var/www/cgi-bin/cvsweb.cgi line 481 -----Original Message----- From: Ryan West [mailto:rwest at zyedge.com] Sent: Thursday, September 10, 2009 9:33 AM To: Chris Bell Subject: RE: RANCID and CVSWEB I don't use either for anything but RANCID as well. Do your apache logs have anything of value? -----Original Message----- From: Chris Bell [mailto:CBell at thig.com] Sent: Thursday, September 10, 2009 9:30 AM To: Ryan West; 'rancid-discuss at shrubbery.net' Subject: RE: RANCID and CVSWEB Hi.. thanks, I added the comma, but it made no difference. I've actually tried it both ways. I've also tried changing the cvstreedefault variable to 'rancid' from 'local' and it makes no difference. To be honest, I know little to nothing about CVS other than how it works with Rancid - which is the only thing I use it for. I've heard before that using SVN is better however. -----Original Message----- From: Ryan West [mailto:rwest at zyedge.com] Sent: Thursday, September 10, 2009 9:25 AM To: Chris Bell; 'rancid-discuss at shrubbery.net' Subject: RE: RANCID and CVSWEB Chris, Looks like you're missing a trailing comma. This is a working cvsweb install with RANCID: @CVSrepositories = ( # 'local' => ['Local Repository', '/var/lib/cvs'], 'neteng' => ['NetEng Devices', '/usr/local/rancid/var/CVS'], ); $cvstreedefault = 'neteng'; Also, I'm sure you don't want to hear this right now, but I would recommend WebSVN whenever you're ready to make the change from CVS. It's a little unnerving when you convert, but I'm quite happy with the WebSVN interface and the development team there is more active. -ryan -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Chris Bell Sent: Thursday, September 10, 2009 9:17 AM To: 'rancid-discuss at shrubbery.net' Subject: [rancid] RANCID and CVSWEB I spent the better part of yesterday, last night, and this morning trying to figure out how to get cvsweb to work with RANCID. I'm running Redhat 5.x and have Rancid installed to the default directory path /usr/local/rancid. For cvsweb, I am using 3.0.6-4. In my cvsweb.conf (/etc/cvsweb/cvsweb.conf) I have this config: @CVSrepositories = ( 'local' => ['Local Repository', '/var/cvs'], 'rancid' => ['rancid', '/usr/local/rancid/var/CVS/'] # 'freebsd' => ['FreeBSD', '/var/ncvs'], # 'openbsd' => ['OpenBSD', '/var/ncvs'], # 'netbsd' => ['NetBSD', '/var/ncvs'], # 'ruby' => ['Ruby', '/var/anoncvs/ruby'], That path, points to the CVSROOT for Rancid. When I browse to ...http://server/cgi-bin/cvsweb.cgi/, the local repo is available, but there is no drop down box to go to the 'rancid' repo. If I comment out the local repo in the cvsweb.conf, I get this error when trying to browse to the same url: Error: No valid CVS roots found! See @CVSrepositories in the configuration file (/etc/cvsweb/cvsweb.conf) This leads me to believe that there is not a permission issue on the .conf file, because if there was - changing by commenting out a repo would not make a difference. Any idea on what I'm doing wrong? Sorry if this has been covered, but I honestly couldn't find it anyplace that offered a solution. Several discussions about it on the cvsweb list, but nothing that offered a solution. This worked like a charm and out of the box with Ubuntu when I did it a couple of years ago -- but unfortunately I'm not able to build this box on Ubuntu, has to be Redhat. Christopher Bell, CCNA Network Operations Manager Tower Hill Insurance Group, Inc. 352-332-8800, ext 1734 CONFIDENTIAL NOTICE: This email including any attachments, contains confidential information belonging to the sender. It may also be privileged or otherwise protected by work product immunity or other legal rules. This information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this emailed information is strictly prohibited. If you have received this email in error, please immediately notify us by reply email of the error and then delete this email immediately. _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss CONFIDENTIAL NOTICE: This email including any attachments, contains confidential information belonging to the sender. It may also be privileged or otherwise protected by work product immunity or other legal rules. This information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this emailed information is strictly prohibited. If you have received this email in error, please immediately notify us by reply email of the error and then delete this email immediately. CONFIDENTIAL NOTICE: This email including any attachments, contains confidential information belonging to the sender. It may also be privileged or otherwise protected by work product immunity or other legal rules. This information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this emailed information is strictly prohibited. If you have received this email in error, please immediately notify us by reply email of the error and then delete this email immediately. From rwest at zyedge.com Thu Sep 10 13:54:10 2009 From: rwest at zyedge.com (Ryan West) Date: Thu, 10 Sep 2009 09:54:10 -0400 Subject: [rancid] Re: RANCID and CVSWEB In-Reply-To: <173187BEB332D743AFC36A03B8A0A39301C0A0FB6A@gnvmail01.thig.com> References: <173187BEB332D743AFC36A03B8A0A39301C0A0FB65@gnvmail01.thig.com> <6E21B2BDEF6E714EA0B5BA8D5D0E140124918296DD@zy-ex1.zyedge.local> <173187BEB332D743AFC36A03B8A0A39301C0A0FB66@gnvmail01.thig.com> <6E21B2BDEF6E714EA0B5BA8D5D0E140124918296E3@zy-ex1.zyedge.local> <173187BEB332D743AFC36A03B8A0A39301C0A0FB68@gnvmail01.thig.com> <173187BEB332D743AFC36A03B8A0A39301C0A0FB6A@gnvmail01.thig.com> Message-ID: <6E21B2BDEF6E714EA0B5BA8D5D0E140124918296EC@zy-ex1.zyedge.local> Chris, Can you show the contents of your CVS directory? rancid at netman:~/var/CVS$ ls CVSROOT noc -ryan -----Original Message----- From: Chris Bell [mailto:CBell at thig.com] Sent: Thursday, September 10, 2009 9:45 AM To: Chris Bell; Ryan West Cc: rancid-discuss at shrubbery.net Subject: RE: RANCID and CVSWEB Actually that happens either way .... with the local repo commented out or not. -----Original Message----- From: Chris Bell Sent: Thursday, September 10, 2009 9:39 AM To: 'Ryan West' Subject: RE: RANCID and CVSWEB Only when I remove the 'local' variable. [Thu Sep 10 13:30:23 2009] [error] [client x.x.x.x] Root '/usr/local/rancid/var/CVS' defined in @CVSrepositories is not a directory, entry ignored at /var/www/cgi-bin/cvsweb.cgi line 481. [Thu Sep 10 13:30:24 2009] [error] [client x.x.x.x] Root '/usr/local/rancid/var/CVS' defined in @CVSrepositories is not a directory, entry ignored at /var/www/cgi-bin/cvsweb.cgi line 481. [Thu Sep 10 13:30:25 2009] [error] [client x.x.x.x] Root '/usr/local/rancid/var/CVS' defined in @CVSrepositories is not a directory, entry ignored at /var/www/cgi-bin/cvsweb.cgi line 481. [Thu Sep 10 13:30:25 2009] [error] [client x.x.x.x] Root '/usr/local/rancid/var/CVS' defined in @CVSrepositories is not a directory, entry ignored at /var/www/cgi-bin/cvsweb.cgi line 481. [Thu Sep 10 13:30:26 2009] [error] [client x.x.x.x] Root '/usr/local/rancid/var/CVS' defined in @CVSrepositories is not a directory, entry ignored at /var/www/cgi-bin/cvsweb.cgi line 481. [Thu Sep 10 13:30:28 2009] [error] [client x.x.x.x] Root '/usr/local/rancid/var/CVS' defined in @CVSrepositories is not a directory, entry ignored at /var/www/cgi-bin/cvsweb.cgi line 481 -----Original Message----- From: Ryan West [mailto:rwest at zyedge.com] Sent: Thursday, September 10, 2009 9:33 AM To: Chris Bell Subject: RE: RANCID and CVSWEB I don't use either for anything but RANCID as well. Do your apache logs have anything of value? -----Original Message----- From: Chris Bell [mailto:CBell at thig.com] Sent: Thursday, September 10, 2009 9:30 AM To: Ryan West; 'rancid-discuss at shrubbery.net' Subject: RE: RANCID and CVSWEB Hi.. thanks, I added the comma, but it made no difference. I've actually tried it both ways. I've also tried changing the cvstreedefault variable to 'rancid' from 'local' and it makes no difference. To be honest, I know little to nothing about CVS other than how it works with Rancid - which is the only thing I use it for. I've heard before that using SVN is better however. -----Original Message----- From: Ryan West [mailto:rwest at zyedge.com] Sent: Thursday, September 10, 2009 9:25 AM To: Chris Bell; 'rancid-discuss at shrubbery.net' Subject: RE: RANCID and CVSWEB Chris, Looks like you're missing a trailing comma. This is a working cvsweb install with RANCID: @CVSrepositories = ( # 'local' => ['Local Repository', '/var/lib/cvs'], 'neteng' => ['NetEng Devices', '/usr/local/rancid/var/CVS'], ); $cvstreedefault = 'neteng'; Also, I'm sure you don't want to hear this right now, but I would recommend WebSVN whenever you're ready to make the change from CVS. It's a little unnerving when you convert, but I'm quite happy with the WebSVN interface and the development team there is more active. -ryan -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Chris Bell Sent: Thursday, September 10, 2009 9:17 AM To: 'rancid-discuss at shrubbery.net' Subject: [rancid] RANCID and CVSWEB I spent the better part of yesterday, last night, and this morning trying to figure out how to get cvsweb to work with RANCID. I'm running Redhat 5.x and have Rancid installed to the default directory path /usr/local/rancid. For cvsweb, I am using 3.0.6-4. In my cvsweb.conf (/etc/cvsweb/cvsweb.conf) I have this config: @CVSrepositories = ( 'local' => ['Local Repository', '/var/cvs'], 'rancid' => ['rancid', '/usr/local/rancid/var/CVS/'] # 'freebsd' => ['FreeBSD', '/var/ncvs'], # 'openbsd' => ['OpenBSD', '/var/ncvs'], # 'netbsd' => ['NetBSD', '/var/ncvs'], # 'ruby' => ['Ruby', '/var/anoncvs/ruby'], That path, points to the CVSROOT for Rancid. When I browse to ...http://server/cgi-bin/cvsweb.cgi/, the local repo is available, but there is no drop down box to go to the 'rancid' repo. If I comment out the local repo in the cvsweb.conf, I get this error when trying to browse to the same url: Error: No valid CVS roots found! See @CVSrepositories in the configuration file (/etc/cvsweb/cvsweb.conf) This leads me to believe that there is not a permission issue on the .conf file, because if there was - changing by commenting out a repo would not make a difference. Any idea on what I'm doing wrong? Sorry if this has been covered, but I honestly couldn't find it anyplace that offered a solution. Several discussions about it on the cvsweb list, but nothing that offered a solution. This worked like a charm and out of the box with Ubuntu when I did it a couple of years ago -- but unfortunately I'm not able to build this box on Ubuntu, has to be Redhat. Christopher Bell, CCNA Network Operations Manager Tower Hill Insurance Group, Inc. 352-332-8800, ext 1734 CONFIDENTIAL NOTICE: This email including any attachments, contains confidential information belonging to the sender. It may also be privileged or otherwise protected by work product immunity or other legal rules. This information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this emailed information is strictly prohibited. If you have received this email in error, please immediately notify us by reply email of the error and then delete this email immediately. _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss CONFIDENTIAL NOTICE: This email including any attachments, contains confidential information belonging to the sender. It may also be privileged or otherwise protected by work product immunity or other legal rules. This information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this emailed information is strictly prohibited. If you have received this email in error, please immediately notify us by reply email of the error and then delete this email immediately. CONFIDENTIAL NOTICE: This email including any attachments, contains confidential information belonging to the sender. It may also be privileged or otherwise protected by work product immunity or other legal rules. This information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this emailed information is strictly prohibited. If you have received this email in error, please immediately notify us by reply email of the error and then delete this email immediately. From CBell at thig.com Thu Sep 10 13:57:12 2009 From: CBell at thig.com (Chris Bell) Date: Thu, 10 Sep 2009 09:57:12 -0400 Subject: [rancid] Re: RANCID and CVSWEB In-Reply-To: <6E21B2BDEF6E714EA0B5BA8D5D0E140124918296EC@zy-ex1.zyedge.local> References: <173187BEB332D743AFC36A03B8A0A39301C0A0FB65@gnvmail01.thig.com> <6E21B2BDEF6E714EA0B5BA8D5D0E140124918296DD@zy-ex1.zyedge.local> <173187BEB332D743AFC36A03B8A0A39301C0A0FB66@gnvmail01.thig.com> <6E21B2BDEF6E714EA0B5BA8D5D0E140124918296E3@zy-ex1.zyedge.local> <173187BEB332D743AFC36A03B8A0A39301C0A0FB68@gnvmail01.thig.com> <173187BEB332D743AFC36A03B8A0A39301C0A0FB6A@gnvmail01.thig.com> <6E21B2BDEF6E714EA0B5BA8D5D0E140124918296EC@zy-ex1.zyedge.local> Message-ID: <173187BEB332D743AFC36A03B8A0A39301C0A0FB6D@gnvmail01.thig.com> Hmmm .. [root at blah ~]# ls /var/cvs/ [root at blah ~]# Am I missing a symbolic link or something? -----Original Message----- From: Ryan West [mailto:rwest at zyedge.com] Sent: Thursday, September 10, 2009 9:54 AM To: Chris Bell Cc: rancid-discuss at shrubbery.net Subject: RE: RANCID and CVSWEB Chris, Can you show the contents of your CVS directory? rancid at netman:~/var/CVS$ ls CVSROOT noc -ryan -----Original Message----- From: Chris Bell [mailto:CBell at thig.com] Sent: Thursday, September 10, 2009 9:45 AM To: Chris Bell; Ryan West Cc: rancid-discuss at shrubbery.net Subject: RE: RANCID and CVSWEB Actually that happens either way .... with the local repo commented out or not. -----Original Message----- From: Chris Bell Sent: Thursday, September 10, 2009 9:39 AM To: 'Ryan West' Subject: RE: RANCID and CVSWEB Only when I remove the 'local' variable. [Thu Sep 10 13:30:23 2009] [error] [client x.x.x.x] Root '/usr/local/rancid/var/CVS' defined in @CVSrepositories is not a directory, entry ignored at /var/www/cgi-bin/cvsweb.cgi line 481. [Thu Sep 10 13:30:24 2009] [error] [client x.x.x.x] Root '/usr/local/rancid/var/CVS' defined in @CVSrepositories is not a directory, entry ignored at /var/www/cgi-bin/cvsweb.cgi line 481. [Thu Sep 10 13:30:25 2009] [error] [client x.x.x.x] Root '/usr/local/rancid/var/CVS' defined in @CVSrepositories is not a directory, entry ignored at /var/www/cgi-bin/cvsweb.cgi line 481. [Thu Sep 10 13:30:25 2009] [error] [client x.x.x.x] Root '/usr/local/rancid/var/CVS' defined in @CVSrepositories is not a directory, entry ignored at /var/www/cgi-bin/cvsweb.cgi line 481. [Thu Sep 10 13:30:26 2009] [error] [client x.x.x.x] Root '/usr/local/rancid/var/CVS' defined in @CVSrepositories is not a directory, entry ignored at /var/www/cgi-bin/cvsweb.cgi line 481. [Thu Sep 10 13:30:28 2009] [error] [client x.x.x.x] Root '/usr/local/rancid/var/CVS' defined in @CVSrepositories is not a directory, entry ignored at /var/www/cgi-bin/cvsweb.cgi line 481 -----Original Message----- From: Ryan West [mailto:rwest at zyedge.com] Sent: Thursday, September 10, 2009 9:33 AM To: Chris Bell Subject: RE: RANCID and CVSWEB I don't use either for anything but RANCID as well. Do your apache logs have anything of value? -----Original Message----- From: Chris Bell [mailto:CBell at thig.com] Sent: Thursday, September 10, 2009 9:30 AM To: Ryan West; 'rancid-discuss at shrubbery.net' Subject: RE: RANCID and CVSWEB Hi.. thanks, I added the comma, but it made no difference. I've actually tried it both ways. I've also tried changing the cvstreedefault variable to 'rancid' from 'local' and it makes no difference. To be honest, I know little to nothing about CVS other than how it works with Rancid - which is the only thing I use it for. I've heard before that using SVN is better however. -----Original Message----- From: Ryan West [mailto:rwest at zyedge.com] Sent: Thursday, September 10, 2009 9:25 AM To: Chris Bell; 'rancid-discuss at shrubbery.net' Subject: RE: RANCID and CVSWEB Chris, Looks like you're missing a trailing comma. This is a working cvsweb install with RANCID: @CVSrepositories = ( # 'local' => ['Local Repository', '/var/lib/cvs'], 'neteng' => ['NetEng Devices', '/usr/local/rancid/var/CVS'], ); $cvstreedefault = 'neteng'; Also, I'm sure you don't want to hear this right now, but I would recommend WebSVN whenever you're ready to make the change from CVS. It's a little unnerving when you convert, but I'm quite happy with the WebSVN interface and the development team there is more active. -ryan -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Chris Bell Sent: Thursday, September 10, 2009 9:17 AM To: 'rancid-discuss at shrubbery.net' Subject: [rancid] RANCID and CVSWEB I spent the better part of yesterday, last night, and this morning trying to figure out how to get cvsweb to work with RANCID. I'm running Redhat 5.x and have Rancid installed to the default directory path /usr/local/rancid. For cvsweb, I am using 3.0.6-4. In my cvsweb.conf (/etc/cvsweb/cvsweb.conf) I have this config: @CVSrepositories = ( 'local' => ['Local Repository', '/var/cvs'], 'rancid' => ['rancid', '/usr/local/rancid/var/CVS/'] # 'freebsd' => ['FreeBSD', '/var/ncvs'], # 'openbsd' => ['OpenBSD', '/var/ncvs'], # 'netbsd' => ['NetBSD', '/var/ncvs'], # 'ruby' => ['Ruby', '/var/anoncvs/ruby'], That path, points to the CVSROOT for Rancid. When I browse to ...http://server/cgi-bin/cvsweb.cgi/, the local repo is available, but there is no drop down box to go to the 'rancid' repo. If I comment out the local repo in the cvsweb.conf, I get this error when trying to browse to the same url: Error: No valid CVS roots found! See @CVSrepositories in the configuration file (/etc/cvsweb/cvsweb.conf) This leads me to believe that there is not a permission issue on the .conf file, because if there was - changing by commenting out a repo would not make a difference. Any idea on what I'm doing wrong? Sorry if this has been covered, but I honestly couldn't find it anyplace that offered a solution. Several discussions about it on the cvsweb list, but nothing that offered a solution. This worked like a charm and out of the box with Ubuntu when I did it a couple of years ago -- but unfortunately I'm not able to build this box on Ubuntu, has to be Redhat. Christopher Bell, CCNA Network Operations Manager Tower Hill Insurance Group, Inc. 352-332-8800, ext 1734 CONFIDENTIAL NOTICE: This email including any attachments, contains confidential information belonging to the sender. It may also be privileged or otherwise protected by work product immunity or other legal rules. This information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this emailed information is strictly prohibited. If you have received this email in error, please immediately notify us by reply email of the error and then delete this email immediately. _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss CONFIDENTIAL NOTICE: This email including any attachments, contains confidential information belonging to the sender. It may also be privileged or otherwise protected by work product immunity or other legal rules. This information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this emailed information is strictly prohibited. If you have received this email in error, please immediately notify us by reply email of the error and then delete this email immediately. CONFIDENTIAL NOTICE: This email including any attachments, contains confidential information belonging to the sender. It may also be privileged or otherwise protected by work product immunity or other legal rules. This information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this emailed information is strictly prohibited. If you have received this email in error, please immediately notify us by reply email of the error and then delete this email immediately. CONFIDENTIAL NOTICE: This email including any attachments, contains confidential information belonging to the sender. It may also be privileged or otherwise protected by work product immunity or other legal rules. This information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this emailed information is strictly prohibited. If you have received this email in error, please immediately notify us by reply email of the error and then delete this email immediately. From rwest at zyedge.com Thu Sep 10 13:58:27 2009 From: rwest at zyedge.com (Ryan West) Date: Thu, 10 Sep 2009 09:58:27 -0400 Subject: [rancid] Re: RANCID and CVSWEB In-Reply-To: <173187BEB332D743AFC36A03B8A0A39301C0A0FB6D@gnvmail01.thig.com> References: <173187BEB332D743AFC36A03B8A0A39301C0A0FB65@gnvmail01.thig.com> <6E21B2BDEF6E714EA0B5BA8D5D0E140124918296DD@zy-ex1.zyedge.local> <173187BEB332D743AFC36A03B8A0A39301C0A0FB66@gnvmail01.thig.com> <6E21B2BDEF6E714EA0B5BA8D5D0E140124918296E3@zy-ex1.zyedge.local> <173187BEB332D743AFC36A03B8A0A39301C0A0FB68@gnvmail01.thig.com> <173187BEB332D743AFC36A03B8A0A39301C0A0FB6A@gnvmail01.thig.com> <6E21B2BDEF6E714EA0B5BA8D5D0E140124918296EC@zy-ex1.zyedge.local> <173187BEB332D743AFC36A03B8A0A39301C0A0FB6D@gnvmail01.thig.com> Message-ID: <6E21B2BDEF6E714EA0B5BA8D5D0E140124918296ED@zy-ex1.zyedge.local> That's a full path from root. Try 'ls /usr/local/rancid/var/CVS' instead. -ryan -----Original Message----- From: Chris Bell [mailto:CBell at thig.com] Sent: Thursday, September 10, 2009 9:57 AM To: Ryan West Cc: rancid-discuss at shrubbery.net Subject: RE: RANCID and CVSWEB Hmmm .. [root at blah ~]# ls /var/cvs/ [root at blah ~]# Am I missing a symbolic link or something? -----Original Message----- From: Ryan West [mailto:rwest at zyedge.com] Sent: Thursday, September 10, 2009 9:54 AM To: Chris Bell Cc: rancid-discuss at shrubbery.net Subject: RE: RANCID and CVSWEB Chris, Can you show the contents of your CVS directory? rancid at netman:~/var/CVS$ ls CVSROOT noc -ryan -----Original Message----- From: Chris Bell [mailto:CBell at thig.com] Sent: Thursday, September 10, 2009 9:45 AM To: Chris Bell; Ryan West Cc: rancid-discuss at shrubbery.net Subject: RE: RANCID and CVSWEB Actually that happens either way .... with the local repo commented out or not. -----Original Message----- From: Chris Bell Sent: Thursday, September 10, 2009 9:39 AM To: 'Ryan West' Subject: RE: RANCID and CVSWEB Only when I remove the 'local' variable. [Thu Sep 10 13:30:23 2009] [error] [client x.x.x.x] Root '/usr/local/rancid/var/CVS' defined in @CVSrepositories is not a directory, entry ignored at /var/www/cgi-bin/cvsweb.cgi line 481. [Thu Sep 10 13:30:24 2009] [error] [client x.x.x.x] Root '/usr/local/rancid/var/CVS' defined in @CVSrepositories is not a directory, entry ignored at /var/www/cgi-bin/cvsweb.cgi line 481. [Thu Sep 10 13:30:25 2009] [error] [client x.x.x.x] Root '/usr/local/rancid/var/CVS' defined in @CVSrepositories is not a directory, entry ignored at /var/www/cgi-bin/cvsweb.cgi line 481. [Thu Sep 10 13:30:25 2009] [error] [client x.x.x.x] Root '/usr/local/rancid/var/CVS' defined in @CVSrepositories is not a directory, entry ignored at /var/www/cgi-bin/cvsweb.cgi line 481. [Thu Sep 10 13:30:26 2009] [error] [client x.x.x.x] Root '/usr/local/rancid/var/CVS' defined in @CVSrepositories is not a directory, entry ignored at /var/www/cgi-bin/cvsweb.cgi line 481. [Thu Sep 10 13:30:28 2009] [error] [client x.x.x.x] Root '/usr/local/rancid/var/CVS' defined in @CVSrepositories is not a directory, entry ignored at /var/www/cgi-bin/cvsweb.cgi line 481 -----Original Message----- From: Ryan West [mailto:rwest at zyedge.com] Sent: Thursday, September 10, 2009 9:33 AM To: Chris Bell Subject: RE: RANCID and CVSWEB I don't use either for anything but RANCID as well. Do your apache logs have anything of value? -----Original Message----- From: Chris Bell [mailto:CBell at thig.com] Sent: Thursday, September 10, 2009 9:30 AM To: Ryan West; 'rancid-discuss at shrubbery.net' Subject: RE: RANCID and CVSWEB Hi.. thanks, I added the comma, but it made no difference. I've actually tried it both ways. I've also tried changing the cvstreedefault variable to 'rancid' from 'local' and it makes no difference. To be honest, I know little to nothing about CVS other than how it works with Rancid - which is the only thing I use it for. I've heard before that using SVN is better however. -----Original Message----- From: Ryan West [mailto:rwest at zyedge.com] Sent: Thursday, September 10, 2009 9:25 AM To: Chris Bell; 'rancid-discuss at shrubbery.net' Subject: RE: RANCID and CVSWEB Chris, Looks like you're missing a trailing comma. This is a working cvsweb install with RANCID: @CVSrepositories = ( # 'local' => ['Local Repository', '/var/lib/cvs'], 'neteng' => ['NetEng Devices', '/usr/local/rancid/var/CVS'], ); $cvstreedefault = 'neteng'; Also, I'm sure you don't want to hear this right now, but I would recommend WebSVN whenever you're ready to make the change from CVS. It's a little unnerving when you convert, but I'm quite happy with the WebSVN interface and the development team there is more active. -ryan -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Chris Bell Sent: Thursday, September 10, 2009 9:17 AM To: 'rancid-discuss at shrubbery.net' Subject: [rancid] RANCID and CVSWEB I spent the better part of yesterday, last night, and this morning trying to figure out how to get cvsweb to work with RANCID. I'm running Redhat 5.x and have Rancid installed to the default directory path /usr/local/rancid. For cvsweb, I am using 3.0.6-4. In my cvsweb.conf (/etc/cvsweb/cvsweb.conf) I have this config: @CVSrepositories = ( 'local' => ['Local Repository', '/var/cvs'], 'rancid' => ['rancid', '/usr/local/rancid/var/CVS/'] # 'freebsd' => ['FreeBSD', '/var/ncvs'], # 'openbsd' => ['OpenBSD', '/var/ncvs'], # 'netbsd' => ['NetBSD', '/var/ncvs'], # 'ruby' => ['Ruby', '/var/anoncvs/ruby'], That path, points to the CVSROOT for Rancid. When I browse to ...http://server/cgi-bin/cvsweb.cgi/, the local repo is available, but there is no drop down box to go to the 'rancid' repo. If I comment out the local repo in the cvsweb.conf, I get this error when trying to browse to the same url: Error: No valid CVS roots found! See @CVSrepositories in the configuration file (/etc/cvsweb/cvsweb.conf) This leads me to believe that there is not a permission issue on the .conf file, because if there was - changing by commenting out a repo would not make a difference. Any idea on what I'm doing wrong? Sorry if this has been covered, but I honestly couldn't find it anyplace that offered a solution. Several discussions about it on the cvsweb list, but nothing that offered a solution. This worked like a charm and out of the box with Ubuntu when I did it a couple of years ago -- but unfortunately I'm not able to build this box on Ubuntu, has to be Redhat. Christopher Bell, CCNA Network Operations Manager Tower Hill Insurance Group, Inc. 352-332-8800, ext 1734 CONFIDENTIAL NOTICE: This email including any attachments, contains confidential information belonging to the sender. It may also be privileged or otherwise protected by work product immunity or other legal rules. This information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this emailed information is strictly prohibited. If you have received this email in error, please immediately notify us by reply email of the error and then delete this email immediately. _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss CONFIDENTIAL NOTICE: This email including any attachments, contains confidential information belonging to the sender. It may also be privileged or otherwise protected by work product immunity or other legal rules. This information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this emailed information is strictly prohibited. If you have received this email in error, please immediately notify us by reply email of the error and then delete this email immediately. CONFIDENTIAL NOTICE: This email including any attachments, contains confidential information belonging to the sender. It may also be privileged or otherwise protected by work product immunity or other legal rules. This information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this emailed information is strictly prohibited. If you have received this email in error, please immediately notify us by reply email of the error and then delete this email immediately. CONFIDENTIAL NOTICE: This email including any attachments, contains confidential information belonging to the sender. It may also be privileged or otherwise protected by work product immunity or other legal rules. This information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this emailed information is strictly prohibited. If you have received this email in error, please immediately notify us by reply email of the error and then delete this email immediately. From CBell at thig.com Thu Sep 10 14:00:17 2009 From: CBell at thig.com (Chris Bell) Date: Thu, 10 Sep 2009 10:00:17 -0400 Subject: [rancid] Re: RANCID and CVSWEB In-Reply-To: <6E21B2BDEF6E714EA0B5BA8D5D0E140124918296ED@zy-ex1.zyedge.local> References: <173187BEB332D743AFC36A03B8A0A39301C0A0FB65@gnvmail01.thig.com> <6E21B2BDEF6E714EA0B5BA8D5D0E140124918296DD@zy-ex1.zyedge.local> <173187BEB332D743AFC36A03B8A0A39301C0A0FB66@gnvmail01.thig.com> <6E21B2BDEF6E714EA0B5BA8D5D0E140124918296E3@zy-ex1.zyedge.local> <173187BEB332D743AFC36A03B8A0A39301C0A0FB68@gnvmail01.thig.com> <173187BEB332D743AFC36A03B8A0A39301C0A0FB6A@gnvmail01.thig.com> <6E21B2BDEF6E714EA0B5BA8D5D0E140124918296EC@zy-ex1.zyedge.local> <173187BEB332D743AFC36A03B8A0A39301C0A0FB6D@gnvmail01.thig.com> <6E21B2BDEF6E714EA0B5BA8D5D0E140124918296ED@zy-ex1.zyedge.local> Message-ID: <173187BEB332D743AFC36A03B8A0A39301C0A0FB6E@gnvmail01.thig.com> Sorry -- I just caught that and was getting it for you.. [root at blah ~]# ls /usr/local/rancid/var/CVS/ CVSROOT Entries.Log config1 config2 config3 config4 [root at blah ~]# -----Original Message----- From: Ryan West [mailto:rwest at zyedge.com] Sent: Thursday, September 10, 2009 9:58 AM To: Chris Bell Cc: rancid-discuss at shrubbery.net Subject: RE: RANCID and CVSWEB That's a full path from root. Try 'ls /usr/local/rancid/var/CVS' instead. -ryan -----Original Message----- From: Chris Bell [mailto:CBell at thig.com] Sent: Thursday, September 10, 2009 9:57 AM To: Ryan West Cc: rancid-discuss at shrubbery.net Subject: RE: RANCID and CVSWEB Hmmm .. [root at blah ~]# ls /var/cvs/ [root at blah ~]# Am I missing a symbolic link or something? -----Original Message----- From: Ryan West [mailto:rwest at zyedge.com] Sent: Thursday, September 10, 2009 9:54 AM To: Chris Bell Cc: rancid-discuss at shrubbery.net Subject: RE: RANCID and CVSWEB Chris, Can you show the contents of your CVS directory? rancid at netman:~/var/CVS$ ls CVSROOT noc -ryan -----Original Message----- From: Chris Bell [mailto:CBell at thig.com] Sent: Thursday, September 10, 2009 9:45 AM To: Chris Bell; Ryan West Cc: rancid-discuss at shrubbery.net Subject: RE: RANCID and CVSWEB Actually that happens either way .... with the local repo commented out or not. -----Original Message----- From: Chris Bell Sent: Thursday, September 10, 2009 9:39 AM To: 'Ryan West' Subject: RE: RANCID and CVSWEB Only when I remove the 'local' variable. [Thu Sep 10 13:30:23 2009] [error] [client x.x.x.x] Root '/usr/local/rancid/var/CVS' defined in @CVSrepositories is not a directory, entry ignored at /var/www/cgi-bin/cvsweb.cgi line 481. [Thu Sep 10 13:30:24 2009] [error] [client x.x.x.x] Root '/usr/local/rancid/var/CVS' defined in @CVSrepositories is not a directory, entry ignored at /var/www/cgi-bin/cvsweb.cgi line 481. [Thu Sep 10 13:30:25 2009] [error] [client x.x.x.x] Root '/usr/local/rancid/var/CVS' defined in @CVSrepositories is not a directory, entry ignored at /var/www/cgi-bin/cvsweb.cgi line 481. [Thu Sep 10 13:30:25 2009] [error] [client x.x.x.x] Root '/usr/local/rancid/var/CVS' defined in @CVSrepositories is not a directory, entry ignored at /var/www/cgi-bin/cvsweb.cgi line 481. [Thu Sep 10 13:30:26 2009] [error] [client x.x.x.x] Root '/usr/local/rancid/var/CVS' defined in @CVSrepositories is not a directory, entry ignored at /var/www/cgi-bin/cvsweb.cgi line 481. [Thu Sep 10 13:30:28 2009] [error] [client x.x.x.x] Root '/usr/local/rancid/var/CVS' defined in @CVSrepositories is not a directory, entry ignored at /var/www/cgi-bin/cvsweb.cgi line 481 -----Original Message----- From: Ryan West [mailto:rwest at zyedge.com] Sent: Thursday, September 10, 2009 9:33 AM To: Chris Bell Subject: RE: RANCID and CVSWEB I don't use either for anything but RANCID as well. Do your apache logs have anything of value? -----Original Message----- From: Chris Bell [mailto:CBell at thig.com] Sent: Thursday, September 10, 2009 9:30 AM To: Ryan West; 'rancid-discuss at shrubbery.net' Subject: RE: RANCID and CVSWEB Hi.. thanks, I added the comma, but it made no difference. I've actually tried it both ways. I've also tried changing the cvstreedefault variable to 'rancid' from 'local' and it makes no difference. To be honest, I know little to nothing about CVS other than how it works with Rancid - which is the only thing I use it for. I've heard before that using SVN is better however. -----Original Message----- From: Ryan West [mailto:rwest at zyedge.com] Sent: Thursday, September 10, 2009 9:25 AM To: Chris Bell; 'rancid-discuss at shrubbery.net' Subject: RE: RANCID and CVSWEB Chris, Looks like you're missing a trailing comma. This is a working cvsweb install with RANCID: @CVSrepositories = ( # 'local' => ['Local Repository', '/var/lib/cvs'], 'neteng' => ['NetEng Devices', '/usr/local/rancid/var/CVS'], ); $cvstreedefault = 'neteng'; Also, I'm sure you don't want to hear this right now, but I would recommend WebSVN whenever you're ready to make the change from CVS. It's a little unnerving when you convert, but I'm quite happy with the WebSVN interface and the development team there is more active. -ryan -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Chris Bell Sent: Thursday, September 10, 2009 9:17 AM To: 'rancid-discuss at shrubbery.net' Subject: [rancid] RANCID and CVSWEB I spent the better part of yesterday, last night, and this morning trying to figure out how to get cvsweb to work with RANCID. I'm running Redhat 5.x and have Rancid installed to the default directory path /usr/local/rancid. For cvsweb, I am using 3.0.6-4. In my cvsweb.conf (/etc/cvsweb/cvsweb.conf) I have this config: @CVSrepositories = ( 'local' => ['Local Repository', '/var/cvs'], 'rancid' => ['rancid', '/usr/local/rancid/var/CVS/'] # 'freebsd' => ['FreeBSD', '/var/ncvs'], # 'openbsd' => ['OpenBSD', '/var/ncvs'], # 'netbsd' => ['NetBSD', '/var/ncvs'], # 'ruby' => ['Ruby', '/var/anoncvs/ruby'], That path, points to the CVSROOT for Rancid. When I browse to ...http://server/cgi-bin/cvsweb.cgi/, the local repo is available, but there is no drop down box to go to the 'rancid' repo. If I comment out the local repo in the cvsweb.conf, I get this error when trying to browse to the same url: Error: No valid CVS roots found! See @CVSrepositories in the configuration file (/etc/cvsweb/cvsweb.conf) This leads me to believe that there is not a permission issue on the .conf file, because if there was - changing by commenting out a repo would not make a difference. Any idea on what I'm doing wrong? Sorry if this has been covered, but I honestly couldn't find it anyplace that offered a solution. Several discussions about it on the cvsweb list, but nothing that offered a solution. This worked like a charm and out of the box with Ubuntu when I did it a couple of years ago -- but unfortunately I'm not able to build this box on Ubuntu, has to be Redhat. Christopher Bell, CCNA Network Operations Manager Tower Hill Insurance Group, Inc. 352-332-8800, ext 1734 CONFIDENTIAL NOTICE: This email including any attachments, contains confidential information belonging to the sender. It may also be privileged or otherwise protected by work product immunity or other legal rules. This information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this emailed information is strictly prohibited. If you have received this email in error, please immediately notify us by reply email of the error and then delete this email immediately. _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss CONFIDENTIAL NOTICE: This email including any attachments, contains confidential information belonging to the sender. It may also be privileged or otherwise protected by work product immunity or other legal rules. This information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this emailed information is strictly prohibited. If you have received this email in error, please immediately notify us by reply email of the error and then delete this email immediately. CONFIDENTIAL NOTICE: This email including any attachments, contains confidential information belonging to the sender. It may also be privileged or otherwise protected by work product immunity or other legal rules. This information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this emailed information is strictly prohibited. If you have received this email in error, please immediately notify us by reply email of the error and then delete this email immediately. CONFIDENTIAL NOTICE: This email including any attachments, contains confidential information belonging to the sender. It may also be privileged or otherwise protected by work product immunity or other legal rules. This information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this emailed information is strictly prohibited. If you have received this email in error, please immediately notify us by reply email of the error and then delete this email immediately. CONFIDENTIAL NOTICE: This email including any attachments, contains confidential information belonging to the sender. It may also be privileged or otherwise protected by work product immunity or other legal rules. This information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this emailed information is strictly prohibited. If you have received this email in error, please immediately notify us by reply email of the error and then delete this email immediately. From Todd at equivoice.com Thu Sep 10 14:01:44 2009 From: Todd at equivoice.com (Todd Heide) Date: Thu, 10 Sep 2009 09:01:44 -0500 Subject: [rancid] Re: RANCID and CVSWEB In-Reply-To: <173187BEB332D743AFC36A03B8A0A39301C0A0FB67@gnvmail01.thig.com> References: <173187BEB332D743AFC36A03B8A0A39301C0A0FB65@gnvmail01.thig.com> <082FEA82DC985B4F8A6B412D5AC4E22001B3FE0E@exchange.Equivoice.local> <173187BEB332D743AFC36A03B8A0A39301C0A0FB67@gnvmail01.thig.com> Message-ID: <082FEA82DC985B4F8A6B412D5AC4E22001B3FE2A@exchange.Equivoice.local> Notice on mine the permissions are drwxrwxr-x, I had to add write permissions for it to work. Try adding write to it and see what happens. Yours usr/local/rancid/ drwxr-xr-x 9 rancid rancid 4096 Sep 9 15:46 var Mine drwxrwxr-x 10 Rancid netadm 4096 Jul 16 15:43 rancid Thanks Todd Nothing ever goes as planned, Its a hell of a notion, Even pharaohs turn to sand, Like a drop in the ocean -----Original Message----- From: Chris Bell [mailto:CBell at thig.com] Sent: Thursday, September 10, 2009 8:37 AM To: Todd Heide; rancid-discuss at shrubbery.net Subject: RE: [rancid] RANCID and CVSWEB I keep thinking it's permissions too, but I don't see a problem with the permissions: /usr/local/rancid/ drwxr-xr-x 9 rancid rancid 4096 Sep 9 15:46 var /usr/local/rancid/var/ drwxrwxr-x 7 rancid rancid 4096 Sep 9 15:46 CVS drwxr-x--- 4 rancid rancid 4096 Sep 9 15:57 configs1 drwxr-x--- 4 rancid rancid 4096 Sep 9 16:05 configs2 drwxr-x--- 4 rancid rancid 4096 Sep 9 16:06 configs3 drwxr-x--- 4 rancid rancid 4096 Sep 9 16:07 configs4 [root at blah ~]# ls -l /usr/local/rancid/var/CVS/ total 24 drwxrwxr-x 3 rancid rancid 4096 Sep 9 16:07 CVSROOT -rw-r----- 1 rancid rancid 58 Sep 9 15:46 Entries.Log drwxrwxr-x 3 rancid rancid 4096 Sep 9 15:57 configs1 drwxrwxr-x 3 rancid rancid 4096 Sep 9 16:05 configs2 drwxrwxr-x 3 rancid rancid 4096 Sep 9 16:06 configs3 drwxrwxr-x 3 rancid rancid 4096 Sep 9 16:07 configs4 and on the /etc/cvsweb/cvsweb.conf -rw-r--r-- 1 root root 22997 Sep 10 13:32 cvsweb.conf -----Original Message----- From: Todd Heide [mailto:Todd at equivoice.com] Sent: Thursday, September 10, 2009 9:24 AM To: Chris Bell; rancid-discuss at shrubbery.net Subject: RE: [rancid] RANCID and CVSWEB I have run into this same problem with Fedora Core. It turned out to be the permissions in the directories where the CVS files are stored. They need to be readable by Apache. drwxrwxr-x 3 Rancid Rancid 4096 Sep 10 08:04 configs drwxrwxr-x 10 Rancid netadm 4096 Jul 16 15:43 rancid This was the only way I was able to get CVSweb to work with Rancid. I think the default setting was drwxrwx--- 10 Rancid netadm 4096 Jul 16 15:43 rancid Thanks Todd Nothing ever goes as planned, Its a hell of a notion, Even pharaohs turn to sand, Like a drop in the ocean -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Chris Bell Sent: Thursday, September 10, 2009 8:17 AM To: 'rancid-discuss at shrubbery.net' Subject: [rancid] RANCID and CVSWEB I spent the better part of yesterday, last night, and this morning trying to figure out how to get cvsweb to work with RANCID. I'm running Redhat 5.x and have Rancid installed to the default directory path /usr/local/rancid. For cvsweb, I am using 3.0.6-4. In my cvsweb.conf (/etc/cvsweb/cvsweb.conf) I have this config: @CVSrepositories = ( 'local' => ['Local Repository', '/var/cvs'], 'rancid' => ['rancid', '/usr/local/rancid/var/CVS/'] # 'freebsd' => ['FreeBSD', '/var/ncvs'], # 'openbsd' => ['OpenBSD', '/var/ncvs'], # 'netbsd' => ['NetBSD', '/var/ncvs'], # 'ruby' => ['Ruby', '/var/anoncvs/ruby'], That path, points to the CVSROOT for Rancid. When I browse to ...http://server/cgi-bin/cvsweb.cgi/, the local repo is available, but there is no drop down box to go to the 'rancid' repo. If I comment out the local repo in the cvsweb.conf, I get this error when trying to browse to the same url: Error: No valid CVS roots found! See @CVSrepositories in the configuration file (/etc/cvsweb/cvsweb.conf) This leads me to believe that there is not a permission issue on the .conf file, because if there was - changing by commenting out a repo would not make a difference. Any idea on what I'm doing wrong? Sorry if this has been covered, but I honestly couldn't find it anyplace that offered a solution. Several discussions about it on the cvsweb list, but nothing that offered a solution. This worked like a charm and out of the box with Ubuntu when I did it a couple of years ago -- but unfortunately I'm not able to build this box on Ubuntu, has to be Redhat. Christopher Bell, CCNA Network Operations Manager Tower Hill Insurance Group, Inc. 352-332-8800, ext 1734 CONFIDENTIAL NOTICE: This email including any attachments, contains confidential information belonging to the sender. It may also be privileged or otherwise protected by work product immunity or other legal rules. This information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this emailed information is strictly prohibited. If you have received this email in error, please immediately notify us by reply email of the error and then delete this email immediately. _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss CONFIDENTIAL NOTICE: This email including any attachments, contains confidential information belonging to the sender. It may also be privileged or otherwise protected by work product immunity or other legal rules. This information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this emailed information is strictly prohibited. If you have received this email in error, please immediately notify us by reply email of the error and then delete this email immediately. From CBell at thig.com Thu Sep 10 14:14:05 2009 From: CBell at thig.com (Chris Bell) Date: Thu, 10 Sep 2009 10:14:05 -0400 Subject: [rancid] Re: RANCID and CVSWEB In-Reply-To: <082FEA82DC985B4F8A6B412D5AC4E22001B3FE2A@exchange.Equivoice.local> References: <173187BEB332D743AFC36A03B8A0A39301C0A0FB65@gnvmail01.thig.com> <082FEA82DC985B4F8A6B412D5AC4E22001B3FE0E@exchange.Equivoice.local> <173187BEB332D743AFC36A03B8A0A39301C0A0FB67@gnvmail01.thig.com> <082FEA82DC985B4F8A6B412D5AC4E22001B3FE2A@exchange.Equivoice.local> Message-ID: <173187BEB332D743AFC36A03B8A0A39301C0A0FB71@gnvmail01.thig.com> That did it ... curious though because the permissions on my Deb install are drwxr-xr-x 9 for /home/rancid. Thanks for everyone's help ... as always this is a fantastic group. I hope I'll be able to add something beneficial to it one day. -----Original Message----- From: Todd Heide [mailto:Todd at equivoice.com] Sent: Thursday, September 10, 2009 10:02 AM To: Chris Bell; rancid-discuss at shrubbery.net Subject: RE: [rancid] RANCID and CVSWEB Notice on mine the permissions are drwxrwxr-x, I had to add write permissions for it to work. Try adding write to it and see what happens. Yours usr/local/rancid/ drwxr-xr-x 9 rancid rancid 4096 Sep 9 15:46 var Mine drwxrwxr-x 10 Rancid netadm 4096 Jul 16 15:43 rancid Thanks Todd Nothing ever goes as planned, Its a hell of a notion, Even pharaohs turn to sand, Like a drop in the ocean -----Original Message----- From: Chris Bell [mailto:CBell at thig.com] Sent: Thursday, September 10, 2009 8:37 AM To: Todd Heide; rancid-discuss at shrubbery.net Subject: RE: [rancid] RANCID and CVSWEB I keep thinking it's permissions too, but I don't see a problem with the permissions: /usr/local/rancid/ drwxr-xr-x 9 rancid rancid 4096 Sep 9 15:46 var /usr/local/rancid/var/ drwxrwxr-x 7 rancid rancid 4096 Sep 9 15:46 CVS drwxr-x--- 4 rancid rancid 4096 Sep 9 15:57 configs1 drwxr-x--- 4 rancid rancid 4096 Sep 9 16:05 configs2 drwxr-x--- 4 rancid rancid 4096 Sep 9 16:06 configs3 drwxr-x--- 4 rancid rancid 4096 Sep 9 16:07 configs4 [root at blah ~]# ls -l /usr/local/rancid/var/CVS/ total 24 drwxrwxr-x 3 rancid rancid 4096 Sep 9 16:07 CVSROOT -rw-r----- 1 rancid rancid 58 Sep 9 15:46 Entries.Log drwxrwxr-x 3 rancid rancid 4096 Sep 9 15:57 configs1 drwxrwxr-x 3 rancid rancid 4096 Sep 9 16:05 configs2 drwxrwxr-x 3 rancid rancid 4096 Sep 9 16:06 configs3 drwxrwxr-x 3 rancid rancid 4096 Sep 9 16:07 configs4 and on the /etc/cvsweb/cvsweb.conf -rw-r--r-- 1 root root 22997 Sep 10 13:32 cvsweb.conf -----Original Message----- From: Todd Heide [mailto:Todd at equivoice.com] Sent: Thursday, September 10, 2009 9:24 AM To: Chris Bell; rancid-discuss at shrubbery.net Subject: RE: [rancid] RANCID and CVSWEB I have run into this same problem with Fedora Core. It turned out to be the permissions in the directories where the CVS files are stored. They need to be readable by Apache. drwxrwxr-x 3 Rancid Rancid 4096 Sep 10 08:04 configs drwxrwxr-x 10 Rancid netadm 4096 Jul 16 15:43 rancid This was the only way I was able to get CVSweb to work with Rancid. I think the default setting was drwxrwx--- 10 Rancid netadm 4096 Jul 16 15:43 rancid Thanks Todd Nothing ever goes as planned, Its a hell of a notion, Even pharaohs turn to sand, Like a drop in the ocean -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Chris Bell Sent: Thursday, September 10, 2009 8:17 AM To: 'rancid-discuss at shrubbery.net' Subject: [rancid] RANCID and CVSWEB I spent the better part of yesterday, last night, and this morning trying to figure out how to get cvsweb to work with RANCID. I'm running Redhat 5.x and have Rancid installed to the default directory path /usr/local/rancid. For cvsweb, I am using 3.0.6-4. In my cvsweb.conf (/etc/cvsweb/cvsweb.conf) I have this config: @CVSrepositories = ( 'local' => ['Local Repository', '/var/cvs'], 'rancid' => ['rancid', '/usr/local/rancid/var/CVS/'] # 'freebsd' => ['FreeBSD', '/var/ncvs'], # 'openbsd' => ['OpenBSD', '/var/ncvs'], # 'netbsd' => ['NetBSD', '/var/ncvs'], # 'ruby' => ['Ruby', '/var/anoncvs/ruby'], That path, points to the CVSROOT for Rancid. When I browse to ...http://server/cgi-bin/cvsweb.cgi/, the local repo is available, but there is no drop down box to go to the 'rancid' repo. If I comment out the local repo in the cvsweb.conf, I get this error when trying to browse to the same url: Error: No valid CVS roots found! See @CVSrepositories in the configuration file (/etc/cvsweb/cvsweb.conf) This leads me to believe that there is not a permission issue on the .conf file, because if there was - changing by commenting out a repo would not make a difference. Any idea on what I'm doing wrong? Sorry if this has been covered, but I honestly couldn't find it anyplace that offered a solution. Several discussions about it on the cvsweb list, but nothing that offered a solution. This worked like a charm and out of the box with Ubuntu when I did it a couple of years ago -- but unfortunately I'm not able to build this box on Ubuntu, has to be Redhat. Christopher Bell, CCNA Network Operations Manager Tower Hill Insurance Group, Inc. 352-332-8800, ext 1734 CONFIDENTIAL NOTICE: This email including any attachments, contains confidential information belonging to the sender. It may also be privileged or otherwise protected by work product immunity or other legal rules. This information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this emailed information is strictly prohibited. If you have received this email in error, please immediately notify us by reply email of the error and then delete this email immediately. _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss CONFIDENTIAL NOTICE: This email including any attachments, contains confidential information belonging to the sender. It may also be privileged or otherwise protected by work product immunity or other legal rules. This information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this emailed information is strictly prohibited. If you have received this email in error, please immediately notify us by reply email of the error and then delete this email immediately. CONFIDENTIAL NOTICE: This email including any attachments, contains confidential information belonging to the sender. It may also be privileged or otherwise protected by work product immunity or other legal rules. This information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this emailed information is strictly prohibited. If you have received this email in error, please immediately notify us by reply email of the error and then delete this email immediately. From Todd at equivoice.com Thu Sep 10 14:15:25 2009 From: Todd at equivoice.com (Todd Heide) Date: Thu, 10 Sep 2009 09:15:25 -0500 Subject: [rancid] Re: RANCID and CVSWEB In-Reply-To: <173187BEB332D743AFC36A03B8A0A39301C0A0FB71@gnvmail01.thig.com> References: <173187BEB332D743AFC36A03B8A0A39301C0A0FB65@gnvmail01.thig.com> <082FEA82DC985B4F8A6B412D5AC4E22001B3FE0E@exchange.Equivoice.local> <173187BEB332D743AFC36A03B8A0A39301C0A0FB67@gnvmail01.thig.com> <082FEA82DC985B4F8A6B412D5AC4E22001B3FE2A@exchange.Equivoice.local> <173187BEB332D743AFC36A03B8A0A39301C0A0FB71@gnvmail01.thig.com> Message-ID: <082FEA82DC985B4F8A6B412D5AC4E22001B3FE3A@exchange.Equivoice.local> I had tried everything others have suggested but for some reason that was the only thing that worked with Fedora. Since the server is private on my network, I am not too worried about the permissions, if it were public, that would be a wholly different issue. Thanks Todd Nothing ever goes as planned, Its a hell of a notion, Even pharaohs turn to sand, Like a drop in the ocean -----Original Message----- From: Chris Bell [mailto:CBell at thig.com] Sent: Thursday, September 10, 2009 9:14 AM To: Todd Heide; rancid-discuss at shrubbery.net; 'rwest at zyedge.com' Subject: RE: [rancid] RANCID and CVSWEB That did it ... curious though because the permissions on my Deb install are drwxr-xr-x 9 for /home/rancid. Thanks for everyone's help ... as always this is a fantastic group. I hope I'll be able to add something beneficial to it one day. -----Original Message----- From: Todd Heide [mailto:Todd at equivoice.com] Sent: Thursday, September 10, 2009 10:02 AM To: Chris Bell; rancid-discuss at shrubbery.net Subject: RE: [rancid] RANCID and CVSWEB Notice on mine the permissions are drwxrwxr-x, I had to add write permissions for it to work. Try adding write to it and see what happens. Yours usr/local/rancid/ drwxr-xr-x 9 rancid rancid 4096 Sep 9 15:46 var Mine drwxrwxr-x 10 Rancid netadm 4096 Jul 16 15:43 rancid Thanks Todd Nothing ever goes as planned, Its a hell of a notion, Even pharaohs turn to sand, Like a drop in the ocean -----Original Message----- From: Chris Bell [mailto:CBell at thig.com] Sent: Thursday, September 10, 2009 8:37 AM To: Todd Heide; rancid-discuss at shrubbery.net Subject: RE: [rancid] RANCID and CVSWEB I keep thinking it's permissions too, but I don't see a problem with the permissions: /usr/local/rancid/ drwxr-xr-x 9 rancid rancid 4096 Sep 9 15:46 var /usr/local/rancid/var/ drwxrwxr-x 7 rancid rancid 4096 Sep 9 15:46 CVS drwxr-x--- 4 rancid rancid 4096 Sep 9 15:57 configs1 drwxr-x--- 4 rancid rancid 4096 Sep 9 16:05 configs2 drwxr-x--- 4 rancid rancid 4096 Sep 9 16:06 configs3 drwxr-x--- 4 rancid rancid 4096 Sep 9 16:07 configs4 [root at blah ~]# ls -l /usr/local/rancid/var/CVS/ total 24 drwxrwxr-x 3 rancid rancid 4096 Sep 9 16:07 CVSROOT -rw-r----- 1 rancid rancid 58 Sep 9 15:46 Entries.Log drwxrwxr-x 3 rancid rancid 4096 Sep 9 15:57 configs1 drwxrwxr-x 3 rancid rancid 4096 Sep 9 16:05 configs2 drwxrwxr-x 3 rancid rancid 4096 Sep 9 16:06 configs3 drwxrwxr-x 3 rancid rancid 4096 Sep 9 16:07 configs4 and on the /etc/cvsweb/cvsweb.conf -rw-r--r-- 1 root root 22997 Sep 10 13:32 cvsweb.conf -----Original Message----- From: Todd Heide [mailto:Todd at equivoice.com] Sent: Thursday, September 10, 2009 9:24 AM To: Chris Bell; rancid-discuss at shrubbery.net Subject: RE: [rancid] RANCID and CVSWEB I have run into this same problem with Fedora Core. It turned out to be the permissions in the directories where the CVS files are stored. They need to be readable by Apache. drwxrwxr-x 3 Rancid Rancid 4096 Sep 10 08:04 configs drwxrwxr-x 10 Rancid netadm 4096 Jul 16 15:43 rancid This was the only way I was able to get CVSweb to work with Rancid. I think the default setting was drwxrwx--- 10 Rancid netadm 4096 Jul 16 15:43 rancid Thanks Todd Nothing ever goes as planned, Its a hell of a notion, Even pharaohs turn to sand, Like a drop in the ocean -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Chris Bell Sent: Thursday, September 10, 2009 8:17 AM To: 'rancid-discuss at shrubbery.net' Subject: [rancid] RANCID and CVSWEB I spent the better part of yesterday, last night, and this morning trying to figure out how to get cvsweb to work with RANCID. I'm running Redhat 5.x and have Rancid installed to the default directory path /usr/local/rancid. For cvsweb, I am using 3.0.6-4. In my cvsweb.conf (/etc/cvsweb/cvsweb.conf) I have this config: @CVSrepositories = ( 'local' => ['Local Repository', '/var/cvs'], 'rancid' => ['rancid', '/usr/local/rancid/var/CVS/'] # 'freebsd' => ['FreeBSD', '/var/ncvs'], # 'openbsd' => ['OpenBSD', '/var/ncvs'], # 'netbsd' => ['NetBSD', '/var/ncvs'], # 'ruby' => ['Ruby', '/var/anoncvs/ruby'], That path, points to the CVSROOT for Rancid. When I browse to ...http://server/cgi-bin/cvsweb.cgi/, the local repo is available, but there is no drop down box to go to the 'rancid' repo. If I comment out the local repo in the cvsweb.conf, I get this error when trying to browse to the same url: Error: No valid CVS roots found! See @CVSrepositories in the configuration file (/etc/cvsweb/cvsweb.conf) This leads me to believe that there is not a permission issue on the .conf file, because if there was - changing by commenting out a repo would not make a difference. Any idea on what I'm doing wrong? Sorry if this has been covered, but I honestly couldn't find it anyplace that offered a solution. Several discussions about it on the cvsweb list, but nothing that offered a solution. This worked like a charm and out of the box with Ubuntu when I did it a couple of years ago -- but unfortunately I'm not able to build this box on Ubuntu, has to be Redhat. Christopher Bell, CCNA Network Operations Manager Tower Hill Insurance Group, Inc. 352-332-8800, ext 1734 CONFIDENTIAL NOTICE: This email including any attachments, contains confidential information belonging to the sender. It may also be privileged or otherwise protected by work product immunity or other legal rules. This information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this emailed information is strictly prohibited. If you have received this email in error, please immediately notify us by reply email of the error and then delete this email immediately. _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss CONFIDENTIAL NOTICE: This email including any attachments, contains confidential information belonging to the sender. It may also be privileged or otherwise protected by work product immunity or other legal rules. This information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this emailed information is strictly prohibited. If you have received this email in error, please immediately notify us by reply email of the error and then delete this email immediately. CONFIDENTIAL NOTICE: This email including any attachments, contains confidential information belonging to the sender. It may also be privileged or otherwise protected by work product immunity or other legal rules. This information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this emailed information is strictly prohibited. If you have received this email in error, please immediately notify us by reply email of the error and then delete this email immediately. From CBell at thig.com Thu Sep 10 14:25:02 2009 From: CBell at thig.com (Chris Bell) Date: Thu, 10 Sep 2009 10:25:02 -0400 Subject: [rancid] Re: RANCID and CVSWEB In-Reply-To: <082FEA82DC985B4F8A6B412D5AC4E22001B3FE3A@exchange.Equivoice.local> References: <173187BEB332D743AFC36A03B8A0A39301C0A0FB65@gnvmail01.thig.com> <082FEA82DC985B4F8A6B412D5AC4E22001B3FE0E@exchange.Equivoice.local> <173187BEB332D743AFC36A03B8A0A39301C0A0FB67@gnvmail01.thig.com> <082FEA82DC985B4F8A6B412D5AC4E22001B3FE2A@exchange.Equivoice.local> <173187BEB332D743AFC36A03B8A0A39301C0A0FB71@gnvmail01.thig.com> <082FEA82DC985B4F8A6B412D5AC4E22001B3FE3A@exchange.Equivoice.local> Message-ID: <173187BEB332D743AFC36A03B8A0A39301C0A0FB72@gnvmail01.thig.com> I fixed this another way actually when I mentioned this to our Linux admin. Rather than 775 the /usr/local/rancid directory, I put it back to 755 and added the apache user to the rancid group. Worked like a charm. -----Original Message----- From: Todd Heide [mailto:Todd at equivoice.com] Sent: Thursday, September 10, 2009 10:15 AM To: Chris Bell; rancid-discuss at shrubbery.net; rwest at zyedge.com Subject: RE: [rancid] RANCID and CVSWEB I had tried everything others have suggested but for some reason that was the only thing that worked with Fedora. Since the server is private on my network, I am not too worried about the permissions, if it were public, that would be a wholly different issue. Thanks Todd Nothing ever goes as planned, Its a hell of a notion, Even pharaohs turn to sand, Like a drop in the ocean -----Original Message----- From: Chris Bell [mailto:CBell at thig.com] Sent: Thursday, September 10, 2009 9:14 AM To: Todd Heide; rancid-discuss at shrubbery.net; 'rwest at zyedge.com' Subject: RE: [rancid] RANCID and CVSWEB That did it ... curious though because the permissions on my Deb install are drwxr-xr-x 9 for /home/rancid. Thanks for everyone's help ... as always this is a fantastic group. I hope I'll be able to add something beneficial to it one day. -----Original Message----- From: Todd Heide [mailto:Todd at equivoice.com] Sent: Thursday, September 10, 2009 10:02 AM To: Chris Bell; rancid-discuss at shrubbery.net Subject: RE: [rancid] RANCID and CVSWEB Notice on mine the permissions are drwxrwxr-x, I had to add write permissions for it to work. Try adding write to it and see what happens. Yours usr/local/rancid/ drwxr-xr-x 9 rancid rancid 4096 Sep 9 15:46 var Mine drwxrwxr-x 10 Rancid netadm 4096 Jul 16 15:43 rancid Thanks Todd Nothing ever goes as planned, Its a hell of a notion, Even pharaohs turn to sand, Like a drop in the ocean -----Original Message----- From: Chris Bell [mailto:CBell at thig.com] Sent: Thursday, September 10, 2009 8:37 AM To: Todd Heide; rancid-discuss at shrubbery.net Subject: RE: [rancid] RANCID and CVSWEB I keep thinking it's permissions too, but I don't see a problem with the permissions: /usr/local/rancid/ drwxr-xr-x 9 rancid rancid 4096 Sep 9 15:46 var /usr/local/rancid/var/ drwxrwxr-x 7 rancid rancid 4096 Sep 9 15:46 CVS drwxr-x--- 4 rancid rancid 4096 Sep 9 15:57 configs1 drwxr-x--- 4 rancid rancid 4096 Sep 9 16:05 configs2 drwxr-x--- 4 rancid rancid 4096 Sep 9 16:06 configs3 drwxr-x--- 4 rancid rancid 4096 Sep 9 16:07 configs4 [root at blah ~]# ls -l /usr/local/rancid/var/CVS/ total 24 drwxrwxr-x 3 rancid rancid 4096 Sep 9 16:07 CVSROOT -rw-r----- 1 rancid rancid 58 Sep 9 15:46 Entries.Log drwxrwxr-x 3 rancid rancid 4096 Sep 9 15:57 configs1 drwxrwxr-x 3 rancid rancid 4096 Sep 9 16:05 configs2 drwxrwxr-x 3 rancid rancid 4096 Sep 9 16:06 configs3 drwxrwxr-x 3 rancid rancid 4096 Sep 9 16:07 configs4 and on the /etc/cvsweb/cvsweb.conf -rw-r--r-- 1 root root 22997 Sep 10 13:32 cvsweb.conf -----Original Message----- From: Todd Heide [mailto:Todd at equivoice.com] Sent: Thursday, September 10, 2009 9:24 AM To: Chris Bell; rancid-discuss at shrubbery.net Subject: RE: [rancid] RANCID and CVSWEB I have run into this same problem with Fedora Core. It turned out to be the permissions in the directories where the CVS files are stored. They need to be readable by Apache. drwxrwxr-x 3 Rancid Rancid 4096 Sep 10 08:04 configs drwxrwxr-x 10 Rancid netadm 4096 Jul 16 15:43 rancid This was the only way I was able to get CVSweb to work with Rancid. I think the default setting was drwxrwx--- 10 Rancid netadm 4096 Jul 16 15:43 rancid Thanks Todd Nothing ever goes as planned, Its a hell of a notion, Even pharaohs turn to sand, Like a drop in the ocean -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Chris Bell Sent: Thursday, September 10, 2009 8:17 AM To: 'rancid-discuss at shrubbery.net' Subject: [rancid] RANCID and CVSWEB I spent the better part of yesterday, last night, and this morning trying to figure out how to get cvsweb to work with RANCID. I'm running Redhat 5.x and have Rancid installed to the default directory path /usr/local/rancid. For cvsweb, I am using 3.0.6-4. In my cvsweb.conf (/etc/cvsweb/cvsweb.conf) I have this config: @CVSrepositories = ( 'local' => ['Local Repository', '/var/cvs'], 'rancid' => ['rancid', '/usr/local/rancid/var/CVS/'] # 'freebsd' => ['FreeBSD', '/var/ncvs'], # 'openbsd' => ['OpenBSD', '/var/ncvs'], # 'netbsd' => ['NetBSD', '/var/ncvs'], # 'ruby' => ['Ruby', '/var/anoncvs/ruby'], That path, points to the CVSROOT for Rancid. When I browse to ...http://server/cgi-bin/cvsweb.cgi/, the local repo is available, but there is no drop down box to go to the 'rancid' repo. If I comment out the local repo in the cvsweb.conf, I get this error when trying to browse to the same url: Error: No valid CVS roots found! See @CVSrepositories in the configuration file (/etc/cvsweb/cvsweb.conf) This leads me to believe that there is not a permission issue on the .conf file, because if there was - changing by commenting out a repo would not make a difference. Any idea on what I'm doing wrong? Sorry if this has been covered, but I honestly couldn't find it anyplace that offered a solution. Several discussions about it on the cvsweb list, but nothing that offered a solution. This worked like a charm and out of the box with Ubuntu when I did it a couple of years ago -- but unfortunately I'm not able to build this box on Ubuntu, has to be Redhat. Christopher Bell, CCNA Network Operations Manager Tower Hill Insurance Group, Inc. 352-332-8800, ext 1734 CONFIDENTIAL NOTICE: This email including any attachments, contains confidential information belonging to the sender. It may also be privileged or otherwise protected by work product immunity or other legal rules. This information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this emailed information is strictly prohibited. If you have received this email in error, please immediately notify us by reply email of the error and then delete this email immediately. _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss CONFIDENTIAL NOTICE: This email including any attachments, contains confidential information belonging to the sender. It may also be privileged or otherwise protected by work product immunity or other legal rules. This information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this emailed information is strictly prohibited. If you have received this email in error, please immediately notify us by reply email of the error and then delete this email immediately. CONFIDENTIAL NOTICE: This email including any attachments, contains confidential information belonging to the sender. It may also be privileged or otherwise protected by work product immunity or other legal rules. This information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this emailed information is strictly prohibited. If you have received this email in error, please immediately notify us by reply email of the error and then delete this email immediately. CONFIDENTIAL NOTICE: This email including any attachments, contains confidential information belonging to the sender. It may also be privileged or otherwise protected by work product immunity or other legal rules. This information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this emailed information is strictly prohibited. If you have received this email in error, please immediately notify us by reply email of the error and then delete this email immediately. From heas at shrubbery.net Thu Sep 10 22:03:31 2009 From: heas at shrubbery.net (john heasley) Date: Thu, 10 Sep 2009 15:03:31 -0700 Subject: [rancid] Re: RANCID CVS conflicts during update In-Reply-To: <4AA8F3B2.3070206@tenet.ac.za> References: <4AA8F3B2.3070206@tenet.ac.za> Message-ID: <20090910220331.GF6436@shrubbery.net> Thu, Sep 10, 2009 at 02:40:18PM +0200, Traiano Welcome: > Hi List > > When I add a router to the router.db and do a rancid-run, I get the > following errors in the logs: > > -- > starting: Thu Sep 10 14:30:43 SAST 2009 > > M router.db > There were CVS conflicts during update. > > M router.db > > ending: Thu Sep 10 14:30:43 SAST 2009 > -- > > I noticed the problem when I decided to remove the router from rancid.db > and tried to add it back a few minutes later. Now, if I leave it out, > rancid does it's run properly for the other routers, but as soon as I > try to add the router line back (I've checked the line syntax), it's > breaks with the log message above. > > If I try to manually cvs update the router.db, I get: > > -- > rancid at stuff:~/routers_slow$ cvs update router.db > M router.db > --- try just 'cvs update'. '^C' is the indicator of conflict files. > > Is it likely the CVS repository might be broken in some way? If so, is > there a way to get it back into a consistent state? > > Thanks in Advance, > Traiano > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From twelcome at tenet.ac.za Fri Sep 11 09:01:32 2009 From: twelcome at tenet.ac.za (Traiano Welcome) Date: Fri, 11 Sep 2009 11:01:32 +0200 Subject: [rancid] Re: RANCID CVS conflicts during update In-Reply-To: <20090910220331.GF6436@shrubbery.net> References: <4AA8F3B2.3070206@tenet.ac.za> <20090910220331.GF6436@shrubbery.net> Message-ID: <4AAA11EC.5040304@tenet.ac.za> Hi John john heasley wrote: > Thu, Sep 10, 2009 at 02:40:18PM +0200, Traiano Welcome: > >> Hi List >> >> When I add a router to the router.db and do a rancid-run, I get the >> following errors in the logs: >> >> -- >> starting: Thu Sep 10 14:30:43 SAST 2009 >> >> M router.db >> There were CVS conflicts during update. >> >> M router.db >> >> ending: Thu Sep 10 14:30:43 SAST 2009 >> -- >> >> I noticed the problem when I decided to remove the router from rancid.db >> and tried to add it back a few minutes later. Now, if I leave it out, >> rancid does it's run properly for the other routers, but as soon as I >> try to add the router line back (I've checked the line syntax), it's >> breaks with the log message above. >> >> If I try to manually cvs update the router.db, I get: >> >> -- >> rancid at stuff:~/routers_slow$ cvs update router.db >> M router.db >> --- >> > > try just 'cvs update'. '^C' is the indicator of conflict files. > > I get the following output, but it looks like I'm still getting the same log message in the most recent rancid-run: -- % cvs update cvs update: Updating . M router.db ? routers.all ? routers.down ? routers.up cvs update: Updating configs % --- >> Is it likely the CVS repository might be broken in some way? If so, is >> there a way to get it back into a consistent state? >> >> Thanks in Advance, >> Traiano >> _______________________________________________ >> Rancid-discuss mailing list >> Rancid-discuss at shrubbery.net >> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss >> From mylists at battleop.com Tue Sep 15 23:49:27 2009 From: mylists at battleop.com (Richey) Date: Tue, 15 Sep 2009 19:49:27 -0400 Subject: [rancid] CVS does not update Message-ID: <056101ca365f$2a83e380$7f8baa80$@com> My box that runs Rancid and CVS lost power a few weeks ago. After it came backup up it appears that rancid is still running. I still get emails from rancid and I can see rancid login to routers using Wireshark. Whenever I navigate to the CVS page on the server none of the configs are updating. I've looked /var/log/messages and /var/log/syslog and I don't see any clues. Is there some command/process that needs to run so that the CVSWeb is updated? Could someone point me in a direction to get me going again? Thanks, Richey -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090915/a27eb0cb/attachment.html From zukopvd at gmail.com Wed Sep 16 06:56:58 2009 From: zukopvd at gmail.com (Zuko pvd) Date: Wed, 16 Sep 2009 13:56:58 +0700 Subject: [rancid] D-Link support Message-ID: have any on an experience of using rancid to monitor dlink devices? thenks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090916/6de35956/attachment.html From zukopvd at gmail.com Wed Sep 16 07:07:18 2009 From: zukopvd at gmail.com (zukopvd at gmail.com) Date: Wed, 16 Sep 2009 07:07:18 +0000 Subject: [rancid] Modules for D-Link Message-ID: <0015174788aaae88260473ac8cfe@google.com> Would anybody have a Rancid modules for D-Link DES and DGS? Thank you... -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090916/f85c52d6/attachment.html From J.S.Peatfield at damtp.cam.ac.uk Wed Sep 16 17:01:54 2009 From: J.S.Peatfield at damtp.cam.ac.uk (Jon Peatfield) Date: Wed, 16 Sep 2009 18:01:54 +0100 (BST) Subject: [rancid] Cisco commands containing ';'... Message-ID: I may have been expecting too much but I wanted to run: clogin -c 'conf t; boot system flash:bootimage1;flash:bootimage2; exit' a b c to set the boot path on a set of identical switches. Of course clogin splits the command at the ; in the middle of the boot system command so that fails... So I thought I need to use -x and pass a file with the lines but that also fails because it seems that clogin actually joins the lines from the file with ; and then treats is just as if it was a -c option (ie it splits it at all ; again). So is there a way to bypass the split and get a real ; into a command? A glance through the code doesn't suggest anything obvious but I may be missing a trick... -- /--------------------------------------------------------------------\ | "Computers are different from telephones. Computers do not ring." | | -- A. Tanenbaum, "Computer Networks", p. 32 | ---------------------------------------------------------------------| | Jon Peatfield, _Computer_ Officer, DAMTP, University of Cambridge | | Mail: jp107 at damtp.cam.ac.uk Web: http://www.damtp.cam.ac.uk/ | \--------------------------------------------------------------------/ From rwest at zyedge.com Wed Sep 16 17:37:35 2009 From: rwest at zyedge.com (Ryan West) Date: Wed, 16 Sep 2009 13:37:35 -0400 Subject: [rancid] Re: Cisco commands containing ';'... In-Reply-To: References: Message-ID: <6E21B2BDEF6E714EA0B5BA8D5D0E140124C180EAB5@zy-ex1.zyedge.local> Have you tried an escape "\" ? Not sure it would help, but worth a try. -ryan -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Jon Peatfield Sent: Wednesday, September 16, 2009 1:02 PM To: rancid-discuss at shrubbery.net Subject: [rancid] Cisco commands containing ';'... I may have been expecting too much but I wanted to run: clogin -c 'conf t; boot system flash:bootimage1;flash:bootimage2; exit' a b c to set the boot path on a set of identical switches. Of course clogin splits the command at the ; in the middle of the boot system command so that fails... So I thought I need to use -x and pass a file with the lines but that also fails because it seems that clogin actually joins the lines from the file with ; and then treats is just as if it was a -c option (ie it splits it at all ; again). So is there a way to bypass the split and get a real ; into a command? A glance through the code doesn't suggest anything obvious but I may be missing a trick... -- /--------------------------------------------------------------------\ | "Computers are different from telephones. Computers do not ring." | | -- A. Tanenbaum, "Computer Networks", p. 32 | ---------------------------------------------------------------------| | Jon Peatfield, _Computer_ Officer, DAMTP, University of Cambridge | | Mail: jp107 at damtp.cam.ac.uk Web: http://www.damtp.cam.ac.uk/ | \--------------------------------------------------------------------/ _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From heas at shrubbery.net Wed Sep 16 17:53:29 2009 From: heas at shrubbery.net (john heasley) Date: Wed, 16 Sep 2009 17:53:29 +0000 Subject: [rancid] Re: Cisco commands containing ';'... In-Reply-To: <6E21B2BDEF6E714EA0B5BA8D5D0E140124C180EAB5@zy-ex1.zyedge.local> References: <6E21B2BDEF6E714EA0B5BA8D5D0E140124C180EAB5@zy-ex1.zyedge.local> Message-ID: <20090916175329.GC3302@shrubbery.net> Wed, Sep 16, 2009 at 01:37:35PM -0400, Ryan West: > Have you tried an escape "\" ? that will not work. We'd have to add logic to do that. I'd lean toward doing that. one hack option would be to encode it as its ascii value; 59 or 0x3b. But, I dont recall off the top how to do that encoding for tcl's printf (expect's send). > Not sure it would help, but worth a try. > > -ryan > > -----Original Message----- > From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Jon Peatfield > Sent: Wednesday, September 16, 2009 1:02 PM > To: rancid-discuss at shrubbery.net > Subject: [rancid] Cisco commands containing ';'... > > I may have been expecting too much but I wanted to run: > > clogin -c 'conf t; boot system flash:bootimage1;flash:bootimage2; exit' a b c > > to set the boot path on a set of identical switches. Of course clogin > splits the command at the ; in the middle of the boot system command so > that fails... > > So I thought I need to use -x and pass a file with the lines but that also > fails because it seems that clogin actually joins the lines from the file > with ; and then treats is just as if it was a -c option (ie it splits it > at all ; again). > > So is there a way to bypass the split and get a real ; into a command? > > A glance through the code doesn't suggest anything obvious but I may be > missing a trick... > > -- > /--------------------------------------------------------------------\ > | "Computers are different from telephones. Computers do not ring." | > | -- A. Tanenbaum, "Computer Networks", p. 32 | > ---------------------------------------------------------------------| > | Jon Peatfield, _Computer_ Officer, DAMTP, University of Cambridge | > | Mail: jp107 at damtp.cam.ac.uk Web: http://www.damtp.cam.ac.uk/ | > \--------------------------------------------------------------------/ > _______________________________________________ > 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 From J.S.Peatfield at damtp.cam.ac.uk Wed Sep 16 17:57:49 2009 From: J.S.Peatfield at damtp.cam.ac.uk (Jon Peatfield) Date: Wed, 16 Sep 2009 18:57:49 +0100 (BST) Subject: [rancid] Re: Cisco commands containing ';'... In-Reply-To: <20090916175329.GC3302@shrubbery.net> References: <6E21B2BDEF6E714EA0B5BA8D5D0E140124C180EAB5@zy-ex1.zyedge.local> <20090916175329.GC3302@shrubbery.net> Message-ID: On Wed, 16 Sep 2009, john heasley wrote: > Wed, Sep 16, 2009 at 01:37:35PM -0400, Ryan West: >> Have you tried an escape "\" ? > > that will not work. We'd have to add logic to do that. I'd lean toward > doing that. one hack option would be to encode it as its ascii value; > 59 or 0x3b. But, I dont recall off the top how to do that encoding for > tcl's printf (expect's send). It works if I put \073 instead of ; e.g clogin -x filename ... where filename contains: conf t boot system flash:bootimage1\073flash:bootimage2 exit ie putting \073 where I want the ;... Excellent! Many thanks. -- Jon From twelcome at tenet.ac.za Thu Sep 17 08:05:25 2009 From: twelcome at tenet.ac.za (Traiano Welcome) Date: Thu, 17 Sep 2009 10:05:25 +0200 Subject: [rancid] RANCID Log Messages: "sendmail: not found" with no mailed diffs Message-ID: <4AB1EDC5.1070103@tenet.ac.za> Hi List I've been getting the following log messages in my rancid logs recently, along with no emailed diffs (although the cvs updates are happening): --- /usr/lib/rancid/bin/control_rancid: 397: sendmail: not found --- What might the cause of these messages be? As far as I can tell, it looks like control_rancid is not finding any diffs to mail when called, even though running "cvs log " shows the most recent committed changes correctly. Thanks, Traiano From rwest at zyedge.com Thu Sep 17 13:09:29 2009 From: rwest at zyedge.com (Ryan West) Date: Thu, 17 Sep 2009 09:09:29 -0400 Subject: [rancid] Re: RANCID Log Messages: "sendmail: not found" with no mailed diffs In-Reply-To: <4AB1EDC5.1070103@tenet.ac.za> References: <4AB1EDC5.1070103@tenet.ac.za> Message-ID: <6E21B2BDEF6E714EA0B5BA8D5D0E140124C180EB1F@zy-ex1.zyedge.local> Traiano, The software is attempting to send you the diffs, but it seems you've removed sendmail. It might be easiest to just go back into the rancid source directory, check your config.log and see how you ran the configure script and re-run it. Then 'make install' and it should use whatever new program you're using now. -ryan -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Traiano Welcome Sent: Thursday, September 17, 2009 4:05 AM To: rancid-discuss at shrubbery.net Subject: [rancid] RANCID Log Messages: "sendmail: not found" with no mailed diffs Hi List I've been getting the following log messages in my rancid logs recently, along with no emailed diffs (although the cvs updates are happening): --- /usr/lib/rancid/bin/control_rancid: 397: sendmail: not found --- What might the cause of these messages be? As far as I can tell, it looks like control_rancid is not finding any diffs to mail when called, even though running "cvs log " shows the most recent committed changes correctly. Thanks, Traiano _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From twelcome at tenet.ac.za Thu Sep 17 13:30:59 2009 From: twelcome at tenet.ac.za (Traiano Welcome) Date: Thu, 17 Sep 2009 15:30:59 +0200 Subject: [rancid] Re: RANCID Log Messages: "sendmail: not found" with no mailed diffs In-Reply-To: <6E21B2BDEF6E714EA0B5BA8D5D0E140124C180EB1F@zy-ex1.zyedge.local> References: <4AB1EDC5.1070103@tenet.ac.za> <6E21B2BDEF6E714EA0B5BA8D5D0E140124C180EB1F@zy-ex1.zyedge.local> Message-ID: <4AB23A13.1060203@tenet.ac.za> Hi Ryan Ryan West wrote: > Traiano, > > The software is attempting to send you the diffs, but it seems you've removed sendmail. That was also my first suspicion, but I've checked that I can still use sendmail on my server ( "| sendmail -t" as is used in the control_rancid script). Also, I snipped a bit out of control_rancid that actually sends the diff and tested that it sends mail, for example, this bit works if put into a shell script: --- #!/bin/sh ( echo "To: twelcome at tenet.ac.za" echo "Subject: no /usr/lib/rancid/router.db file" echo "Precedence: bulk" echo "" echo "router.db does not exist." ) | sendmail -t --- These are the details of sendmail on my box (it's actually a wrapper around exim4, but it's always been that way): --- root at cyclops:~/analysis/ranci# which sendmail /usr/sbin/sendmail root at cyclops:~/analysis/ranci# file `which sendmail` /usr/sbin/sendmail: symbolic link to `exim4' --- Hmmm, I'm at a loss. Traiano > It might be easiest to just go back into the rancid source directory, check your config.log and see how you ran the configure script and re-run it. Then 'make install' and it should use whatever new program you're using now. > > > -ryan > > -----Original Message----- > From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Traiano Welcome > Sent: Thursday, September 17, 2009 4:05 AM > To: rancid-discuss at shrubbery.net > Subject: [rancid] RANCID Log Messages: "sendmail: not found" with no mailed diffs > > Hi List > > I've been getting the following log messages in my rancid logs recently, > along with no emailed diffs (although the cvs updates are happening): > > --- > /usr/lib/rancid/bin/control_rancid: 397: sendmail: not found > --- > > What might the cause of these messages be? As far as I can tell, it > looks like control_rancid is not finding any diffs to mail when called, > even though running "cvs log " shows the most recent committed > changes correctly. > > Thanks, > Traiano > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > From rwest at zyedge.com Thu Sep 17 13:37:28 2009 From: rwest at zyedge.com (Ryan West) Date: Thu, 17 Sep 2009 09:37:28 -0400 Subject: [rancid] Re: RANCID Log Messages: "sendmail: not found" with no mailed diffs In-Reply-To: <4AB23A13.1060203@tenet.ac.za> References: <4AB1EDC5.1070103@tenet.ac.za> <6E21B2BDEF6E714EA0B5BA8D5D0E140124C180EB1F@zy-ex1.zyedge.local> <4AB23A13.1060203@tenet.ac.za> Message-ID: <6E21B2BDEF6E714EA0B5BA8D5D0E140124C180EB27@zy-ex1.zyedge.local> Can you check your config.log and compare to your which for sendmail, sounds like they might not match up. -ryan -----Original Message----- From: Traiano Welcome [mailto:twelcome at tenet.ac.za] Sent: Thursday, September 17, 2009 9:31 AM To: Ryan West Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] RANCID Log Messages: "sendmail: not found" with no mailed diffs Hi Ryan Ryan West wrote: > Traiano, > > The software is attempting to send you the diffs, but it seems you've removed sendmail. That was also my first suspicion, but I've checked that I can still use sendmail on my server ( "| sendmail -t" as is used in the control_rancid script). Also, I snipped a bit out of control_rancid that actually sends the diff and tested that it sends mail, for example, this bit works if put into a shell script: --- #!/bin/sh ( echo "To: twelcome at tenet.ac.za" echo "Subject: no /usr/lib/rancid/router.db file" echo "Precedence: bulk" echo "" echo "router.db does not exist." ) | sendmail -t --- These are the details of sendmail on my box (it's actually a wrapper around exim4, but it's always been that way): --- root at cyclops:~/analysis/ranci# which sendmail /usr/sbin/sendmail root at cyclops:~/analysis/ranci# file `which sendmail` /usr/sbin/sendmail: symbolic link to `exim4' --- Hmmm, I'm at a loss. Traiano > It might be easiest to just go back into the rancid source directory, check your config.log and see how you ran the configure script and re-run it. Then 'make install' and it should use whatever new program you're using now. > > > -ryan > > -----Original Message----- > From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Traiano Welcome > Sent: Thursday, September 17, 2009 4:05 AM > To: rancid-discuss at shrubbery.net > Subject: [rancid] RANCID Log Messages: "sendmail: not found" with no mailed diffs > > Hi List > > I've been getting the following log messages in my rancid logs recently, > along with no emailed diffs (although the cvs updates are happening): > > --- > /usr/lib/rancid/bin/control_rancid: 397: sendmail: not found > --- > > What might the cause of these messages be? As far as I can tell, it > looks like control_rancid is not finding any diffs to mail when called, > even though running "cvs log " shows the most recent committed > changes correctly. > > Thanks, > Traiano > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > From ron.whitney at doitbest.com Thu Sep 17 14:10:32 2009 From: ron.whitney at doitbest.com (Ron Whitney) Date: Thu, 17 Sep 2009 10:10:32 -0400 Subject: [rancid] Re: RANCID Log Messages: "sendmail: not found" with no mailed diffs In-Reply-To: <4AB23A13.1060203@tenet.ac.za> Message-ID: <1FD6BFAE6EA54341821D01FB8E617B6501E4AE53@EXCHANGE1.ntserv.doitbestcorp.com> > That was also my first suspicion, but I've checked that I can > still use sendmail on my server ( "| sendmail -t" as is used in the > control_rancid script). Can you still use sendmail when logged in as the rancid user? IOW, could this be a path/permissions issue? Just a thought. From twelcome at tenet.ac.za Thu Sep 17 14:24:08 2009 From: twelcome at tenet.ac.za (Traiano Welcome) Date: Thu, 17 Sep 2009 16:24:08 +0200 Subject: [rancid] Re: RANCID Log Messages: "sendmail: not found" with no mailed diffs In-Reply-To: <6E21B2BDEF6E714EA0B5BA8D5D0E140124C180EB27@zy-ex1.zyedge.local> References: <4AB1EDC5.1070103@tenet.ac.za> <6E21B2BDEF6E714EA0B5BA8D5D0E140124C180EB1F@zy-ex1.zyedge.local> <4AB23A13.1060203@tenet.ac.za> <6E21B2BDEF6E714EA0B5BA8D5D0E140124C180EB27@zy-ex1.zyedge.local> Message-ID: <4AB24688.40904@tenet.ac.za> I'm using Ubuntu based on lenn/sid, so this was installed using the debian package management system - it doesn't look like a config.log was kept ... Is there a way to check this on debian like systems? Ryan West wrote: > Can you check your config.log and compare to your which for sendmail, sounds like they might not match up. > > -ryan > > -----Original Message----- > From: Traiano Welcome [mailto:twelcome at tenet.ac.za] > Sent: Thursday, September 17, 2009 9:31 AM > To: Ryan West > Cc: rancid-discuss at shrubbery.net > Subject: Re: [rancid] RANCID Log Messages: "sendmail: not found" with no mailed diffs > > Hi Ryan > > > Ryan West wrote: > >> Traiano, >> >> The software is attempting to send you the diffs, but it seems you've removed sendmail. >> > > That was also my first suspicion, but I've checked that I can still use > sendmail on my server ( "| sendmail -t" as is used in the control_rancid > script). Also, I snipped a bit out of control_rancid that actually sends > the diff and tested that it sends mail, for example, this bit works if > put into a shell script: > > --- > #!/bin/sh > ( echo "To: twelcome at tenet.ac.za" > echo "Subject: no /usr/lib/rancid/router.db file" > echo "Precedence: bulk" > echo "" > echo "router.db does not exist." > ) | sendmail -t > --- > > These are the details of sendmail on my box (it's actually a wrapper > around exim4, but it's always been that way): > > --- > > root at cyclops:~/analysis/ranci# which sendmail > /usr/sbin/sendmail > > root at cyclops:~/analysis/ranci# file `which sendmail` > /usr/sbin/sendmail: symbolic link to `exim4' > > --- > > Hmmm, I'm at a loss. > > Traiano > > >> It might be easiest to just go back into the rancid source directory, check your config.log and see how you ran the configure script and re-run it. Then 'make install' and it should use whatever new program you're using now. >> >> >> -ryan >> >> -----Original Message----- >> From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Traiano Welcome >> Sent: Thursday, September 17, 2009 4:05 AM >> To: rancid-discuss at shrubbery.net >> Subject: [rancid] RANCID Log Messages: "sendmail: not found" with no mailed diffs >> >> Hi List >> >> I've been getting the following log messages in my rancid logs recently, >> along with no emailed diffs (although the cvs updates are happening): >> >> --- >> /usr/lib/rancid/bin/control_rancid: 397: sendmail: not found >> --- >> >> What might the cause of these messages be? As far as I can tell, it >> looks like control_rancid is not finding any diffs to mail when called, >> even though running "cvs log " shows the most recent committed >> changes correctly. >> >> Thanks, >> Traiano >> _______________________________________________ >> Rancid-discuss mailing list >> Rancid-discuss at shrubbery.net >> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss >> >> > > From twelcome at tenet.ac.za Thu Sep 17 14:27:52 2009 From: twelcome at tenet.ac.za (Traiano Welcome) Date: Thu, 17 Sep 2009 16:27:52 +0200 Subject: [rancid] Re: RANCID Log Messages: "sendmail: not found" with no mailed diffs In-Reply-To: <1FD6BFAE6EA54341821D01FB8E617B6501E4AE53@EXCHANGE1.ntserv.doitbestcorp.com> References: <1FD6BFAE6EA54341821D01FB8E617B6501E4AE53@EXCHANGE1.ntserv.doitbestcorp.com> Message-ID: <4AB24768.7000509@tenet.ac.za> Hi Ron Ron Whitney wrote: >> That was also my first suspicion, but I've checked that I can >> still use sendmail on my server ( "| sendmail -t" as is used in the >> control_rancid script). >> > > Can you still use sendmail when logged in as the rancid user? IOW, > could this be a path/permissions issue? Just a thought. > I've tested this bit as well, it doesn't look like a paths/permissions issue. When I su to rancid and test using my script, I get a mail. Here's the output of the sendmail wrapper when called by the rancid user: --- % id uid=1007(rancid) gid=1007(rancid) groups=1007(rancid) % which sendmail /usr/sbin/sendmail % sendmail Exim is a Mail Transfer Agent. It is normally called by Mail User Agents, not directly from a shell command line. Options and/or arguments control what it does when called. For a list of options, see the Exim documentation. % pwd /var/lib/rancid % --- From jethro.binks at strath.ac.uk Thu Sep 17 14:32:12 2009 From: jethro.binks at strath.ac.uk (Jethro R Binks) Date: Thu, 17 Sep 2009 15:32:12 +0100 (BST) Subject: [rancid] Re: RANCID Log Messages: "sendmail: not found" with no mailed diffs In-Reply-To: <4AB24688.40904@tenet.ac.za> References: <4AB1EDC5.1070103@tenet.ac.za> <6E21B2BDEF6E714EA0B5BA8D5D0E140124C180EB1F@zy-ex1.zyedge.local> <4AB23A13.1060203@tenet.ac.za> <6E21B2BDEF6E714EA0B5BA8D5D0E140124C180EB27@zy-ex1.zyedge.local> <4AB24688.40904@tenet.ac.za> Message-ID: On Thu, 17 Sep 2009, Traiano Welcome wrote: > I'm using Ubuntu based on lenn/sid, so this was installed using the > debian package management system - it doesn't look like a config.log was > kept ... Is there a way to check this on debian like systems? Check that the PATH you have in rancid.conf contains sendmail, which is sourced by rancid-run and hence inherit by control_rancid. Jethro. > > > > Ryan West wrote: > > Can you check your config.log and compare to your which for sendmail, sounds like they might not match up. > > > > -ryan > > > > -----Original Message----- > > From: Traiano Welcome [mailto:twelcome at tenet.ac.za] > > Sent: Thursday, September 17, 2009 9:31 AM > > To: Ryan West > > Cc: rancid-discuss at shrubbery.net > > Subject: Re: [rancid] RANCID Log Messages: "sendmail: not found" with no mailed diffs > > > > Hi Ryan > > > > > > Ryan West wrote: > > > >> Traiano, > >> > >> The software is attempting to send you the diffs, but it seems you've removed sendmail. > >> > > > > That was also my first suspicion, but I've checked that I can still use > > sendmail on my server ( "| sendmail -t" as is used in the control_rancid > > script). Also, I snipped a bit out of control_rancid that actually sends > > the diff and tested that it sends mail, for example, this bit works if > > put into a shell script: > > > > --- > > #!/bin/sh > > ( echo "To: twelcome at tenet.ac.za" > > echo "Subject: no /usr/lib/rancid/router.db file" > > echo "Precedence: bulk" > > echo "" > > echo "router.db does not exist." > > ) | sendmail -t > > --- > > > > These are the details of sendmail on my box (it's actually a wrapper > > around exim4, but it's always been that way): > > > > --- > > > > root at cyclops:~/analysis/ranci# which sendmail > > /usr/sbin/sendmail > > > > root at cyclops:~/analysis/ranci# file `which sendmail` > > /usr/sbin/sendmail: symbolic link to `exim4' > > > > --- > > > > Hmmm, I'm at a loss. > > > > Traiano > > > > > >> It might be easiest to just go back into the rancid source directory, check your config.log and see how you ran the configure script and re-run it. Then 'make install' and it should use whatever new program you're using now. > >> > >> > >> -ryan > >> > >> -----Original Message----- > >> From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Traiano Welcome > >> Sent: Thursday, September 17, 2009 4:05 AM > >> To: rancid-discuss at shrubbery.net > >> Subject: [rancid] RANCID Log Messages: "sendmail: not found" with no mailed diffs > >> > >> Hi List > >> > >> I've been getting the following log messages in my rancid logs recently, > >> along with no emailed diffs (although the cvs updates are happening): > >> > >> --- > >> /usr/lib/rancid/bin/control_rancid: 397: sendmail: not found > >> --- > >> > >> What might the cause of these messages be? As far as I can tell, it > >> looks like control_rancid is not finding any diffs to mail when called, > >> even though running "cvs log " shows the most recent committed > >> changes correctly. > >> > >> Thanks, > >> Traiano > >> _______________________________________________ > >> 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 > . . . . . . . . . . . . . . . . . . . . . . . . . Jethro R Binks Computing Officer, IT Services, University Of Strathclyde, Glasgow, UK From twelcome at tenet.ac.za Thu Sep 17 14:46:27 2009 From: twelcome at tenet.ac.za (Traiano Welcome) Date: Thu, 17 Sep 2009 16:46:27 +0200 Subject: [rancid] Re: RANCID Log Messages: "sendmail: not found" with no mailed diffs In-Reply-To: References: <4AB1EDC5.1070103@tenet.ac.za> <6E21B2BDEF6E714EA0B5BA8D5D0E140124C180EB1F@zy-ex1.zyedge.local> <4AB23A13.1060203@tenet.ac.za> <6E21B2BDEF6E714EA0B5BA8D5D0E140124C180EB27@zy-ex1.zyedge.local> <4AB24688.40904@tenet.ac.za> Message-ID: <4AB24BC3.9070405@tenet.ac.za> Hi Jethro Jethro R Binks wrote: > On Thu, 17 Sep 2009, Traiano Welcome wrote: > > >> I'm using Ubuntu based on lenn/sid, so this was installed using the >> debian package management system - it doesn't look like a config.log was >> kept ... Is there a way to check this on debian like systems? >> > > Check that the PATH you have in rancid.conf contains sendmail, which is > sourced by rancid-run and hence inherit by control_rancid. > > Jethro. > > This is what's in rancid.conf --- % grep PATH /etc/rancid/rancid.conf PATH=/usr/lib/rancid/bin:/usr/bin:/bin:/usr/local/bin; export PATH --- It looks like the path to sendmail is in the shell environment as well: --- % env | grep PATH PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games --- > >> >> Ryan West wrote: >> >>> Can you check your config.log and compare to your which for sendmail, sounds like they might not match up. >>> >>> -ryan >>> >>> -----Original Message----- >>> From: Traiano Welcome [mailto:twelcome at tenet.ac.za] >>> Sent: Thursday, September 17, 2009 9:31 AM >>> To: Ryan West >>> Cc: rancid-discuss at shrubbery.net >>> Subject: Re: [rancid] RANCID Log Messages: "sendmail: not found" with no mailed diffs >>> >>> Hi Ryan >>> >>> >>> Ryan West wrote: >>> >>> >>>> Traiano, >>>> >>>> The software is attempting to send you the diffs, but it seems you've removed sendmail. >>>> >>>> >>> That was also my first suspicion, but I've checked that I can still use >>> sendmail on my server ( "| sendmail -t" as is used in the control_rancid >>> script). Also, I snipped a bit out of control_rancid that actually sends >>> the diff and tested that it sends mail, for example, this bit works if >>> put into a shell script: >>> >>> --- >>> #!/bin/sh >>> ( echo "To: twelcome at tenet.ac.za" >>> echo "Subject: no /usr/lib/rancid/router.db file" >>> echo "Precedence: bulk" >>> echo "" >>> echo "router.db does not exist." >>> ) | sendmail -t >>> --- >>> >>> These are the details of sendmail on my box (it's actually a wrapper >>> around exim4, but it's always been that way): >>> >>> --- >>> >>> root at cyclops:~/analysis/ranci# which sendmail >>> /usr/sbin/sendmail >>> >>> root at cyclops:~/analysis/ranci# file `which sendmail` >>> /usr/sbin/sendmail: symbolic link to `exim4' >>> >>> --- >>> >>> Hmmm, I'm at a loss. >>> >>> Traiano >>> >>> >>> >>>> It might be easiest to just go back into the rancid source directory, check your config.log and see how you ran the configure script and re-run it. Then 'make install' and it should use whatever new program you're using now. >>>> >>>> >>>> -ryan >>>> >>>> -----Original Message----- >>>> From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Traiano Welcome >>>> Sent: Thursday, September 17, 2009 4:05 AM >>>> To: rancid-discuss at shrubbery.net >>>> Subject: [rancid] RANCID Log Messages: "sendmail: not found" with no mailed diffs >>>> >>>> Hi List >>>> >>>> I've been getting the following log messages in my rancid logs recently, >>>> along with no emailed diffs (although the cvs updates are happening): >>>> >>>> --- >>>> /usr/lib/rancid/bin/control_rancid: 397: sendmail: not found >>>> --- >>>> >>>> What might the cause of these messages be? As far as I can tell, it >>>> looks like control_rancid is not finding any diffs to mail when called, >>>> even though running "cvs log " shows the most recent committed >>>> changes correctly. >>>> >>>> Thanks, >>>> Traiano >>>> _______________________________________________ >>>> 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 >> >> > > . . . . . . . . . . . . . . . . . . . . . . . . . > Jethro R Binks > Computing Officer, IT Services, University Of Strathclyde, Glasgow, UK > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > From ron.whitney at doitbest.com Thu Sep 17 14:57:56 2009 From: ron.whitney at doitbest.com (Ron Whitney) Date: Thu, 17 Sep 2009 10:57:56 -0400 Subject: [rancid] Re: RANCID Log Messages: "sendmail: not found" with no mailed diffs In-Reply-To: <4AB24BC3.9070405@tenet.ac.za> Message-ID: <1FD6BFAE6EA54341821D01FB8E617B6501E4AE54@EXCHANGE1.ntserv.doitbestcorp.com> > PATH=/usr/lib/rancid/bin:/usr/bin:/bin:/usr/local/bin; export PATH >From your earlier post, I thought your sendmail was in /usr/sbin. If true, add /usr/sbin to the PATH. (It's in mine, for whatever that's worth.) From jethro.binks at strath.ac.uk Thu Sep 17 15:05:40 2009 From: jethro.binks at strath.ac.uk (Jethro R Binks) Date: Thu, 17 Sep 2009 16:05:40 +0100 (BST) Subject: [rancid] Re: RANCID Log Messages: "sendmail: not found" with no mailed diffs In-Reply-To: <4AB24BC3.9070405@tenet.ac.za> References: <4AB1EDC5.1070103@tenet.ac.za> <6E21B2BDEF6E714EA0B5BA8D5D0E140124C180EB1F@zy-ex1.zyedge.local> <4AB23A13.1060203@tenet.ac.za> <6E21B2BDEF6E714EA0B5BA8D5D0E140124C180EB27@zy-ex1.zyedge.local> <4AB24688.40904@tenet.ac.za> <4AB24BC3.9070405@tenet.ac.za> Message-ID: On Thu, 17 Sep 2009, Traiano Welcome wrote: > This is what's in rancid.conf > > --- > % grep PATH /etc/rancid/rancid.conf > PATH=/usr/lib/rancid/bin:/usr/bin:/bin:/usr/local/bin; export PATH > --- > > It looks like the path to sendmail is in the shell environment as well: > > --- > % env | grep PATH > PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games And: > When I su to rancid and test using my script, I get a mail. So it's a classic case of a cron job having a different environment to the shell. > /usr/sbin/sendmail: symbolic link to `exim4' You need to add "/usr/sbin" to the path in rancid.conf. Jethro. > --- > > > > > > > > > > Ryan West wrote: > > > > > > > Can you check your config.log and compare to your which for sendmail, > > > > sounds like they might not match up. > > > > > > > > -ryan > > > > > > > > -----Original Message----- > > > > From: Traiano Welcome [mailto:twelcome at tenet.ac.za] Sent: Thursday, > > > > September 17, 2009 9:31 AM > > > > To: Ryan West > > > > Cc: rancid-discuss at shrubbery.net > > > > Subject: Re: [rancid] RANCID Log Messages: "sendmail: not found" with no > > > > mailed diffs > > > > > > > > Hi Ryan > > > > > > > > > > > > Ryan West wrote: > > > > > > > > > Traiano, > > > > > > > > > > The software is attempting to send you the diffs, but it seems you've > > > > > removed sendmail. > > > > That was also my first suspicion, but I've checked that I can still use > > > > sendmail on my server ( "| sendmail -t" as is used in the control_rancid > > > > script). Also, I snipped a bit out of control_rancid that actually sends > > > > the diff and tested that it sends mail, for example, this bit works if > > > > put into a shell script: > > > > > > > > --- > > > > #!/bin/sh > > > > ( echo "To: twelcome at tenet.ac.za" > > > > echo "Subject: no /usr/lib/rancid/router.db file" > > > > echo "Precedence: bulk" > > > > echo "" > > > > echo "router.db does not exist." > > > > ) | sendmail -t > > > > --- > > > > > > > > These are the details of sendmail on my box (it's actually a wrapper > > > > around exim4, but it's always been that way): > > > > > > > > --- > > > > > > > > root at cyclops:~/analysis/ranci# which sendmail > > > > /usr/sbin/sendmail > > > > > > > > root at cyclops:~/analysis/ranci# file `which sendmail` > > > > /usr/sbin/sendmail: symbolic link to `exim4' > > > > > > > > --- > > > > > > > > Hmmm, I'm at a loss. > > > > > > > > Traiano > > > > > > > > > > > > > It might be easiest to just go back into the rancid source directory, > > > > > check your config.log and see how you ran the configure script and > > > > > re-run it. Then 'make install' and it should use whatever new program > > > > > you're using now. > > > > > > > > > > > > > > > -ryan > > > > > > > > > > -----Original Message----- > > > > > From: rancid-discuss-bounces at shrubbery.net > > > > > [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Traiano > > > > > Welcome > > > > > Sent: Thursday, September 17, 2009 4:05 AM > > > > > To: rancid-discuss at shrubbery.net > > > > > Subject: [rancid] RANCID Log Messages: "sendmail: not found" with no > > > > > mailed diffs > > > > > > > > > > Hi List > > > > > > > > > > I've been getting the following log messages in my rancid logs > > > > > recently, along with no emailed diffs (although the cvs updates are > > > > > happening): > > > > > > > > > > --- > > > > > /usr/lib/rancid/bin/control_rancid: 397: sendmail: not found > > > > > --- > > > > > > > > > > What might the cause of these messages be? As far as I can tell, it > > > > > looks like control_rancid is not finding any diffs to mail when > > > > > called, even though running "cvs log " shows the most recent > > > > > committed changes correctly. > > > > > > > > > > Thanks, > > > > > Traiano > > > > > _______________________________________________ > > > > > 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 > > > > > > > > > > . . . . . . . . . . . . . . . . . . . . . . . . . > > Jethro R Binks > > Computing Officer, IT Services, University Of Strathclyde, Glasgow, UK > > _______________________________________________ > > Rancid-discuss mailing list > > Rancid-discuss at shrubbery.net > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > > . . . . . . . . . . . . . . . . . . . . . . . . . Jethro R Binks Computing Officer, IT Services, University Of Strathclyde, Glasgow, UK From twelcome at tenet.ac.za Fri Sep 18 09:12:42 2009 From: twelcome at tenet.ac.za (Traiano Welcome) Date: Fri, 18 Sep 2009 11:12:42 +0200 Subject: [rancid] Re: RANCID Log Messages: "sendmail: not found" with no mailed diffs In-Reply-To: References: <4AB1EDC5.1070103@tenet.ac.za> <6E21B2BDEF6E714EA0B5BA8D5D0E140124C180EB1F@zy-ex1.zyedge.local> <4AB23A13.1060203@tenet.ac.za> <6E21B2BDEF6E714EA0B5BA8D5D0E140124C180EB27@zy-ex1.zyedge.local> <4AB24688.40904@tenet.ac.za> <4AB24BC3.9070405@tenet.ac.za> Message-ID: <4AB34F0A.8030803@tenet.ac.za> Jethro R Binks wrote: > On Thu, 17 Sep 2009, Traiano Welcome wrote: > > >> This is what's in rancid.conf >> >> --- >> % grep PATH /etc/rancid/rancid.conf >> PATH=/usr/lib/rancid/bin:/usr/bin:/bin:/usr/local/bin; export PATH >> --- >> >> It looks like the path to sendmail is in the shell environment as well: >> >> --- >> % env | grep PATH >> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games >> > > And: > > >> When I su to rancid and test using my script, I get a mail. >> > > So it's a classic case of a cron job having a different environment to the > shell. > > *ahem* :-) Yes. Thanks, time to institute change control ... >> /usr/sbin/sendmail: symbolic link to `exim4' >> > > You need to add "/usr/sbin" to the path in rancid.conf. > > Jethro. > > > >> --- >> >> >> >>> >>> >>>> Ryan West wrote: >>>> >>>> >>>>> Can you check your config.log and compare to your which for sendmail, >>>>> sounds like they might not match up. >>>>> >>>>> -ryan >>>>> >>>>> -----Original Message----- >>>>> From: Traiano Welcome [mailto:twelcome at tenet.ac.za] Sent: Thursday, >>>>> September 17, 2009 9:31 AM >>>>> To: Ryan West >>>>> Cc: rancid-discuss at shrubbery.net >>>>> Subject: Re: [rancid] RANCID Log Messages: "sendmail: not found" with no >>>>> mailed diffs >>>>> >>>>> Hi Ryan >>>>> >>>>> >>>>> Ryan West wrote: >>>>> >>>>> >>>>>> Traiano, >>>>>> >>>>>> The software is attempting to send you the diffs, but it seems you've >>>>>> removed sendmail. >>>>>> >>>>> That was also my first suspicion, but I've checked that I can still use >>>>> sendmail on my server ( "| sendmail -t" as is used in the control_rancid >>>>> script). Also, I snipped a bit out of control_rancid that actually sends >>>>> the diff and tested that it sends mail, for example, this bit works if >>>>> put into a shell script: >>>>> >>>>> --- >>>>> #!/bin/sh >>>>> ( echo "To: twelcome at tenet.ac.za" >>>>> echo "Subject: no /usr/lib/rancid/router.db file" >>>>> echo "Precedence: bulk" >>>>> echo "" >>>>> echo "router.db does not exist." >>>>> ) | sendmail -t >>>>> --- >>>>> >>>>> These are the details of sendmail on my box (it's actually a wrapper >>>>> around exim4, but it's always been that way): >>>>> >>>>> --- >>>>> >>>>> root at cyclops:~/analysis/ranci# which sendmail >>>>> /usr/sbin/sendmail >>>>> >>>>> root at cyclops:~/analysis/ranci# file `which sendmail` >>>>> /usr/sbin/sendmail: symbolic link to `exim4' >>>>> >>>>> --- >>>>> >>>>> Hmmm, I'm at a loss. >>>>> >>>>> Traiano >>>>> >>>>> >>>>> >>>>>> It might be easiest to just go back into the rancid source directory, >>>>>> check your config.log and see how you ran the configure script and >>>>>> re-run it. Then 'make install' and it should use whatever new program >>>>>> you're using now. >>>>>> >>>>>> >>>>>> -ryan >>>>>> >>>>>> -----Original Message----- >>>>>> From: rancid-discuss-bounces at shrubbery.net >>>>>> [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Traiano >>>>>> Welcome >>>>>> Sent: Thursday, September 17, 2009 4:05 AM >>>>>> To: rancid-discuss at shrubbery.net >>>>>> Subject: [rancid] RANCID Log Messages: "sendmail: not found" with no >>>>>> mailed diffs >>>>>> >>>>>> Hi List >>>>>> >>>>>> I've been getting the following log messages in my rancid logs >>>>>> recently, along with no emailed diffs (although the cvs updates are >>>>>> happening): >>>>>> >>>>>> --- >>>>>> /usr/lib/rancid/bin/control_rancid: 397: sendmail: not found >>>>>> --- >>>>>> >>>>>> What might the cause of these messages be? As far as I can tell, it >>>>>> looks like control_rancid is not finding any diffs to mail when >>>>>> called, even though running "cvs log " shows the most recent >>>>>> committed changes correctly. >>>>>> >>>>>> Thanks, >>>>>> Traiano >>>>>> _______________________________________________ >>>>>> 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 >>>> >>>> >>>> >>> . . . . . . . . . . . . . . . . . . . . . . . . . >>> Jethro R Binks >>> Computing Officer, IT Services, University Of Strathclyde, Glasgow, UK >>> _______________________________________________ >>> Rancid-discuss mailing list >>> Rancid-discuss at shrubbery.net >>> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss >>> >>> >> > > . . . . . . . . . . . . . . . . . . . . . . . . . > Jethro R Binks > Computing Officer, IT Services, University Of Strathclyde, Glasgow, UK > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > From GGustave at astoriafederal.com Mon Sep 21 16:22:49 2009 From: GGustave at astoriafederal.com (Gustave, Godfrey) Date: Mon, 21 Sep 2009 09:22:49 -0700 Subject: [rancid] Question Message-ID: <533355D213992D4EAD0DEBFA4B4FAFDA03A9DE17B9@SHQ-EXCMS-01.asfc.com> Hi, Can you reply to this e-mail showing how to have rancid send a "customized" message to the user in (/etc/aliases). This product is wonderful (thus far) and was configured properly we just need that customized setup to only product a message stating that the task completed (not the detail config). Thanks. Godfrey Gustave Analyst Security Systems Technologist Astoria Federal Savings One Astoria Federal Plaza Lake Success, NY 11042-1085 Phone: (516) 327-3000 Fax: (516) 684-4148 E-Mail: ggustave at astoriafederal.com ************************************************************************************************** This e-mail and any attachments that accompany it are confidential and may be legally privileged. It is intended solely for the use of the individual(s) to whom it was intended to be addressed. Access to this e-mail by anyone else is unauthorized. If you are not the intended recipient, please immediately return the e-mail to the sender and delete the original and any copy from your computer. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to its intended recipient, you are herewith notified that any dissemination, distribution, copying or retention of this communication or the information contained herein is strictly prohibited. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090921/5b8a21dd/attachment.html From mhaney at ercbroadband.org Mon Sep 21 18:50:16 2009 From: mhaney at ercbroadband.org (Mark Haney) Date: Mon, 21 Sep 2009 14:50:16 -0400 Subject: [rancid] Looking for docs setting up non-standard devices Message-ID: <4AB7CAE8.5040000@ercbroadband.org> I've got a handful of devices that don't have plugins built in RANCID for backing up configs. I'd like to find a good HOWTO or FAQ or something on how to build plugins to support the devices. Does anybody have any links/docs to send me in the right direction? -- Non curo. Si metrum non habet, non est poema. Mark Haney Sr. Systems Administrator ERC Broadband (828) 350-2415 From diego.ercolani at ssis.sm Tue Sep 22 10:29:02 2009 From: diego.ercolani at ssis.sm (Diego Ercolani) Date: Tue, 22 Sep 2009 12:29:02 +0200 Subject: [rancid] user wich is running rancid-run [suggestion] Message-ID: <200909221229.02689.diego.ercolani@ssis.sm> I would like to suggest developer to make a little check in script invoking rancid tools that are going to modify filesystem: rancid-run, rancid-cvs The issue: ========== In my installation as (i think) the others, rancid is the user which normally invoke these tools. For an error I invoked rancid-run as root and what I obtained was that the repository was modified in such a manner that: 1. all the router configuration has been deleted as svn didn't find directory under the root homepage 2. I had to change the owner of every file back to rancid, re-invoke rancid- run as user and then all have been reinitialized. The Solution: ============= Can be only a little prehamble in rancid-run and rancid-cvs scripts that verify the user which is running scripts: example: >>>>>>>>>>>>>CUT>>>>>>> CORRECT_USER="rancid" if [ "$USER" != "$CORRECT_USER" ]; then echo "User $USER is not allowed to run $0!" >&2 echo "Please invoke $0 as user $CORRECT_USER" >&2 fi <<<<<<< References: <200909221229.02689.diego.ercolani@ssis.sm> Message-ID: <20090922145928.GB8353@shrubbery.net> Tue, Sep 22, 2009 at 12:29:02PM +0200, Diego Ercolani: > I would like to suggest developer to make a little check in script invoking > rancid tools that are going to modify filesystem: rancid-run, rancid-cvs > > The issue: > ========== > In my installation as (i think) the others, rancid is the user which normally > invoke these tools. > For an error I invoked rancid-run as root and what I obtained was that the > repository was modified in such a manner that: > 1. all the router configuration has been deleted as svn didn't find directory > under the root homepage > 2. I had to change the owner of every file back to rancid, re-invoke rancid- > run as user and then all have been reinitialized. > > > The Solution: > ============= > Can be only a little prehamble in rancid-run and rancid-cvs scripts that > verify the user which is running scripts: > example: > >>>>>>>>>>>>>CUT>>>>>>> > CORRECT_USER="rancid" > if [ "$USER" != "$CORRECT_USER" ]; then > echo "User $USER is not allowed to run $0!" >&2 > echo "Please invoke $0 as user $CORRECT_USER" >&2 > fi > <<<<<<< this could be a little modification that should save some headache... > Thank you > Diego From diego.ercolani at ssis.sm Wed Sep 23 07:20:03 2009 From: diego.ercolani at ssis.sm (Diego Ercolani) Date: Wed, 23 Sep 2009 09:20:03 +0200 Subject: [rancid] Re: user wich is running rancid-run [suggestion] In-Reply-To: <20090922145928.GB8353@shrubbery.net> References: <200909221229.02689.diego.ercolani@ssis.sm> <20090922145928.GB8353@shrubbery.net> Message-ID: <200909230920.03128.diego.ercolani@ssis.sm> In data marted? 22 settembre 2009 16:59:29, hai scritto: > Tue, Sep 22, 2009 at 12:29:02PM +0200, Diego Ercolani: > > > > The Solution: > > ============= > > Can be only a little prehamble in rancid-run and rancid-cvs scripts that > > verify the user which is running scripts: > > > > example: > > >>>>>>>>>>>>>CUT>>>>>>> > > > > CORRECT_USER="rancid" > > if [ "$USER" != "$CORRECT_USER" ]; then > > echo "User $USER is not allowed to run $0!" >&2 > > echo "Please invoke $0 as user $CORRECT_USER" >&2 exit -1 > > fi > > <<<<<<< > thanks, but that may not be username other choose and it is entirely > reasonable that any user on a system might like to run their own > repository. > Yes, but rancid-run (without parameters) search for the configuration file in /etc/rancid.conf so is system wide. We should try to evitate that a careless user (like me in the example :-) ) with filesystem rights (of course) dirts the repository. So maybe we could make some sofisticated control that enable invoking of frontends with a generic user, only if we have correctly defined configurations.... From ron.whitney at doitbest.com Wed Sep 23 13:03:28 2009 From: ron.whitney at doitbest.com (Ron Whitney) Date: Wed, 23 Sep 2009 09:03:28 -0400 Subject: [rancid] Re: user wich is running rancid-run [suggestion] In-Reply-To: <200909230920.03128.diego.ercolani@ssis.sm> Message-ID: <1FD6BFAE6EA54341821D01FB8E617B6501E4AE8E@EXCHANGE1.ntserv.doitbestcorp.com> > We should try to evitate that a careless > user (like me in the example :-) ) with filesystem rights (of > course) dirts the repository. While I understand your concerns, the system admin in me says that it is better to properly secure the repository rather than the application. If your user-id shouldn't be writing to the repository, it shouldn't have write access. For those occasions where you need to, the sudo command should be used (with care). Ron From diego.ercolani at ssis.sm Wed Sep 23 15:42:09 2009 From: diego.ercolani at ssis.sm (Diego Ercolani) Date: Wed, 23 Sep 2009 17:42:09 +0200 Subject: [rancid] Re: user wich is running rancid-run [suggestion] In-Reply-To: <1FD6BFAE6EA54341821D01FB8E617B6501E4AE8E@EXCHANGE1.ntserv.doitbestcorp.com> References: <1FD6BFAE6EA54341821D01FB8E617B6501E4AE8E@EXCHANGE1.ntserv.doitbestcorp.com> Message-ID: <200909231742.09167.diego.ercolani@ssis.sm> In data mercoled? 23 settembre 2009 15:03:28, Ron Whitney ha scritto: : > > We should try to evitate that a careless > > user (like me in the example :-) ) with filesystem rights (of > > course) dirts the repository. > > While I understand your concerns, the system admin in me says that it is > better to properly secure the repository rather than the application. > If your user-id shouldn't be writing to the repository, it shouldn't > have write access. For those occasions where you need to, the sudo > command should be used (with care). You are almost right.... system admin have to know what is going to do, in an ideal world.... now sysadm often is the one who click next... in a wizard whithout even reading the GUI messages :-(((( [No flames please] From max_allan at hotmail.com Wed Sep 23 20:39:48 2009 From: max_allan at hotmail.com (Max Allan) Date: Wed, 23 Sep 2009 20:39:48 +0000 Subject: [rancid] Re: user wich is running rancid-run [suggestion] In-Reply-To: <200909231742.09167.diego.ercolani@ssis.sm> References: <1FD6BFAE6EA54341821D01FB8E617B6501E4AE8E@EXCHANGE1.ntserv.doitbestcorp.com> <200909231742.09167.diego.ercolani@ssis.sm> Message-ID: > From: diego.ercolani at ssis.sm > To: rancid-discuss at shrubbery.net > Date: Wed, 23 Sep 2009 17:42:09 +0200 > Subject: [rancid] Re: user wich is running rancid-run [suggestion] >> While I understand your concerns, the system admin in me says that it is >> better to properly secure the repository rather than the application. >> If your user-id shouldn't be writing to the repository, it shouldn't >> have write access. For those occasions where you need to, the sudo >> command should be used (with care). > You are almost right.... system admin have to know what is going to do, in an > ideal world.... now sysadm often is the one who click next... in a wizard > whithout even reading the GUI messages :-(((( Shouldn't be a problem :1. the non-rancid user shouldn't have a .cloginrc file with all the logins, so rancid should mainly fail.2. If it's a new repo, then just delete it and start again. If it's an old one, surely a chown -R {rancid-user}:{rancid-users-group} will fix the file ownership if they're wrong somehow. You can do similar with chmod but I'm not sure about what cvs does for permissions, the perms should be right anyway unless they rely on the users umask.3. If it's an old repo, then all the files should exist anyway and the modification shouldn't change ownership.4. As pointed out, above, you should secure things sensibly. Otherwise someone else will come along and make a different mistake "what, I can't change the router config by changing the files in rancid directly, why not?" or worse!5. If it's important, where's the backup. If the backup is too hard to recover, you need a better backup solution! (Sorry if that sounds a bit like preaching, it's just a couple of good practices that no-one ever wants to follow. Good backups and proper use of permissions etc.. can be hard or confusing, but worth it in the long run) Yes, I often click next without reading the message, but only if I think I know what it's going to say. A good sysadm will be able to tell you what each box is before it pops up. But some people seem to think that because they've seen someone good not read the message, they can not read messages and be good too. They forget that the "good" person has probably done it thousands of times already - and has a backup so if it all goes wrong, he knows he can fix whatever the worst outcome is in a few minutes. Any admin who tries to tell you he never made a mistake and needed a backup is probably either too scared to ever do anything or lying! Just be really careful using a tool like clogin to make changes, because it allows you to multiply your mistake on lots of different boxes with minimal effort. An old colleague of mine made a mistake (not with rancid but similar tool) that was about 15 mins to fix on his local box, but he'd applied it to about 100 workstations around site and the mistake meant you had to fix it on the console. (he broke the local passwd files)Imagine doing password recovery on every box you run rancid at...(His surname was Ercolani too!) Max _________________________________________________________________ View your other email accounts from your Hotmail inbox. Add them now. http://clk.atdmt.com/UKM/go/167688463/direct/01/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090923/f2da45e3/attachment.html From networking at hostalia.com Thu Sep 24 13:54:02 2009 From: networking at hostalia.com (=?UTF-8?B?ScOxYWtpIE1hcnRpbmV6IERpZXo=?=) Date: Thu, 24 Sep 2009 15:54:02 +0200 Subject: [rancid] run different command for two types of cisco Message-ID: <4ABB79FA.8040106@hostalia.com> Hi, I have cisco routers 8xx that rancid must run "show startup-config" because permission for that user only permit that. And i have Cisco switches and routers (several models) I want rancid to run "show running-config". So how can i do that ?? I know i can change the rancid file, i have this line: {'show startup-config' => 'WriteTerm'}, But how to do one command or other base on type of device ? Thanks in advance. From networking at hostalia.com Fri Sep 25 13:38:27 2009 From: networking at hostalia.com (=?UTF-8?B?ScOxYWtpIE1hcnRpbmV6IERpZXo=?=) Date: Fri, 25 Sep 2009 15:38:27 +0200 Subject: [rancid] wrong code with "Last configuration change at...." Message-ID: <4ABCC7D3.2000302@hostalia.com> Hi, I want to log the lines: ! Last configuration change at 12:50:31 GMT Fri Sep 25 2009 by xxxxx ! NVRAM config last updated at 08:35:27 GMT Fri Sep 25 2009 by xxxxx But this code is wrong: 1488 # This routine processes a "write term" 1489 sub WriteTerm { 1490 print STDERR " In WriteTerm: $_" if ($debug); 1491 my($lineauto,$comment,$linecnt) = (0,0,0); 1492 1493 while () { 1494 tr/\015//d; 1495 last if (/^$prompt/); 1496 return(1) if /Line has invalid autocommand /; 1497 return(1) if (/(Invalid input detected|Type help or )/i); 1498 return(0) if ($found_end); # Only do this routine once 1499 return(-1) if (/command authorization failed/i); 1500 # the pager can not be disabled per-session on the PIX 1501 if (/^(<-+ More -+>)/) { 1502 my($len) = length($1); 1503 s/^$1\s{$len}//; 1504 } 1505 1506 /Non-Volatile memory is in use/ && return(-1); # NvRAM is locked 1507 $linecnt++; 1508 $lineauto = 0 if (/^[^ ]/); 1509 # skip the crap 1510 if (/^(##+$|(Building|Current) configuration)/i) { 1511 while () { 1512 next if (/^Current configuration\s*:/i); 1513 next if (/^:/); 1514 next if (/^([%!].*|\s*)$/); 1515 next if (/^ip add.*ipv4:/); # band-aid for 3620 12.0S 1516 last; 1517 } 1518 if (defined($config_register)) { 1519 ProcessHistory("","","","!\nconfig-register $config_register\n"); 1520 } 1521 tr/\015//d; 1522 } 1523 # some versions have other crap mixed in with the bits in the 1524 # block above 1525 /^! (Last configuration|NVRAM config last)/ && next; 1526 Although i commented the line 1525 the lines above are NEVER logged because the "while" loop in the line 1511 ignore and the two lines are never processed by line 1525, so i made this changes: 1488 # This routine processes a "write term" 1489 sub WriteTerm { 1490 print STDERR " In WriteTerm: $_" if ($debug); 1491 my($lineauto,$comment,$linecnt) = (0,0,0); 1492 1493 while () { 1494 tr/\015//d; 1495 last if (/^$prompt/); 1496 return(1) if /Line has invalid autocommand /; 1497 return(1) if (/(Invalid input detected|Type help or )/i); 1498 return(0) if ($found_end); # Only do this routine once 1499 return(-1) if (/command authorization failed/i); 1500 # the pager can not be disabled per-session on the PIX 1501 if (/^(<-+ More -+>)/) { 1502 my($len) = length($1); 1503 s/^$1\s{$len}//; 1504 } 1505 1506 /Non-Volatile memory is in use/ && return(-1); # NvRAM is locked 1507 $linecnt++; 1508 $lineauto = 0 if (/^[^ ]/); 1509 # skip the crap 1510 if (/^(##+$|(Building|Current) configuration)/i) { 1511 while () { 1512 if (/^! (Last configuration|NVRAM config last)/) { 1513 ProcessHistory("","","",$_); 1514 next; 1515 } 1516 next if (/^Current configuration\s*:/i); 1517 next if (/^:/); 1518 next if (/^([%!].*|\s*)$/); 1519 next if (/^ip add.*ipv4:/); # band-aid for 3620 12.0S 1520 last; 1521 } 1522 if (defined($config_register)) { 1523 ProcessHistory("","","","!\nconfig-register $config_register\n"); 1524 } 1525 tr/\015//d; 1526 } 1527 # some versions have other crap mixed in with the bits in the 1528 # block above 1529 So now the two lines are logged and emailed. I hope this can help somebody. From Atif.SIDDIQUI at HydroOne.com Fri Sep 25 14:54:31 2009 From: Atif.SIDDIQUI at HydroOne.com (Atif.SIDDIQUI at HydroOne.com) Date: Fri, 25 Sep 2009 10:54:31 -0400 Subject: [rancid] Re: wrong code with "Last configuration change at...." In-Reply-To: <4ABCC7D3.2000302@hostalia.com> References: <4ABCC7D3.2000302@hostalia.com> Message-ID: <41BBAE5132ABA54BB2BA8716254F03D601EA10F6@1104MILPEV.corp.hydroone.com> Thanks. Works great !!! was looking for this for a longtime. -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of I?aki Martinez Diez Sent: Friday, September 25, 2009 9:38 AM To: rancid-discuss at shrubbery.net Subject: [rancid] wrong code with "Last configuration change at...." Hi, I want to log the lines: ! Last configuration change at 12:50:31 GMT Fri Sep 25 2009 by xxxxx ! NVRAM config last updated at 08:35:27 GMT Fri Sep 25 2009 by xxxxx But this code is wrong: 1488 # This routine processes a "write term" 1489 sub WriteTerm { 1490 print STDERR " In WriteTerm: $_" if ($debug); 1491 my($lineauto,$comment,$linecnt) = (0,0,0); 1492 1493 while () { 1494 tr/\015//d; 1495 last if (/^$prompt/); 1496 return(1) if /Line has invalid autocommand /; 1497 return(1) if (/(Invalid input detected|Type help or )/i); 1498 return(0) if ($found_end); # Only do this routine once 1499 return(-1) if (/command authorization failed/i); 1500 # the pager can not be disabled per-session on the PIX 1501 if (/^(<-+ More -+>)/) { 1502 my($len) = length($1); 1503 s/^$1\s{$len}//; 1504 } 1505 1506 /Non-Volatile memory is in use/ && return(-1); # NvRAM is locked 1507 $linecnt++; 1508 $lineauto = 0 if (/^[^ ]/); 1509 # skip the crap 1510 if (/^(##+$|(Building|Current) configuration)/i) { 1511 while () { 1512 next if (/^Current configuration\s*:/i); 1513 next if (/^:/); 1514 next if (/^([%!].*|\s*)$/); 1515 next if (/^ip add.*ipv4:/); # band-aid for 3620 12.0S 1516 last; 1517 } 1518 if (defined($config_register)) { 1519 ProcessHistory("","","","!\nconfig-register $config_register\n"); 1520 } 1521 tr/\015//d; 1522 } 1523 # some versions have other crap mixed in with the bits in the 1524 # block above 1525 /^! (Last configuration|NVRAM config last)/ && next; 1526 Although i commented the line 1525 the lines above are NEVER logged because the "while" loop in the line 1511 ignore and the two lines are never processed by line 1525, so i made this changes: 1488 # This routine processes a "write term" 1489 sub WriteTerm { 1490 print STDERR " In WriteTerm: $_" if ($debug); 1491 my($lineauto,$comment,$linecnt) = (0,0,0); 1492 1493 while () { 1494 tr/\015//d; 1495 last if (/^$prompt/); 1496 return(1) if /Line has invalid autocommand /; 1497 return(1) if (/(Invalid input detected|Type help or )/i); 1498 return(0) if ($found_end); # Only do this routine once 1499 return(-1) if (/command authorization failed/i); 1500 # the pager can not be disabled per-session on the PIX 1501 if (/^(<-+ More -+>)/) { 1502 my($len) = length($1); 1503 s/^$1\s{$len}//; 1504 } 1505 1506 /Non-Volatile memory is in use/ && return(-1); # NvRAM is locked 1507 $linecnt++; 1508 $lineauto = 0 if (/^[^ ]/); 1509 # skip the crap 1510 if (/^(##+$|(Building|Current) configuration)/i) { 1511 while () { 1512 if (/^! (Last configuration|NVRAM config last)/) { 1513 ProcessHistory("","","",$_); 1514 next; 1515 } 1516 next if (/^Current configuration\s*:/i); 1517 next if (/^:/); 1518 next if (/^([%!].*|\s*)$/); 1519 next if (/^ip add.*ipv4:/); # band-aid for 3620 12.0S 1520 last; 1521 } 1522 if (defined($config_register)) { 1523 ProcessHistory("","","","!\nconfig-register $config_register\n"); 1524 } 1525 tr/\015//d; 1526 } 1527 # some versions have other crap mixed in with the bits in the 1528 # block above 1529 So now the two lines are logged and emailed. I hope this can help somebody. _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From frnkblk at iname.com Sat Sep 26 00:36:26 2009 From: frnkblk at iname.com (Frank Bulk) Date: Fri, 25 Sep 2009 19:36:26 -0500 Subject: [rancid] Re: wrong code with "Last configuration change at...." In-Reply-To: <4ABCC7D3.2000302@hostalia.com> References: <4ABCC7D3.2000302@hostalia.com> Message-ID: I presume you delete line 1525 (from the original code snippet)? Frank -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of I?aki Martinez Diez Sent: Friday, September 25, 2009 8:38 AM To: rancid-discuss at shrubbery.net Subject: [rancid] wrong code with "Last configuration change at...." Hi, I want to log the lines: ! Last configuration change at 12:50:31 GMT Fri Sep 25 2009 by xxxxx ! NVRAM config last updated at 08:35:27 GMT Fri Sep 25 2009 by xxxxx But this code is wrong: 1488 # This routine processes a "write term" 1489 sub WriteTerm { 1490 print STDERR " In WriteTerm: $_" if ($debug); 1491 my($lineauto,$comment,$linecnt) = (0,0,0); 1492 1493 while () { 1494 tr/\015//d; 1495 last if (/^$prompt/); 1496 return(1) if /Line has invalid autocommand /; 1497 return(1) if (/(Invalid input detected|Type help or )/i); 1498 return(0) if ($found_end); # Only do this routine once 1499 return(-1) if (/command authorization failed/i); 1500 # the pager can not be disabled per-session on the PIX 1501 if (/^(<-+ More -+>)/) { 1502 my($len) = length($1); 1503 s/^$1\s{$len}//; 1504 } 1505 1506 /Non-Volatile memory is in use/ && return(-1); # NvRAM is locked 1507 $linecnt++; 1508 $lineauto = 0 if (/^[^ ]/); 1509 # skip the crap 1510 if (/^(##+$|(Building|Current) configuration)/i) { 1511 while () { 1512 next if (/^Current configuration\s*:/i); 1513 next if (/^:/); 1514 next if (/^([%!].*|\s*)$/); 1515 next if (/^ip add.*ipv4:/); # band-aid for 3620 12.0S 1516 last; 1517 } 1518 if (defined($config_register)) { 1519 ProcessHistory("","","","!\nconfig-register $config_register\n"); 1520 } 1521 tr/\015//d; 1522 } 1523 # some versions have other crap mixed in with the bits in the 1524 # block above 1525 /^! (Last configuration|NVRAM config last)/ && next; 1526 Although i commented the line 1525 the lines above are NEVER logged because the "while" loop in the line 1511 ignore and the two lines are never processed by line 1525, so i made this changes: 1488 # This routine processes a "write term" 1489 sub WriteTerm { 1490 print STDERR " In WriteTerm: $_" if ($debug); 1491 my($lineauto,$comment,$linecnt) = (0,0,0); 1492 1493 while () { 1494 tr/\015//d; 1495 last if (/^$prompt/); 1496 return(1) if /Line has invalid autocommand /; 1497 return(1) if (/(Invalid input detected|Type help or )/i); 1498 return(0) if ($found_end); # Only do this routine once 1499 return(-1) if (/command authorization failed/i); 1500 # the pager can not be disabled per-session on the PIX 1501 if (/^(<-+ More -+>)/) { 1502 my($len) = length($1); 1503 s/^$1\s{$len}//; 1504 } 1505 1506 /Non-Volatile memory is in use/ && return(-1); # NvRAM is locked 1507 $linecnt++; 1508 $lineauto = 0 if (/^[^ ]/); 1509 # skip the crap 1510 if (/^(##+$|(Building|Current) configuration)/i) { 1511 while () { 1512 if (/^! (Last configuration|NVRAM config last)/) { 1513 ProcessHistory("","","",$_); 1514 next; 1515 } 1516 next if (/^Current configuration\s*:/i); 1517 next if (/^:/); 1518 next if (/^([%!].*|\s*)$/); 1519 next if (/^ip add.*ipv4:/); # band-aid for 3620 12.0S 1520 last; 1521 } 1522 if (defined($config_register)) { 1523 ProcessHistory("","","","!\nconfig-register $config_register\n"); 1524 } 1525 tr/\015//d; 1526 } 1527 # some versions have other crap mixed in with the bits in the 1528 # block above 1529 So now the two lines are logged and emailed. I hope this can help somebody. _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From remyheiden at gmail.com Sat Sep 26 10:51:47 2009 From: remyheiden at gmail.com (Remy Heiden) Date: Sat, 26 Sep 2009 12:51:47 +0200 Subject: [rancid] Fwd: run different command for two types of cisco In-Reply-To: References: <4ABB79FA.8040106@hostalia.com> Message-ID: Oops, saw I forgot to post this to the group... ---------- Forwarded message ---------- From: Remy Heiden Date: 2009/9/24 Subject: Re: [rancid] run different command for two types of cisco To: I?aki Martinez Diez I think you can copy the rancid script to for example "c8xxrancid" and change the command. Then in the rancid-fe file you can add another devicetype c8xx that refers to the new script. after that in the router.db, routers.all and routers.up you can set :c8xx:etc.... that should work -- ==================== DIHYDROGEN MONOXIDE The invisible Killer DHMO.org ==================== -- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090926/4819d37f/attachment.html