From dharmachris at gmail.com Fri Aug 4 16:23:40 2023 From: dharmachris at gmail.com (Christopher Hunt) Date: Fri, 4 Aug 2023 09:23:40 -0700 Subject: [rancid] Diff noise after update Message-ID: Hello! Similar to https://www.mail-archive.com/rancid-discuss at www.shrubbery.net/msg00159.html and https://www.mail-archive.com/rancid-discuss at www.shrubbery.net/msg00261.html, after updating to rancid-3.13-7.el7.x86_64, I'm getting many diffs each day that look like this: #Version: FortiGate-60F ... #Security Level: ... #Firmware Signature: certified - #Virus-DB: 91.05476(2023-07-27 04:26) - #Extended DB: 91.05476(2023-07-27 04:25) + #Virus-DB: 91.05477(2023-07-27 05:26) + #Extended DB: 91.05477(2023-07-27 05:25) #AV AI/ML Model: 2.12053(2023-07-27 03:45) #IPS-DB: 25.00609(2023-07-26 02:53) #IPS-ETDB: 0.00000(2001-01-01 00:00) My Perl regex-fu fails me. Anyone have any ideas what I'm doing wrong? [me at ttd ~]# grep -C10 Virus-DB /usr/share/perl5/vendor_perl/rancid/ fortigate.pm last if (/$prompt/); if ($filter_osc >= 2) { next if (/^\s*APP-DB: .*/); next if (/^\s*Botnet DB: .*/); next if (/^\s*Extended DB: .*/); next if (/^\s*industrial-db: .*/i); next if (/^\s*IPS-DB: .*/); next if (/^\s*IPS-ETDB: .*/); next if (/^\s*IPS Malicious URL Database: .*/); next if (/^\s*Virus-DB: .*/); next if (/^\s*\#*Virus-DB\: .*/); #2023-07-25 trying to reduce noise next if (/^\s*\#*AV AI\/ML Model\: .*/); #2023-07-25 trying to reduce noise next if (/^\s*AV AI\/ML Model: .*/); } I can't figure out where the regex identifies the hash symbol, but i'm pretty sure that's not the issue since other lines, which are updating like "IPS-DB" aren't included in the diff. Thanks very much! -Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhossain at prival.ca Tue Aug 22 16:49:37 2023 From: zhossain at prival.ca (Zakir Hossain) Date: Tue, 22 Aug 2023 16:49:37 +0000 Subject: [rancid] Unable to take backup of extreme switch Message-ID: Hi, While I am trying to take backup of extreme switch then I am facing below error message in debug mode: expect does "\r\n\r\rnEBER-SW-SIC4-VSP7400-ip-addess:1>" (spawn_id exp3) match glob pattern "[#\$] "? no expect: timed out Error: TIMEOUT reached But we can login using rancid to the switch without any issue. So, would anyone please help me to resolve this issue? MD ZAKIR HOSSAIN -------------- next part -------------- An HTML attachment was scrubbed... URL: From ugob at lubik.ca Thu Aug 24 00:50:00 2023 From: ugob at lubik.ca (Ugo Bellavance) Date: Wed, 23 Aug 2023 20:50:00 -0400 Subject: [rancid] Unable to take backup of extreme switch In-Reply-To: References: Message-ID: Did you try executing the corresponding login script (clogin for cisco devices, I don't know exactly for extreme) On Tue, Aug 22, 2023 at 12:49?PM Zakir Hossain wrote: > Hi, > > > > While I am trying to take backup of extreme switch then I am facing below > error message in debug mode: > > > > expect does "\r\n\r\rnEBER-SW-SIC4-VSP7400-ip-addess:1>" (spawn_id exp3) > match glob pattern "[#\$] "? no > expect: timed out > > Error: TIMEOUT reached > > But we can login using rancid to the switch without any issue. So, would > anyone please help me to resolve this issue? > > > > * MD ZAKIR HOSSAIN* > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at www.shrubbery.net > https://www.shrubbery.net/mailman/listinfo/rancid-discuss > -- Ugo Bellavance (ugob at lubik.ca) -------------- next part -------------- An HTML attachment was scrubbed... URL: From guy20034u at yahoo.com Thu Aug 24 09:30:19 2023 From: guy20034u at yahoo.com (simon ben) Date: Thu, 24 Aug 2023 09:30:19 +0000 (UTC) Subject: [rancid] Latest version of rancid References: <843112940.446551.1692869419752.ref@mail.yahoo.com> Message-ID: <843112940.446551.1692869419752@mail.yahoo.com> Dear all, Would like to know the latest version of rancidIs there any version after 3.13 .. if there is appreciate if you can kindly let me know Thanks and Regards simon -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhossain at prival.ca Thu Aug 24 13:42:58 2023 From: zhossain at prival.ca (Zakir Hossain) Date: Thu, 24 Aug 2023 13:42:58 +0000 Subject: [rancid] Unable to take backup of extreme switch In-Reply-To: References: Message-ID: Hi, I think we are trying wrong login script (fnlogin) for extreme switch but (xlogin) doesn't work because it is for exos and the VSP 7400 switches whereas we're trying to back up of the following model switch: VSP Operating System Software Build 8.8.3.0 Extreme Networks VOSS Command Line Interface MD ZAKIR HOSSAIN | System Integrator & Security Analyst +8801912509937 | zhossain at prival.ca 9955, rue de Ch?teauneuf, bureau 120, Brossard, Qu?bec, J4Z 3V4 Qu?bec 418 907-8356 | Ottawa 613 689-1539 | Toronto 416 645-5626 facebook.com/Prival-230867980323343 linkedin.com/company/prival From: Ugo Bellavance > Sent: Thursday, August 24, 2023 6:50 AM To: Zakir Hossain > Cc: rancid-discuss at www.shrubbery.net; Randall Watt > Subject: Re: [rancid] Unable to take backup of extreme switch You don't often get email from ugob at lubik.ca. Learn why this is important Did you try executing the corresponding login script (clogin for cisco devices, I don't know exactly for extreme) On Tue, Aug 22, 2023 at 12:49?PM Zakir Hossain > wrote: Hi, While I am trying to take backup of extreme switch then I am facing below error message in debug mode: expect does "\r\n\r\rnEBER-SW-SIC4-VSP7400-ip-addess:1>" (spawn_id exp3) match glob pattern "[#\$] "? no expect: timed out Error: TIMEOUT reached But we can login using rancid to the switch without any issue. So, would anyone please help me to resolve this issue? MD ZAKIR HOSSAIN _______________________________________________ Rancid-discuss mailing list Rancid-discuss at www.shrubbery.net https://www.shrubbery.net/mailman/listinfo/rancid-discuss -- Ugo Bellavance (ugob at lubik.ca) -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Thu Aug 24 14:42:39 2023 From: heas at shrubbery.net (heasley) Date: Thu, 24 Aug 2023 14:42:39 +0000 Subject: [rancid] Unable to take backup of extreme switch In-Reply-To: References: Message-ID: Thu, Aug 24, 2023 at 01:42:58PM +0000, Zakir Hossain: > Hi, > I think we are trying wrong login script (fnlogin) for extreme switch but (xlogin) doesn't work because it is for exos and the VSP 7400 switches whereas we're trying to back up of the following model switch: > VSP Operating System Software Build 8.8.3.0 > Extreme Networks VOSS Command Line Interface > yes, xlogin for extreme; if the device is in a router.db, you can just use plogin to select the right login script for you. From cra at fea.st Thu Aug 24 21:03:55 2023 From: cra at fea.st (Chuck Anderson) Date: Thu, 24 Aug 2023 17:03:55 -0400 Subject: [rancid] Unable to take backup of extreme switch In-Reply-To: References: Message-ID: <3nidnbrudzsubika2uohsucnu3wqaccgk5u6ea7bxsp6xogszf@fph5czivnvsh> VSP7000 came originally from Nortel/Avaya. I've never used VSP7000, but I've used Passport 8600 series from which it derives. I dug into my archives and found pplogin and pprancid which I last used in 2012 or thereabouts. I'll try attaching them here. Perhaps they can provide some clues on how to get VSP7000 to work. On Thu, Aug 24, 2023 at 01:42:58PM +0000, Zakir Hossain wrote: > Hi, > I think we are trying wrong login script (fnlogin) for extreme switch but (xlogin) doesn't work because it is for exos and the VSP 7400 switches whereas we're trying to back up of the following model switch: > VSP Operating System Software Build 8.8.3.0 > Extreme Networks VOSS Command Line Interface > > > MD ZAKIR HOSSAIN | System Integrator & Security Analyst > +8801912509937 | zhossain at prival.ca > 9955, rue de Ch?teauneuf, bureau 120, Brossard, Qu?bec, J4Z 3V4 > Qu?bec 418 907-8356 | Ottawa 613 689-1539 | Toronto 416 645-5626 > facebook.com/Prival-230867980323343 > linkedin.com/company/prival > From: Ugo Bellavance > > Sent: Thursday, August 24, 2023 6:50 AM > To: Zakir Hossain > > Cc: rancid-discuss at www.shrubbery.net; Randall Watt > > Subject: Re: [rancid] Unable to take backup of extreme switch > > You don't often get email from ugob at lubik.ca. Learn why this is important > Did you try executing the corresponding login script (clogin for cisco devices, I don't know exactly for extreme) > > On Tue, Aug 22, 2023 at 12:49?PM Zakir Hossain > wrote: > Hi, > > While I am trying to take backup of extreme switch then I am facing below error message in debug mode: > > > expect does "\r\n\r\rnEBER-SW-SIC4-VSP7400-ip-addess:1>" (spawn_id exp3) match glob pattern "[#\$] "? no > expect: timed out > > Error: TIMEOUT reached > > But we can login using rancid to the switch without any issue. So, would anyone please help me to resolve this issue? -------------- next part -------------- #!/usr/bin/expect -f # set send_slow {1 .1} proc send {ignore arg} { sleep .1 exp_send -s -- $arg } set timeout -1 set prompt ":(3|5|6)(#|>) " set password_file $env(HOME)/.cloginrc set command [lindex $argv 0] # Loads the password file. Note that as this file is tcl, and that # it is sourced, the user better know what to put in there, as it # could install more than just password info... I will assume however, # that a "bad guy" could just as easy put such code in the clogin # script, so I will leave .cloginrc as just an extention of that script proc source_password_file { password_file } { global env if { ! [file exists $password_file] } { send_user "\nError: password file ($password_file) does not exist\n" exit 1 } file stat $password_file fileinfo if { [expr ($fileinfo(mode) & 007)] != 0000 } { send_user "\nError: $password_file must not be world readable/writable\n" exit 1 } if [ catch {source $password_file} reason ] { send_user "\nError: $reason\n" exit 1 } } proc add {var args} { global int_$var ; lappend int_$var $args} proc find {var router} { upvar int_$var list if { [info exists list] } { foreach line $list { if { [string match [lindex $line 0] $router ] } { return [lrange $line 1 end] } } } return {} } source_password_file $password_file foreach router [lrange $argv 1 end] { set router [string tolower $router] set user [join [find user $router] ""] set cyphertype [find cyphertype $router] if { "$cyphertype" == "" } { set cyphertype "3des" } send_user "$router\n" set pswd [find password $router] if { [llength $pswd] == 0 } { send_user "\nError - no password for $router in $password_file.\n" continue } set passwd [join [lindex $pswd 0] ""] # Login spawn ssh -c $cyphertype -x -l $user $router expect { -re "(Connection refused|Secure connection \[^\n\r]+ refused|Connection closed by)" { catch {close}; wait send_user "\nError: Connection Refused\n"; return 1 } eof { send_user "\nError: Couldn't login\n"; wait; return 1 } -nocase "unknown host\r" { catch {close}; send_user "\nError: Unknown host\n"; wait; return 1 } "Host is unreachable" { catch {close}; send_user "\nError: Host Unreachable!\n"; wait; return 1 } "No address associated with name" { catch {close}; send_user "\nError: Unknown host\n"; wait; return 1 } -re "(Host key not found |The authenticity of host .* be established).*\(yes\/no\)\?" { send -- "yes\r" send_user "\nHost $router added to the list of known hosts.\n" exp_continue } -re "HOST IDENTIFICATION HAS CHANGED.* \(yes\/no\)\?" { send -- "no\r" send_user "\nError: The host key for $router has changed. Update the SSH known_hosts file accordingly.\n" return 1 } -re "Offending key for .* \(yes\/no\)\?" { send -- "no\r" send_user "\nError: host key mismatch for $router. Update the SSH known_hosts file accordingly.\n" return 1 } " password: " { send -- "$passwd\r" } exp_continue } expect -re $prompt send -- "conf cli more false\r" expect -re $prompt if [ string match "*\;*" "$command" ] { set commands [split $command \;] set num_commands [llength $commands] for {set i 0} {$i < $num_commands} { incr i} { send -- "[lindex $commands $i]\r" expect -re $prompt } } else { send -- "$command\r" expect -re $prompt } # Logout send -- "logout\r" expect eof } -------------- next part -------------- #! /usr/bin/perl ## ## Rehacked brancid to deal with passport 8600 ## ## 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; $found_end = 0; $timeo = 90; # blogin timeout in seconds $debug = 0; 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 config" sub ShowConfig { print STDERR " In ShowConfig: $_" if ($debug); my $gotdata = 0; # strip out the first three lines to avoid the date/timestamp my $dummy = ; my $dummy = ; my $dummy = ; while () { tr/\015//d; $gotdata = 1 if $_ ne ''; # print STDERR "Grokking $_" if ($debug); # last if (/^$prompt/); # next if (/^(\s*|\s*$cmd\s*)$/); # next if (/^Reading configuration information/); # next if (/^Can\'t find object or class named \"\-all\"\s*$/); # next if (/lock-address .*$/); # next if (/^\# *uptime +\d+\s*$/); # next if (/^Preparing to Display Configuration/); # if (/community label /) { # if (defined($ENV{'NOCOMMSTR'})) { # $_ =~ s/community label .*$/community label /; # } # } return(-1) if /(invalid command name)/; ProcessHistory("","","","$_"); if (/^back/) { print STDERR "Found back statement, finishing showconfig\n" if ($debug); $found_end = 1; return(0); } } # We should never get here return(-1); } # This routine parses "show sys info" sub ShowSysInfo { print STDERR " In ShowSysInfo: $_" if $debug; print STDERR " prompt is \"$prompt\"\n" if $debug; while(){ tr/\015//d; next if /SysUpTime/; next if (/Fan#\d: /); next if (/Temperature : \d/); next if (/Total Power (Available|Usage)/); if(/$prompt/){ print STDERR "Found prompt, finishing showsysinfo\n" if $debug; return(0); } ProcessHistory("","","","# $_"); } return(-1); } # This routine parses "show sys perf" sub ShowSysPerf { print STDERR " In ShowSysPerf: $_" if $debug; print STDERR " prompt is \"$prompt\"\n" if $debug; while(){ tr/\015//d; next if (/CpuUtil:/); next if (/SwitchFabricUtil:/); next if (/OtherSwitchFabricUtil:/); next if (/BufferUtil:/); next if (/DramUsed:/); next if (/DramFree:/); if(/$prompt/){ print STDERR "Found prompt, finishing showsysperf\n" if $debug; return(0); } ProcessHistory("","","","# $_"); } return(-1); } # This routine parses single command's that return no required info sub RunCommand { print STDERR " In RunCommand: $_" if ($debug); while () { tr/\015//d; last if (/^$prompt/); next if (/^(\s*|\s*$cmd\s*)$/); # prompt may have changed # if (/\>/) { # $prompt = ($_ =~ /^([^>]+>)/)[0]; # $prompt =~ s/([][])/\\$1/g; # last; # } } return(0) } # dummy function sub DoNothing {print STDOUT;} sub FireForgetCommand { print STDERR " In FireForgetCommand: $_" if ($debug); return(0); } # Main %commands=( 'show config' => "ShowConfig", 'show sys info' => "ShowSysInfo", 'show sys info card' => "ShowSysInfo", 'show sys perf' => "ShowSysPerf", ); # 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 sys info", "show sys info card", "show sys perf", "show config", ); $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 pplogin \"$cisco_cmds\" $host\n" if ($debug); print STDOUT "executing pplogin \"$cisco_cmds\" $host\n" if ($log); if (defined($ENV{NOPIPE})) { system "pplogin \"$cisco_cmds\" $host $host.raw 2>&1" || die "pplogin failed for $host: $!\n"; open(INPUT, "< $host.raw") || die "pplogin failed for $host: $!\n"; } else { open(INPUT,"pplogin \"$cisco_cmds\" $host ) { tr/\015//d; if ( (/(>|#)\s?logout/) || $found_end ) { print STDERR "Found logout statement, ending\n" if ($debug); delete($commands{'logout'}); $clean_run=1; last; } if (/^Error:/) { print STDOUT ("$host pplogin error: $_"); print STDERR ("$host pplogin error: $_") if ($debug); $clean_run=0; last; } while (/(>|#)\s*($cmds_regexp)\s*$/) { $cmd = $2; print STDERR "Doing $cmd\n"; if (!defined($prompt)) { $prompt = ":(5|6)(#|>)"; 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; } print STDERR "Calling \"$cmd\"\n" if ($debug); $rval = &{$commands{$cmd}}; delete($commands{$cmd}); if ($rval == -1) { $clean_run = 0; last TOP; } } } 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 || !$found_end) { 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 || !$found_end) { 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 jandrewartha at ccgs.wa.edu.au Fri Aug 25 02:05:38 2023 From: jandrewartha at ccgs.wa.edu.au (James Andrewartha) Date: Fri, 25 Aug 2023 10:05:38 +0800 Subject: [rancid] Unable to take backup of extreme switch In-Reply-To: <3nidnbrudzsubika2uohsucnu3wqaccgk5u6ea7bxsp6xogszf@fph5czivnvsh> References: <3nidnbrudzsubika2uohsucnu3wqaccgk5u6ea7bxsp6xogszf@fph5czivnvsh> Message-ID: I found a voss.pm somewhere about two years ago (but can't any more), I've attached it, and here's what I have in my /etc/rancid/rancid.types.conf voss;script;rancid -t voss voss;login;clogin voss;module;voss voss;inloop;voss::inloop voss;command;voss::RunCommand;terminal more disable voss;command;voss::ShowSysinfo;show software voss;command;voss::ShowSysinfo;show core-files voss;command;voss::ShowSysinfo;show boot config choice voss;command;voss::ShowSysinfo;show boot config flags voss;command;voss::ShowSysinfo;show boot config running-config voss;command;voss::ShowSysinfo;show boot config sio voss;command;voss::ShowSysinfo;show sys-info power voss;command;voss::ShowSysinfo;show sys power voss;command;voss::ShowSysinfo;show sys-info led voss;command;voss::ShowSysinfo;show cli username voss;command;voss::ShowSysinfo;show cli password voss;command;voss::ShowConfig;show running-config On 25/8/23 05:03, Chuck Anderson wrote: > VSP7000 came originally from Nortel/Avaya. I've never used VSP7000, but I've used Passport 8600 series from which it derives. I dug into my archives and found pplogin and pprancid which I last used in 2012 or thereabouts. I'll try attaching them here. Perhaps they can provide some clues on how to get VSP7000 to work. > > On Thu, Aug 24, 2023 at 01:42:58PM +0000, Zakir Hossain wrote: >> Hi, >> I think we are trying wrong login script (fnlogin) for extreme switch but (xlogin) doesn't work because it is for exos and the VSP 7400 switches whereas we're trying to back up of the following model switch: >> VSP Operating System Software Build 8.8.3.0 >> Extreme Networks VOSS Command Line Interface >> >> >> MD ZAKIR HOSSAIN | System Integrator & Security Analyst >> +8801912509937 | zhossain at prival.ca >> 9955, rue de Ch?teauneuf, bureau 120, Brossard, Qu?bec, J4Z 3V4 >> Qu?bec 418 907-8356 | Ottawa 613 689-1539 | Toronto 416 645-5626 >> facebook.com/Prival-230867980323343 >> linkedin.com/company/prival >> From: Ugo Bellavance > >> Sent: Thursday, August 24, 2023 6:50 AM >> To: Zakir Hossain > >> Cc: rancid-discuss at www.shrubbery.net; Randall Watt > >> Subject: Re: [rancid] Unable to take backup of extreme switch >> >> You don't often get email from ugob at lubik.ca. Learn why this is important >> Did you try executing the corresponding login script (clogin for cisco devices, I don't know exactly for extreme) >> >> On Tue, Aug 22, 2023 at 12:49?PM Zakir Hossain > wrote: >> Hi, >> >> While I am trying to take backup of extreme switch then I am facing below error message in debug mode: >> >> >> expect does "\r\n\r\rnEBER-SW-SIC4-VSP7400-ip-addess:1>" (spawn_id exp3) match glob pattern "[#\$] "? no >> expect: timed out >> >> Error: TIMEOUT reached >> >> But we can login using rancid to the switch without any issue. So, would anyone please help me to resolve this issue? >> >> _______________________________________________ >> Rancid-discuss mailing list >> Rancid-discuss at www.shrubbery.net >> https://www.shrubbery.net/mailman/listinfo/rancid-discuss -- James Andrewartha Network & Projects Engineer Christ Church Grammar School Claremont, Western Australia Ph. (08) 9442 1757 Mob. 0424 160 877 -------------- next part -------------- A non-text attachment was scrubbed... Name: voss.pm Type: application/x-perl Size: 5373 bytes Desc: not available URL: From durrani.anwar at gmail.com Fri Aug 25 06:15:19 2023 From: durrani.anwar at gmail.com (Anwar Durrani) Date: Fri, 25 Aug 2023 11:45:19 +0530 Subject: [rancid] Rancid configuration - switches The following routers have not been successfully contacted for more than 24 hours. In-Reply-To: References: Message-ID: I have checked the logs it says switch01.x.x.x.com: End of run not found On Tue, 1 Aug 2023 at 04:37, Ugo Bellavance wrote: > Check your logs. > > On Mon, Jul 31, 2023 at 4:51?AM Anwar Durrani > wrote: > >> Hi Team, >> I have added Cisco switches in Rancid, backup is taking place properly >> but every 2 days, I am getting the following routers have not been >> successfully contacted message, to resolve this issue I have to run the >> following command >> >> cd /var/lib/rancid/ >> >> rm -rf switches/ >> >> /usr/lib/rancid/bin/rancid-cvs >> >> A switches/.cvsignore >> >> A switches/configs >> >> A switches/configs/.cvsignore >> >> >> A switches/configs/switch2.xxxx.com >> >> A switches/configs/switch7.xxxx.com >> >> A switches/configs/switch8.xxxx.xxxx.xxxx.com >> >> A switches/configs/switch9-xxxx.com >> >> A switches/configs/switch5.xxxx.com >> >> A switches/router.db >> >> U switches >> >> Checked out revision 50872. >> >> Updating '.': >> >> At revision 50872. >> >> -- >> Thanks & regards, >> Anwar M. Durrani >> +91-9923205011 >> >> >> >> _______________________________________________ >> Rancid-discuss mailing list >> Rancid-discuss at www.shrubbery.net >> https://www.shrubbery.net/mailman/listinfo/rancid-discuss >> > > > -- > Ugo Bellavance (ugob at lubik.ca) > -- Thanks & regards, Anwar M. Durrani +91-9923205011 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ugob at lubik.ca Fri Aug 25 19:01:50 2023 From: ugob at lubik.ca (Ugo Bellavance) Date: Fri, 25 Aug 2023 15:01:50 -0400 Subject: [rancid] Rancid configuration - switches The following routers have not been successfully contacted for more than 24 hours. In-Reply-To: References: Message-ID: Did you try running the clogin script manually? On Fri, Aug 25, 2023 at 2:15?AM Anwar Durrani wrote: > I have checked the logs it says > switch01.x.x.x.com: End of run not found > > On Tue, 1 Aug 2023 at 04:37, Ugo Bellavance wrote: > >> Check your logs. >> >> On Mon, Jul 31, 2023 at 4:51?AM Anwar Durrani >> wrote: >> >>> Hi Team, >>> I have added Cisco switches in Rancid, backup is taking place properly >>> but every 2 days, I am getting the following routers have not been >>> successfully contacted message, to resolve this issue I have to run the >>> following command >>> >>> cd /var/lib/rancid/ >>> >>> rm -rf switches/ >>> >>> /usr/lib/rancid/bin/rancid-cvs >>> >>> A switches/.cvsignore >>> >>> A switches/configs >>> >>> A switches/configs/.cvsignore >>> >>> >>> A switches/configs/switch2.xxxx.com >>> >>> A switches/configs/switch7.xxxx.com >>> >>> A switches/configs/switch8.xxxx.xxxx.xxxx.com >>> >>> A switches/configs/switch9-xxxx.com >>> >>> A switches/configs/switch5.xxxx.com >>> >>> A switches/router.db >>> >>> U switches >>> >>> Checked out revision 50872. >>> >>> Updating '.': >>> >>> At revision 50872. >>> >>> -- >>> Thanks & regards, >>> Anwar M. Durrani >>> +91-9923205011 >>> >>> >>> >>> _______________________________________________ >>> Rancid-discuss mailing list >>> Rancid-discuss at www.shrubbery.net >>> https://www.shrubbery.net/mailman/listinfo/rancid-discuss >>> >> >> >> -- >> Ugo Bellavance (ugob at lubik.ca) >> > > > -- > Thanks & regards, > Anwar M. Durrani > +91-9923205011 > > > > -- Ugo Bellavance (ugob at lubik.ca) -------------- next part -------------- An HTML attachment was scrubbed... URL: From durrani.anwar at gmail.com Sat Aug 26 04:05:32 2023 From: durrani.anwar at gmail.com (Anwar Durrani) Date: Sat, 26 Aug 2023 09:35:32 +0530 Subject: [rancid] Rancid configuration - switches The following routers have not been successfully contacted for more than 24 hours. In-Reply-To: References: Message-ID: Yes I did, It runs successfully and exits properly. This is happening with 3 switches only, I have 10 switches for other switches there is no complaint. On Sat, 26 Aug 2023 at 00:32, Ugo Bellavance wrote: > Did you try running the clogin script manually? > > On Fri, Aug 25, 2023 at 2:15?AM Anwar Durrani > wrote: > >> I have checked the logs it says >> switch01.x.x.x.com: End of run not found >> >> On Tue, 1 Aug 2023 at 04:37, Ugo Bellavance wrote: >> >>> Check your logs. >>> >>> On Mon, Jul 31, 2023 at 4:51?AM Anwar Durrani >>> wrote: >>> >>>> Hi Team, >>>> I have added Cisco switches in Rancid, backup is taking place properly >>>> but every 2 days, I am getting the following routers have not been >>>> successfully contacted message, to resolve this issue I have to run the >>>> following command >>>> >>>> cd /var/lib/rancid/ >>>> >>>> rm -rf switches/ >>>> >>>> /usr/lib/rancid/bin/rancid-cvs >>>> >>>> A switches/.cvsignore >>>> >>>> A switches/configs >>>> >>>> A switches/configs/.cvsignore >>>> >>>> >>>> A switches/configs/switch2.xxxx.com >>>> >>>> A switches/configs/switch7.xxxx.com >>>> >>>> A switches/configs/switch8.xxxx.xxxx.xxxx.com >>>> >>>> A switches/configs/switch9-xxxx.com >>>> >>>> A switches/configs/switch5.xxxx.com >>>> >>>> A switches/router.db >>>> >>>> U switches >>>> >>>> Checked out revision 50872. >>>> >>>> Updating '.': >>>> >>>> At revision 50872. >>>> >>>> -- >>>> Thanks & regards, >>>> Anwar M. Durrani >>>> +91-9923205011 >>>> >>>> >>>> >>>> _______________________________________________ >>>> Rancid-discuss mailing list >>>> Rancid-discuss at www.shrubbery.net >>>> https://www.shrubbery.net/mailman/listinfo/rancid-discuss >>>> >>> >>> >>> -- >>> Ugo Bellavance (ugob at lubik.ca) >>> >> >> >> -- >> Thanks & regards, >> Anwar M. Durrani >> +91-9923205011 >> >> >> >> > > -- > Ugo Bellavance (ugob at lubik.ca) > -- Thanks & regards, Anwar M. Durrani +91-9923205011 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ugob at lubik.ca Sat Aug 26 10:58:30 2023 From: ugob at lubik.ca (Ugo Bellavance) Date: Sat, 26 Aug 2023 06:58:30 -0400 Subject: [rancid] Rancid configuration - switches The following routers have not been successfully contacted for more than 24 hours. In-Reply-To: References: Message-ID: Did you read the logs on one non-working switch and compare with a working one? On Sat, Aug 26, 2023, 00:05 Anwar Durrani wrote: > Yes I did, It runs successfully and exits properly. This is happening with > 3 switches only, I have 10 switches for other switches there is no > complaint. > > On Sat, 26 Aug 2023 at 00:32, Ugo Bellavance wrote: > >> Did you try running the clogin script manually? >> >> On Fri, Aug 25, 2023 at 2:15?AM Anwar Durrani >> wrote: >> >>> I have checked the logs it says >>> switch01.x.x.x.com: End of run not found >>> >>> On Tue, 1 Aug 2023 at 04:37, Ugo Bellavance wrote: >>> >>>> Check your logs. >>>> >>>> On Mon, Jul 31, 2023 at 4:51?AM Anwar Durrani >>>> wrote: >>>> >>>>> Hi Team, >>>>> I have added Cisco switches in Rancid, backup is taking place properly >>>>> but every 2 days, I am getting the following routers have not been >>>>> successfully contacted message, to resolve this issue I have to run the >>>>> following command >>>>> >>>>> cd /var/lib/rancid/ >>>>> >>>>> rm -rf switches/ >>>>> >>>>> /usr/lib/rancid/bin/rancid-cvs >>>>> >>>>> A switches/.cvsignore >>>>> >>>>> A switches/configs >>>>> >>>>> A switches/configs/.cvsignore >>>>> >>>>> >>>>> A switches/configs/switch2.xxxx.com >>>>> >>>>> A switches/configs/switch7.xxxx.com >>>>> >>>>> A switches/configs/switch8.xxxx.xxxx.xxxx.com >>>>> >>>>> A switches/configs/switch9-xxxx.com >>>>> >>>>> A switches/configs/switch5.xxxx.com >>>>> >>>>> A switches/router.db >>>>> >>>>> U switches >>>>> >>>>> Checked out revision 50872. >>>>> >>>>> Updating '.': >>>>> >>>>> At revision 50872. >>>>> >>>>> -- >>>>> Thanks & regards, >>>>> Anwar M. Durrani >>>>> +91-9923205011 >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> Rancid-discuss mailing list >>>>> Rancid-discuss at www.shrubbery.net >>>>> https://www.shrubbery.net/mailman/listinfo/rancid-discuss >>>>> >>>> >>>> >>>> -- >>>> Ugo Bellavance (ugob at lubik.ca) >>>> >>> >>> >>> -- >>> Thanks & regards, >>> Anwar M. Durrani >>> +91-9923205011 >>> >>> >>> >>> >> >> -- >> Ugo Bellavance (ugob at lubik.ca) >> > > > -- > Thanks & regards, > Anwar M. Durrani > +91-9923205011 > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From durrani.anwar at gmail.com Mon Aug 28 14:57:00 2023 From: durrani.anwar at gmail.com (Anwar Durrani) Date: Mon, 28 Aug 2023 20:27:00 +0530 Subject: [rancid] Rancid configuration - switches The following routers have not been successfully contacted for more than 24 hours. In-Reply-To: References: Message-ID: Hi Ugo, I did not find any significant difference between working and non-working configurations, but for some of the switch rancid user locally present on working, and at the same time rancid user is not present on one of the working switches as well, I don't think so if this is the case. When i run rancid -t cisco switch1.xx.xx.com through switch10.xx.xx.com, it always gives me "switch10.xx.xx.com: End of run not found" Thanks On Sat, 26 Aug 2023 at 16:28, Ugo Bellavance wrote: > Did you read the logs on one non-working switch and compare with a working > one? > > On Sat, Aug 26, 2023, 00:05 Anwar Durrani wrote: > >> Yes I did, It runs successfully and exits properly. This is >> happening with 3 switches only, I have 10 switches for other switches there >> is no complaint. >> >> On Sat, 26 Aug 2023 at 00:32, Ugo Bellavance wrote: >> >>> Did you try running the clogin script manually? >>> >>> On Fri, Aug 25, 2023 at 2:15?AM Anwar Durrani >>> wrote: >>> >>>> I have checked the logs it says >>>> switch01.x.x.x.com: End of run not found >>>> >>>> On Tue, 1 Aug 2023 at 04:37, Ugo Bellavance wrote: >>>> >>>>> Check your logs. >>>>> >>>>> On Mon, Jul 31, 2023 at 4:51?AM Anwar Durrani >>>>> wrote: >>>>> >>>>>> Hi Team, >>>>>> I have added Cisco switches in Rancid, backup is taking place >>>>>> properly but every 2 days, I am getting the following routers have not been >>>>>> successfully contacted message, to resolve this issue I have to run the >>>>>> following command >>>>>> >>>>>> cd /var/lib/rancid/ >>>>>> >>>>>> rm -rf switches/ >>>>>> >>>>>> /usr/lib/rancid/bin/rancid-cvs >>>>>> >>>>>> A switches/.cvsignore >>>>>> >>>>>> A switches/configs >>>>>> >>>>>> A switches/configs/.cvsignore >>>>>> >>>>>> >>>>>> A switches/configs/switch2.xxxx.com >>>>>> >>>>>> A switches/configs/switch7.xxxx.com >>>>>> >>>>>> A switches/configs/switch8.xxxx.xxxx.xxxx.com >>>>>> >>>>>> A switches/configs/switch9-xxxx.com >>>>>> >>>>>> A switches/configs/switch5.xxxx.com >>>>>> >>>>>> A switches/router.db >>>>>> >>>>>> U switches >>>>>> >>>>>> Checked out revision 50872. >>>>>> >>>>>> Updating '.': >>>>>> >>>>>> At revision 50872. >>>>>> >>>>>> -- >>>>>> Thanks & regards, >>>>>> Anwar M. Durrani >>>>>> +91-9923205011 >>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Rancid-discuss mailing list >>>>>> Rancid-discuss at www.shrubbery.net >>>>>> https://www.shrubbery.net/mailman/listinfo/rancid-discuss >>>>>> >>>>> >>>>> >>>>> -- >>>>> Ugo Bellavance (ugob at lubik.ca) >>>>> >>>> >>>> >>>> -- >>>> Thanks & regards, >>>> Anwar M. Durrani >>>> +91-9923205011 >>>> >>>> >>>> >>>> >>> >>> -- >>> Ugo Bellavance (ugob at lubik.ca) >>> >> >> >> -- >> Thanks & regards, >> Anwar M. Durrani >> +91-9923205011 >> >> >> >> -- Thanks & regards, Anwar M. Durrani +91-9923205011 -------------- next part -------------- An HTML attachment was scrubbed... URL: From durrani.anwar at gmail.com Tue Aug 29 05:57:46 2023 From: durrani.anwar at gmail.com (Anwar Durrani) Date: Tue, 29 Aug 2023 11:27:46 +0530 Subject: [rancid] Rancid configuration - switches The following routers have not been successfully contacted for more than 24 hours. In-Reply-To: References: Message-ID: I am sorry, let me re-phrase, it is not with 1-2 switches but all switches. On Mon, 28 Aug 2023 at 20:27, Anwar Durrani wrote: > Hi Ugo, > I did not find any significant difference between working and non-working > configurations, > but for some of the switch rancid user locally present on working, and at > the same time rancid user is not present on one of the working switches as > well, I don't think so if this is the case. > > When i run rancid -t cisco switch1.xx.xx.com through switch10.xx.xx.com, > it always gives me "switch10.xx.xx.com: End of run not found" > Thanks > > On Sat, 26 Aug 2023 at 16:28, Ugo Bellavance wrote: > >> Did you read the logs on one non-working switch and compare with a >> working one? >> >> On Sat, Aug 26, 2023, 00:05 Anwar Durrani >> wrote: >> >>> Yes I did, It runs successfully and exits properly. This is >>> happening with 3 switches only, I have 10 switches for other switches there >>> is no complaint. >>> >>> On Sat, 26 Aug 2023 at 00:32, Ugo Bellavance wrote: >>> >>>> Did you try running the clogin script manually? >>>> >>>> On Fri, Aug 25, 2023 at 2:15?AM Anwar Durrani >>>> wrote: >>>> >>>>> I have checked the logs it says >>>>> switch01.x.x.x.com: End of run not found >>>>> >>>>> On Tue, 1 Aug 2023 at 04:37, Ugo Bellavance wrote: >>>>> >>>>>> Check your logs. >>>>>> >>>>>> On Mon, Jul 31, 2023 at 4:51?AM Anwar Durrani < >>>>>> durrani.anwar at gmail.com> wrote: >>>>>> >>>>>>> Hi Team, >>>>>>> I have added Cisco switches in Rancid, backup is taking place >>>>>>> properly but every 2 days, I am getting the following routers have not been >>>>>>> successfully contacted message, to resolve this issue I have to run the >>>>>>> following command >>>>>>> >>>>>>> cd /var/lib/rancid/ >>>>>>> >>>>>>> rm -rf switches/ >>>>>>> >>>>>>> /usr/lib/rancid/bin/rancid-cvs >>>>>>> >>>>>>> A switches/.cvsignore >>>>>>> >>>>>>> A switches/configs >>>>>>> >>>>>>> A switches/configs/.cvsignore >>>>>>> >>>>>>> >>>>>>> A switches/configs/switch2.xxxx.com >>>>>>> >>>>>>> A switches/configs/switch7.xxxx.com >>>>>>> >>>>>>> A switches/configs/switch8.xxxx.xxxx.xxxx.com >>>>>>> >>>>>>> A switches/configs/switch9-xxxx.com >>>>>>> >>>>>>> A switches/configs/switch5.xxxx.com >>>>>>> >>>>>>> A switches/router.db >>>>>>> >>>>>>> U switches >>>>>>> >>>>>>> Checked out revision 50872. >>>>>>> >>>>>>> Updating '.': >>>>>>> >>>>>>> At revision 50872. >>>>>>> >>>>>>> -- >>>>>>> Thanks & regards, >>>>>>> Anwar M. Durrani >>>>>>> +91-9923205011 >>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Rancid-discuss mailing list >>>>>>> Rancid-discuss at www.shrubbery.net >>>>>>> https://www.shrubbery.net/mailman/listinfo/rancid-discuss >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Ugo Bellavance (ugob at lubik.ca) >>>>>> >>>>> >>>>> >>>>> -- >>>>> Thanks & regards, >>>>> Anwar M. Durrani >>>>> +91-9923205011 >>>>> >>>>> >>>>> >>>>> >>>> >>>> -- >>>> Ugo Bellavance (ugob at lubik.ca) >>>> >>> >>> >>> -- >>> Thanks & regards, >>> Anwar M. Durrani >>> +91-9923205011 >>> >>> >>> >>> > > -- > Thanks & regards, > Anwar M. Durrani > +91-9923205011 > > > > -- Thanks & regards, Anwar M. Durrani +91-9923205011 -------------- next part -------------- An HTML attachment was scrubbed... URL: From durrani.anwar at gmail.com Thu Aug 31 09:22:43 2023 From: durrani.anwar at gmail.com (Anwar Durrani) Date: Thu, 31 Aug 2023 14:52:43 +0530 Subject: [rancid] Rancid configuration - switches The following routers have not been successfully contacted for more than 24 hours. In-Reply-To: References: Message-ID: Hi Ugo, Earlier My config file /etc/rancid/rancid.type.base looks like ##cisco;script;rancid -t cisco ##cisco;login;clogin ##cisco;module;ios ##cisco;inloop;ios::inloop #cisco;command;ios::ShowVersion;show version ##cisco;command;ios::WriteTerm;show running-config ##cisco;command;ios::ShowVersion;show version;show running config ## -- end of config I have added following cisco;script;rancid -t cisco cisco;login;clogin cisco;module;ios cisco;inloop;ios::inloop cisco;command;ios::ShowVersion;show version cisco;command;ios::ShowRedundancy;show redundancy secondary cisco;command;ios::ShowIDprom;show idprom backplane cisco;command;ios::ShowInstallActive;show install active cisco;command;ios::ShowEnv;show env all cisco;command;ios::ShowRSP;show rsp chassis-info cisco;command;ios::ShowGSR;show gsr chassis cisco;command;ios::ShowGSR;show diag chassis-info cisco;command;ios::ShowBoot;show boot cisco;command;ios::ShowBoot;show bootvar cisco;command;ios::ShowBoot;show variables boot cisco;command;ios::ShowFlash;show flash cisco;command;ios::DirSlotN;dir /all nvram: cisco;command;ios::DirSlotN;dir /all bootflash: cisco;command;ios::DirSlotN;dir /all slot0: cisco;command;ios::DirSlotN;dir /all disk0: cisco;command;ios::DirSlotN;dir /all slot1: cisco;command;ios::DirSlotN;dir /all disk1: cisco;command;ios::DirSlotN;dir /all slot2: cisco;command;ios::DirSlotN;dir /all disk2: cisco;command;ios::DirSlotN;dir /all harddisk: cisco;command;ios::DirSlotN;dir /all harddiska: cisco;command;ios::DirSlotN;dir /all harddiskb: cisco;command;ios::DirSlotN;dir /all sup-bootdisk:;c6500 sup32 cisco;command;ios::DirSlotN;dir /all sup-bootflash:;c6500 ios cisco;command;ios::DirSlotN;dir /all sup-microcode:;c6500 ios cisco;command;ios::DirSlotN;dir /all slavenvram: cisco;command;ios::DirSlotN;dir /all slavebootflash: cisco;command;ios::DirSlotN;dir /all slaveslot0: cisco;command;ios::DirSlotN;dir /all slavedisk0: cisco;command;ios::DirSlotN;dir /all slaveslot1: cisco;command;ios::DirSlotN;dir /all slavedisk1: cisco;command;ios::DirSlotN;dir /all slaveslot2: cisco;command;ios::DirSlotN;dir /all slavedisk2: cisco;command;ios::DirSlotN;dir /all slavesup-bootflash:;c7600 cisco;command;ios::DirSlotN;dir /all sec-nvram: cisco;command;ios::DirSlotN;dir /all sec-bootflash: cisco;command;ios::DirSlotN;dir /all sec-slot0: cisco;command;ios::DirSlotN;dir /all sec-disk0: cisco;command;ios::DirSlotN;dir /all sec-slot1: cisco;command;ios::DirSlotN;dir /all sec-disk1: cisco;command;ios::DirSlotN;dir /all sec-slot2: cisco;command;ios::DirSlotN;dir /all sec-disk2: cisco;command;ios::ShowContAll;show controllers cisco;command;ios::ShowContCbus;show controllers cbus cisco;command;ios::ShowDiagbus;show diagbus cisco;command;ios::ShowDiag;show diag cisco;command;ios::ShowCapture;show capture;ASA/PIX cisco;command;ios::ShowModule;show module;c6500 ios cisco;command;ios::ShowSpeVersion;show spe version cisco;command;ios::ShowC7200;show c7200 cisco;command;ios::ShowInventory;show inventory raw cisco;command;ios::ShowVTP;show vtp status cisco;command;ios::ShowVLAN;show vlan cisco;command;ios::ShowVLAN;show vlan-switch cisco;command;ios::ShowDetail;show switch detail cisco;command;ios::ShowSDM;show sdm prefer cisco;command;ios::ShowMTU;show system mtu cisco;command;ios::ShowDebug;show debug cisco;command;ios::ShowShun;show shun;ASA/PIX cisco;command;ios::WriteTerm;more system:running-config;ASA/PIX #cisco;command;ios::WriteTerm;show running-config view full;workaround for role-based CLI cisco;command;ios::WriteTerm;show running-config cisco;command;ios::WriteTerm;write term I haven't received any error as of now, generally error triggered in a couple of days. On Tue, 29 Aug 2023 at 11:27, Anwar Durrani wrote: > I am sorry, let me re-phrase, it is not with 1-2 switches but all > switches. > > On Mon, 28 Aug 2023 at 20:27, Anwar Durrani > wrote: > >> Hi Ugo, >> I did not find any significant difference between working and non-working >> configurations, >> but for some of the switch rancid user locally present on working, and at >> the same time rancid user is not present on one of the working switches as >> well, I don't think so if this is the case. >> >> When i run rancid -t cisco switch1.xx.xx.com through switch10.xx.xx.com, >> it always gives me "switch10.xx.xx.com: End of run not found" >> Thanks >> >> On Sat, 26 Aug 2023 at 16:28, Ugo Bellavance wrote: >> >>> Did you read the logs on one non-working switch and compare with a >>> working one? >>> >>> On Sat, Aug 26, 2023, 00:05 Anwar Durrani >>> wrote: >>> >>>> Yes I did, It runs successfully and exits properly. This is >>>> happening with 3 switches only, I have 10 switches for other switches there >>>> is no complaint. >>>> >>>> On Sat, 26 Aug 2023 at 00:32, Ugo Bellavance wrote: >>>> >>>>> Did you try running the clogin script manually? >>>>> >>>>> On Fri, Aug 25, 2023 at 2:15?AM Anwar Durrani >>>>> wrote: >>>>> >>>>>> I have checked the logs it says >>>>>> switch01.x.x.x.com: End of run not found >>>>>> >>>>>> On Tue, 1 Aug 2023 at 04:37, Ugo Bellavance wrote: >>>>>> >>>>>>> Check your logs. >>>>>>> >>>>>>> On Mon, Jul 31, 2023 at 4:51?AM Anwar Durrani < >>>>>>> durrani.anwar at gmail.com> wrote: >>>>>>> >>>>>>>> Hi Team, >>>>>>>> I have added Cisco switches in Rancid, backup is taking place >>>>>>>> properly but every 2 days, I am getting the following routers have not been >>>>>>>> successfully contacted message, to resolve this issue I have to run the >>>>>>>> following command >>>>>>>> >>>>>>>> cd /var/lib/rancid/ >>>>>>>> >>>>>>>> rm -rf switches/ >>>>>>>> >>>>>>>> /usr/lib/rancid/bin/rancid-cvs >>>>>>>> >>>>>>>> A switches/.cvsignore >>>>>>>> >>>>>>>> A switches/configs >>>>>>>> >>>>>>>> A switches/configs/.cvsignore >>>>>>>> >>>>>>>> >>>>>>>> A switches/configs/switch2.xxxx.com >>>>>>>> >>>>>>>> A switches/configs/switch7.xxxx.com >>>>>>>> >>>>>>>> A switches/configs/switch8.xxxx.xxxx.xxxx.com >>>>>>>> >>>>>>>> A switches/configs/switch9-xxxx.com >>>>>>>> >>>>>>>> A switches/configs/switch5.xxxx.com >>>>>>>> >>>>>>>> A switches/router.db >>>>>>>> >>>>>>>> U switches >>>>>>>> >>>>>>>> Checked out revision 50872. >>>>>>>> >>>>>>>> Updating '.': >>>>>>>> >>>>>>>> At revision 50872. >>>>>>>> >>>>>>>> -- >>>>>>>> Thanks & regards, >>>>>>>> Anwar M. Durrani >>>>>>>> +91-9923205011 >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> Rancid-discuss mailing list >>>>>>>> Rancid-discuss at www.shrubbery.net >>>>>>>> https://www.shrubbery.net/mailman/listinfo/rancid-discuss >>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Ugo Bellavance (ugob at lubik.ca) >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Thanks & regards, >>>>>> Anwar M. Durrani >>>>>> +91-9923205011 >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> -- >>>>> Ugo Bellavance (ugob at lubik.ca) >>>>> >>>> >>>> >>>> -- >>>> Thanks & regards, >>>> Anwar M. Durrani >>>> +91-9923205011 >>>> >>>> >>>> >>>> >> >> -- >> Thanks & regards, >> Anwar M. Durrani >> +91-9923205011 >> >> >> >> > > -- > Thanks & regards, > Anwar M. Durrani > +91-9923205011 > > > > -- Thanks & regards, Anwar M. Durrani +91-9923205011 -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Thu Aug 31 19:58:51 2023 From: heas at shrubbery.net (heasley) Date: Thu, 31 Aug 2023 19:58:51 +0000 Subject: [rancid] Rancid configuration - switches The following routers have not been successfully contacted for more than 24 hours. In-Reply-To: References: Message-ID: Thu, Aug 31, 2023 at 02:52:43PM +0530, Anwar Durrani: > Hi Ugo, > > Earlier My config file /etc/rancid/rancid.type.base looks like If you wish to alter a rancid device type, you should create your own name that does not conflict with one in rancid.types.base, and place it in rancid.types.conf. rancid.types.base will be overwritten during the next upgrade. > >>>>>>>> properly but every 2 days, I am getting the following routers have not been > >>>>>>>> successfully contacted message, to resolve this issue I have to run the > >>>>>>>> following command > >>>>>>>> > >>>>>>>> cd /var/lib/rancid/ > >>>>>>>> > >>>>>>>> rm -rf switches/ > >>>>>>>> > >>>>>>>> /usr/lib/rancid/bin/rancid-cvs > >>>>>>>> > >>>>>>>> A switches/.cvsignore > >>>>>>>> > >>>>>>>> A switches/configs > >>>>>>>> > >>>>>>>> A switches/configs/.cvsignore > >>>>>>>> > >>>>>>>> > >>>>>>>> A switches/configs/switch2.xxxx.com > >>>>>>>> > >>>>>>>> A switches/configs/switch7.xxxx.com > >>>>>>>> > >>>>>>>> A switches/configs/switch8.xxxx.xxxx.xxxx.com > >>>>>>>> > >>>>>>>> A switches/configs/switch9-xxxx.com > >>>>>>>> > >>>>>>>> A switches/configs/switch5.xxxx.com > >>>>>>>> > >>>>>>>> A switches/router.db > >>>>>>>> > >>>>>>>> U switches > >>>>>>>> > >>>>>>>> Checked out revision 50872. > >>>>>>>> > >>>>>>>> Updating '.': > >>>>>>>> > >>>>>>>> At revision 50872. That is very odd. Needing to remove the group directory to restore collections implies that something is conflicting with the rancid processes. Without seeing the contents of your log file, possibly two rancid-run processes running at the same time because the lock file has been removed or some other process is altering the group directory. you should share the entire contents of the group's log file.