From dan.schmidt at uplinkdata.com Mon Nov 2 15:52:45 2009 From: dan.schmidt at uplinkdata.com (Schmidt, Daniel) Date: Mon, 2 Nov 2009 08:52:45 -0700 Subject: [rancid] Ignore memory changes? Message-ID: <05CC562AFB5A9446A1BC3F66AD04A3BCC7491F@che-exch-003.uplinkdata.com> Is there any way to ignore flash changes? Sorry if this has been asked before, I can't seem to find it. - !Flash: 475 -rwx 8271 Nov 1 2009 03:47:10 -07:00 config.text + !Flash: 473 -rwx 8271 Nov 2 2009 03:45:18 -07:00 config.text From ThomisonL at muni.org Mon Nov 2 21:18:37 2009 From: ThomisonL at muni.org (Thomison, Lee) Date: Mon, 2 Nov 2009 12:18:37 -0900 Subject: [rancid] Re: svn not updating? In-Reply-To: References: <27B58F038E8FC24680CE64F6CDC508E590A2DA34AE@mlpsmail01.mlp.muniverse.net> Message-ID: <27B58F038E8FC24680CE64F6CDC508E590A2DA8663@mlpsmail01.mlp.muniverse.net> That did it. I wasn't doing the svn update in /var/rancid/cis, and the /cis had me thinking I had something misconfigured to look for /cis. Thanks very much ________________________________________ Your repo directory seems to be in a busted state ("svn: Directory '/cis' is out of date")... Try this: cd /var/rancid/cis/ && svn update I believe it should work after that. oo From heas at shrubbery.net Mon Nov 2 21:24:39 2009 From: heas at shrubbery.net (john heasley) Date: Mon, 2 Nov 2009 13:24:39 -0800 Subject: [rancid] Re: Extreme Issue In-Reply-To: <013c01ca58b7$99d8eb70$cd8ac250$@com> References: <013c01ca58b7$99d8eb70$cd8ac250$@com> Message-ID: <20091102212439.GQ24498@shrubbery.net> Thu, Oct 29, 2009 at 11:48:11AM -0500, Peder: > I am having an issue getting RANCID to pull down my Extreme configs from > Summit 200's. I've seen several posts where others have had the same issue, > but I haven't really seen a solution. I am using local accounts on the > Extreme (I tried my username and admin and they both have the same issue). > I can ping and telnet to the extreme from the RANCID box, but it will just > not grab the configs. The logs just show "missed commands" and the devices > show in the "up" file. I am trying to pull configs from two switches and > they both have the same issue. I've tried this: > > ./clogin -c "show configuration detail" 192.168.1.2 > > It logs in, grabs the config and then just sits there. It never closes the > connection. If I do the same thing from a Cisco switch that I have, it goes > all the way thru and closes the connection just fine. you'll have to re-run this clogin with -d and collect the debug info near the end of the configuration dump to the hang point. also, include your host o/s info. > If I do ./clogin -d 192.168.1.2, I get this (I cut off some of the beginning > debugs as I don't think it is relevant because you can see that it actually > does get logged in and then just sits there): > > expect: set expect_out(0,string) "#" > expect: set expect_out(1,string) "#" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) " \r\n\r\n\r\nExtremeware\r\nCopyright (C) > 1996-2004 Extreme Networks. All rights > reserved.\r\n=============================================================== > \r\n\r\nPress the key at any time for completions.\r\nRemember to save > your configuration changes.\r\nS200-B:1 #" > send: sending "\r" to { exp4 } > > expect: does " " (spawn_id exp4) match regular expression "[\r\n]+"? no > "^(.+[:.])1 ((#| \(enable\)))"? no > "^.+(#| \(enable\))"? no > > S200-B:1 # > expect: does " \r\nS200-B:1 # " (spawn_id exp4) match regular expression > "[\r\n]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) " \r\n" > expect: continuing expect > > expect: does "S200-B:1 # " (spawn_id exp4) match regular expression > "[\r\n]+"? no > "^(.+[:.])1 ((#| \(enable\)))"? yes > expect: set expect_out(0,string) "S200-B:1 #" > expect: set expect_out(1,string) "S200-B:" > expect: set expect_out(2,string) "#" > expect: set expect_out(3,string) "#" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "S200-B:1 #" > tty_raw_noecho: was raw = 0 echo = 1 > > > > Any ideas? > > Peder > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From peder at networkoblivion.com Mon Nov 2 21:39:07 2009 From: peder at networkoblivion.com (Peder) Date: Mon, 2 Nov 2009 15:39:07 -0600 Subject: [rancid] Re: Extreme Issue In-Reply-To: <20091102212439.GQ24498@shrubbery.net> References: <013c01ca58b7$99d8eb70$cd8ac250$@com> <20091102212439.GQ24498@shrubbery.net> Message-ID: <090801ca5c04$e809c760$b81d5620$@com> It is an old Trustix Linux box. It works fine for Cisco routers, switches, PIX's and Juniper routers, it is just Extreme switches that fail. It shows the devices as up in routers.up, it just appears to hang when it tries to pull down the config. Here is the tail of this command: ./clogin -d -c "show configuration detail" 206.190.240.2 expect: does "config cpu-dos-protect port 25 alert-threshold 150 interval-time 1\r\nconfig cpu-dos-protect port 26 alert-threshold 150 interval-time 1\r\n# Enhanced-dos-protect configuration\r\ndisable enhanced-dos-protect ipfdb\r\ndisable enhanced-dos-protect rate-limit\r\n\r\n#\r\n# End of configuration file for "S200-B".\r\n#\r\nS200-B:2 # " (spawn_id exp4) match regular expression "\u0008+"? no "^[^\n\r *]*.? ?S200-B:\[0-9\]+ #"? no "^[^\n\r]*.? ?S200-B:\[0-9\]+ #."? no "^--More--[\r\n]+"? no "[\n\r]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "config cpu-dos-protect port 25 alert-threshold 150 interval-time 1\r\n" config cpu-dos-protect port 25 alert-threshold 150 interval-time 1 expect: continuing expect expect: does "config cpu-dos-protect port 26 alert-threshold 150 interval-time 1\r\n# Enhanced-dos-protect configuration\r\ndisable enhanced-dos-protect ipfdb\r\ndisable enhanced-dos-protect rate-limit\r\n\r\n#\r\n# End of configuration file for "S200-B".\r\n#\r\nS200-B:2 # " (spawn_id exp4) match regular expression "\u0008+"? no "^[^\n\r *]*.? ?S200-B:\[0-9\]+ #"? no "^[^\n\r]*.? ?S200-B:\[0-9\]+ #."? no "^--More--[\r\n]+"? no "[\n\r]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "config cpu-dos-protect port 26 alert-threshold 150 interval-time 1\r\n" config cpu-dos-protect port 26 alert-threshold 150 interval-time 1 expect: continuing expect expect: does "# Enhanced-dos-protect configuration\r\ndisable enhanced-dos-protect ipfdb\r\ndisable enhanced-dos-protect rate-limit\r\n\r\n#\r\n# End of configuration file for "S200-B".\r\n#\r\nS200-B:2 # " (spawn_id exp4) match regular expression "\u0008+"? no "^[^\n\r *]*.? ?S200-B:\[0-9\]+ #"? no "^[^\n\r]*.? ?S200-B:\[0-9\]+ #."? no "^--More--[\r\n]+"? no "[\n\r]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "# Enhanced-dos-protect configuration\r\n" # Enhanced-dos-protect configuration expect: continuing expect expect: does "disable enhanced-dos-protect ipfdb\r\ndisable enhanced-dos-protect rate-limit\r\n\r\n#\r\n# End of configuration file for "S200-B".\r\n#\r\nS200-B:2 # " (spawn_id exp4) match regular expression "\u0008+"? no "^[^\n\r *]*.? ?S200-B:\[0-9\]+ #"? no "^[^\n\r]*.? ?S200-B:\[0-9\]+ #."? no "^--More--[\r\n]+"? no "[\n\r]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "disable enhanced-dos-protect ipfdb\r\n" disable enhanced-dos-protect ipfdb expect: continuing expect expect: does "disable enhanced-dos-protect rate-limit\r\n\r\n#\r\n# End of configuration file for "S200-B".\r\n#\r\nS200-B:2 # " (spawn_id exp4) match regular expression "\u0008+"? no "^[^\n\r *]*.? ?S200-B:\[0-9\]+ #"? no "^[^\n\r]*.? ?S200-B:\[0-9\]+ #."? no "^--More--[\r\n]+"? no "[\n\r]+"? yes expect: set expect_out(0,string) "\r\n\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "disable enhanced-dos-protect rate-limit\r\n\r\n" disable enhanced-dos-protect rate-limit expect: continuing expect expect: does "#\r\n# End of configuration file for "S200-B".\r\n#\r\nS200-B:2 # " (spawn_id exp4) match regular expression "\u0008+"? no "^[^\n\r *]*.? ?S200-B:\[0-9\]+ #"? no "^[^\n\r]*.? ?S200-B:\[0-9\]+ #."? no "^--More--[\r\n]+"? no "[\n\r]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "#\r\n" # expect: continuing expect expect: does "# End of configuration file for "S200-B".\r\n#\r\nS200-B:2 # " (spawn_id exp4) match regular expression "\u0008+"? no "^[^\n\r *]*.? ?S200-B:\[0-9\]+ #"? no "^[^\n\r]*.? ?S200-B:\[0-9\]+ #."? no "^--More--[\r\n]+"? no "[\n\r]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "# End of configuration file for "S200-B".\r\n" # End of configuration file for "S200-B". expect: continuing expect expect: does "#\r\nS200-B:2 # " (spawn_id exp4) match regular expression "\u0008+"? no "^[^\n\r *]*.? ?S200-B:\[0-9\]+ #"? no "^[^\n\r]*.? ?S200-B:\[0-9\]+ #."? no "^--More--[\r\n]+"? no "[\n\r]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "#\r\n" # expect: continuing expect expect: does "S200-B:2 # " (spawn_id exp4) match regular expression "\u0008+"? no "^[^\n\r *]*.? ?S200-B:\[0-9\]+ #"? no "^[^\n\r]*.? ?S200-B:\[0-9\]+ #."? no "^--More--[\r\n]+"? no "[\n\r]+"? no "[^\r\n]*Press to cont[^\r\n]*"? no "^ *--More--[^\n\r]*"? no "^<-+ More -+>[^\n\r]*"? no From heas at shrubbery.net Mon Nov 2 21:46:07 2009 From: heas at shrubbery.net (john heasley) Date: Mon, 2 Nov 2009 13:46:07 -0800 Subject: [rancid] Re: Extreme Issue In-Reply-To: <090801ca5c04$e809c760$b81d5620$@com> References: <013c01ca58b7$99d8eb70$cd8ac250$@com> <20091102212439.GQ24498@shrubbery.net> <090801ca5c04$e809c760$b81d5620$@com> Message-ID: <20091102214606.GR24498@shrubbery.net> Mon, Nov 02, 2009 at 03:39:07PM -0600, Peder: > expect: does "S200-B:2 # " (spawn_id exp4) match regular expression > "\u0008+"? no > "^[^\n\r *]*.? ?S200-B:\[0-9\]+ #"? no > "^[^\n\r]*.? ?S200-B:\[0-9\]+ #."? no > "^--More--[\r\n]+"? no > "[\n\r]+"? no > "[^\r\n]*Press to cont[^\r\n]*"? no > "^ *--More--[^\n\r]*"? no > "^<-+ More -+>[^\n\r]*"? no your expect is broken. the 2nd or 3rd regex above should have matched. Also, it should not hang. even with this regex failure, it should eventually timeout. we've seen it before that timing (target or network speed) affect expect/tcl. From heas at shrubbery.net Mon Nov 2 22:52:24 2009 From: heas at shrubbery.net (john heasley) Date: Mon, 2 Nov 2009 14:52:24 -0800 Subject: [rancid] Re: After upgrade rancid works, rancid-run does not work In-Reply-To: <05CC562AFB5A9446A1BC3F66AD04A3BCC74918@che-exch-003.uplinkdata.com> References: <05CC562AFB5A9446A1BC3F66AD04A3BCC748EB@che-exch-003.uplinkdata.com> <20091028214514.GF27655@shrubbery.net> <05CC562AFB5A9446A1BC3F66AD04A3BCC748F8@che-exch-003.uplinkdata.com> <05CC562AFB5A9446A1BC3F66AD04A3BCC74918@che-exch-003.uplinkdata.com> Message-ID: <20091102225224.GU24498@shrubbery.net> Fri, Oct 30, 2009 at 01:29:43PM -0600, Schmidt, Daniel: > I believe this appears to be a control_rancid bug with inconsistent > capitalization. Possible regression as it seemed to work before. > > You've got perl that lowercases everything here: > > 205 perl -F: -ane '{($F[0] =~ tr at A-Z@a-z@,print "$F[0]:$F[1]\n") > 206 if ($F[2] =~ /^up$/i);}' routers.db > routers.up.new > 207 if [ ! -f routers.up ] ; then touch routers.up; fi > 208 diff -U 4 routers.up routers.up.new > /dev/null 2>&1; RUP=$? > > So, if somebody uses an uppercase character, it will never match here: thanks for catching that. i think that grep -i is sufficient...for you silly caps people :) > 356 # if a device (-r) was specified, see if that device is in this > group > 357 if [ "X$device" != "X" ] ; then > 358 trap 'rm -fr $TMP $DIR/routers.single;' 1 2 15 > 359 devlistfile="$DIR/routers.single" > 360 grep "^$device:" routers.up > $devlistfile > 361 if [ $? -eq 1 ] ; then > 362 exit; > 363 fi > 364 else > 365 devlistfile="$DIR/routers.up" > 366 fi > > It exits, conveniently without any error, at 362. > > I implemented a primitive fix to solve my problem. > > 51 tolower() > 52 { > 53 local char="$*" > 54 > 55 out=$(echo $char | tr [:upper:] [:lower:]) > 56 local retval=$? > 57 echo "$out" > 58 unset out > 59 unset char > 60 return $retval > 61 } > > 90 device=$(tolower "$1") > > > -----Original Message----- > From: rancid-discuss-bounces at shrubbery.net > [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Schmidt, > Daniel > Sent: Thursday, October 29, 2009 9:10 AM > To: john heasley > Cc: rancid-discuss at shrubbery.net > Subject: [rancid] Re: After upgrade rancid works, rancid-run does not > work > > Thanks for your suggestion! I am on Linux, however, the contents of > routers.up seem correct. Is there other troubleshooting I can do? > > -----Original Message----- > From: john heasley [mailto:heas at shrubbery.net] > Sent: Wednesday, October 28, 2009 3:45 PM > To: Schmidt, Daniel > Cc: rancid-discuss at shrubbery.net > Subject: Re: [rancid] After upgrade rancid works, rancid-run does not > work > > Wed, Oct 28, 2009 at 02:56:51PM -0600, Schmidt, Daniel: > > Many apologies if somebody has answered this - Rancid has always > worked > > for me before and I'm new to the list. Any assistance greatly > > appreciated. > > > > clogin and rancid work fine after upgrade, given the correct PATH. > > clogin logs in correctly, rancid correctly creates a router.new file. > > rancid-run does not work. The log is empty and tacacs logs show that > it > > didn't even try to login. > > > > rancid at che-rancid-001:~/var/logs$ cat group_name.20091028.142620 > > starting: Wed Oct 28 14:26:20 MDT 2009 > > > > > > > > ending: Wed Oct 28 14:26:21 MDT 2009 > > rancid at che-rancid-001:~/var/logs$ > > > > Everything seemed to install to the correct location with the > following > > configure. > > ./configure --localstatedir=/home/rancid --prefix=/home/rancid > > > > I tried a new rancid.conf including the new CVSROOT commands, but have > > not have any luck. Suggestions greatly appreciated! > > did routers.up get populated properly? if not, i'm guess is youre on > linux and configure screwed-up figuring out the options to diff. > _______________________________________________ > 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 dan.schmidt at uplinkdata.com Mon Nov 2 23:07:51 2009 From: dan.schmidt at uplinkdata.com (Schmidt, Daniel) Date: Mon, 2 Nov 2009 16:07:51 -0700 Subject: [rancid] Re: Ignore memory changes? In-Reply-To: <05CC562AFB5A9446A1BC3F66AD04A3BCC7491F@che-exch-003.uplinkdata.com> References: <05CC562AFB5A9446A1BC3F66AD04A3BCC7491F@che-exch-003.uplinkdata.com> Message-ID: <05CC562AFB5A9446A1BC3F66AD04A3BCC7492F@che-exch-003.uplinkdata.com> Sorry, I see this was brought up before - don't mean to kick a dead horse! I could easily remove nvram dirs from rancid, but I thought there should be more elegant solution. 95% of my spurious diffs could be eliminated by ignoring the startup-config & the bytes free. Adding a simple "| exc startup-config|bytes free" should work, but you can't grep on a dir statement for some lousy reason. But, aren't we skipping other stuff? (Apologies, can't speak Perl) 739 # filter frequently changing files from IOX bootflash 740 if ($dev =~ /bootflash/) { 741 next if (/temp_cont\s*$/); 742 next if (/uptime_cont\s*$/); 743 } -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Schmidt, Daniel Sent: Monday, November 02, 2009 8:53 AM To: rancid-discuss at shrubbery.net Subject: [rancid] Ignore memory changes? Is there any way to ignore flash changes? Sorry if this has been asked before, I can't seem to find it. - !Flash: 475 -rwx 8271 Nov 1 2009 03:47:10 -07:00 config.text + !Flash: 473 -rwx 8271 Nov 2 2009 03:45:18 -07:00 config.text _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From heas at shrubbery.net Tue Nov 3 06:47:38 2009 From: heas at shrubbery.net (john heasley) Date: Tue, 3 Nov 2009 06:47:38 +0000 Subject: [rancid] Re: Ignore memory changes? In-Reply-To: <05CC562AFB5A9446A1BC3F66AD04A3BCC7492F@che-exch-003.uplinkdata.com> References: <05CC562AFB5A9446A1BC3F66AD04A3BCC7491F@che-exch-003.uplinkdata.com> <05CC562AFB5A9446A1BC3F66AD04A3BCC7492F@che-exch-003.uplinkdata.com> Message-ID: <20091103064738.GC28427@shrubbery.net> Mon, Nov 02, 2009 at 04:07:51PM -0700, Schmidt, Daniel: > Sorry, I see this was brought up before - don't mean to kick a dead > horse! I could easily remove nvram dirs from rancid, but I thought > there should be more elegant solution. > > 95% of my spurious diffs could be eliminated by ignoring the > startup-config & the bytes free. the premise is that you want to know if the device is filling or if someone is writing files there. to smooth the notices for the former, we thought that could be rewritten in exponential format (printf %E)....just havent done anything about it yet. > Adding a simple "| exc startup-config|bytes free" should work, but you > can't grep on a dir statement for some lousy reason. But, aren't we > skipping other stuff? (Apologies, can't speak Perl) > > 739 # filter frequently changing files from IOX bootflash > 740 if ($dev =~ /bootflash/) { > 741 next if (/temp_cont\s*$/); > 742 next if (/uptime_cont\s*$/); > 743 } > > -----Original Message----- > From: rancid-discuss-bounces at shrubbery.net > [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Schmidt, > Daniel > Sent: Monday, November 02, 2009 8:53 AM > To: rancid-discuss at shrubbery.net > Subject: [rancid] Ignore memory changes? > > Is there any way to ignore flash changes? Sorry if this has been asked > before, I can't seem to find it. > > - !Flash: 475 -rwx 8271 Nov 1 2009 03:47:10 -07:00 > config.text > + !Flash: 473 -rwx 8271 Nov 2 2009 03:45:18 -07:00 > config.text > > _______________________________________________ > 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 mathiruban at gmail.com Tue Nov 3 13:44:29 2009 From: mathiruban at gmail.com (Mathiruban Rajagopal) Date: Tue, 3 Nov 2009 19:14:29 +0530 Subject: [rancid] Rancid not grab config Message-ID: <136e115c0911030544g6a4baa82rd59493334b5bed86@mail.gmail.com> Hi, I have set up the Rancid in Fedora Linux and working fine for some routers. The jogin is working from server and I can see the file in the directory * /usr/local/rancid/var/networking/configs* but not grab the configuration. In logs message I have this 203.115.1.32 jlogin error: Error: Check your password for 203.115.1.32 203.115.1.32: missed cmd(s): show chassis alarms,show chassis hardware detail,show system license,show chassis scb,show chassis feb,show chassis routing-engine,show chassis firmware,show version detail,show chassis feb detail,show configuration,show system boot-messages,show chassis cfeb,show chassis clocks,show chassis sfm detail,show chassis ssb,show chassis fpc detail,show chassis environment,show system core-dumps 203.115.1.32: End of run not found Pls help me. Rgds, Mathy. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091103/22947bcc/attachment.html From rwest at zyedge.com Tue Nov 3 14:41:24 2009 From: rwest at zyedge.com (Ryan West) Date: Tue, 3 Nov 2009 09:41:24 -0500 Subject: [rancid] Re: Rancid not grab config In-Reply-To: <136e115c0911030544g6a4baa82rd59493334b5bed86@mail.gmail.com> References: <136e115c0911030544g6a4baa82rd59493334b5bed86@mail.gmail.com> Message-ID: <6E21B2BDEF6E714EA0B5BA8D5D0E140124E2A1783A@zy-ex1.zyedge.local> Hi, Looks like you have your answer. Have you verified that you can use jlogin to connect to the device? 'jlogin -c ' ? -ryan From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Mathiruban Rajagopal Sent: Tuesday, November 03, 2009 8:44 AM 203.115.1.32 jlogin error: Error: Check your password for 203.115.1.32 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091103/c6501f01/attachment.html From sreekanth.krishna at gmail.com Wed Nov 4 12:11:14 2009 From: sreekanth.krishna at gmail.com (Sreekanth K) Date: Wed, 4 Nov 2009 17:41:14 +0530 Subject: [rancid] Help on Cisco Devices with RO access. End of run not found. Message-ID: <32c3e1da0911040411i7961d74dvf2842aee03ab8f79@mail.gmail.com> Dear All, I am facing a problem while using RANCID for certain set of Cisco devices. I have a set of devices to which I have only limited access and do not have the enable passwords. I have created new rancid and clogin scripts named cwrancid and cwlogin. I am not able to run rancid for these devices; I have hashed all the commands on cwrancid except "show startup-config". When I use cwlogin to directly attempt on my TestRouter, I am able to complete successfully. Logs appended below. Appreciate help from the fraternity since I have exhausted my skills. :) Cheers!!! Sreekanth. ================ Logs from RANCID ================ [rancid at rancid bin]$ ./cwrancid -d Testrouter.rou executing cwlogin -t 90 -c"show startup-config" Testrouter.rou Testrouter.rou: missed cmd(s): show startup-config Testrouter.rou: missed cmd(s): show startup-config Testrouter.rou: End of run not found Testrouter.rou: End of run not found ! [rancid at rancid bin]$ [rancid at rancid bin]$ ./cwlogin -t 90 -c"show startup-config" Testrouter.rou testrouter.rou spawn telnet testrouter.rou Trying 192.168.2.4... Connected to testrouter.rou. Escape character is '^]'. CCCCC ######################################################################## ### ### ### * WARNING * WARNING * WARNING * WARNING * ### ### ** FOR AUTHORISED NETWORK PERSONNEL ONLY ** ### ### ============================== ============= ### < ---- Truncated Output ------ > ntp server 192.168.2.240 end Testrouter >exit Connection closed by foreign host. [rancid at rancid bin]$ ================ Logs from RANCID ================ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091104/e82125d6/attachment.html From heas at shrubbery.net Wed Nov 4 16:16:24 2009 From: heas at shrubbery.net (john heasley) Date: Wed, 4 Nov 2009 08:16:24 -0800 Subject: [rancid] Re: Help on Cisco Devices with RO access. End of run not found. In-Reply-To: <32c3e1da0911040411i7961d74dvf2842aee03ab8f79@mail.gmail.com> References: <32c3e1da0911040411i7961d74dvf2842aee03ab8f79@mail.gmail.com> Message-ID: <20091104161624.GA21576@shrubbery.net> Wed, Nov 04, 2009 at 05:41:14PM +0530, Sreekanth K: > Dear All, > > I am facing a problem while using RANCID for certain set of Cisco devices. > I have a set of devices to which I have only limited access and do not have > the enable passwords. > I have created new rancid and clogin scripts named cwrancid and cwlogin. > I am not able to run rancid for these devices; I have hashed all the > commands on cwrancid except "show startup-config". > When I use cwlogin to directly attempt on my TestRouter, I am able to > complete successfully. > Logs appended below. > > Appreciate help from the fraternity since I have exhausted my skills. :) > > Cheers!!! > Sreekanth. > ================ Logs from RANCID ================ > [rancid at rancid bin]$ ./cwrancid -d Testrouter.rou > executing cwlogin -t 90 -c"show startup-config" Testrouter.rou > Testrouter.rou: missed cmd(s): show startup-config > Testrouter.rou: missed cmd(s): show startup-config > Testrouter.rou: End of run not found > Testrouter.rou: End of run not found > ! > [rancid at rancid bin]$ > [rancid at rancid bin]$ ./cwlogin -t 90 -c"show startup-config" Testrouter.rou > testrouter.rou > spawn telnet testrouter.rou > Trying 192.168.2.4... > Connected to testrouter.rou. > Escape character is '^]'. > CCCCC > ######################################################################## > ### ### > ### * WARNING * WARNING * WARNING * WARNING * ### > ### ** FOR AUTHORISED NETWORK PERSONNEL ONLY ** ### > ### ============================== ============= ### > remove the #s from the banner. see cloginrc(1). > < ---- Truncated Output ------ > > ntp server 192.168.2.240 > end > Testrouter >exit > Connection closed by foreign host. > [rancid at rancid bin]$ > ================ Logs from RANCID ================ > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From dan.schmidt at uplinkdata.com Wed Nov 4 18:53:52 2009 From: dan.schmidt at uplinkdata.com (Schmidt, Daniel) Date: Wed, 4 Nov 2009 11:53:52 -0700 Subject: [rancid] Re: Ignore memory changes? In-Reply-To: <20091103064738.GC28427@shrubbery.net> References: <05CC562AFB5A9446A1BC3F66AD04A3BCC7491F@che-exch-003.uplinkdata.com> <05CC562AFB5A9446A1BC3F66AD04A3BCC7492F@che-exch-003.uplinkdata.com> <20091103064738.GC28427@shrubbery.net> Message-ID: <05CC562AFB5A9446A1BC3F66AD04A3BCC74958@che-exch-003.uplinkdata.com> For those interested: Until such time as there is a better fix, a quick work around is to ignore those lines in the flash and ignore nvram entirely. Change line 707: /\s+(multiple-fs|nv_hdr|vlan\.dat)$/ && next; To: /\s+(config.text|private-config.text|multiple-fs|nv_hdr|vlan\.dat)$/ && next; And comment out nvram lines 1880,1893,1902. -----Original Message----- From: john heasley [mailto:heas at shrubbery.net] Sent: Monday, November 02, 2009 11:48 PM To: Schmidt, Daniel Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] Re: Ignore memory changes? Mon, Nov 02, 2009 at 04:07:51PM -0700, Schmidt, Daniel: > Sorry, I see this was brought up before - don't mean to kick a dead > horse! I could easily remove nvram dirs from rancid, but I thought > there should be more elegant solution. > > 95% of my spurious diffs could be eliminated by ignoring the > startup-config & the bytes free. the premise is that you want to know if the device is filling or if someone is writing files there. to smooth the notices for the former, we thought that could be rewritten in exponential format (printf %E)....just havent done anything about it yet. > Adding a simple "| exc startup-config|bytes free" should work, but you > can't grep on a dir statement for some lousy reason. But, aren't we > skipping other stuff? (Apologies, can't speak Perl) > > 739 # filter frequently changing files from IOX bootflash > 740 if ($dev =~ /bootflash/) { > 741 next if (/temp_cont\s*$/); > 742 next if (/uptime_cont\s*$/); > 743 } > > -----Original Message----- > From: rancid-discuss-bounces at shrubbery.net > [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Schmidt, > Daniel > Sent: Monday, November 02, 2009 8:53 AM > To: rancid-discuss at shrubbery.net > Subject: [rancid] Ignore memory changes? > > Is there any way to ignore flash changes? Sorry if this has been asked > before, I can't seem to find it. > > - !Flash: 475 -rwx 8271 Nov 1 2009 03:47:10 -07:00 > config.text > + !Flash: 473 -rwx 8271 Nov 2 2009 03:45:18 -07:00 > config.text > > _______________________________________________ > 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 dan.schmidt at uplinkdata.com Thu Nov 5 22:16:42 2009 From: dan.schmidt at uplinkdata.com (Schmidt, Daniel) Date: Thu, 5 Nov 2009 15:16:42 -0700 Subject: [rancid] Re: Rancid Reports Changes in router.db when no changes have been made Message-ID: <05CC562AFB5A9446A1BC3F66AD04A3BCC74976@che-exch-003.uplinkdata.com> What is odd is that this only seems to do this when you rancid-run from the command line when the previous run was from Cron. (or visa versa) Relevant code doesn't seem like much: 182 cut -d: -f1,2 routers.db > routers.all.new 189 perl -F: -ane '{($F[0] =~ tr at A-Z@a-z@,print "$F[0]:$F[1]\n") 190 if ($F[2] =~ /^up$/i);}' routers.db > routers.up.new 192 diff -u -4 routers.up routers.up.new > /dev/null 2>&1; RUP=$? 194 if [ $RALL -ne 0 -o $RDOWN -ne 0 -o $RUP -ne 0 ] 195 then 196 ( 197 if [ $RUP -ne 0 ] ; then 198 if [ ! -s routers.up ] ; then 199 echo Routers changed to up: 200 sed -e 's/^/ /' routers.up.new 201 echo 202 else 203 WCUP=`comm -13 routers.up routers.up.new | wc -l | \ 204 sed -e 's/^ *\([^ ]*\)/\1/'` 205 if [ $WCUP -gt 0 ] ; then 206 echo Routers changed to up: Term is set to network in rancid.conf, so I'm stumped as to how RUP or WCUP is nonzero on this. From cgauthier at mapscu.com Fri Nov 6 18:50:10 2009 From: cgauthier at mapscu.com (Chris Gauthier) Date: Fri, 6 Nov 2009 10:50:10 -0800 Subject: [rancid] upgrade from 2.3.2-a7-2? Message-ID: <0A9A5A2BC1C0A94C981AF5FCF2D2F3381460D51C@mshin01.mapscu.com> So, now that I have installed my new ASA5520, I have the same "coredump" file issue that had been previously reported by others. I know the fix is to upgrade to 2.3.2, but I'm not sure of the best way to do that since my installation is an ubuntu package installation. If I uninstall the package, then I will lose my configs and repository, right? How would you handle this? I think I need to uninstall the 3 rancid packages and build from source. I just don't want to lose everything in the process. Here are the 3 packages (all 2.3.20-a7-2) rancid-cgi rancid-core rancid-util Ideas? Chris Gauthier Network Administrator MaPS Credit Union v: 503.375.2445 f: 503.779.1083 http://www.mapscu.com "For once you have tasted flight you will walk the earth with your eyes turned skywards, for there you have been and there you will long to return." -Leonardo da Vinci -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091106/01d9df1f/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 497 bytes Desc: image001.gif Url : http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091106/01d9df1f/attachment.gif From tex at off.org Sun Nov 8 09:34:05 2009 From: tex at off.org (Austin Schutz) Date: Sun, 08 Nov 2009 01:34:05 -0800 Subject: [rancid] Monitoring rancid poll failures Message-ID: <4AF6908D.4080308@off.org> I would like to use an alternative to email monitoring of rancid poll failures. It would be nice if there were some way of displaying these failures alongside other types of alarms. I have been considering injecting alarms into netcool, which we have locally, but I would like to hear what other people are using. I have taken a brief glance also at nagios, zenoss, and opennms. But none of these appear to offer much flexibility when you get past initial stages. I don't want something to go out and do network polling, I just want to be able to create my own alarms which the interface should do intelligent things with. Also I don't want them doing snmp/other polling of the network, because I already have a system in place for that. I want to give system alarms, and have it do something reasonable with them. Also, when these systems (nagios, zenoss, etc.) offer the ability to generate an alarm in some custom fashion, it is typically possible to set a single alarm when something goes wrong, but not to generate multiple alarms at once. I would like to have one alarm for each device which rancid can't poll. In fact, I would like to not only send rancid alarms, I would also like to use it for catching alarms from other applications I babysit/develop. How are other people managing this? Austin From idris.frederick at kdlinc.com Fri Nov 6 23:00:11 2009 From: idris.frederick at kdlinc.com (Idris Frederick) Date: Fri, 6 Nov 2009 17:00:11 -0600 Subject: [rancid] can't access MRV 910 Message-ID: <62E7EC901849FE4DA33320637A9B2BD421E9D1CB59@MAILBOX-01.qcommcorp.ad> Trying to access MRV 910 through RANCID SERVER SO THAT I CAN AUTOMATE BACKUPS THE ERROR MESSAGE I GET IS : lab-910 login: rancid Password: Login incorrect 910 login: rancid Password: Login incorrect 910 login: rancid Password: Login incorrect 910 login: rancid Password: Login incorrect 910 login: rancid Password: Login incorrect 910 login: rancid Password: Login incorrect Connection closed by foreign host. spawn ssh -c 3des -x -l rancid 10.0.x.x ( Device) It times out... and refuses connection. I think this problem has a lot to do with the the .clogin file. But I am unsure... I have included a copy of that file in this email.... Idris Frederick Operations Support Engineer IP Operations KDL, Inc. idris.frederick at kdlinc.com Voice 812.253.2182 Cell 812.202.2450 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091106/299b4e00/attachment.html -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: CLOGIN.txt Url: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091106/299b4e00/attachment.txt From dan.schmidt at uplinkdata.com Mon Nov 9 15:17:39 2009 From: dan.schmidt at uplinkdata.com (Schmidt, Daniel) Date: Mon, 9 Nov 2009 08:17:39 -0700 Subject: [rancid] Re: upgrade from 2.3.2-a7-2? In-Reply-To: <0A9A5A2BC1C0A94C981AF5FCF2D2F3381460D51C@mshin01.mapscu.com> References: <0A9A5A2BC1C0A94C981AF5FCF2D2F3381460D51C@mshin01.mapscu.com> Message-ID: <05CC562AFB5A9446A1BC3F66AD04A3BCC7499A@che-exch-003.uplinkdata.com> I use ubuntu, but I installed from source. When I upgraded, I just wrote over what I had already. It worked fine. Well, besides the bugs which I've mentioned the past few weeks. ________________________________ From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Chris Gauthier Sent: Friday, November 06, 2009 11:50 AM To: rancid-discuss at shrubbery.net Subject: [rancid] upgrade from 2.3.2-a7-2? So, now that I have installed my new ASA5520, I have the same "coredump" file issue that had been previously reported by others. I know the fix is to upgrade to 2.3.2, but I'm not sure of the best way to do that since my installation is an ubuntu package installation. If I uninstall the package, then I will lose my configs and repository, right? How would you handle this? I think I need to uninstall the 3 rancid packages and build from source. I just don't want to lose everything in the process. Here are the 3 packages (all 2.3.20-a7-2) rancid-cgi rancid-core rancid-util Ideas? Chris Gauthier Network Administrator MaPS Credit Union v: 503.375.2445 f: 503.779.1083 http://www.mapscu.com "For once you have tasted flight you will walk the earth with your eyes turned skywards, for there you have been and there you will long to return." -Leonardo da Vinci -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091109/f7ef3b04/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 497 bytes Desc: image001.gif Url : http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091109/f7ef3b04/attachment.gif From bugs at ale.cx Mon Nov 9 10:53:32 2009 From: bugs at ale.cx (alex) Date: Mon, 9 Nov 2009 10:53:32 +0000 Subject: [rancid] Re: Monitoring rancid poll failures In-Reply-To: <4AF6908D.4080308@off.org> References: <4AF6908D.4080308@off.org> Message-ID: <200911091053.33041.bugs@ale.cx> On Sunday 08 November 2009 09:34:05 Austin Schutz wrote: > I have taken a brief glance also at nagios, zenoss, and opennms. But > none of these appear to offer much flexibility when you get past initial > stages. I don't want something to go out and do network polling, I just > want to be able to create my own alarms which the interface should do > intelligent things with. You might like to have a look at Zabbix. You can create a host with any number of checks, which could be SNMP, simple TCP, or external script [amongst others]. The external script zabbix uses to check a host could easily be RANCID. alexd From rancid at gheek.net Mon Nov 9 17:11:38 2009 From: rancid at gheek.net (Lance Vermilion) Date: Mon, 9 Nov 2009 10:11:38 -0700 Subject: [rancid] Re: Monitoring rancid poll failures In-Reply-To: <200911091053.33041.bugs@ale.cx> References: <4AF6908D.4080308@off.org> <200911091053.33041.bugs@ale.cx> Message-ID: <8423e7bb0911090911h45ad5fcu3a9960cee5a682b8@mail.gmail.com> Austin, I am sure you already know RANCID is going to be an option with OpenNMS's next stable release. Pretty handy but I think you were looking at a way to add an API like concept to RANCID so other NMS tools could tie into it. On Mon, Nov 9, 2009 at 3:53 AM, alex wrote: > On Sunday 08 November 2009 09:34:05 Austin Schutz wrote: > > > I have taken a brief glance also at nagios, zenoss, and opennms. But > > none of these appear to offer much flexibility when you get past initial > > stages. I don't want something to go out and do network polling, I just > > want to be able to create my own alarms which the interface should do > > intelligent things with. > > You might like to have a look at Zabbix. You can create a host with any > number > of checks, which could be SNMP, simple TCP, or external script [amongst > others]. The external script zabbix uses to check a host could easily be > RANCID. > > alexd > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091109/ef43eedf/attachment.html From heas at shrubbery.net Mon Nov 9 17:49:30 2009 From: heas at shrubbery.net (john heasley) Date: Mon, 9 Nov 2009 17:49:30 +0000 Subject: [rancid] Re: can't access MRV 910 In-Reply-To: <62E7EC901849FE4DA33320637A9B2BD421E9D1CB59@MAILBOX-01.qcommcorp.ad> References: <62E7EC901849FE4DA33320637A9B2BD421E9D1CB59@MAILBOX-01.qcommcorp.ad> Message-ID: <20091109174930.GH13448@shrubbery.net> Fri, Nov 06, 2009 at 05:00:11PM -0600, Idris Frederick: > Trying to access MRV 910 through RANCID SERVER SO THAT I CAN AUTOMATE BACKUPS > THE ERROR MESSAGE I GET IS : > > lab-910 login: rancid > Password: > Login incorrect > > 910 login: rancid > Password: > Login incorrect > > 910 login: rancid > Password: > Login incorrect > > 910 login: rancid > Password: > Login incorrect > > 910 login: rancid > Password: > Login incorrect > > 910 login: rancid > Password: > > Login incorrect > Connection closed by foreign host. > spawn ssh -c 3des -x -l rancid 10.0.x.x ( Device) > > It times out... and refuses connection. > > I think this problem has a lot to do with the the .clogin file. > But I am unsure... probably. use the debug option to see what it is sending. mrvlogin -d hostname From heas at shrubbery.net Mon Nov 9 22:26:21 2009 From: heas at shrubbery.net (john heasley) Date: Mon, 9 Nov 2009 22:26:21 +0000 Subject: [rancid] Re: Rancid Reports Changes in router.db when no changes have been made In-Reply-To: <05CC562AFB5A9446A1BC3F66AD04A3BCC74976@che-exch-003.uplinkdata.com> References: <05CC562AFB5A9446A1BC3F66AD04A3BCC74976@che-exch-003.uplinkdata.com> Message-ID: <20091109222621.GL18860@shrubbery.net> Thu, Nov 05, 2009 at 03:16:42PM -0700, Schmidt, Daniel: > What is odd is that this only seems to do this when you rancid-run from > the command line when the previous run was from Cron. (or visa versa) > Relevant code doesn't seem like much: > > 182 cut -d: -f1,2 routers.db > routers.all.new > > 189 perl -F: -ane '{($F[0] =~ tr at A-Z@a-z@,print "$F[0]:$F[1]\n") > 190 if ($F[2] =~ /^up$/i);}' routers.db > routers.up.new > > 192 diff -u -4 routers.up routers.up.new > /dev/null 2>&1; RUP=$? diff is the typical problem here. verify that the diff that you get is one that supports these options expressed in this manner. everywhere but linux, diffs accepts -u4. > 194 if [ $RALL -ne 0 -o $RDOWN -ne 0 -o $RUP -ne 0 ] > 195 then > 196 ( > 197 if [ $RUP -ne 0 ] ; then > 198 if [ ! -s routers.up ] ; then > 199 echo Routers changed to up: > 200 sed -e 's/^/ /' routers.up.new > 201 echo > 202 else > 203 WCUP=`comm -13 routers.up routers.up.new | wc -l | \ > 204 sed -e 's/^ *\([^ ]*\)/\1/'` > 205 if [ $WCUP -gt 0 ] ; then > 206 echo Routers changed to up: > > Term is set to network in rancid.conf, so I'm stumped as to how RUP or > WCUP is nonzero on this. > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From peter.klausner at gmail.com Tue Nov 10 16:31:53 2009 From: peter.klausner at gmail.com (Peter Klausner) Date: Tue, 10 Nov 2009 17:31:53 +0100 Subject: [rancid] Re: Monitoring rancid poll failures In-Reply-To: <8423e7bb0911090911h45ad5fcu3a9960cee5a682b8@mail.gmail.com> References: <4AF6908D.4080308@off.org> <200911091053.33041.bugs@ale.cx> <8423e7bb0911090911h45ad5fcu3a9960cee5a682b8@mail.gmail.com> Message-ID: <4b231bf00911100831g30d3ccc9y78c8b4cec4204eb5@mail.gmail.com> In a limited way, you can do that now - from your email configuration. Simply set up a pipe as [one of] your mail recipient[s]. A script then can do whatever magic. This sample entry in /etc/mail/aliases creates syslog messages - notice for the normal output, err when something goes wrong: rancid-group: "|/bin/logger -p user.notice -t rancid.group" rancid-admin-group: "|/bin/logger -p user.err -t rancid.group" Peter From sreekanth.krishna at gmail.com Tue Nov 10 17:19:48 2009 From: sreekanth.krishna at gmail.com (Sreekanth K) Date: Tue, 10 Nov 2009 22:49:48 +0530 Subject: [rancid] Re: Help on Cisco Devices with RO access. End of run not found. In-Reply-To: <20091104161624.GA21576@shrubbery.net> References: <32c3e1da0911040411i7961d74dvf2842aee03ab8f79@mail.gmail.com> <20091104161624.GA21576@shrubbery.net> Message-ID: <32c3e1da0911100919h7d47c119h70ec10c3096a0b2b@mail.gmail.com> Hello John and all, Tried the same... Deleted the login banner altogether... still no luck... Note: I have used no enable in cloginrc and have hashed away all the commands and added show startup-config in the cwrancid file which I have created... No other changes :( ================ Logs from RANCID ================ [rancid at rancid bin]$ ./cwrancid -d Testrouter.rou executing cwlogin -t 90 -c"show startup-config" Testrouter.rou Testrouter.rou: missed cmd(s): show startup-config Testrouter.rou: missed cmd(s): show startup-config Testrouter.rou: End of run not found Testrouter.rou: End of run not found ! [rancid at rancid bin]$ ./cwlogin -t 90 -c"show startup-config" Testrouter.rou testrouter.rou spawn telnet testrouter.rou Trying 10.157.37.2... Connected to testrouter.rou. Escape character is '^]'. User Access Verification Username: rancid Password: Testrouter> Testrouter>terminal length 0 Testrouter>show startup-config Using 6692 out of 29688 bytes ! ! Last configuration change at 10:29:40 GMT Tue Nov 10 2009 by rancid ! NVRAM config last updated at 10:29:44 GMT Tue Nov 10 2009 by rancid ! version 12.2 < ---- Truncated Output ------ > ntp server 192.168.2.240 end Testrouter>exit Connection closed by foreign host. [rancid at rancid bin]$ ================ Logs from RANCID ================ Some suggestions to help me out ? Cheers!! Sreekanth On Wed, Nov 4, 2009 at 9:46 PM, john heasley wrote: > Wed, Nov 04, 2009 at 05:41:14PM +0530, Sreekanth K: > > Dear All, > > > > I am facing a problem while using RANCID for certain set of Cisco > devices. > > I have a set of devices to which I have only limited access and do not > have > > the enable passwords. > > I have created new rancid and clogin scripts named cwrancid and cwlogin. > > I am not able to run rancid for these devices; I have hashed all the > > commands on cwrancid except "show startup-config". > > When I use cwlogin to directly attempt on my TestRouter, I am able to > > complete successfully. > > Logs appended below. > > > > Appreciate help from the fraternity since I have exhausted my skills. :) > > > > Cheers!!! > > Sreekanth. > > ================ Logs from RANCID ================ > > [rancid at rancid bin]$ ./cwrancid -d Testrouter.rou > > executing cwlogin -t 90 -c"show startup-config" Testrouter.rou > > Testrouter.rou: missed cmd(s): show startup-config > > Testrouter.rou: missed cmd(s): show startup-config > > Testrouter.rou: End of run not found > > Testrouter.rou: End of run not found > > ! > > [rancid at rancid bin]$ > > [rancid at rancid bin]$ ./cwlogin -t 90 -c"show startup-config" > Testrouter.rou > > testrouter.rou > > spawn telnet testrouter.rou > > Trying 192.168.2.4... > > Connected to testrouter.rou. > > Escape character is '^]'. > > CCCCC > > ######################################################################## > > ### ### > > ### * WARNING * WARNING * WARNING * WARNING * ### > > ### ** FOR AUTHORISED NETWORK PERSONNEL ONLY ** ### > > ### ============================== ============= ### > > > > remove the #s from the banner. see cloginrc(1). > > > < ---- Truncated Output ------ > > > ntp server 192.168.2.240 > > end > > Testrouter >exit > > Connection closed by foreign host. > > [rancid at rancid bin]$ > > ================ Logs from RANCID ================ > > > _______________________________________________ > > Rancid-discuss mailing list > > Rancid-discuss at shrubbery.net > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > -- Best Regards K Sreekanth 09941914363 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091110/0f6ec281/attachment.html From mksmith at adhost.com Tue Nov 10 17:35:53 2009 From: mksmith at adhost.com (Michael K. Smith - Adhost) Date: Tue, 10 Nov 2009 09:35:53 -0800 Subject: [rancid] No successful runs - SSH AAA enabled devices Message-ID: <17838240D9A5544AAA5FF95F8D52031607028ADD@ad-exh01.adhost.lan> Hello Everyone: Environment: FreeBSD 6.4 Expect 5.44.1.11 TCL 8.6 Problem: Any device that is ssh-enabled (version 2) using AAA authentication (so no secondary enable pass required) is failing. .cloginrc info (sanitized) add user hostname.tld.com rancid add password hostname.tld.com p\@ssword (note the escape of the @) add autoenable hostname.tld.com 1 add method hostname.tld.com ssh add cyphertype hostname.tld.com 3des Troubleshooting: clogin -d hostname.tld.com -> Successful Log Output: - Routers (GSR's) hostname.tld.com: missed cmd(s): show rsp chassis-info,show module,write term,show running-config hostname.tld.com: End of run not found - Switches (mix of 3560's and 4006's) hostname.tld.com: missed cmd(s): write term,show running-config hostname.tld.com: End of run not found I've confirmed via clogin that the commands above, particularly the write term and sho running are working correctly. Any help would be greatly appreciated. Kind Regards, Mike -- Michael K. Smith - CISSP, GISP Adhost Internet LLC mksmith at adhost.com w: +1 (206) 404-9500 f: +1 (206) 404-9050 PGP: B49A DDF5 8611 27F3 08B9 84BB E61E 38C0 (Key ID: 0x9A96777D) From heas at shrubbery.net Tue Nov 10 20:29:00 2009 From: heas at shrubbery.net (john heasley) Date: Tue, 10 Nov 2009 12:29:00 -0800 Subject: [rancid] Re: Help on Cisco Devices with RO access. End of run not found. In-Reply-To: <32c3e1da0911100919h7d47c119h70ec10c3096a0b2b@mail.gmail.com> References: <32c3e1da0911040411i7961d74dvf2842aee03ab8f79@mail.gmail.com> <20091104161624.GA21576@shrubbery.net> <32c3e1da0911100919h7d47c119h70ec10c3096a0b2b@mail.gmail.com> Message-ID: <20091110202900.GP13196@shrubbery.net> Tue, Nov 10, 2009 at 10:49:48PM +0530, Sreekanth K: > Hello John and all, > > Tried the same... Deleted the login banner altogether... still no luck... > Note: I have used no enable in cloginrc and have hashed away all the > commands and added show startup-config in the cwrancid file which I have > created... No other changes :( > > ================ Logs from RANCID ================ > > [rancid at rancid bin]$ ./cwrancid -d Testrouter.rou > > executing cwlogin -t 90 -c"show startup-config" Testrouter.rou > > Testrouter.rou: missed cmd(s): show startup-config > > Testrouter.rou: missed cmd(s): show startup-config > > Testrouter.rou: End of run not found > > Testrouter.rou: End of run not found > > ! > > [rancid at rancid bin]$ ./cwlogin -t 90 -c"show startup-config" Testrouter.rou > > testrouter.rou > > spawn telnet testrouter.rou > > Trying 10.157.37.2... > > Connected to testrouter.rou. > > Escape character is '^]'. > > > > User Access Verification > > Username: rancid > > Password: > > > > Testrouter> ^ the rancid script looks for #. you'll ahve to change it. From heas at shrubbery.net Tue Nov 10 20:48:41 2009 From: heas at shrubbery.net (john heasley) Date: Tue, 10 Nov 2009 12:48:41 -0800 Subject: [rancid] Re: No successful runs - SSH AAA enabled devices In-Reply-To: <17838240D9A5544AAA5FF95F8D52031607028ADD@ad-exh01.adhost.lan> References: <17838240D9A5544AAA5FF95F8D52031607028ADD@ad-exh01.adhost.lan> Message-ID: <20091110204841.GX13196@shrubbery.net> Tue, Nov 10, 2009 at 09:35:53AM -0800, Michael K. Smith - Adhost: > Hello Everyone: > > Environment: > FreeBSD 6.4 > Expect 5.44.1.11 > TCL 8.6 > > Problem: > Any device that is ssh-enabled (version 2) using AAA authentication (so > no secondary enable pass required) is failing. > > .cloginrc info (sanitized) > add user hostname.tld.com rancid > add password hostname.tld.com p\@ssword (note the escape of the @) > add autoenable hostname.tld.com 1 > add method hostname.tld.com ssh > add cyphertype hostname.tld.com 3des > > Troubleshooting: > clogin -d hostname.tld.com -> Successful > > Log Output: > - Routers (GSR's) > hostname.tld.com: missed cmd(s): show rsp chassis-info,show module,write > term,show running-config > hostname.tld.com: End of run not found > - Switches (mix of 3560's and 4006's) > hostname.tld.com: missed cmd(s): write term,show running-config > hostname.tld.com: End of run not found > > I've confirmed via clogin that the commands above, particularly the > write term and sho running are working correctly. try all the commands; look in the rancid script for the list. clogin -c 'cmd1;cmd2;...' and verify that this works or helps identify the problem. freebsd's expect port seems to have recurring problems. i know this combo works ATM: expect-5.43.0_3 A sophisticated scripter based on tcl/tk tcl-8.3.5_8 Tool Command Language FreeBSD 8.0-RC1 From dan.schmidt at uplinkdata.com Tue Nov 10 20:57:17 2009 From: dan.schmidt at uplinkdata.com (Schmidt, Daniel) Date: Tue, 10 Nov 2009 13:57:17 -0700 Subject: [rancid] Re: Rancid Reports Changes in router.db when nochanges have been made In-Reply-To: <20091109222621.GL18860@shrubbery.net> References: <05CC562AFB5A9446A1BC3F66AD04A3BCC74976@che-exch-003.uplinkdata.com> <20091109222621.GL18860@shrubbery.net> Message-ID: <05CC562AFB5A9446A1BC3F66AD04A3BCC749BE@che-exch-003.uplinkdata.com> On ubuntu, it should be diff -U 4, which it is. (lines below accidentally from old control_rancid) < diff -U 4 routers.up routers.up.new > /dev/null 2>&1; RUP=$? --- > diff -u -4 routers.up routers.up.new > /dev/null 2>&1; RUP=$? rancid at che-rancid-001:~/var/Telco1$ diff -u -4 diff: `-4' option is obsolete; use `-U 4' diff: Try `diff --help' for more information. I can't seem to track this one down. At the command line: sed -e '/^#/d' -e 's/^ *//' -e 's/ *$//' -e 's/ *: */:/g' router.db | sort -u > routers.db perl -F: -ane '{($F[0] =~ tr at A-Z@a-z@,print $_) if ($F[2] !~ /^up$/i);}' routers.db Gives me just one device: FIX_DIFF_BUG:cisco:down But the old routers.up has every device with the exception of FIX_DIFF_BUG. Hence, diff spits out a bunch of erroneous garbage about stuff going up and down. So, the question is, as my routers.all is the former routers.all: Why do we get a different routers.all.new depending when called from command line as opposed to when it is called as a cron job? Is my logic flawed? 302 mv -f routers.all.new routers.all -----Original Message----- From: john heasley [mailto:heas at shrubbery.net] Sent: Monday, November 09, 2009 3:26 PM To: Schmidt, Daniel Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] Re: Rancid Reports Changes in router.db when nochanges have been made Thu, Nov 05, 2009 at 03:16:42PM -0700, Schmidt, Daniel: > What is odd is that this only seems to do this when you rancid-run from > the command line when the previous run was from Cron. (or visa versa) > Relevant code doesn't seem like much: > > 182 cut -d: -f1,2 routers.db > routers.all.new > > 189 perl -F: -ane '{($F[0] =~ tr at A-Z@a-z@,print "$F[0]:$F[1]\n") > 190 if ($F[2] =~ /^up$/i);}' routers.db > routers.up.new > > 192 diff -u -4 routers.up routers.up.new > /dev/null 2>&1; RUP=$? diff is the typical problem here. verify that the diff that you get is one that supports these options expressed in this manner. everywhere but linux, diffs accepts -u4. > 194 if [ $RALL -ne 0 -o $RDOWN -ne 0 -o $RUP -ne 0 ] > 195 then > 196 ( > 197 if [ $RUP -ne 0 ] ; then > 198 if [ ! -s routers.up ] ; then > 199 echo Routers changed to up: > 200 sed -e 's/^/ /' routers.up.new > 201 echo > 202 else > 203 WCUP=`comm -13 routers.up routers.up.new | wc -l | \ > 204 sed -e 's/^ *\([^ ]*\)/\1/'` > 205 if [ $WCUP -gt 0 ] ; then > 206 echo Routers changed to up: > > Term is set to network in rancid.conf, so I'm stumped as to how RUP or > WCUP is nonzero on this. > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From mksmith at adhost.com Tue Nov 10 21:10:23 2009 From: mksmith at adhost.com (Michael K. Smith - Adhost) Date: Tue, 10 Nov 2009 13:10:23 -0800 Subject: [rancid] Re: No successful runs - SSH AAA enabled devices In-Reply-To: <20091110204841.GX13196@shrubbery.net> References: <17838240D9A5544AAA5FF95F8D52031607028ADD@ad-exh01.adhost.lan> <20091110204841.GX13196@shrubbery.net> Message-ID: <17838240D9A5544AAA5FF95F8D52031607028B7E@ad-exh01.adhost.lan> > -----Original Message----- > From: john heasley [mailto:heas at shrubbery.net] > Sent: Tuesday, November 10, 2009 12:49 PM > To: Michael K. Smith - Adhost > Cc: rancid-discuss at shrubbery.net > Subject: Re: [rancid] No successful runs - SSH AAA enabled devices > > Tue, Nov 10, 2009 at 09:35:53AM -0800, Michael K. Smith - Adhost: > > Hello Everyone: > > > > Environment: > > FreeBSD 6.4 > > Expect 5.44.1.11 > > TCL 8.6 > > > > Problem: > > Any device that is ssh-enabled (version 2) using AAA authentication > (so > > no secondary enable pass required) is failing. > > > > .cloginrc info (sanitized) > > add user hostname.tld.com rancid > > add password hostname.tld.com p\@ssword (note the escape of the > @) > > add autoenable hostname.tld.com 1 > > add method hostname.tld.com ssh > > add cyphertype hostname.tld.com 3des > > > > Troubleshooting: > > clogin -d hostname.tld.com -> Successful > > > > Log Output: > > - Routers (GSR's) > > hostname.tld.com: missed cmd(s): show rsp chassis-info,show > module,write > > term,show running-config > > hostname.tld.com: End of run not found > > - Switches (mix of 3560's and 4006's) > > hostname.tld.com: missed cmd(s): write term,show running-config > > hostname.tld.com: End of run not found > > > > I've confirmed via clogin that the commands above, particularly the > > write term and sho running are working correctly. > > try all the commands; look in the rancid script for the list. > clogin -c 'cmd1;cmd2;...' and verify that this works or helps identify > the problem. > > freebsd's expect port seems to have recurring problems. i know this > combo > works ATM: > expect-5.43.0_3 A sophisticated scripter based on tcl/tk > tcl-8.3.5_8 Tool Command Language > FreeBSD 8.0-RC1 Ouch. :-) I reverted to the Expect and TCL versions above and now I get the output below. BTW, I confirmed that the commands listed are available on the device. Obviously, there are some commands that aren't going to work "sho rsp" as an example. Do these need to be commented out in the rancid script? Regards, Mike starting: Tue Nov 10 13:00:53 PST 2009 Trying to get all of the configs. write(spawn_id=1): broken pipe while executing "send_user -- "$expect_out(buffer)"" invoked from within "expect -nobrace -re+ { exp_continue } -re {^[^ ^M *]*3550_f-3-a([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} { send_user -- "$expect_out(buffer)" } -re {^..." invoked from within "expect { -re "\b+" { exp_continue } -re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)" } -re "^\[^\n\r]*$reprom..." (procedure "run_commands" line 39) invoked from within "run_commands $prompt $command" ("foreach" body line 149) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] # attempt at platform switching. set platform "" send_user ..." (file "/home/rancid/bin/clogin" line 723) 3550f-3-a.adhost.com: missed cmd(s): write term,show running-config 3550f-3-a.adhost.com: End of run not found ! write(spawn_id=1): broken pipe while executing "send_user -- "$expect_out(buffer)"" invoked from within "expect -nobrace -re+ { exp_continue } -re {^[^ ^M *]*sea-bsw05([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} { send_user -- "$expect_out(buffer)" } -re {^[..." invoked from within "expect { -re "\b+" { exp_continue } -re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)" } -re "^\[^\n\r]*$reprom..." (procedure "run_commands" line 39) invoked from within "run_commands $prompt $command" ("foreach" body line 149) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] # attempt at platform switching. set platform "" send_user ..." (file "/home/rancid/bin/clogin" line 723) sea-bsw05.adhost.com: missed cmd(s): write term,show running-config sea-bsw05.adhost.com: End of run not found ! ===================================== Getting missed routers: round 1. write(spawn_id=1): broken pipe while executing "send_user -- "$expect_out(buffer)"" invoked from within "expect -nobrace -re+ { exp_continue } -re {^[^ ^M *]*sea-bsw05([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} { send_user -- "$expect_out(buffer)" } -re {^[..." invoked from within "expect { -re "\b+" { exp_continue } -re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)" } -re "^\[^\n\r]*$reprom..." (procedure "run_commands" line 39) invoked from within "run_commands $prompt $command" ("foreach" body line 149) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] # attempt at platform switching. set platform "" send_user ..." (file "/home/rancid/bin/clogin" line 723) sea-bsw05.adhost.com: missed cmd(s): write term,show running-config sea-bsw05.adhost.com: End of run not found ! write(spawn_id=1): broken pipe while executing "send_user -- "$expect_out(buffer)"" invoked from within "expect -nobrace -re+ { exp_continue } -re {^[^ ^M *]*3550_f-3-a([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} { send_user -- "$expect_out(buffer)" } -re {^..." invoked from within "expect { -re "\b+" { exp_continue } -re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)" } -re "^\[^\n\r]*$reprom..." (procedure "run_commands" line 39) invoked from within "run_commands $prompt $command" ("foreach" body line 149) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] # attempt at platform switching. set platform "" send_user ..." (file "/home/rancid/bin/clogin" line 723) 3550f-3-a.adhost.com: missed cmd(s): write term,show running-config 3550f-3-a.adhost.com: End of run not found ! cvs diff: Diffing . cvs diff: Diffing configs cvs commit: Examining . cvs commit: Examining configs ending: Tue Nov 10 13:03:17 PST 2009 (END) From heas at shrubbery.net Tue Nov 10 21:47:49 2009 From: heas at shrubbery.net (john heasley) Date: Tue, 10 Nov 2009 13:47:49 -0800 Subject: [rancid] Re: Rancid Reports Changes in router.db when nochanges have been made In-Reply-To: <05CC562AFB5A9446A1BC3F66AD04A3BCC749BE@che-exch-003.uplinkdata.com> References: <05CC562AFB5A9446A1BC3F66AD04A3BCC74976@che-exch-003.uplinkdata.com> <20091109222621.GL18860@shrubbery.net> <05CC562AFB5A9446A1BC3F66AD04A3BCC749BE@che-exch-003.uplinkdata.com> Message-ID: <20091110214749.GF13196@shrubbery.net> Tue, Nov 10, 2009 at 01:57:17PM -0700, Schmidt, Daniel: > On ubuntu, it should be diff -U 4, which it is. (lines below > accidentally from old control_rancid) > > < diff -U 4 routers.up routers.up.new > /dev/null 2>&1; RUP=$? > --- > > diff -u -4 routers.up routers.up.new > /dev/null 2>&1; RUP=$? > > rancid at che-rancid-001:~/var/Telco1$ diff -u -4 > diff: `-4' option is obsolete; use `-U 4' > diff: Try `diff --help' for more information. > > I can't seem to track this one down. > > At the command line: > sed -e '/^#/d' -e 's/^ *//' -e 's/ *$//' -e 's/ *: */:/g' router.db | > sort -u > routers.db > perl -F: -ane '{($F[0] =~ tr at A-Z@a-z@,print $_) if ($F[2] !~ /^up$/i);}' > routers.db > > Gives me just one device: > FIX_DIFF_BUG:cisco:down > > But the old routers.up has every device with the exception of > FIX_DIFF_BUG. which it should, if no others are marked not 'up' > Hence, diff spits out a bunch of erroneous garbage about > stuff going up and down. what? > So, the question is, as my routers.all is the > former routers.all: i presume this meant "is the same as". > Why do we get a different routers.all.new depending when called from > command line as opposed to when it is called as a cron job? Is my logic > flawed? what exit code is diff returning in each case? are you getting the same diff executable? is someone add an environment variable to sort or diff thats affecting the output and you happen to have that environment variable set for some completely different reason...or they changed the manner in which either of those commands work and you now have to set an environment variable to get the normal behavior? > 302 mv -f routers.all.new routers.all > > -----Original Message----- > From: john heasley [mailto:heas at shrubbery.net] > Sent: Monday, November 09, 2009 3:26 PM > To: Schmidt, Daniel > Cc: rancid-discuss at shrubbery.net > Subject: Re: [rancid] Re: Rancid Reports Changes in router.db when > nochanges have been made > > Thu, Nov 05, 2009 at 03:16:42PM -0700, Schmidt, Daniel: > > What is odd is that this only seems to do this when you rancid-run > from > > the command line when the previous run was from Cron. (or visa versa) > > Relevant code doesn't seem like much: > > > > 182 cut -d: -f1,2 routers.db > routers.all.new > > > > 189 perl -F: -ane '{($F[0] =~ tr at A-Z@a-z@,print "$F[0]:$F[1]\n") > > 190 if ($F[2] =~ /^up$/i);}' routers.db > routers.up.new > > > > 192 diff -u -4 routers.up routers.up.new > /dev/null 2>&1; RUP=$? > > diff is the typical problem here. verify that the diff that you get > is one that supports these options expressed in this manner. everywhere > but linux, diffs accepts -u4. > > > 194 if [ $RALL -ne 0 -o $RDOWN -ne 0 -o $RUP -ne 0 ] > > 195 then > > 196 ( > > 197 if [ $RUP -ne 0 ] ; then > > 198 if [ ! -s routers.up ] ; then > > 199 echo Routers changed to up: > > 200 sed -e 's/^/ /' routers.up.new > > 201 echo > > 202 else > > 203 WCUP=`comm -13 routers.up routers.up.new | wc -l | > \ > > 204 sed -e 's/^ *\([^ ]*\)/\1/'` > > 205 if [ $WCUP -gt 0 ] ; then > > 206 echo Routers changed to up: > > > > Term is set to network in rancid.conf, so I'm stumped as to how RUP or > > WCUP is nonzero on this. > > _______________________________________________ > > Rancid-discuss mailing list > > Rancid-discuss at shrubbery.net > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From dan.schmidt at uplinkdata.com Tue Nov 10 22:02:18 2009 From: dan.schmidt at uplinkdata.com (Schmidt, Daniel) Date: Tue, 10 Nov 2009 15:02:18 -0700 Subject: [rancid] Re: Rancid Reports Changes in router.db whennochanges have been made In-Reply-To: <20091110214749.GF13196@shrubbery.net> References: <05CC562AFB5A9446A1BC3F66AD04A3BCC74976@che-exch-003.uplinkdata.com> <20091109222621.GL18860@shrubbery.net> <05CC562AFB5A9446A1BC3F66AD04A3BCC749BE@che-exch-003.uplinkdata.com> <20091110214749.GF13196@shrubbery.net> Message-ID: <05CC562AFB5A9446A1BC3F66AD04A3BCC749C1@che-exch-003.uplinkdata.com> Apologies, let's try that again. The routers.up.new and the routers.up are the ones that strangely differ depending on whether rancid-run was called via cron, or command line. The problem does not appear to be with diff. Diff works fine, it accurately reports there is a difference between routers.up & routers.up.new. Running said command lines I get just one line: $ sed -e '/^#/d' -e 's/^ *//' -e 's/ *$//' -e 's/ *: */:/g' router.db | sort -u > routers.db $ perl -F: -ane '{($F[0] =~ tr at A-Z@a-z@,print $_) if ($F[2] !~ /^up$/i);}' routers.db FIX_DIFF_BUG:cisco:down $ However, my routers.up contains everything but FIX_DIFF_BUG for some odd reason. Diff then accurately reports the files differ greatly. diff -U 4 routers.up routers.up.new -----Original Message----- From: john heasley [mailto:heas at shrubbery.net] Sent: Tuesday, November 10, 2009 2:48 PM To: Schmidt, Daniel Cc: john heasley; rancid-discuss at shrubbery.net Subject: Re: [rancid] Re: Rancid Reports Changes in router.db whennochanges have been made Tue, Nov 10, 2009 at 01:57:17PM -0700, Schmidt, Daniel: > On ubuntu, it should be diff -U 4, which it is. (lines below > accidentally from old control_rancid) > > < diff -U 4 routers.up routers.up.new > /dev/null 2>&1; RUP=$? > --- > > diff -u -4 routers.up routers.up.new > /dev/null 2>&1; RUP=$? > > rancid at che-rancid-001:~/var/Telco1$ diff -u -4 > diff: `-4' option is obsolete; use `-U 4' > diff: Try `diff --help' for more information. > > I can't seem to track this one down. > > At the command line: > sed -e '/^#/d' -e 's/^ *//' -e 's/ *$//' -e 's/ *: */:/g' router.db | > sort -u > routers.db > perl -F: -ane '{($F[0] =~ tr at A-Z@a-z@,print $_) if ($F[2] !~ /^up$/i);}' > routers.db > > Gives me just one device: > FIX_DIFF_BUG:cisco:down > > But the old routers.up has every device with the exception of > FIX_DIFF_BUG. which it should, if no others are marked not 'up' > Hence, diff spits out a bunch of erroneous garbage about > stuff going up and down. what? > So, the question is, as my routers.all is the > former routers.all: i presume this meant "is the same as". > Why do we get a different routers.all.new depending when called from > command line as opposed to when it is called as a cron job? Is my logic > flawed? what exit code is diff returning in each case? are you getting the same diff executable? is someone add an environment variable to sort or diff thats affecting the output and you happen to have that environment variable set for some completely different reason...or they changed the manner in which either of those commands work and you now have to set an environment variable to get the normal behavior? > 302 mv -f routers.all.new routers.all > > -----Original Message----- > From: john heasley [mailto:heas at shrubbery.net] > Sent: Monday, November 09, 2009 3:26 PM > To: Schmidt, Daniel > Cc: rancid-discuss at shrubbery.net > Subject: Re: [rancid] Re: Rancid Reports Changes in router.db when > nochanges have been made > > Thu, Nov 05, 2009 at 03:16:42PM -0700, Schmidt, Daniel: > > What is odd is that this only seems to do this when you rancid-run > from > > the command line when the previous run was from Cron. (or visa versa) > > Relevant code doesn't seem like much: > > > > 182 cut -d: -f1,2 routers.db > routers.all.new > > > > 189 perl -F: -ane '{($F[0] =~ tr at A-Z@a-z@,print "$F[0]:$F[1]\n") > > 190 if ($F[2] =~ /^up$/i);}' routers.db > routers.up.new > > > > 192 diff -u -4 routers.up routers.up.new > /dev/null 2>&1; RUP=$? > > diff is the typical problem here. verify that the diff that you get > is one that supports these options expressed in this manner. everywhere > but linux, diffs accepts -u4. > > > 194 if [ $RALL -ne 0 -o $RDOWN -ne 0 -o $RUP -ne 0 ] > > 195 then > > 196 ( > > 197 if [ $RUP -ne 0 ] ; then > > 198 if [ ! -s routers.up ] ; then > > 199 echo Routers changed to up: > > 200 sed -e 's/^/ /' routers.up.new > > 201 echo > > 202 else > > 203 WCUP=`comm -13 routers.up routers.up.new | wc -l | > \ > > 204 sed -e 's/^ *\([^ ]*\)/\1/'` > > 205 if [ $WCUP -gt 0 ] ; then > > 206 echo Routers changed to up: > > > > Term is set to network in rancid.conf, so I'm stumped as to how RUP or > > WCUP is nonzero on this. > > _______________________________________________ > > Rancid-discuss mailing list > > Rancid-discuss at shrubbery.net > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From justin at justinshore.com Wed Nov 11 06:37:58 2009 From: justin at justinshore.com (Justin Shore) Date: Wed, 11 Nov 2009 00:37:58 -0600 Subject: [rancid] Bouncing a connection off an accessible front-end device to something behind it Message-ID: <4AFA5BC6.1050301@justinshore.com> I'm pretty sure I've read at some point in the past that RANCID can do this but my Google-fu is failing me tonight. I need to be able to relay/bounce a connection through a publicly-accessible device to a device that's behind it. The scenario is that the user's managed CE router is accessible to the our NOC via SSH but the managed switches and managed APs behind it are not. I need to be able to SSH into the router and then establish a second connection from that device onto a device behind it (the secondary connection is telnet since that's all the Adtran CLI permits). Like I said I'm pretty sure I read about that being a possibility with RANCID before. I just can't come up with a search string to find what I'm looking for. Can anyone give me an idea what I need to search for so I can do some reading up on the solution? I could do something with PAT too I suppose and specify the public ports and restrict them with ACLs. Personally I'd rather just have one publicly-accessible host on the Internet per site. Thanks Justin From rwest at zyedge.com Wed Nov 11 13:21:08 2009 From: rwest at zyedge.com (Ryan West) Date: Wed, 11 Nov 2009 08:21:08 -0500 Subject: [rancid] Re: Bouncing a connection off an accessible front-end device to something behind it In-Reply-To: <4AFA5BC6.1050301@justinshore.com> References: <4AFA5BC6.1050301@justinshore.com> Message-ID: <6E21B2BDEF6E714EA0B5BA8D5D0E140124E421E87D@zy-ex1.zyedge.local> Hey Justin, > -----Original Message----- > From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss- > bounces at shrubbery.net] On Behalf Of Justin Shore > Sent: Wednesday, November 11, 2009 1:38 AM > > Like I said I'm pretty sure I read about that being a possibility with > RANCID before. I just can't come up with a search string to find what > I'm looking for. Can anyone give me an idea what I need to search for > so I can do some reading up on the solution? I could do something with > PAT too I suppose and specify the public ports and restrict them with > ACLs. Personally I'd rather just have one publicly-accessible host on > the Internet per site. > > Thanks > Justin You're looking for the usercmd patch. http://www.shrubbery.net/pipermail/rancid-discuss/2006-May/001490.html Thanks, -ryan From Nick.Hollingsworth at alphawest.com.au Thu Nov 12 06:21:19 2009 From: Nick.Hollingsworth at alphawest.com.au (Nick Hollingsworth) Date: Thu, 12 Nov 2009 17:21:19 +1100 Subject: [rancid] All routers showing as down Message-ID: Hi Rancid subscribers, Rancid has been doing a great job keeping track of configs & diffs, thanks very much. I started having problems with it a couple of weeks ago after an admin updated routers.db (I think this is all they did). I rang the admin and confirmed they did it by: * logging into the Rancid linux host as root * scp'd router.db off * modified it * scp'd it back on (as root) Now all the routers end up as down after every rancid run (routers.all & routers.down are full, routers.up is empty, no configs are taken, no diffs given). I noticed that routers.db had owner root, group root. I presumed this was due to the admin scp'ing the routers.db file back to the system after modifying it so I chowned it back to rancid:netadm. Other than that I can't see anything wrong .... bin/clogin works fine on a few of the devices ...... I run bin/rancid-run and it finishes instantly leaving an empty log file: starting: Thu Nov 12 16:26:22 WST 2009 ending: Thu Nov 12 16:26:23 WST 2009 I can see router.db in cvs status and if I modify router.db cvs picks it up. Any ideas what might be going wrong? Regards, Nick Alphawest Disclaimer If this communication is not intended for you and you are not an authorised recipient of this email you are prohibited by law from dealing with or relying on the email or any file attachments. This prohibition includes reading, printing, copying, re-transmitting, disseminating, storing or in any other way dealing or acting in reliance on the information. If you have received this email in error, we request you contact Alphawest immediately by returning the email to postmaster at alphawest.com.au and destroy the original. This email is confidential and may contain privileged client information. Alphawest has taken reasonable steps to ensure the accuracy and integrity of all its communications, including electronic communications, but accepts no liability for materials transmitted. Alphawest collects, uses and stores information regarding its customers from time to time in accordance with its privacy policy located on www.alphawest.com.au. From heas at shrubbery.net Thu Nov 12 08:33:41 2009 From: heas at shrubbery.net (john heasley) Date: Thu, 12 Nov 2009 08:33:41 +0000 Subject: [rancid] Re: All routers showing as down In-Reply-To: References: Message-ID: <20091112083341.GA4837@shrubbery.net> Thu, Nov 12, 2009 at 05:21:19PM +1100, Nick Hollingsworth: > Hi Rancid subscribers, > > Rancid has been doing a great job keeping track of configs & diffs, thanks very much. > > I started having problems with it a couple of weeks ago after an admin updated routers.db (I think this is all they did). I rang the admin and confirmed they did it by: > > * logging into the Rancid linux host as root > * scp'd router.db off > * modified it > * scp'd it back on (as root) dollars to donuts; they edited it on a winblows host and it now has winblows line terminators. > Now all the routers end up as down after every rancid run (routers.all & routers.down are full, routers.up is empty, no configs are taken, no diffs given). > > I noticed that routers.db had owner root, group root. I presumed this was due to the admin scp'ing the routers.db file back to the system after modifying it so I chowned it back to rancid:netadm. > > Other than that I can't see anything wrong .... bin/clogin works fine on a few of the devices ...... I run bin/rancid-run and it finishes instantly leaving an empty log file: > > starting: Thu Nov 12 16:26:22 WST 2009 > > > > > ending: Thu Nov 12 16:26:23 WST 2009 > > I can see router.db in cvs status and if I modify router.db cvs picks it up. > > Any ideas what might be going wrong? > > Regards, > Nick > > > Alphawest Disclaimer > > If this communication is not intended for you and you are not an authorised recipient of this email you are prohibited by law from dealing with or relying on the email or any file attachments. > This prohibition includes reading, printing, copying, re-transmitting, disseminating, storing or in any other way dealing or acting in reliance on the information. > If you have received this email in error, we request you contact Alphawest immediately by returning the email to postmaster at alphawest.com.au and destroy the original. > This email is confidential and may contain privileged client information. > Alphawest has taken reasonable steps to ensure the accuracy and integrity of all its communications, including electronic communications, but accepts no liability for materials transmitted. > Alphawest collects, uses and stores information regarding its customers from time to time in accordance with its privacy policy located on www.alphawest.com.au. > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From rancid at ale.cx Thu Nov 12 09:25:13 2009 From: rancid at ale.cx (alex dekker) Date: Thu, 12 Nov 2009 09:25:13 +0000 Subject: [rancid] Re: All routers showing as down In-Reply-To: <20091112083341.GA4837@shrubbery.net> References: <20091112083341.GA4837@shrubbery.net> Message-ID: <200911120925.13209.rancid@ale.cx> On Thursday 12 November 2009 08:33:41 john heasley wrote: > Thu, Nov 12, 2009 at 05:21:19PM +1100, Nick Hollingsworth: > > * logging into the Rancid linux host as root > > * scp'd router.db off > > * modified it > > * scp'd it back on (as root) > > dollars to donuts; they edited it on a winblows host and it now has > winblows line terminators. If you open it in Vim, it will tell you what type of file it is on the status line at the bottom. Also, check the permissions/ownership of the file. alexd From dan.schmidt at uplinkdata.com Thu Nov 12 22:16:18 2009 From: dan.schmidt at uplinkdata.com (Schmidt, Daniel) Date: Thu, 12 Nov 2009 15:16:18 -0700 Subject: [rancid] Re: Rancid Reports Changes in router.db whennochanges have been made In-Reply-To: <20091110214749.GF13196@shrubbery.net> References: <05CC562AFB5A9446A1BC3F66AD04A3BCC74976@che-exch-003.uplinkdata.com> <20091109222621.GL18860@shrubbery.net> <05CC562AFB5A9446A1BC3F66AD04A3BCC749BE@che-exch-003.uplinkdata.com> <20091110214749.GF13196@shrubbery.net> Message-ID: <05CC562AFB5A9446A1BC3F66AD04A3BCC749E7@che-exch-003.uplinkdata.com> For those experiencing this, it turned out to be a locale problem now addressed in the FAQ. However, right or wrong, I choose to fix it as such on line 197 of control_rancid: - sort -u > routers.db + tr '[A-Z]' '[a-z]' | sort -u -d > routers.db Which change will prompt one last change after which it no longer sends spurious up/down messages. -----Original Message----- From: john heasley [mailto:heas at shrubbery.net] Sent: Tuesday, November 10, 2009 2:48 PM To: Schmidt, Daniel Cc: john heasley; rancid-discuss at shrubbery.net Subject: Re: [rancid] Re: Rancid Reports Changes in router.db whennochanges have been made Tue, Nov 10, 2009 at 01:57:17PM -0700, Schmidt, Daniel: > On ubuntu, it should be diff -U 4, which it is. (lines below > accidentally from old control_rancid) > > < diff -U 4 routers.up routers.up.new > /dev/null 2>&1; RUP=$? > --- > > diff -u -4 routers.up routers.up.new > /dev/null 2>&1; RUP=$? > > rancid at che-rancid-001:~/var/Telco1$ diff -u -4 > diff: `-4' option is obsolete; use `-U 4' > diff: Try `diff --help' for more information. > > I can't seem to track this one down. > > At the command line: > sed -e '/^#/d' -e 's/^ *//' -e 's/ *$//' -e 's/ *: */:/g' router.db | > sort -u > routers.db > perl -F: -ane '{($F[0] =~ tr at A-Z@a-z@,print $_) if ($F[2] !~ /^up$/i);}' > routers.db > > Gives me just one device: > FIX_DIFF_BUG:cisco:down > > But the old routers.up has every device with the exception of > FIX_DIFF_BUG. which it should, if no others are marked not 'up' > Hence, diff spits out a bunch of erroneous garbage about > stuff going up and down. what? > So, the question is, as my routers.all is the > former routers.all: i presume this meant "is the same as". > Why do we get a different routers.all.new depending when called from > command line as opposed to when it is called as a cron job? Is my logic > flawed? what exit code is diff returning in each case? are you getting the same diff executable? is someone add an environment variable to sort or diff thats affecting the output and you happen to have that environment variable set for some completely different reason...or they changed the manner in which either of those commands work and you now have to set an environment variable to get the normal behavior? > 302 mv -f routers.all.new routers.all > > -----Original Message----- > From: john heasley [mailto:heas at shrubbery.net] > Sent: Monday, November 09, 2009 3:26 PM > To: Schmidt, Daniel > Cc: rancid-discuss at shrubbery.net > Subject: Re: [rancid] Re: Rancid Reports Changes in router.db when > nochanges have been made > > Thu, Nov 05, 2009 at 03:16:42PM -0700, Schmidt, Daniel: > > What is odd is that this only seems to do this when you rancid-run > from > > the command line when the previous run was from Cron. (or visa versa) > > Relevant code doesn't seem like much: > > > > 182 cut -d: -f1,2 routers.db > routers.all.new > > > > 189 perl -F: -ane '{($F[0] =~ tr at A-Z@a-z@,print "$F[0]:$F[1]\n") > > 190 if ($F[2] =~ /^up$/i);}' routers.db > routers.up.new > > > > 192 diff -u -4 routers.up routers.up.new > /dev/null 2>&1; RUP=$? > > diff is the typical problem here. verify that the diff that you get > is one that supports these options expressed in this manner. everywhere > but linux, diffs accepts -u4. > > > 194 if [ $RALL -ne 0 -o $RDOWN -ne 0 -o $RUP -ne 0 ] > > 195 then > > 196 ( > > 197 if [ $RUP -ne 0 ] ; then > > 198 if [ ! -s routers.up ] ; then > > 199 echo Routers changed to up: > > 200 sed -e 's/^/ /' routers.up.new > > 201 echo > > 202 else > > 203 WCUP=`comm -13 routers.up routers.up.new | wc -l | > \ > > 204 sed -e 's/^ *\([^ ]*\)/\1/'` > > 205 if [ $WCUP -gt 0 ] ; then > > 206 echo Routers changed to up: > > > > Term is set to network in rancid.conf, so I'm stumped as to how RUP or > > WCUP is nonzero on this. > > _______________________________________________ > > Rancid-discuss mailing list > > Rancid-discuss at shrubbery.net > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From Nick.Hollingsworth at alphawest.com.au Fri Nov 13 03:59:55 2009 From: Nick.Hollingsworth at alphawest.com.au (Nick Hollingsworth) Date: Fri, 13 Nov 2009 14:59:55 +1100 Subject: [rancid] Re: All routers showing as down In-Reply-To: <200911120925.13209.rancid@ale.cx> Message-ID: > -----Original Message----- > From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss- > bounces at shrubbery.net] On Behalf Of alex dekker > Sent: Thursday, 12 November 2009 17:25 > To: rancid-discuss at shrubbery.net > Subject: [rancid] Re: All routers showing as down > > On Thursday 12 November 2009 08:33:41 john heasley wrote: > > Thu, Nov 12, 2009 at 05:21:19PM +1100, Nick Hollingsworth: > > > > * logging into the Rancid linux host as root > > > * scp'd router.db off > > > * modified it > > > * scp'd it back on (as root) > > > > dollars to donuts; they edited it on a winblows host and it now has > > winblows line terminators. > > If you open it in Vim, it will tell you what type of file it is on the status > line at the bottom. Also, check the permissions/ownership of the file. > > alexd You nailed it Alex and John - file was in DOS format. Solved it with: :set ff=unix Now I need to figure out a way for the admins to modify the file without changing the format. I did some tests - rancid doesn't seem to mind if root owns router.db or that router.db group is root. So I just need to figure out the optimal way for the admins to edit the file irrelevant of what user they are. I've also tested the various file formats outputted by Windows editors when opened on a Red Hat machine: * notepad, default save, WinSCP upload - unix * notepad, default save, opened from linux VM - DOS * wordpad, any save, WinSCP upload - DOS I'm loath to make the admins SSH to the Red Hat box & use Vi or Nano....notepad & WinSCP it is. Thanks for your help Alex & John. Regards, Nick Alphawest Disclaimer If this communication is not intended for you and you are not an authorised recipient of this email you are prohibited by law from dealing with or relying on the email or any file attachments. This prohibition includes reading, printing, copying, re-transmitting, disseminating, storing or in any other way dealing or acting in reliance on the information. If you have received this email in error, we request you contact Alphawest immediately by returning the email to postmaster at alphawest.com.au and destroy the original. This email is confidential and may contain privileged client information. Alphawest has taken reasonable steps to ensure the accuracy and integrity of all its communications, including electronic communications, but accepts no liability for materials transmitted. Alphawest collects, uses and stores information regarding its customers from time to time in accordance with its privacy policy located on www.alphawest.com.au. From david at infotrek.co.uk Fri Nov 13 07:45:57 2009 From: david at infotrek.co.uk (David Croft) Date: Fri, 13 Nov 2009 08:45:57 +0100 Subject: [rancid] Re: All routers showing as down In-Reply-To: References: <200911120925.13209.rancid@ale.cx> Message-ID: In WinSCP, when copying the file in either direction, just select Transfer Settings -> Text. You could also make this happen automatically by going to Options -> Preferences -> Transfer -> Presets -> Text -> Edit -> "Automatically select this preset when", and enter your server hostname and directory there. Or by Options -> Preferences -> Transfer -> Transfer mode -> Automatic and add "; router.db" to that list. David 2009/11/13 Nick Hollingsworth : > > >> -----Original Message----- >> From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss- >> bounces at shrubbery.net] On Behalf Of alex dekker >> Sent: Thursday, 12 November 2009 17:25 >> To: rancid-discuss at shrubbery.net >> Subject: [rancid] Re: All routers showing as down >> >> On Thursday 12 November 2009 08:33:41 john heasley wrote: >> > Thu, Nov 12, 2009 at 05:21:19PM +1100, Nick Hollingsworth: >> >> > > ?* logging into the Rancid linux host as root >> > > ?* scp'd router.db off >> > > ?* modified it >> > > ?* scp'd it back on (as root) >> > >> > dollars to donuts; they edited it on a winblows host and it now has >> > ?winblows line terminators. >> >> If you open it in Vim, it will tell you what type of file it is on the status >> line at the bottom. Also, check the permissions/ownership of the file. >> >> alexd > > You nailed it Alex and John - file was in DOS format. Solved it with: > > ? ? ? ?:set ff=unix > > Now I need to figure out a way for the admins to modify the file without changing the format. ?I did some tests - rancid doesn't seem to mind if root owns router.db or that router.db group is root. > > So I just need to figure out the optimal way for the admins to edit the file irrelevant of what user they are. > > I've also tested the various file formats outputted by Windows editors when opened on a Red Hat machine: > > ? * notepad, default save, WinSCP upload - unix > ? * notepad, default save, opened from linux VM - DOS > ? * wordpad, any save, WinSCP upload - DOS > > I'm loath to make the admins SSH to the Red Hat box & use Vi or Nano....notepad & WinSCP it is. > > Thanks for your help Alex & John. > > Regards, > Nick > > > Alphawest Disclaimer > > If this communication is not intended for you and you are not an authorised recipient of this email you are prohibited by law from dealing with or relying on the email or any file attachments. > This prohibition includes reading, printing, copying, re-transmitting, disseminating, storing or in any other way dealing or acting in reliance on the information. > If you have received this email in error, we request you contact Alphawest immediately by returning the email to postmaster at alphawest.com.au and destroy the original. > This email is confidential and may contain privileged client information. > Alphawest has taken reasonable steps to ensure the accuracy and integrity of all its communications, including electronic communications, but accepts no liability for materials transmitted. > Alphawest collects, uses and stores information regarding its customers from time to time in accordance with its privacy policy located on www.alphawest.com.au. > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > From heas at shrubbery.net Fri Nov 13 08:58:21 2009 From: heas at shrubbery.net (john heasley) Date: Fri, 13 Nov 2009 08:58:21 +0000 Subject: [rancid] Re: All routers showing as down In-Reply-To: References: <200911120925.13209.rancid@ale.cx> Message-ID: <20091113085821.GA29507@shrubbery.net> Fri, Nov 13, 2009 at 02:59:55PM +1100, Nick Hollingsworth: > > > > -----Original Message----- > > From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss- > > bounces at shrubbery.net] On Behalf Of alex dekker > > Sent: Thursday, 12 November 2009 17:25 > > To: rancid-discuss at shrubbery.net > > Subject: [rancid] Re: All routers showing as down > > > > On Thursday 12 November 2009 08:33:41 john heasley wrote: > > > Thu, Nov 12, 2009 at 05:21:19PM +1100, Nick Hollingsworth: > > > > > > * logging into the Rancid linux host as root > > > > * scp'd router.db off > > > > * modified it > > > > * scp'd it back on (as root) > > > > > > dollars to donuts; they edited it on a winblows host and it now has > > > winblows line terminators. > > > > If you open it in Vim, it will tell you what type of file it is on the status > > line at the bottom. Also, check the permissions/ownership of the file. > > > > alexd > > You nailed it Alex and John - file was in DOS format. Solved it with: > > :set ff=unix > > Now I need to figure out a way for the admins to modify the file without changing the format. I did some tests - rancid doesn't seem to mind if root owns router.db or that router.db group is root. end the lines w/ : > So I just need to figure out the optimal way for the admins to edit the file irrelevant of what user they are. > > I've also tested the various file formats outputted by Windows editors when opened on a Red Hat machine: > > * notepad, default save, WinSCP upload - unix > * notepad, default save, opened from linux VM - DOS > * wordpad, any save, WinSCP upload - DOS > > I'm loath to make the admins SSH to the Red Hat box & use Vi or Nano....notepad & WinSCP it is. > > Thanks for your help Alex & John. > > Regards, > Nick > > > Alphawest Disclaimer > > If this communication is not intended for you and you are not an authorised recipient of this email you are prohibited by law from dealing with or relying on the email or any file attachments. > This prohibition includes reading, printing, copying, re-transmitting, disseminating, storing or in any other way dealing or acting in reliance on the information. > If you have received this email in error, we request you contact Alphawest immediately by returning the email to postmaster at alphawest.com.au and destroy the original. > This email is confidential and may contain privileged client information. > Alphawest has taken reasonable steps to ensure the accuracy and integrity of all its communications, including electronic communications, but accepts no liability for materials transmitted. > Alphawest collects, uses and stores information regarding its customers from time to time in accordance with its privacy policy located on www.alphawest.com.au. > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From Jayant.Jape at tikona.in Fri Nov 13 11:39:36 2009 From: Jayant.Jape at tikona.in (Jayant Jape) Date: Fri, 13 Nov 2009 17:09:36 +0530 Subject: [rancid] cvsweb installation for rancid Message-ID: Hi, Anyone has correct steps to install cvsweb-rancid for rhel5. I also tired finding the packages through yum and googling but isn't getting installed . Please help...! Thanks, Jayant ________________________________ Please do not print this email unless it is absolutely necessary. Warning : This message contains business confidential information . This message does not affect or modify any binding agreement nor state official policy of Tikona Digital Networks Pvt. Ltd. ("TDN" ) unless digitally signed by TDN's authorised signatory. TDN does not accept any liability for any errors, loss, delayed delivery, tampering, corruption or presence of viruses in this message or any attachment. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091113/5af5a942/attachment.html From jmadrid2 at gmail.com Fri Nov 13 15:32:00 2009 From: jmadrid2 at gmail.com (Jose Madrid) Date: Fri, 13 Nov 2009 10:32:00 -0500 Subject: [rancid] Re: cvsweb installation for rancid In-Reply-To: References: Message-ID: <867d5e9c0911130732t53bcdda5s73a1a847a847d2dd@mail.gmail.com> Jayant, This site has a decent walk-through. Scroll towards the bottom and you will see the CVSWEB section. I have it installed in my environment and it works great. 2009/11/13 Jayant Jape > Hi, > > Anyone has correct steps to install cvsweb-rancid for rhel5. > > I also tired finding the packages through yum and googling but isn?t > getting installed . > > > > Please help?! > > > > Thanks, > > Jayant > > > > ------------------------------ > Please do not print this email unless it is absolutely necessary. > > Warning : This message contains business confidential information . This > message does not affect or modify any binding agreement nor state official > policy of Tikona Digital Networks Pvt. Ltd. (?TDN? ) unless digitally signed > by TDN?s authorised signatory. TDN does not accept any liability for any > errors, loss, delayed delivery, tampering, corruption or presence of viruses > in this message or any attachment. > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > -- It has to start somewhere, it has to start sometime. What better place than here? What better time than now? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091113/87206c98/attachment.html From snaiperb at gmail.com Sun Nov 15 10:25:20 2009 From: snaiperb at gmail.com (Snaiper) Date: Sun, 15 Nov 2009 12:25:20 +0200 Subject: [rancid] Need help with backup nortel 5520 configuration Message-ID: <5a6225190911150225k381f33e7w2b935b8b4368943f@mail.gmail.com> *Hi, i have switch nortel 5520 when I try to telnet my switch it shows an UI (need Press Ctrl+Y) Is there any support with blogin to Nortel siwtches with UI? current i found options backup switch through snmp to tftp server example: backup text mode snmpset -v2c -c private .1.3.6.1.4.1.45.1.6.4.2.2.1.5.1 a snmpset -v2c -c private .1.3.6.1.4.1.45.1.6.4.2.2.1.4.1 s .cfg snmpset -v2c -c private .1.3.6.1.4.1.45.1.6.4.4.19.0 i 4 snmpget -v2c -c private .1.3.6.1.4.1.45.1.6.4.2.1.25.0 backup binary mode snmpset -v2c -c private .1.3.6.1.4.1.45.1.6.4.2.2.1.5.1 a snmpset -v2c -c private .1.3.6.1.4.1.45.1.6.4.2.2.1.4.1 s .cfg snmpset -v2c -c private .1.3.6.1.4.1.45.1.6.4.2.1.24.0 i 4 snmpget -v2c -c private .1.3.6.1.4.1.45.1.6.4.2.1.25.0 but my problem my version of switch not support snmpset -v2c -c private .1.3.6.1.4.1.45.1.6.4.4.19.0 i 4 (current i have problem upgrade all switch) i need support with login options Ctrl+Y Thanks Roman * -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091115/8f8cb2a5/attachment.html From oogali at gmail.com Mon Nov 16 03:27:40 2009 From: oogali at gmail.com (Omachonu Ogali) Date: Sun, 15 Nov 2009 22:27:40 -0500 Subject: [rancid] Re: Need help with backup nortel 5520 configuration In-Reply-To: <5a6225190911150225k381f33e7w2b935b8b4368943f@mail.gmail.com> References: <5a6225190911150225k381f33e7w2b935b8b4368943f@mail.gmail.com> Message-ID: I did something for this exact set of switches a few months ago, it should help you with the dreaded Ctrl-Y interfaces on the older code. Diff is in the attachment: http://www.shrubbery.net/pipermail/rancid-discuss/2009-October/004292.html Although, if the code supports it, I strongly suggest you change the configuration to default to CLI interface instead of the menu interface. oo 2009/11/15 Snaiper > *Hi, > i have switch nortel 5520 > when I try to telnet my switch it shows an UI (need Press Ctrl+Y) > Is there any support with blogin to Nortel siwtches with UI? > current i found options backup switch through snmp to tftp server > > example: > > backup text mode > snmpset -v2c -c private .1.3.6.1.4.1.45.1.6.4.2.2.1.5.1 a tftp server> > snmpset -v2c -c private .1.3.6.1.4.1.45.1.6.4.2.2.1.4.1 s > .cfg > snmpset -v2c -c private .1.3.6.1.4.1.45.1.6.4.4.19.0 i 4 > snmpget -v2c -c private .1.3.6.1.4.1.45.1.6.4.2.1.25.0 > > backup binary mode > snmpset -v2c -c private .1.3.6.1.4.1.45.1.6.4.2.2.1.5.1 a switch> > snmpset -v2c -c private .1.3.6.1.4.1.45.1.6.4.2.2.1.4.1 s > .cfg > snmpset -v2c -c private .1.3.6.1.4.1.45.1.6.4.2.1.24.0 i 4 > snmpget -v2c -c private .1.3.6.1.4.1.45.1.6.4.2.1.25.0 > > but my problem my version of switch not support > snmpset -v2c -c private .1.3.6.1.4.1.45.1.6.4.4.19.0 i 4 > (current i have problem upgrade all switch) > > i need support with login options Ctrl+Y > > Thanks > Roman > * > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091115/c41a83e0/attachment.html From mathiruban at gmail.com Mon Nov 16 04:29:11 2009 From: mathiruban at gmail.com (Mathiruban Rajagopal) Date: Mon, 16 Nov 2009 09:59:11 +0530 Subject: [rancid] Hostname in router.db Message-ID: <136e115c0911152029p34cae129ycf528d6934ee4890@mail.gmail.com> Hi, Can I user the router hostname instead of ip address in router.db.? Thx Mathy. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091116/0d636bb6/attachment.html From mksmith at adhost.com Mon Nov 16 04:32:41 2009 From: mksmith at adhost.com (Michael K. Smith - Adhost) Date: Sun, 15 Nov 2009 20:32:41 -0800 Subject: [rancid] Re: Hostname in router.db In-Reply-To: <136e115c0911152029p34cae129ycf528d6934ee4890@mail.gmail.com> References: <136e115c0911152029p34cae129ycf528d6934ee4890@mail.gmail.com> Message-ID: <975DB9E9-4B78-4B20-A2FC-C00AF6F6CCBA@adhost.com> As long as the name can be resolved, by DNS or a local host file as an example, then yes. Mike Insert iPhone mea culpa here. On Nov 15, 2009, at 20:30, "Mathiruban Rajagopal" wrote: > Hi, > > Can I user the router hostname instead of ip address in router.db.? > > > Thx > > Mathy. > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From mathiruban at gmail.com Mon Nov 16 06:47:41 2009 From: mathiruban at gmail.com (Mathiruban Rajagopal) Date: Mon, 16 Nov 2009 12:17:41 +0530 Subject: [rancid] Re: Hostname in router.db In-Reply-To: <975DB9E9-4B78-4B20-A2FC-C00AF6F6CCBA@adhost.com> References: <136e115c0911152029p34cae129ycf528d6934ee4890@mail.gmail.com> <975DB9E9-4B78-4B20-A2FC-C00AF6F6CCBA@adhost.com> Message-ID: <136e115c0911152247x641e1539p21d5ad038b548355@mail.gmail.com> Hi, Thanks a lot Mike, I have anoter issue that I want to run rancid-run for different device group with different time. How to define the cron job?. Mathy. On Mon, Nov 16, 2009 at 10:02 AM, Michael K. Smith - Adhost < mksmith at adhost.com> wrote: > As long as the name can be resolved, by DNS or a local host file as an > example, then yes. > > Mike > > Insert iPhone mea culpa here. > > > On Nov 15, 2009, at 20:30, "Mathiruban Rajagopal" > wrote: > > Hi, >> >> Can I user the router hostname instead of ip address in router.db.? >> >> >> Thx >> >> Mathy. >> >> >> _______________________________________________ >> Rancid-discuss mailing list >> Rancid-discuss at shrubbery.net >> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091116/c09d5b63/attachment.html From mathiruban at gmail.com Mon Nov 16 14:06:06 2009 From: mathiruban at gmail.com (Mathiruban Rajagopal) Date: Mon, 16 Nov 2009 19:36:06 +0530 Subject: [rancid] Re: wrong code with "Last configuration change at...." In-Reply-To: <4ABCC7D3.2000302@hostalia.com> References: <4ABCC7D3.2000302@hostalia.com> Message-ID: <136e115c0911160606p555db0dbw3319bb7f751677d3@mail.gmail.com> Hi, Which file I have to edit? I am not getting the last config change for cisco routers. Mathy. 2009/9/25 I?aki Martinez Diez > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091116/e83adab0/attachment.html From snaiperb at gmail.com Mon Nov 16 15:09:32 2009 From: snaiperb at gmail.com (Snaiper) Date: Mon, 16 Nov 2009 17:09:32 +0200 Subject: [rancid] Re: Need help with backup nortel 5520 configuration Message-ID: <5a6225190911160709o653995b7ycd5fb4446fe9e247@mail.gmail.com> Thanks, all work fine -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091116/609cbeb8/attachment.html From Nick.Hollingsworth at alphawest.com.au Tue Nov 17 00:17:41 2009 From: Nick.Hollingsworth at alphawest.com.au (Nick Hollingsworth) Date: Tue, 17 Nov 2009 11:17:41 +1100 Subject: [rancid] Re: All routers showing as down In-Reply-To: <20091113085821.GA29507@shrubbery.net> Message-ID: > > You nailed it Alex and John - file was in DOS format. Solved it with: > > > > :set ff=unix > > > > Now I need to figure out a way for the admins to modify the file without changing > the format. I did some tests - rancid doesn't seem to mind if root owns router.db or > that router.db group is root. > > end the lines w/ : As in: 10.4.1.2:cisco:up: ? Alphawest Disclaimer If this communication is not intended for you and you are not an authorised recipient of this email you are prohibited by law from dealing with or relying on the email or any file attachments. This prohibition includes reading, printing, copying, re-transmitting, disseminating, storing or in any other way dealing or acting in reliance on the information. If you have received this email in error, we request you contact Alphawest immediately by returning the email to postmaster at alphawest.com.au and destroy the original. This email is confidential and may contain privileged client information. Alphawest has taken reasonable steps to ensure the accuracy and integrity of all its communications, including electronic communications, but accepts no liability for materials transmitted. Alphawest collects, uses and stores information regarding its customers from time to time in accordance with its privacy policy located on www.alphawest.com.au. From pc50000 at gmail.com Tue Nov 17 02:53:53 2009 From: pc50000 at gmail.com (P C) Date: Mon, 16 Nov 2009 19:53:53 -0700 Subject: [rancid] RANCID notifies of identical change repeatedly on cisco IOS router Message-ID: <47b527130911161853i60f14564h5ddcc0c75b567cf1@mail.gmail.com> I have a Cisco IOS router which keeps alerting the same exact change notification e-mail with the following changes over and over. Why is Rancid doing this?: - rxspeed 3600000 - txspeed 384000 + speed 384000 The actual configuration under this section currently on the device is as follows: line 0/1/0 exec-timeout 0 0 script dialer GSM modem InOut no exec rxspeed 3600000 txspeed 384000 I never receive an alert saying the configuration is changing both directions, so if it is indeed flapping betwen the two RANCID is not reporting it. Thanks, Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091116/0a4d847d/attachment.html From perc69 at gmail.com Tue Nov 17 09:16:56 2009 From: perc69 at gmail.com (Per Carlson) Date: Tue, 17 Nov 2009 10:16:56 +0100 Subject: [rancid] Adding a separate module for Cisco IOS XR devices Message-ID: <746ca6da0911170116y17f8f3b8xef934ee816e33f33@mail.gmail.com> Hi. While RANCID officially supports IOS XR (IOX) since 2.3.2, this support is merely a tweak of the IOS-code, and not a proper IOS XR module. This tweak makes things suboptimal. For example you must turn on autoenable for all XR devices and all commands are run from "user mode" when some commands benefits being run from "admin mode". I would therefor propose to create a separate module for IOS XR devices. A patch for creating this support is attached. -- Pelle -------------- next part -------------- A non-text attachment was scrubbed... Name: iosxr.patch Type: application/octet-stream Size: 25811 bytes Desc: not available Url : http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091117/afe3b45b/attachment.obj From perc69 at gmail.com Tue Nov 17 09:07:48 2009 From: perc69 at gmail.com (Per Carlson) Date: Tue, 17 Nov 2009 10:07:48 +0100 Subject: [rancid] Disabling timestamp on Cisco IO devices Message-ID: <746ca6da0911170107m1a5133cclb3d32e86d5fc0e51@mail.gmail.com> Hi. We have enabled timestamping of all "show commands" on those Cisco IOS devices supporting it. The actual configuration looks like: line vty
exec prompt timestamp When doing for example "show version", the output is prepended by a CPU load indicator as well as a timestamp: router>show version Load for five secs: 0%/0%; one minute: 0%; five minutes: 0% Time source is NTP, 09:57:49.061 CET Tue Nov 17 2009 Cisco Internetwork Operating System Software IOS (tm) GS Software (C12KPRP-K4P-M), Version 12.0(33)S5, RELEASE SOFTWARE (fc1) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2009 by cisco Systems, Inc. The timestamp will of course differ at each run, which makes RANCID detect a diff on each and every "show command". Not good. The solution to the problem is disabling the timestamping (by the command "terminal no exec prompt timestamp") before running the "show commands". My approach to this is adding a command to the top of the commandtable list, and expanding the DoNothing sub slightly. The patch is attached. -- Pelle -------------- next part -------------- A non-text attachment was scrubbed... Name: ios_timestamp.patch Type: application/octet-stream Size: 708 bytes Desc: not available Url : http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091117/a93ed250/attachment.obj From mathiruban at gmail.com Tue Nov 17 12:03:04 2009 From: mathiruban at gmail.com (Mathiruban Rajagopal) Date: Tue, 17 Nov 2009 17:33:04 +0530 Subject: [rancid] Last commit not shown for cisco config diff email Message-ID: <136e115c0911170403u423796b0vbce1a2c3da09516c@mail.gmail.com> Hi , In my config diff email. last commit for cisco router's not shown but juniper it is ok. Do I want to do any modification in configuration? Pls let me know. Rgds, Mathy -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091117/4ff3a91c/attachment.html From rancid at ale.cx Tue Nov 17 20:50:53 2009 From: rancid at ale.cx (alex dekker) Date: Tue, 17 Nov 2009 20:50:53 +0000 Subject: [rancid] Re: Hostname in router.db In-Reply-To: <136e115c0911152247x641e1539p21d5ad038b548355@mail.gmail.com> References: <136e115c0911152029p34cae129ycf528d6934ee4890@mail.gmail.com> <975DB9E9-4B78-4B20-A2FC-C00AF6F6CCBA@adhost.com> <136e115c0911152247x641e1539p21d5ad038b548355@mail.gmail.com> Message-ID: <200911172050.53809.rancid@ale.cx> On Monday 16 November 2009 06:47:41 Mathiruban Rajagopal wrote: > Thanks a lot Mike, I have anoter issue that I want to run rancid-run for > different device group with different time. > How to define the cron job?. From 'man rancid-run': "The set of rancid groups can ... be provided as command-line arguments" So two crontab entries with different times, each specifying the relevant group. alexd From Jayant.Jape at tikona.in Wed Nov 18 08:04:49 2009 From: Jayant.Jape at tikona.in (Jayant Jape) Date: Wed, 18 Nov 2009 13:34:49 +0530 Subject: [rancid] Re: Hostname in router.db In-Reply-To: <200911172050.53809.rancid@ale.cx> References: <136e115c0911152029p34cae129ycf528d6934ee4890@mail.gmail.com> <975DB9E9-4B78-4B20-A2FC-C00AF6F6CCBA@adhost.com> <136e115c0911152247x641e1539p21d5ad038b548355@mail.gmail.com> <200911172050.53809.rancid@ale.cx> Message-ID: Hi, I have few queries: 1)Can we backup running configurations of the devices only and comment out other commands. 2)Presently backups are happening ip-wise can we make it hostname-wise. 3)If individual devices needs to be backed up(Incase they were not reachable at time of backup) what would be the command.....? Thanks & Regards Jayant -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of alex dekker Sent: Wednesday, November 18, 2009 2:21 AM To: rancid-discuss at shrubbery.net Subject: [rancid] Re: Hostname in router.db On Monday 16 November 2009 06:47:41 Mathiruban Rajagopal wrote: > Thanks a lot Mike, I have anoter issue that I want to run rancid-run for > different device group with different time. > How to define the cron job?. >From 'man rancid-run': "The set of rancid groups can ... be provided as command-line arguments" So two crontab entries with different times, each specifying the relevant group. alexd _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss Please do not print this email unless it is absolutely necessary. Warning : This message contains business confidential information . This message does not affect or modify any binding agreement nor state official policy of Tikona Digital Networks Pvt. Ltd. ("TDN" ) unless digitally signed by TDN's authorised signatory. TDN does not accept any liability for any errors, loss, delayed delivery, tampering, corruption or presence of viruses in this message or any attachment. From heas at shrubbery.net Wed Nov 18 19:54:53 2009 From: heas at shrubbery.net (john heasley) Date: Wed, 18 Nov 2009 19:54:53 +0000 Subject: [rancid] Re: Hostname in router.db In-Reply-To: References: <136e115c0911152029p34cae129ycf528d6934ee4890@mail.gmail.com> <975DB9E9-4B78-4B20-A2FC-C00AF6F6CCBA@adhost.com> <136e115c0911152247x641e1539p21d5ad038b548355@mail.gmail.com> <200911172050.53809.rancid@ale.cx> Message-ID: <20091118195453.GD486@shrubbery.net> Wed, Nov 18, 2009 at 01:34:49PM +0530, Jayant Jape: > Hi, > > I have few queries: > > 1)Can we backup running configurations of the devices only and comment out other commands. no, minimum is show version and config, iirc. > 2)Presently backups are happening ip-wise can we make it hostname-wise. yes > 3)If individual devices needs to be backed up(Incase they were not reachable at time of backup) what would be the command.....? > > > > Thanks & Regards > > Jayant > > > > -----Original Message----- > From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of alex dekker > Sent: Wednesday, November 18, 2009 2:21 AM > To: rancid-discuss at shrubbery.net > Subject: [rancid] Re: Hostname in router.db > > On Monday 16 November 2009 06:47:41 Mathiruban Rajagopal wrote: > > > Thanks a lot Mike, I have anoter issue that I want to run rancid-run for > > different device group with different time. > > How to define the cron job?. > > >From 'man rancid-run': > > "The set of rancid groups can ... be provided as command-line arguments" > > So two crontab entries with different times, each specifying the relevant > group. > > alexd > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > Please do not print this email unless it is absolutely necessary. > > Warning : This message contains business confidential information . This message does not affect or modify any binding agreement nor state official policy of Tikona Digital Networks Pvt. Ltd. ("TDN" ) unless digitally signed by TDN's authorised signatory. TDN does not accept any liability for any errors, loss, delayed delivery, tampering, corruption or presence of viruses in this message or any attachment. > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From remyheiden at gmail.com Thu Nov 19 00:01:09 2009 From: remyheiden at gmail.com (Remy Heiden) Date: Thu, 19 Nov 2009 01:01:09 +0100 Subject: [rancid] Re: Hostname in router.db In-Reply-To: <200911172050.53809.rancid@ale.cx> References: <136e115c0911152029p34cae129ycf528d6934ee4890@mail.gmail.com> <975DB9E9-4B78-4B20-A2FC-C00AF6F6CCBA@adhost.com> <136e115c0911152247x641e1539p21d5ad038b548355@mail.gmail.com> <200911172050.53809.rancid@ale.cx> Message-ID: Or as I accidentally only replied to to OP: # rancid-run Or per device: # rancidrun -r Remy On Tue, Nov 17, 2009 at 9:50 PM, alex dekker wrote: > On Monday 16 November 2009 06:47:41 Mathiruban Rajagopal wrote: > >> Thanks a lot Mike, I have anoter issue that I want to run rancid-run for >> different device group with different time. >> How to define the cron job?. > > >From 'man rancid-run': > > "The set of rancid groups can ... be provided as command-line arguments" > > So two crontab entries with different times, each specifying the relevant > group. > > alexd > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > -- ===================== If it ain't broke, fix it till it is ===================== -- From mathiruban at gmail.com Thu Nov 19 13:29:22 2009 From: mathiruban at gmail.com (Mathiruban Rajagopal) Date: Thu, 19 Nov 2009 18:59:22 +0530 Subject: [rancid] Re: Last commit not shown for cisco config diff email In-Reply-To: <136e115c0911170403u423796b0vbce1a2c3da09516c@mail.gmail.com> References: <136e115c0911170403u423796b0vbce1a2c3da09516c@mail.gmail.com> Message-ID: <136e115c0911190529s2c9a5818r4911c06b3f714844@mail.gmail.com> Dear Team, If any one face this issue,pls let me know how solve it. Rgds, Mathy. On Tue, Nov 17, 2009 at 5:33 PM, Mathiruban Rajagopal wrote: > Hi , > > In my config diff email. last commit for cisco router's not shown but > juniper it is ok. > Do I want to do any modification in configuration? > Pls let me know. > > Rgds, > > Mathy > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091119/35fe4be4/attachment.html From aseelye-lists at eltopia.com Thu Nov 19 23:03:47 2009 From: aseelye-lists at eltopia.com (Aaron Seelye) Date: Thu, 19 Nov 2009 15:03:47 -0800 Subject: [rancid] Mikrotik proposed patch status? Message-ID: <4B05CED3.1060603@eltopia.com> Hello all, I'm a bit new to the list, so apologies if this has been answered. A while back, someone submitted patches for the development version of mikrotik devices here: http://www.gossamer-threads.com/lists/rancid/users/3826 , but I don't see that in the latest dev or stable versions. I've found that this patch works well for me in the 2.3.2 version, is there any reason it wasn't or hasn't been included yet? TIA, Aaron Seelye From mathiruban at gmail.com Sat Nov 21 01:55:58 2009 From: mathiruban at gmail.com (Mathiruban Rajagopal) Date: Sat, 21 Nov 2009 07:25:58 +0530 Subject: [rancid] Reporting Router config change instanly Message-ID: <136e115c0911201755p559d03c3pfed4cb7c7a124f08@mail.gmail.com> Hello All, Is it possible to get the config change via email as soon as change have committed in router. Thx, Mathy -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091121/0111bfc4/attachment.html From oogali at gmail.com Sat Nov 21 02:06:06 2009 From: oogali at gmail.com (Omachonu Ogali) Date: Fri, 20 Nov 2009 21:06:06 -0500 Subject: [rancid] Re: Reporting Router config change instanly In-Reply-To: <136e115c0911201755p559d03c3pfed4cb7c7a124f08@mail.gmail.com> References: <136e115c0911201755p559d03c3pfed4cb7c7a124f08@mail.gmail.com> Message-ID: I've considered hacking something together with snmptrapd... e.g. upon receipt of a SNMP trap with a configuration change OID, spark up rancid-run to hit the source router. oo 2009/11/20 Mathiruban Rajagopal > Hello All, > > Is it possible to get the config change via email as soon as change have > committed in router. > > Thx, > > Mathy > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091120/36ccf345/attachment.html From heas at shrubbery.net Mon Nov 23 22:01:31 2009 From: heas at shrubbery.net (john heasley) Date: Mon, 23 Nov 2009 22:01:31 +0000 Subject: [rancid] Re: Reporting Router config change instanly In-Reply-To: References: <136e115c0911201755p559d03c3pfed4cb7c7a124f08@mail.gmail.com> Message-ID: <20091123220131.GO15357@shrubbery.net> see the faq Fri, Nov 20, 2009 at 09:06:06PM -0500, Omachonu Ogali: > I've considered hacking something together with snmptrapd... > > e.g. upon receipt of a SNMP trap with a configuration change OID, spark up > rancid-run to hit the source router. > > oo > > 2009/11/20 Mathiruban Rajagopal > > > Hello All, > > > > Is it possible to get the config change via email as soon as change have > > committed in router. > > > > Thx, > > > > Mathy > > > > _______________________________________________ > > 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 vishal.ud at directi.com Tue Nov 24 18:36:25 2009 From: vishal.ud at directi.com (vishal.ud) Date: Wed, 25 Nov 2009 00:06:25 +0530 Subject: [rancid] Issues with Sendmail using Rancid Message-ID: <4B0C27A9.9060208@directi.com> Hey , I am running rancid 2.3 downloaded from the shrew berry website (latest stable build) . I have managed to configure almost everything for our HP Procurve switches and have managed to build the CVS repo and CVS web. rancid-run works perfectly fine . However , i am facing issues with making rancid use sendmail to notify us about the diffs made . my /etc/aliases file looks something like this rancid-Switches: ouremail at domian.com The LIST_OF_GROUPS is defined as Switches in the rancid.conf file . Post that i ran *sudo newaliases* to initialise the sendmail db . Made a small change in one of the routers and then did a rancid-run but the logs indicate home/rancid/var/CVS/Switches/configs/IP_addr v <-- configs/IP addr new revision: 1.5; previous revision: 1.4 /home/rancid/bin/control_rancid: 477: sendmail: not found Any help would be appreciated :) From dan.schmidt at uplinkdata.com Tue Nov 24 18:41:17 2009 From: dan.schmidt at uplinkdata.com (Schmidt, Daniel) Date: Tue, 24 Nov 2009 11:41:17 -0700 Subject: [rancid] Re: Issues with Sendmail using Rancid In-Reply-To: <4B0C27A9.9060208@directi.com> References: <4B0C27A9.9060208@directi.com> Message-ID: <05CC562AFB5A9446A1BC3F66AD04A3BCC74A88@che-exch-003.uplinkdata.com> Do you have sendmail installed and configured? -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of vishal.ud Sent: Tuesday, November 24, 2009 11:36 AM To: rancid-discuss at shrubbery.net Subject: [rancid] Issues with Sendmail using Rancid Hey , I am running rancid 2.3 downloaded from the shrew berry website (latest stable build) . I have managed to configure almost everything for our HP Procurve switches and have managed to build the CVS repo and CVS web. rancid-run works perfectly fine . However , i am facing issues with making rancid use sendmail to notify us about the diffs made . my /etc/aliases file looks something like this rancid-Switches: ouremail at domian.com The LIST_OF_GROUPS is defined as Switches in the rancid.conf file . Post that i ran *sudo newaliases* to initialise the sendmail db . Made a small change in one of the routers and then did a rancid-run but the logs indicate home/rancid/var/CVS/Switches/configs/IP_addr v <-- configs/IP addr new revision: 1.5; previous revision: 1.4 /home/rancid/bin/control_rancid: 477: sendmail: not found Any help would be appreciated :) _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From vishal.ud at directi.com Tue Nov 24 18:52:47 2009 From: vishal.ud at directi.com (vishal.ud) Date: Wed, 25 Nov 2009 00:22:47 +0530 Subject: [rancid] Re: Issues with Sendmail using Rancid In-Reply-To: <05CC562AFB5A9446A1BC3F66AD04A3BCC74A88@che-exch-003.uplinkdata.com> References: <4B0C27A9.9060208@directi.com> <05CC562AFB5A9446A1BC3F66AD04A3BCC74A88@che-exch-003.uplinkdata.com> Message-ID: <4B0C2B7F.1090403@directi.com> well like i said im pretty new to sendmail . All i did was simply install it using apt-get install sendmail Schmidt, Daniel wrote: > Do you have sendmail installed and configured? > > -----Original Message----- > From: rancid-discuss-bounces at shrubbery.net > [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of vishal.ud > Sent: Tuesday, November 24, 2009 11:36 AM > To: rancid-discuss at shrubbery.net > Subject: [rancid] Issues with Sendmail using Rancid > > Hey , > > I am running rancid 2.3 downloaded from the shrew berry website (latest > stable build) . I have managed to configure almost everything for our HP > > Procurve switches and have managed to build the CVS repo and CVS web. > rancid-run works perfectly fine . However , i am facing issues with > making rancid use sendmail to notify us about the diffs made . my > /etc/aliases file looks something like this > rancid-Switches: ouremail at domian.com > The LIST_OF_GROUPS is defined as Switches in the rancid.conf file . Post > > that i ran *sudo newaliases* to initialise the sendmail db . Made a > small change in one of the routers and then did a rancid-run but the > logs indicate > > home/rancid/var/CVS/Switches/configs/IP_addr v <-- configs/IP addr > new revision: 1.5; previous revision: 1.4 > /home/rancid/bin/control_rancid: 477: sendmail: not found > > Any help would be appreciated :) > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > From dan.schmidt at uplinkdata.com Tue Nov 24 19:02:49 2009 From: dan.schmidt at uplinkdata.com (Schmidt, Daniel) Date: Tue, 24 Nov 2009 12:02:49 -0700 Subject: [rancid] Re: Issues with Sendmail using Rancid In-Reply-To: <4BBAF403456ED74981E7164ED3A4C224019A7DE6@CA-EVS02.pelco.org> References: <4B0C27A9.9060208@directi.com><05CC562AFB5A9446A1BC3F66AD04A3BCC74A88@che-exch-003.uplinkdata.com> <4B0C2B7F.1090403@directi.com> <4BBAF403456ED74981E7164ED3A4C224019A7DE6@CA-EVS02.pelco.org> Message-ID: <05CC562AFB5A9446A1BC3F66AD04A3BCC74A89@che-exch-003.uplinkdata.com> U probably want postfix -----Original Message----- From: Mahaffey, Brian [mailto:bmahaffey at pelco.com] Sent: Tuesday, November 24, 2009 12:03 PM To: vishal.ud; Schmidt, Daniel Cc: rancid-discuss at shrubbery.net Subject: RE: [rancid] Re: Issues with Sendmail using Rancid You may be missing your Relay if you send mail through another server. you can edit /etc/mail/sendmail.cf or /etc/sendmail.cf depend on your operating system. and edit as # "Smart" relay host (may be null) DS example DSmail.domain.com (remove the "< & >") Restart Sendmail -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of vishal.ud Sent: Tuesday, November 24, 2009 10:53 AM To: Schmidt, Daniel Cc: rancid-discuss at shrubbery.net Subject: [rancid] Re: Issues with Sendmail using Rancid well like i said im pretty new to sendmail . All i did was simply install it using apt-get install sendmail Schmidt, Daniel wrote: > Do you have sendmail installed and configured? > > -----Original Message----- > From: rancid-discuss-bounces at shrubbery.net > [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of vishal.ud > Sent: Tuesday, November 24, 2009 11:36 AM > To: rancid-discuss at shrubbery.net > Subject: [rancid] Issues with Sendmail using Rancid > > Hey , > > I am running rancid 2.3 downloaded from the shrew berry website (latest > stable build) . I have managed to configure almost everything for our HP > > Procurve switches and have managed to build the CVS repo and CVS web. > rancid-run works perfectly fine . However , i am facing issues with > making rancid use sendmail to notify us about the diffs made . my > /etc/aliases file looks something like this > rancid-Switches: ouremail at domian.com > The LIST_OF_GROUPS is defined as Switches in the rancid.conf file . Post > > that i ran *sudo newaliases* to initialise the sendmail db . Made a > small change in one of the routers and then did a rancid-run but the > logs indicate > > home/rancid/var/CVS/Switches/configs/IP_addr v <-- configs/IP addr > new revision: 1.5; previous revision: 1.4 > /home/rancid/bin/control_rancid: 477: sendmail: not found > > Any help would be appreciated :) > > > _______________________________________________ > 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 - ------------------------------------------------------------------------ ------ 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 bmahaffey at pelco.com Tue Nov 24 19:02:37 2009 From: bmahaffey at pelco.com (Mahaffey, Brian) Date: Tue, 24 Nov 2009 11:02:37 -0800 Subject: [rancid] Re: Issues with Sendmail using Rancid In-Reply-To: <4B0C2B7F.1090403@directi.com> References: <4B0C27A9.9060208@directi.com><05CC562AFB5A9446A1BC3F66AD04A3BCC74A88@che-exch-003.uplinkdata.com> <4B0C2B7F.1090403@directi.com> Message-ID: <4BBAF403456ED74981E7164ED3A4C224019A7DE6@CA-EVS02.pelco.org> You may be missing your Relay if you send mail through another server. you can edit /etc/mail/sendmail.cf or /etc/sendmail.cf depend on your operating system. and edit as # "Smart" relay host (may be null) DS example DSmail.domain.com (remove the "< & >") Restart Sendmail -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of vishal.ud Sent: Tuesday, November 24, 2009 10:53 AM To: Schmidt, Daniel Cc: rancid-discuss at shrubbery.net Subject: [rancid] Re: Issues with Sendmail using Rancid well like i said im pretty new to sendmail . All i did was simply install it using apt-get install sendmail Schmidt, Daniel wrote: > Do you have sendmail installed and configured? > > -----Original Message----- > From: rancid-discuss-bounces at shrubbery.net > [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of vishal.ud > Sent: Tuesday, November 24, 2009 11:36 AM > To: rancid-discuss at shrubbery.net > Subject: [rancid] Issues with Sendmail using Rancid > > Hey , > > I am running rancid 2.3 downloaded from the shrew berry website (latest > stable build) . I have managed to configure almost everything for our HP > > Procurve switches and have managed to build the CVS repo and CVS web. > rancid-run works perfectly fine . However , i am facing issues with > making rancid use sendmail to notify us about the diffs made . my > /etc/aliases file looks something like this > rancid-Switches: ouremail at domian.com > The LIST_OF_GROUPS is defined as Switches in the rancid.conf file . Post > > that i ran *sudo newaliases* to initialise the sendmail db . Made a > small change in one of the routers and then did a rancid-run but the > logs indicate > > home/rancid/var/CVS/Switches/configs/IP_addr v <-- configs/IP addr > new revision: 1.5; previous revision: 1.4 > /home/rancid/bin/control_rancid: 477: sendmail: not found > > Any help would be appreciated :) > > > _______________________________________________ > 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 - ------------------------------------------------------------------------------ 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 vishal.ud at directi.com Tue Nov 24 19:11:40 2009 From: vishal.ud at directi.com (vishal.ud) Date: Wed, 25 Nov 2009 00:41:40 +0530 Subject: [rancid] Re: Issues with Sendmail using Rancid In-Reply-To: <4BBAF403456ED74981E7164ED3A4C224019A7DE6@CA-EVS02.pelco.org> References: <4B0C27A9.9060208@directi.com><05CC562AFB5A9446A1BC3F66AD04A3BCC74A88@che-exch-003.uplinkdata.com> <4B0C2B7F.1090403@directi.com> <4BBAF403456ED74981E7164ED3A4C224019A7DE6@CA-EVS02.pelco.org> Message-ID: <4B0C2FEC.9090801@directi.com> Right , so i was intending to use our external smtp server . I edited the below mentioned file (using UBuntu btw) . restarted sendmail . However , i still get the /home/rancid/bin/control_rancid: 477: sendmail: not found error Mahaffey, Brian wrote: > You may be missing your Relay if you send mail through another server. > > you can edit /etc/mail/sendmail.cf or /etc/sendmail.cf depend on your > operating system. > > and edit as > > # "Smart" relay host (may be null) > DS > > example > DSmail.domain.com (remove the "< & >") > > Restart Sendmail > > - From vishal.ud at directi.com Tue Nov 24 19:23:57 2009 From: vishal.ud at directi.com (vishal.ud) Date: Wed, 25 Nov 2009 00:53:57 +0530 Subject: [rancid] Re: Issues with Sendmail using Rancid In-Reply-To: <4BBAF403456ED74981E7164ED3A4C224019A7DE6@CA-EVS02.pelco.org> References: <4B0C27A9.9060208@directi.com><05CC562AFB5A9446A1BC3F66AD04A3BCC74A88@che-exch-003.uplinkdata.com> <4B0C2B7F.1090403@directi.com> <4BBAF403456ED74981E7164ED3A4C224019A7DE6@CA-EVS02.pelco.org> Message-ID: <4B0C32CD.30503@directi.com> An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091125/a3cc784b/attachment.html From jkrauska at gmail.com Tue Nov 24 19:39:52 2009 From: jkrauska at gmail.com (Joel Krauska) Date: Tue, 24 Nov 2009 11:39:52 -0800 Subject: [rancid] Re: Issues with Sendmail using Rancid In-Reply-To: <4B0C2FEC.9090801@directi.com> References: <4B0C27A9.9060208@directi.com><05CC562AFB5A9446A1BC3F66AD04A3BCC74A88@che-exch-003.uplinkdata.com> <4B0C2B7F.1090403@directi.com> <4BBAF403456ED74981E7164ED3A4C224019A7DE6@CA-EVS02.pelco.org> <4B0C2FEC.9090801@directi.com> Message-ID: <4B0C3688.3060806@gmail.com> Look at the code. I had a similar problem.. I had to explicitly reference /usr/sbin/sendmail. (/usr/sbin wasn't in the path for the rancid user I set up) Type 'which sendmail' to figure out where you sendmail binary is and then try replacing the 5 lines in control_rancid that have "sendmail" with "/usr/sbin/sendmail".. (or whatever 'which' tells you) vishal.ud wrote: > Right , so i was intending to use our external smtp server . I edited > the below mentioned file (using UBuntu btw) . restarted sendmail . > However , i still get the > /home/rancid/bin/control_rancid: 477: sendmail: not found error > > > Mahaffey, Brian wrote: >> You may be missing your Relay if you send mail through another server. >> >> you can edit /etc/mail/sendmail.cf or /etc/sendmail.cf depend on your >> operating system. >> >> and edit as >> >> # "Smart" relay host (may be null) >> DS >> >> example >> DSmail.domain.com (remove the "< & >") >> >> Restart Sendmail >> >> - > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > From heas at shrubbery.net Tue Nov 24 19:49:41 2009 From: heas at shrubbery.net (john heasley) Date: Tue, 24 Nov 2009 11:49:41 -0800 Subject: [rancid] Re: Issues with Sendmail using Rancid In-Reply-To: <4B0C3688.3060806@gmail.com> References: <4B0C27A9.9060208@directi.com> <05CC562AFB5A9446A1BC3F66AD04A3BCC74A88@che-exch-003.uplinkdata.com> <4B0C2B7F.1090403@directi.com> <4BBAF403456ED74981E7164ED3A4C224019A7DE6@CA-EVS02.pelco.org> <4B0C2FEC.9090801@directi.com> <4B0C3688.3060806@gmail.com> Message-ID: <20091124194941.GW7044@shrubbery.net> Tue, Nov 24, 2009 at 11:39:52AM -0800, Joel Krauska: > Look at the code. > > I had a similar problem.. > I had to explicitly reference /usr/sbin/sendmail. > (/usr/sbin wasn't in the path for the rancid user I set up) then alter PATH in rancid.conf. the configure script should have found it and included /usr/sbin in the path. > Type 'which sendmail' to figure out where you sendmail binary is and then try replacing the 5 lines in control_rancid that have "sendmail" with "/usr/sbin/sendmail".. > (or whatever 'which' tells you) > > > > > vishal.ud wrote: > > Right , so i was intending to use our external smtp server . I edited > > the below mentioned file (using UBuntu btw) . restarted sendmail . > > However , i still get the > > /home/rancid/bin/control_rancid: 477: sendmail: not found error > > > > > > Mahaffey, Brian wrote: > >> You may be missing your Relay if you send mail through another server. > >> > >> you can edit /etc/mail/sendmail.cf or /etc/sendmail.cf depend on your > >> operating system. > >> > >> and edit as > >> > >> # "Smart" relay host (may be null) > >> DS > >> > >> example > >> DSmail.domain.com (remove the "< & >") > >> > >> Restart Sendmail > >> > >> - > > > > _______________________________________________ > > 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 infotek at gmail.com Tue Nov 24 19:45:15 2009 From: infotek at gmail.com (Jason Ellison) Date: Tue, 24 Nov 2009 13:45:15 -0600 Subject: [rancid] Re: Issues with Sendmail using Rancid In-Reply-To: <4B0C32CD.30503@directi.com> References: <4B0C27A9.9060208@directi.com> <05CC562AFB5A9446A1BC3F66AD04A3BCC74A88@che-exch-003.uplinkdata.com> <4B0C2B7F.1090403@directi.com> <4BBAF403456ED74981E7164ED3A4C224019A7DE6@CA-EVS02.pelco.org> <4B0C32CD.30503@directi.com> Message-ID: vishal.ud, sendmail: not found It looks to me like rancid could not find the sendmail binary; "sendmail: not found". Check the path of the user you run rancid as. Try "which sendmail". Check the permisions. sendmail config Also DS smart host should be in brackets if you are specifying the actual hostname of your SMTP gateway. Other wise sendmail will do a MX lookup for the hostname you specify in DS DS[hostname.example.org.] http://www.sendmail.org/~ca/email/README.cf.8.8.html Also note that most default sendmail installs expose the root user... so when sending mail as root the email will lack masquerading which can cause it to be rejected by basic anti-spam features. My ISP will not accept email FROM root at somehost.home.example.org claiming "somehost.home.example.org" does not exists. /home/rancid/bin/control_rancid lines 466-510 if [ -s $DIR/routers.failed ] then ( echo "To: $adminmailrcpt" echo "Subject: config fetcher problems - $GROUP" echo "$MAILHEADERS" | awk '{L = "";LN = $0;while (LN ~ /\\n/) { I = index(LN,"\\n");L = L substr(' echo "" echo "The following routers have not been successfully contacted for" echo "more than $OLDTIME hours." cat $DIR/routers.failed ) | sendmail -t fi -Jason Ellison 2009/11/24 vishal.ud : > Funny thing here is if i telnet to localhost on port 25 and send an email > using my email address at mydomain.com to rancid-switches , it works . but when > running rancid-run it doesnt > > Mahaffey, Brian wrote: > > You may be missing your Relay if you send mail through another server. > > you can edit /etc/mail/sendmail.cf or /etc/sendmail.cf depend on your > operating system. > > and edit as > > # "Smart" relay host (may be null) > DS > > example > DSmail.domain.com (remove the "< & >") > > Restart Sendmail > > -----Original Message----- > From: rancid-discuss-bounces at shrubbery.net > [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of vishal.ud > Sent: Tuesday, November 24, 2009 10:53 AM > To: Schmidt, Daniel > Cc: rancid-discuss at shrubbery.net > Subject: [rancid] Re: Issues with Sendmail using Rancid > > well like i said im pretty new to sendmail . All i did was simply > install it using apt-get install sendmail > > Schmidt, Daniel wrote: > > > Do you have sendmail installed and configured? > > -----Original Message----- > From: rancid-discuss-bounces at shrubbery.net > [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of vishal.ud > Sent: Tuesday, November 24, 2009 11:36 AM > To: rancid-discuss at shrubbery.net > Subject: [rancid] Issues with Sendmail using Rancid > > Hey , > > I am running rancid 2.3 downloaded from the shrew berry website > > > (latest > > > stable build) . I have managed to configure almost everything for our > > > HP > > > Procurve switches and have managed to build the CVS repo and CVS web. > rancid-run works perfectly fine . However , i am facing issues with > making rancid use sendmail to notify us about the diffs made . my > /etc/aliases file looks something like this > rancid-Switches: ouremail at domian.com > The LIST_OF_GROUPS is defined as Switches in the rancid.conf file . > > > Post > > > that i ran *sudo newaliases* to initialise the sendmail db . Made a > small change in one of the routers and then did a rancid-run but the > logs indicate > > home/rancid/var/CVS/Switches/configs/IP_addr v <-- configs/IP addr > new revision: 1.5; previous revision: 1.4 > /home/rancid/bin/control_rancid: 477: sendmail: not found > > Any help would be appreciated :) > > > _______________________________________________ > 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 > > - > ------------------------------------------------------------------------------ > 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. > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > From vishal.ud at directi.com Tue Nov 24 19:52:33 2009 From: vishal.ud at directi.com (vishal.ud) Date: Wed, 25 Nov 2009 01:22:33 +0530 Subject: [rancid] Re: Issues with Sendmail using Rancid In-Reply-To: <4B0C3688.3060806@gmail.com> References: <4B0C27A9.9060208@directi.com><05CC562AFB5A9446A1BC3F66AD04A3BCC74A88@che-exch-003.uplinkdata.com> <4B0C2B7F.1090403@directi.com> <4BBAF403456ED74981E7164ED3A4C224019A7DE6@CA-EVS02.pelco.org> <4B0C2FEC.9090801@directi.com> <4B0C3688.3060806@gmail.com> Message-ID: <4B0C3981.2020607@directi.com> @joel u were right : so it turns out the script rancid_control which controls the flow of emails after a diff in the conf files , had a relative and not an absolte path to sendmail . simply subsitituting it with /usr/sbin/sendmail did the trick :d wohhoooo #rancid is now online !!! thanks guys for ur help ..rancid is truly a brilliant tool ;) Joel Krauska wrote: > Look at the code. > > I had a similar problem.. > I had to explicitly reference /usr/sbin/sendmail. > (/usr/sbin wasn't in the path for the rancid user I set up) > > Type 'which sendmail' to figure out where you sendmail binary is and > then try replacing the 5 lines in control_rancid that have "sendmail" > with "/usr/sbin/sendmail".. > (or whatever 'which' tells you) > > > > > vishal.ud wrote: >> Right , so i was intending to use our external smtp server . I >> edited the below mentioned file (using UBuntu btw) . restarted >> sendmail . However , i still get the >> /home/rancid/bin/control_rancid: 477: sendmail: not found error >> >> >> Mahaffey, Brian wrote: >>> You may be missing your Relay if you send mail through another server. >>> >>> you can edit /etc/mail/sendmail.cf or /etc/sendmail.cf depend on your >>> operating system. >>> >>> and edit as >>> # "Smart" relay host (may be null) >>> DS >>> >>> example >>> DSmail.domain.com (remove the "< & >") >>> >>> Restart Sendmail >>> >>> - >> >> _______________________________________________ >> Rancid-discuss mailing list >> Rancid-discuss at shrubbery.net >> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss >> > From tex at off.org Wed Nov 25 05:52:57 2009 From: tex at off.org (Austin Schutz) Date: Tue, 24 Nov 2009 21:52:57 -0800 Subject: [rancid] Re: Monitoring rancid poll failures In-Reply-To: <8423e7bb0911090911h45ad5fcu3a9960cee5a682b8@mail.gmail.com> References: <4AF6908D.4080308@off.org> <200911091053.33041.bugs@ale.cx> <8423e7bb0911090911h45ad5fcu3a9960cee5a682b8@mail.gmail.com> Message-ID: <4B0CC639.3050101@off.org> Lance Vermilion wrote: > Austin, > > I am sure you already know RANCID is going to be an option with > OpenNMS's next stable release. Pretty handy but I think you were looking > at a way to add an API like concept to RANCID so other NMS tools could > tie into it. > I wanted to check this out before actually responding. It is pretty cool that there is a way to access the inventory through the nms itself. Not what I had in mind at all, and fairly limited, but pretty cool. I want the opposite of what you suggest. I want an API like concept in my NMS tool so I can tie into that. I want something intuitive I can generate my own alarms with, not provide an API from my tool (rancid in this case) or hork together my own snmpd or trap generator to try to make something appear in the nms. I think I may be able to bend the send-event.pl script included with opennms to my will. In fact, it already seems to understand that rancid can have event failures, so that's humongous progress right there. I'm also going to check out Zabbix. Thanks for the tips. These are good tools, and certainly the price can't be beat. Austin From marty at supine.com Wed Nov 25 07:44:19 2009 From: marty at supine.com (Martin Barry) Date: Wed, 25 Nov 2009 08:44:19 +0100 Subject: [rancid] ASA flapping diffs with "names" or "no names" Message-ID: Just recently configured RANCID and am having isssues with an ASA. It alternates between "names" output and "no names" output. Sample snippets: - names + no names - ip address Internet-Transit 255.255.255.248 standby 192.168.0.2 + ip address 192.168.0.1 255.255.255.248 standby 192.168.0.2 An hour later I get the reverse. Any ideas? OS: OpenSUSE 11.2 RANCID: 2.3.2 Expect: 5.44.1.11 cheers Marty From rancid at ale.cx Wed Nov 25 09:54:35 2009 From: rancid at ale.cx (alex dekker) Date: Wed, 25 Nov 2009 09:54:35 +0000 Subject: [rancid] Re: ASA flapping diffs with "names" or "no names" In-Reply-To: References: Message-ID: <200911250954.35172.rancid@ale.cx> On Wednesday 25 November 2009 07:44:19 Martin Barry wrote: > Just recently configured RANCID and am having isssues with an ASA. It > alternates between "names" output and "no names" output. Sample > snippets: > > - names > + no names > > - ip address Internet-Transit 255.255.255.248 standby 192.168.0.2 > + ip address 192.168.0.1 255.255.255.248 standby 192.168.0.2 This must be an ASA bug, unless there's a show option that disables names for objects, and is sometimes triggered [by another user logging in to the ASA, perhaps?]. alexd From shane.kavanagh at gmail.com Wed Nov 25 10:06:27 2009 From: shane.kavanagh at gmail.com (Shane Kavanagh) Date: Wed, 25 Nov 2009 10:06:27 +0000 Subject: [rancid] Re: ASA flapping diffs with "names" or "no names" In-Reply-To: References: Message-ID: <8cf6dff10911250206o44090882taffe998f04708e5@mail.gmail.com> All I am seeing similar which happed in the early hours of the morning, I am not seeing the reverse, If I connect to the device and do a show run I see "no names" in the running config but not in the start-up config. The show run also tells me that my config has not been changed since 18th November, therefore I must conclude that this addition in the config did not get added by the CLI or Web interface but by other means. I am starting to look at bug tracker on cisco.com for SNMP bugs. Do a "show version" from the enabled CLI this will tell you the last user to modify the config and the date and time when this was done "Configuration last modified by at 10:38:56.343 UTC Wed Nov 18 2009" Check this with the time and date of the rancid config, I get rancid to pull configs every hour and I could pin point this to a one hour window between 6 and 7 am check your stat up config "show startup-config | include no names" Its not in my start up config. However on other ASA's I am see this and it flips several times a day !BootFlash: Current BOOT variable = disk0:/asa804-k8.bin !BootFlash: CONFIG_FILE variable = !BootFlash: Current CONFIG_FILE variable = ! - !BootFlash: BOOT variable = disk0:/asa804-k8.bin + !BootFlash: BOOT variable = !BootFlash: Current BOOT variable = disk0:/asa804-k8.bin !BootFlash: CONFIG_FILE variable = !BootFlash: Current CONFIG_FILE variable = 2009/11/25 Martin Barry > Just recently configured RANCID and am having isssues with an ASA. It > alternates between "names" output and "no names" output. Sample > snippets: > > - names > + no names > > - ip address Internet-Transit 255.255.255.248 standby 192.168.0.2 > + ip address 192.168.0.1 255.255.255.248 standby 192.168.0.2 > > An hour later I get the reverse. > > Any ideas? > > OS: OpenSUSE 11.2 > RANCID: 2.3.2 > Expect: 5.44.1.11 > > cheers > Marty > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091125/7df880e4/attachment.html From shane.kavanagh at gmail.com Wed Nov 25 10:51:37 2009 From: shane.kavanagh at gmail.com (Shane Kavanagh) Date: Wed, 25 Nov 2009 10:51:37 +0000 Subject: [rancid] Re: ASA flapping diffs with "names" or "no names" In-Reply-To: <8cf6dff10911250206o44090882taffe998f04708e5@mail.gmail.com> References: <8cf6dff10911250206o44090882taffe998f04708e5@mail.gmail.com> Message-ID: <8cf6dff10911250251i1bda4a7flfd87248bf5597ada@mail.gmail.com> This may be a bug in the ASA CSCsz60119 Bug Details *Traceroute makes configuration change from "no names" to "names" * * Symptom:* "no names" is changed to "names" by issuing traceroute commmand. *Conditions:* The state that "no names" is defined. *Workaround:* No workaround at this time Interpreting This Bug *Bug Toolkit provides access to the latest raw bug data so you have the earliest possible knowledge of bugs that may affect your network, avoiding un-necessary downtime or inconvenience. Because you are viewing a live database, sometimes the information provided is not yet complete or adequately documented. To help you interpret this bug data, we suggest the following:* This status of this bug is *fixed*. The problem described in the bug report is "fixed-in" all release versions targeted to be fixed, and all changes have been successfully tested. Check for a software release later than these listed in the "Fixed-in" versions in software download center. The "fixed-in" version may not be available for download yet until all the other bugs targeted to be fixed for that major release are processed. No release date information is available to Bug Toolkit. Please check the software download section frequently to look for a new version. Sometimes the bug details, when available, contain the "fixed-in" version information or link to the upgrade or patch. Always check the software release notes before performing any upgrade to understand new functionality and open bugs not yet fixed. Any "workaround" listed in the bug details section is generally provided as a way to circumvent the bug until the code fix has been completed; often in lieu of downgrading to a non-affected version of code. In certain rare circumstances, we are unable to fix the bug in all versions in which it is found. The bug will still have a 'fixed' status. Please open a service request with the Technical Assistance Center if you are being impacted by a bug in this condition. Obscure version references are usually internal builds and may never be posted as a full release. Please watch for a release version later than the interim build displayed. This bug has a *Moderate* severity 3 designation. Things fail under unusual circumstances, or minor features do not work at all, or things fail but there is a low-impact workaround. This is the highest level for documentation bugs. (Bug Toolkit may not provide access to all documentation bugs.) Severity levels are designated by the engineering teams working on the bug. Severity is not an indication of customer priority which is another value used by engineering teams to determine overall customer impact. Bug documentation often assumes intermediate to advanced troubleshooting and diagnosis knowledge. Novice users are encouraged to seek fully documented support documents and/or utilize other support options available. 2009/11/25 Shane Kavanagh > All > > I am seeing similar which happed in the early hours of the morning, I am > not seeing the reverse, > > If I connect to the device and do a show run I see "no names" in the > running config but not in the start-up config. The show run also tells me > that my config has not been changed since 18th November, therefore I must > conclude that this addition in the config did not get added by the CLI or > Web interface but by other means. I am starting to look at bug tracker on > cisco.com for SNMP bugs. > > Do a "show version" from the enabled CLI > this will tell you the last user to modify the config and the date and time > when this was done > "Configuration last modified by at 10:38:56.343 UTC Wed Nov 18 2009" > Check this with the time and date of the rancid config, I get rancid to > pull configs every hour and I could pin point this to a one hour window > between 6 and 7 am > check your stat up config > "show startup-config | include no names" > Its not in my start up config. > > However on other ASA's I am see this and it flips several times a day > > !BootFlash: Current BOOT variable = disk0:/asa804-k8.bin > !BootFlash: CONFIG_FILE variable = > !BootFlash: Current CONFIG_FILE variable = > ! > - !BootFlash: BOOT variable = disk0:/asa804-k8.bin > + !BootFlash: BOOT variable = > !BootFlash: Current BOOT variable = disk0:/asa804-k8.bin > !BootFlash: CONFIG_FILE variable = > !BootFlash: Current CONFIG_FILE variable = > > > > > 2009/11/25 Martin Barry > > Just recently configured RANCID and am having isssues with an ASA. It >> alternates between "names" output and "no names" output. Sample >> snippets: >> >> - names >> + no names >> >> - ip address Internet-Transit 255.255.255.248 standby 192.168.0.2 >> + ip address 192.168.0.1 255.255.255.248 standby 192.168.0.2 >> >> An hour later I get the reverse. >> >> Any ideas? >> >> OS: OpenSUSE 11.2 >> RANCID: 2.3.2 >> Expect: 5.44.1.11 >> >> cheers >> Marty >> _______________________________________________ >> Rancid-discuss mailing list >> Rancid-discuss at shrubbery.net >> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091125/feb21448/attachment.html From marty at supine.com Wed Nov 25 10:51:01 2009 From: marty at supine.com (Martin Barry) Date: Wed, 25 Nov 2009 11:51:01 +0100 Subject: [rancid] Re: ASA flapping diffs with "names" or "no names" In-Reply-To: <8cf6dff10911250206o44090882taffe998f04708e5@mail.gmail.com> References: <8cf6dff10911250206o44090882taffe998f04708e5@mail.gmail.com> Message-ID: 2009/11/25 Shane Kavanagh : > > However on other ASA's I am see this and it flips several times a day > > ? !BootFlash: Current BOOT variable = disk0:/asa804-k8.bin > ? !BootFlash: CONFIG_FILE variable = > ? !BootFlash: Current CONFIG_FILE variable = > ? ! > - !BootFlash: BOOT variable = disk0:/asa804-k8.bin > + !BootFlash: BOOT variable = > ? !BootFlash: Current BOOT variable = disk0:/asa804-k8.bin > ? !BootFlash: CONFIG_FILE variable = > ? !BootFlash: Current CONFIG_FILE variable = I am also seeing this BootFlash issue as well, but more frequently than the "no names" one. cheers Marty From abirgisson at fattoc.com Wed Nov 25 11:39:20 2009 From: abirgisson at fattoc.com (=?iso-8859-1?Q?=C1rni_Birgisson?=) Date: Wed, 25 Nov 2009 11:39:20 +0000 Subject: [rancid] Rancid output "Binary files differ" Message-ID: <9D5A3076-A17A-4EEC-B24C-8EDD25E710DC@fattoc.com> Hi guys, I'm wondering if anybody has seen this problem before. This mail is going to be a bit long, starting with a simple description of the problem, and then my diagnosis of it. From time to time I'm getting a strange output from RANCID: ----- Index: configs/router-x =================================================================== retrieving revision 1.88 diff -U 4 -r1.88 router-x Binary files /tmp/cvsQSyJ8S and router-x differ ----- As I noticed that the revision number was quite high I looked around and it seems that this does happen for more than one router - but happens very often to this one. Most of the network equipment has had about 30-40 revisions since RANCID was installed but this one has 88 revisions. If I check a few versions of the config out of CVS I can see that indeed some of the files are weird. -bash-4.0$ cvs diff -r1.86 -r1.89 --normal diff output showing config changes-- -bash-4.0$ cvs diff -r1.86 -r1.87 --normal diff output showing config changes-- -bash-4.0$ cvs diff -r1.86 -r1.88 cvs diff: Diffing pe cvs diff: Diffing pe/configs Index: pe/configs/router-x =================================================================== RCS file: /var/rancid/CVS/pe/configs/router-x,v retrieving revision 1.86 retrieving revision 1.88 diff -r1.86 -r1.88 Binary files /tmp/cvsCqpVfB and /tmp/cvsp09kv5 differ Okay, looks like version 1.88 is the weird one. Let's fetch 1.88 and 1.89 -bash-4.0$ cvs co -r1.88 pe/configs/router-x U pe/configs/router-x -bash-4.0$ cp pe/configs/router-x v1.88 -bash-4.0$ cvs co -r1.89 pe/configs/router-x U pe/configs/router-x -bash-4.0$ cp pe/configs/router-x v1.89 -bash-4.0$ ls -al v1.8* -rw-r--r-x 1 rancid rancid 70556 2009-11-25 05:28 v1.88 -rw-r--r-x 1 rancid rancid 70556 2009-11-25 05:28 v1.89 -bash-4.0$ diff v1.88 v1.89 Binary files v1.88 and v1.89 differ -bash-4.0$ --- same size of the files, but diff won't compare them because they are (or one of them is) a binary file. -bash-4.0$ strings v1.88 | wc -l 1387 -bash-4.0$ strings v1.89 | wc -l 1542 Now when I have a look at the files it seems that the smaller file (v1.88 and "binary") starts with a lot of \0 bytes, it would seem one for each character that is missing - and then continues exactly like the other one. Or should I say the files are exactly the same - but it's as if the first (1542 - 1387) bytes of v1.88 are 0-byte instead of the character that should be there. Diff --text on them shows that v1.89 includes all the lines from v1.88 and more and there has been no real change to the config. I'm running rancid version 2.3.2, with a slight change to jrancid: The change to jrancid is to make it backup a "show configuration | display set" version of the config as well as the normal "show configuration" and is done by adding one function: sub ShowConfigurationDisplaySet { print STDERR " In ShowConfigurationDisplaySet: $_" if ($debug); s/^[a-z]+@//; ProcessHistory("","","","# $_"); while () { tr/\015//d; last if (/^$prompt/); next if (/^system (shutdown message from|going down )/i); next if (/^\{(master|backup)}/); /Unrecognized command/ && return; /command is not valid/ && return; /^\s+\^/ && return; /syntax error/ && return; ProcessHistory("","","","$_"); } return(0); } and one item to @commandtable: {'show configuration | display set' => 'ShowConfigurationDisplaySet'}, It could very well be that the errors are introduced because of my addition, but I fail to see how. For those that have read through all of this - thank you, hopefully somebody can spot what's wrong! - Arni Arni Birgisson Network Engineer FATTOC Iceland From dan.schmidt at uplinkdata.com Wed Nov 25 17:32:36 2009 From: dan.schmidt at uplinkdata.com (Schmidt, Daniel) Date: Wed, 25 Nov 2009 10:32:36 -0700 Subject: [rancid] FW: Re: ASA flapping diffs with "names" or "no names" Message-ID: <05CC562AFB5A9446A1BC3F66AD04A3BCC74A9E@che-exch-003.uplinkdata.com> One solution is to set rancid to ignore these lines or to not look at the bootflash. 'names' could also easily be ignored by rancid. -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Martin Barry Sent: Wednesday, November 25, 2009 3:51 AM To: Shane Kavanagh Subject: [rancid] Re: ASA flapping diffs with "names" or "no names" 2009/11/25 Shane Kavanagh : > > However on other ASA's I am see this and it flips several times a day > > ? !BootFlash: Current BOOT variable = disk0:/asa804-k8.bin > ? !BootFlash: CONFIG_FILE variable = > ? !BootFlash: Current CONFIG_FILE variable = > ? ! > - !BootFlash: BOOT variable = disk0:/asa804-k8.bin > + !BootFlash: BOOT variable = > ? !BootFlash: Current BOOT variable = disk0:/asa804-k8.bin > ? !BootFlash: CONFIG_FILE variable = > ? !BootFlash: Current CONFIG_FILE variable = I am also seeing this BootFlash issue as well, but more frequently than the "no names" one. cheers Marty _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From cgauthier at mapscu.com Wed Nov 25 17:35:36 2009 From: cgauthier at mapscu.com (Chris Gauthier) Date: Wed, 25 Nov 2009 09:35:36 -0800 Subject: [rancid] Re: FW: Re: ASA flapping diffs with "names" or "no names" In-Reply-To: <05CC562AFB5A9446A1BC3F66AD04A3BCC74A9E@che-exch-003.uplinkdata.com> References: <05CC562AFB5A9446A1BC3F66AD04A3BCC74A9E@che-exch-003.uplinkdata.com> Message-ID: <0A9A5A2BC1C0A94C981AF5FCF2D2F338146F0599@mshin01.mapscu.com> While the individual "names" line could be ignored, the impact of the names/no names statement cannot. It's not just a one-line fix. The diff (in my case) results in a 10-page email because of all the substitutions being made. Chris Gauthier Network Administrator MaPS Credit Union v: 503.375.2445 f: 503.779.1083 http://www.mapscu.com "For once you have tasted flight you will walk the earth with your eyes turned skywards, for there you have been and there you will long to return." -Leonardo da Vinci -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Schmidt, Daniel Sent: Wednesday, November 25, 2009 9:33 AM To: rancid-discuss at shrubbery.net Subject: [rancid] FW: Re: ASA flapping diffs with "names" or "no names" One solution is to set rancid to ignore these lines or to not look at the bootflash. 'names' could also easily be ignored by rancid. -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Martin Barry Sent: Wednesday, November 25, 2009 3:51 AM To: Shane Kavanagh Subject: [rancid] Re: ASA flapping diffs with "names" or "no names" 2009/11/25 Shane Kavanagh : > > However on other ASA's I am see this and it flips several times a day > > ? !BootFlash: Current BOOT variable = disk0:/asa804-k8.bin > ? !BootFlash: CONFIG_FILE variable = > ? !BootFlash: Current CONFIG_FILE variable = > ? ! > - !BootFlash: BOOT variable = disk0:/asa804-k8.bin > + !BootFlash: BOOT variable = > ? !BootFlash: Current BOOT variable = disk0:/asa804-k8.bin > ? !BootFlash: CONFIG_FILE variable = > ? !BootFlash: Current CONFIG_FILE variable = I am also seeing this BootFlash issue as well, but more frequently than the "no names" one. cheers Marty _______________________________________________ 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 shane.kavanagh at gmail.com Wed Nov 25 17:39:05 2009 From: shane.kavanagh at gmail.com (Shane Kavanagh) Date: Wed, 25 Nov 2009 17:39:05 +0000 Subject: [rancid] Re: ASA flapping diffs with "names" or "no names" In-Reply-To: <05CC562AFB5A9446A1BC3F66AD04A3BCC74A9E@che-exch-003.uplinkdata.com> References: <05CC562AFB5A9446A1BC3F66AD04A3BCC74A9E@che-exch-003.uplinkdata.com> Message-ID: <8cf6dff10911250939o6436da1ew80820b284ca97e8f@mail.gmail.com> How do I go about telling rancid to ignore certain details on a device by device basis. On 11/25/09, Schmidt, Daniel wrote: > One solution is to set rancid to ignore these lines or to not look at the > bootflash. 'names' could also easily be ignored by rancid. > > -----Original Message----- > From: rancid-discuss-bounces at shrubbery.net > [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Martin Barry > Sent: Wednesday, November 25, 2009 3:51 AM > To: Shane Kavanagh > Subject: [rancid] Re: ASA flapping diffs with "names" or "no names" > > 2009/11/25 Shane Kavanagh : >> >> However on other ASA's I am see this and it flips several times a day >> >> ? !BootFlash: Current BOOT variable = disk0:/asa804-k8.bin >> ? !BootFlash: CONFIG_FILE variable = >> ? !BootFlash: Current CONFIG_FILE variable = >> ? ! >> - !BootFlash: BOOT variable = disk0:/asa804-k8.bin >> + !BootFlash: BOOT variable = >> ? !BootFlash: Current BOOT variable = disk0:/asa804-k8.bin >> ? !BootFlash: CONFIG_FILE variable = >> ? !BootFlash: Current CONFIG_FILE variable = > > I am also seeing this BootFlash issue as well, but more frequently > than the "no names" one. > > cheers > Marty > _______________________________________________ > 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 > -- Sent from my mobile device From heas at shrubbery.net Wed Nov 25 18:57:45 2009 From: heas at shrubbery.net (john heasley) Date: Wed, 25 Nov 2009 10:57:45 -0800 Subject: [rancid] Re: ASA flapping diffs with "names" or "no names" In-Reply-To: References: Message-ID: <20091125185744.GF13089@shrubbery.net> Wed, Nov 25, 2009 at 08:44:19AM +0100, Martin Barry: > Just recently configured RANCID and am having isssues with an ASA. It > alternates between "names" output and "no names" output. Sample > snippets: > > - names > + no names > > - ip address Internet-Transit 255.255.255.248 standby 192.168.0.2 > + ip address 192.168.0.1 255.255.255.248 standby 192.168.0.2 > > An hour later I get the reverse. > > Any ideas? your IOS is broken. call the TAC and tell them that the IOS is not nvgen'g consistently. > OS: OpenSUSE 11.2 > RANCID: 2.3.2 > Expect: 5.44.1.11 > > cheers > Marty > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From rwest at zyedge.com Wed Nov 25 19:05:15 2009 From: rwest at zyedge.com (Ryan West) Date: Wed, 25 Nov 2009 14:05:15 -0500 Subject: [rancid] Re: ASA flapping diffs with "names" or "no names" In-Reply-To: <20091125185744.GF13089@shrubbery.net> References: <20091125185744.GF13089@shrubbery.net> Message-ID: <6E21B2BDEF6E714EA0B5BA8D5D0E140124E71D2BBF@zy-ex1.zyedge.local> Martin, > -----Original Message----- > From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss- > bounces at shrubbery.net] On Behalf Of john heasley > > your IOS is broken. call the TAC and tell them that the IOS is not > nvgen'g consistently. > I thought you had mentioned you're running 8.0(4). That code is quite old and has some nasty VPN bugs among other things. 8.0(5) was released a few weeks ago and has all the rollups included in 8.0(4)32. Anyhow, I would agree with John that it's probably a code issue. -ryan From heas at shrubbery.net Wed Nov 25 19:13:39 2009 From: heas at shrubbery.net (john heasley) Date: Wed, 25 Nov 2009 11:13:39 -0800 Subject: [rancid] Re: ASA flapping diffs with "names" or "no names" In-Reply-To: <8cf6dff10911250206o44090882taffe998f04708e5@mail.gmail.com> References: <8cf6dff10911250206o44090882taffe998f04708e5@mail.gmail.com> Message-ID: <20091125191339.GH13089@shrubbery.net> Wed, Nov 25, 2009 at 10:06:27AM +0000, Shane Kavanagh: > All > > I am seeing similar which happed in the early hours of the morning, I am not > seeing the reverse, > > If I connect to the device and do a show run I see "no names" in the running > config but not in the start-up config. The show run also tells me that my > config has not been changed since 18th November, therefore I must conclude > that this addition in the config did not get added by the CLI or Web > interface but by other means. I am starting to look at bug tracker on > cisco.com for SNMP bugs. > > Do a "show version" from the enabled CLI > this will tell you the last user to modify the config and the date and time > when this was done > "Configuration last modified by at 10:38:56.343 UTC Wed Nov 18 2009" > Check this with the time and date of the rancid config, I get rancid to pull > configs every hour and I could pin point this to a one hour window between 6 > and 7 am > check your stat up config > "show startup-config | include no names" > Its not in my start up config. > > However on other ASA's I am see this and it flips several times a day > > !BootFlash: Current BOOT variable = disk0:/asa804-k8.bin > !BootFlash: CONFIG_FILE variable = > !BootFlash: Current CONFIG_FILE variable = > ! > - !BootFlash: BOOT variable = disk0:/asa804-k8.bin > + !BootFlash: BOOT variable = this is either an IOS bug or a problem with the nvram; more likely the former. From heas at shrubbery.net Wed Nov 25 19:41:10 2009 From: heas at shrubbery.net (john heasley) Date: Wed, 25 Nov 2009 11:41:10 -0800 Subject: [rancid] Re: Rancid output "Binary files differ" In-Reply-To: <9D5A3076-A17A-4EEC-B24C-8EDD25E710DC@fattoc.com> References: <9D5A3076-A17A-4EEC-B24C-8EDD25E710DC@fattoc.com> Message-ID: <20091125194110.GL13089@shrubbery.net> Wed, Nov 25, 2009 at 11:39:20AM +0000, ?rni Birgisson: > Hi guys, > > I'm wondering if anybody has seen this problem before. > This mail is going to be a bit long, starting with a simple description of the problem, > and then my diagnosis of it. > > >From time to time I'm getting a strange output from RANCID: > > ----- > > Index: configs/router-x > =================================================================== > retrieving revision 1.88 > diff -U 4 -r1.88 router-x > Binary files /tmp/cvsQSyJ8S and router-x differ > > ----- > > As I noticed that the revision number was quite high I looked around and it seems that this > does happen for more than one router - but happens very often to this one. > Most of the network equipment has had about 30-40 revisions since RANCID was installed > but this one has 88 revisions. > > If I check a few versions of the config out of CVS I can see that indeed some of the files are weird. > > -bash-4.0$ cvs diff -r1.86 -r1.89 > --normal diff output showing config changes-- > -bash-4.0$ cvs diff -r1.86 -r1.87 > --normal diff output showing config changes-- > -bash-4.0$ cvs diff -r1.86 -r1.88 > cvs diff: Diffing pe > cvs diff: Diffing pe/configs > Index: pe/configs/router-x > =================================================================== > RCS file: /var/rancid/CVS/pe/configs/router-x,v > retrieving revision 1.86 > retrieving revision 1.88 > diff -r1.86 -r1.88 > Binary files /tmp/cvsCqpVfB and /tmp/cvsp09kv5 differ > > Okay, looks like version 1.88 is the weird one. > > Let's fetch 1.88 and 1.89 > -bash-4.0$ cvs co -r1.88 pe/configs/router-x > U pe/configs/router-x > -bash-4.0$ cp pe/configs/router-x v1.88 > -bash-4.0$ cvs co -r1.89 pe/configs/router-x > U pe/configs/router-x > -bash-4.0$ cp pe/configs/router-x v1.89 > > -bash-4.0$ ls -al v1.8* > -rw-r--r-x 1 rancid rancid 70556 2009-11-25 05:28 v1.88 > -rw-r--r-x 1 rancid rancid 70556 2009-11-25 05:28 v1.89 > -bash-4.0$ diff v1.88 v1.89 > Binary files v1.88 and v1.89 differ > -bash-4.0$ > > --- same size of the files, but diff won't compare them because they are (or one of them is) a binary file. > > -bash-4.0$ strings v1.88 | wc -l > 1387 > -bash-4.0$ strings v1.89 | wc -l > 1542 > > Now when I have a look at the files it seems that the smaller file (v1.88 and "binary") starts with a lot of \0 bytes, > it would seem one for each character that is missing - and then continues exactly like the other one. > Or should I say the files are exactly the same - but it's as if the first (1542 - 1387) bytes of v1.88 are 0-byte instead > of the character that should be there. > > Diff --text on them shows that v1.89 includes all the lines from v1.88 and more and there has been no real > change to the config. > > I'm running rancid version 2.3.2, with a slight change to jrancid: > The change to jrancid is to make it backup a "show configuration | display set" version of the config as well as the > normal "show configuration" and is done by adding one function: > > sub ShowConfigurationDisplaySet { > print STDERR " In ShowConfigurationDisplaySet: $_" if ($debug); > > s/^[a-z]+@//; > ProcessHistory("","","","# $_"); > while () { > tr/\015//d; > last if (/^$prompt/); > next if (/^system (shutdown message from|going down )/i); > next if (/^\{(master|backup)}/); > > /Unrecognized command/ && return; > /command is not valid/ && return; > /^\s+\^/ && return; > /syntax error/ && return; > > ProcessHistory("","","","$_"); > } > return(0); > } > > > and one item to @commandtable: > {'show configuration | display set' => 'ShowConfigurationDisplaySet'}, > > It could very well be that the errors are introduced because of my addition, > but I fail to see how. not likely. do you have a fsys or memory problem on this host? broken expect/tcl? some other unintentional change to rancid? From abirgisson at fattoc.com Wed Nov 25 22:46:42 2009 From: abirgisson at fattoc.com (=?iso-8859-1?Q?=C1rni_Birgisson?=) Date: Wed, 25 Nov 2009 22:46:42 +0000 Subject: [rancid] Re: Rancid output "Binary files differ" In-Reply-To: <20091125194110.GL13089@shrubbery.net> References: <9D5A3076-A17A-4EEC-B24C-8EDD25E710DC@fattoc.com> <20091125194110.GL13089@shrubbery.net> Message-ID: <59381F7E-E1AE-4D3D-B626-787C62337EF7@fattoc.com> Hi John, thanks for your reply. > > not likely. do you have a fsys or memory problem on this host? broken > expect/tcl? some other unintentional change to rancid? I don't believe there is any problem with the server itself, no errors in dmesg concerning hard disks or filesystems (mirrored disks), and 6GB free memory of total 8GB. Very little load on the server, and other processes running on it are working fine. expect and tcl are newest versions from YUM, -- snip -- Package 1:tcl-8.5.6-6.fc11.x86_64 already installed and latest version Package expect-5.43.0-17.fc11.x86_64 already installed and latest version -- snip -- And this behaviour is not constant, I have seen it from time to time with other routers, but most of the time it's this one. Still not always on this one either - usually the backups come through correct. - Arni On Nov 25, 2009, at 7:41 PM, john heasley wrote: > Wed, Nov 25, 2009 at 11:39:20AM +0000, ?rni Birgisson: >> Hi guys, >> >> I'm wondering if anybody has seen this problem before. >> This mail is going to be a bit long, starting with a simple description of the problem, >> and then my diagnosis of it. >> >>> From time to time I'm getting a strange output from RANCID: >> >> ----- >> >> Index: configs/router-x >> =================================================================== >> retrieving revision 1.88 >> diff -U 4 -r1.88 router-x >> Binary files /tmp/cvsQSyJ8S and router-x differ >> >> ----- >> >> As I noticed that the revision number was quite high I looked around and it seems that this >> does happen for more than one router - but happens very often to this one. >> Most of the network equipment has had about 30-40 revisions since RANCID was installed >> but this one has 88 revisions. >> >> If I check a few versions of the config out of CVS I can see that indeed some of the files are weird. >> >> -bash-4.0$ cvs diff -r1.86 -r1.89 >> --normal diff output showing config changes-- >> -bash-4.0$ cvs diff -r1.86 -r1.87 >> --normal diff output showing config changes-- >> -bash-4.0$ cvs diff -r1.86 -r1.88 >> cvs diff: Diffing pe >> cvs diff: Diffing pe/configs >> Index: pe/configs/router-x >> =================================================================== >> RCS file: /var/rancid/CVS/pe/configs/router-x,v >> retrieving revision 1.86 >> retrieving revision 1.88 >> diff -r1.86 -r1.88 >> Binary files /tmp/cvsCqpVfB and /tmp/cvsp09kv5 differ >> >> Okay, looks like version 1.88 is the weird one. >> >> Let's fetch 1.88 and 1.89 >> -bash-4.0$ cvs co -r1.88 pe/configs/router-x >> U pe/configs/router-x >> -bash-4.0$ cp pe/configs/router-x v1.88 >> -bash-4.0$ cvs co -r1.89 pe/configs/router-x >> U pe/configs/router-x >> -bash-4.0$ cp pe/configs/router-x v1.89 >> >> -bash-4.0$ ls -al v1.8* >> -rw-r--r-x 1 rancid rancid 70556 2009-11-25 05:28 v1.88 >> -rw-r--r-x 1 rancid rancid 70556 2009-11-25 05:28 v1.89 >> -bash-4.0$ diff v1.88 v1.89 >> Binary files v1.88 and v1.89 differ >> -bash-4.0$ >> >> --- same size of the files, but diff won't compare them because they are (or one of them is) a binary file. >> >> -bash-4.0$ strings v1.88 | wc -l >> 1387 >> -bash-4.0$ strings v1.89 | wc -l >> 1542 >> >> Now when I have a look at the files it seems that the smaller file (v1.88 and "binary") starts with a lot of \0 bytes, >> it would seem one for each character that is missing - and then continues exactly like the other one. >> Or should I say the files are exactly the same - but it's as if the first (1542 - 1387) bytes of v1.88 are 0-byte instead >> of the character that should be there. >> >> Diff --text on them shows that v1.89 includes all the lines from v1.88 and more and there has been no real >> change to the config. >> >> I'm running rancid version 2.3.2, with a slight change to jrancid: >> The change to jrancid is to make it backup a "show configuration | display set" version of the config as well as the >> normal "show configuration" and is done by adding one function: >> >> sub ShowConfigurationDisplaySet { >> print STDERR " In ShowConfigurationDisplaySet: $_" if ($debug); >> >> s/^[a-z]+@//; >> ProcessHistory("","","","# $_"); >> while () { >> tr/\015//d; >> last if (/^$prompt/); >> next if (/^system (shutdown message from|going down )/i); >> next if (/^\{(master|backup)}/); >> >> /Unrecognized command/ && return; >> /command is not valid/ && return; >> /^\s+\^/ && return; >> /syntax error/ && return; >> >> ProcessHistory("","","","$_"); >> } >> return(0); >> } >> >> >> and one item to @commandtable: >> {'show configuration | display set' => 'ShowConfigurationDisplaySet'}, >> >> It could very well be that the errors are introduced because of my addition, >> but I fail to see how. > > not likely. do you have a fsys or memory problem on this host? broken > expect/tcl? some other unintentional change to rancid? Arni Birgisson Network Engineer FATTOC Iceland Adalstraeti 6 101 Reykjavik Iceland From randy at psg.com Thu Nov 26 06:21:47 2009 From: randy at psg.com (Randy Bush) Date: Thu, 26 Nov 2009 15:21:47 +0900 Subject: [rancid] freebsd, tcl and expect Message-ID: freebsd am64 8-current there is now a vulnerabilty warning for tcl-8.3.5_8, the one that is frozen on my system as that release bypasses the good old expect hang. is it safe to upgrade yet? randy From ronnij at gmail.com Thu Nov 26 12:30:46 2009 From: ronnij at gmail.com (Ronni Jensen) Date: Thu, 26 Nov 2009 13:30:46 +0100 Subject: [rancid] Problems retrieving configs with rancid-run Message-ID: <7a76d30f0911260430k4a9d4cd7oa2729ca09f1d13dd@mail.gmail.com> Hi, I hope you can help me getting rancid to work. When I run "bin/clogin 10.10.10.10" from rancid homedir, it logs into the target switch and enters enable mode - autoenable is set to 1. But after a little while, it disconnects again with message: --- *Switch10# Error: TIMEOUT reached* --- When I run "bin/rancid-run switches", where switches is the group where 10.10.10.10 - and only that one switch for now - resides, I get the following in logfile: *starting: Thu Nov 26 12:33:19 CET 2009* ** *Trying to get all of the configs. 10.10.10.10 clogin error: Error: TIMEOUT reached 10.10.10.10: missed cmd(s): admin show diag,dir /all slavedisk2:,show rsp chassis-info,dir /all sec-slot2:,show diag,dir /all disk1:, show gsr chassis,dir /all sec-nvram:,show diag chassis-info,dir /all disk2:,dir /all sec-bootflash:,show spe version,dir /all slaves lot2:,dir /all disk0:,show install active,show bootvar,dir /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all slavenv ram:,show flash,dir /all sec-disk2:,dir /all slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show variables boot,show bo ot,show inventory raw,dir /all slavedisk1:,show env all,show module,admin show env all,show controllers,admin show version,show diag bus,more system:running-config,dir /all slavedisk0:,show debug,show idprom backplane,dir /all bootflash:,dir /all sec-slot0:,dir /al l sec-disk1:,write term,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all slot0:,dir /all sup-micr ocode:,show vlan,dir /all slavebootflash:,show controllers cbus,dir /all slaveslot1:,dir /all nvram:,show version,show vlan-switch,a dmin show variables boot,show redundancy secondary,show running-config,show c7200,dir /all slot1: 10.10.10.10: End of run not found ! ===================================== Getting missed routers: round 1. 10.10.10.10 clogin error: Error: TIMEOUT reached 10.10.10.10: missed cmd(s): admin show diag,dir /all slavedisk2:,show rsp chassis-info,dir /all sec-slot2:,show diag,dir /all disk1:, show gsr chassis,dir /all sec-nvram:,show diag chassis-info,dir /all disk2:,dir /all sec-bootflash:,show spe version,dir /all slaves lot2:,dir /all disk0:,show install active,show bootvar,dir /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all slavenv ram:,show flash,dir /all sec-disk2:,dir /all slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show variables boot,show bo ot,show inventory raw,dir /all slavedisk1:,show env all,show module,admin show env all,show controllers,admin show version,show diag bus,more system:running-config,dir /all slavedisk0:,show debug,show idprom backplane,dir /all bootflash:,dir /all sec-slot0:,dir /al l sec-disk1:,write term,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all slot0:,dir /all sup-micr ocode:,show vlan,dir /all slavebootflash:,show controllers cbus,dir /all slaveslot1:,dir /all nvram:,show version,show vlan-switch,a dmin show variables boot,show redundancy secondary,show running-config,show c7200,dir /all slot1: 10.10.10.10: End of run not found ! ===================================== Getting missed routers: round 2. 10.10.10.10 clogin error: Error: TIMEOUT reached 10.10.10.10: missed cmd(s): admin show diag,dir /all slavedisk2:,show rsp chassis-info,dir /all sec-slot2:,show diag,dir /all disk1:, show gsr chassis,dir /all sec-nvram:,show diag chassis-info,dir /all disk2:,dir /all sec-bootflash:,show spe version,dir /all slaves lot2:,dir /all disk0:,show install active,show bootvar,dir /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all slavenv ram:,show flash,dir /all sec-disk2:,dir /all slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show variables boot,show bo ot,show inventory raw,dir /all slavedisk1:,show env all,show module,admin show env all,show controllers,admin show version,show diag bus,more system:running-config,dir /all slavedisk0:,show debug,show idprom backplane,dir /all bootflash:,dir /all sec-slot0:,dir /al l sec-disk1:,write term,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all slot0:,dir /all sup-micr ocode:,show vlan,dir /all slavebootflash:,show controllers cbus,dir /all slaveslot1:,dir /all nvram:,show version,show vlan-switch,a dmin show variables boot,show redundancy secondary,show running-config,show c7200,dir /all slot1: 10.10.10.10: End of run not found ! ===================================== Getting missed routers: round 3. 10.10.10.10 clogin error: Error: TIMEOUT reached 10.10.10.10: missed cmd(s): admin show diag,dir /all slavedisk2:,show rsp chassis-info,dir /all sec-slot2:,show diag,dir /all disk1:, show gsr chassis,dir /all sec-nvram:,show diag chassis-info,dir /all disk2:,dir /all sec-bootflash:,show spe version,dir /all slaves lot2:,dir /all disk0:,show install active,show bootvar,dir /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all slavenv ram:,show flash,dir /all sec-disk2:,dir /all slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show variables boot,show bo ot,show inventory raw,dir /all slavedisk1:,show env all,show module,admin show env all,show controllers,admin show version,show diag bus,more system:running-config,dir /all slavedisk0:,show debug,show idprom backplane,dir /all bootflash:,dir /all sec-slot0:,dir /al l sec-disk1:,write term,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all slot0:,dir /all sup-micr ocode:,show vlan,dir /all slavebootflash:,show controllers cbus,dir /all slaveslot1:,dir /all nvram:,show version,show vlan-switch,a dmin show variables boot,show redundancy secondary,show running-config,show c7200,dir /all slot1: 10.10.10.10: End of run not found ! ===================================== Getting missed routers: round 4. 10.10.10.10 clogin error: Error: TIMEOUT reached 10.10.10.10: missed cmd(s): admin show diag,dir /all slavedisk2:,show rsp chassis-info,dir /all sec-slot2:,show diag,dir /all disk1:, show gsr chassis,dir /all sec-nvram:,show diag chassis-info,dir /all disk2:,dir /all sec-bootflash:,show spe version,dir /all slaves lot2:,dir /all disk0:,show install active,show bootvar,dir /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all slavenv ram:,show flash,dir /all sec-disk2:,dir /all slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show variables boot,show bo ot,show inventory raw,dir /all slavedisk1:,show env all,show module,admin show env all,show controllers,admin show version,show diag bus,more system:running-config,dir /all slavedisk0:,show debug,show idprom backplane,dir /all bootflash:,dir /all sec-slot0:,dir /al l sec-disk1:,write term,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all slot0:,dir /all sup-micr ocode:,show vlan,dir /all slavebootflash:,show controllers cbus,dir /all slaveslot1:,dir /all nvram:,show version,show vlan-switch,a dmin show variables boot,show redundancy secondary,show running-config,show c7200,dir /all slot1: 10.10.10.10: End of run not found !* *cvs diff: Diffing . cvs diff: Diffing configs cvs commit: Examining . cvs commit: Examining configs* *ending: Thu Nov 26 12:40:58 CET 2009* Any ideas how to solve the problem? I am using: - Fedora release 12 (Constantine) - rancid 2.3.2 - expect-5.43.0-19.fc12.i686 (installed from yum) - tcl-8.5.7-4.fc12.i686 (installed from yum) Best regards, Ronni -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091126/2298f504/attachment.html From froztbyte at froztbyte.net Thu Nov 26 14:08:29 2009 From: froztbyte at froztbyte.net (JP Viljoen) Date: Thu, 26 Nov 2009 16:08:29 +0200 Subject: [rancid] RANCID sending email address Message-ID: <200911261609.43810.froztbyte@froztbyte.net> Hi Is it possible to change the address from which RANCID sends out email? Additionally so for changes on multiple host groups. -J -- JP Viljoen | @froztbyte -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part. Url : http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091126/e8dfb65e/attachment.bin From heas at shrubbery.net Fri Nov 27 05:39:09 2009 From: heas at shrubbery.net (john heasley) Date: Fri, 27 Nov 2009 05:39:09 +0000 Subject: [rancid] Re: RANCID sending email address In-Reply-To: <200911261609.43810.froztbyte@froztbyte.net> References: <200911261609.43810.froztbyte@froztbyte.net> Message-ID: <20091127053909.GH22013@shrubbery.net> Thu, Nov 26, 2009 at 04:08:29PM +0200, JP Viljoen: > Hi > > Is it possible to change the address from which RANCID sends out email? > Additionally so for changes on multiple host groups. no, though some MTAs have address mapping functions. From heas at shrubbery.net Fri Nov 27 06:41:15 2009 From: heas at shrubbery.net (john heasley) Date: Fri, 27 Nov 2009 06:41:15 +0000 Subject: [rancid] Re: freebsd, tcl and expect In-Reply-To: References: Message-ID: <20091127064115.GL22013@shrubbery.net> Thu, Nov 26, 2009 at 03:21:47PM +0900, Randy Bush: > freebsd am64 8-current > > there is now a vulnerabilty warning for tcl-8.3.5_8, the one that is > frozen on my system as that release bypasses the good old expect hang. > is it safe to upgrade yet? it a tcl-freebsd bug; if its been fixed, you can upgrade. From randy at psg.com Fri Nov 27 13:27:05 2009 From: randy at psg.com (Randy Bush) Date: Fri, 27 Nov 2009 22:27:05 +0900 Subject: [rancid] Re: freebsd, tcl and expect In-Reply-To: <20091127064115.GL22013@shrubbery.net> References: <20091127064115.GL22013@shrubbery.net> Message-ID: >> freebsd am64 8-current >> >> there is now a vulnerabilty warning for tcl-8.3.5_8, the one that is >> frozen on my system as that release bypasses the good old expect >> hang. is it safe to upgrade yet? > > it a tcl-freebsd bug; if its been fixed, you can upgrade. even i figgerd that out :) i was wondering if any fellow freebsd users had tried a newew tcl, e.g. 8.4.19 or 8.5.8 or 8.6.b.1, and would be willing to declare it usable. randy From hank at rem.com Fri Nov 27 18:13:49 2009 From: hank at rem.com (Hank Kilmer) Date: Fri, 27 Nov 2009 13:13:49 -0500 Subject: [rancid] Re: freebsd, tcl and expect In-Reply-To: References: <20091127064115.GL22013@shrubbery.net> Message-ID: <4B1016DD.9060107@rem.com> I'm getting ready to try it out next week. if you can wait a few days, I'll report back. -Hank Randy Bush wrote: >>> freebsd am64 8-current >>> >>> there is now a vulnerabilty warning for tcl-8.3.5_8, the one that is >>> frozen on my system as that release bypasses the good old expect >>> hang. is it safe to upgrade yet? >> it a tcl-freebsd bug; if its been fixed, you can upgrade. > > even i figgerd that out :) > > i was wondering if any fellow freebsd users had tried a newew tcl, > e.g. 8.4.19 or 8.5.8 or 8.6.b.1, and would be willing to declare it > usable. > > randy > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From mv652 at softhome.net Fri Nov 27 18:30:30 2009 From: mv652 at softhome.net (mv652 at softhome.net) Date: Fri, 27 Nov 2009 11:30:30 -0700 Subject: [rancid] Applying Expect Patch Manually Message-ID: Hello, Please excuse this mail if this has been answered before, but I have completed a new rancid install and only need to apply the expect patch (running on Linux). Could someone please provide the syntax to apply the patch manually? I'm running expect 5.43 on CentOS. Thank you, Mario From randy at psg.com Fri Nov 27 21:35:08 2009 From: randy at psg.com (Randy Bush) Date: Sat, 28 Nov 2009 06:35:08 +0900 Subject: [rancid] Re: freebsd, tcl and expect In-Reply-To: <4B1016DD.9060107@rem.com> References: <20091127064115.GL22013@shrubbery.net> <4B1016DD.9060107@rem.com> Message-ID: > I'm getting ready to try it out next week. if you can wait a few days, > I'll report back. no rush at all randy From heas at shrubbery.net Fri Nov 27 21:41:03 2009 From: heas at shrubbery.net (john heasley) Date: Fri, 27 Nov 2009 13:41:03 -0800 Subject: [rancid] Re: freebsd, tcl and expect In-Reply-To: References: <20091127064115.GL22013@shrubbery.net> Message-ID: <20091127214103.GA20700@shrubbery.net> Fri, Nov 27, 2009 at 10:27:05PM +0900, Randy Bush: > >> freebsd am64 8-current > >> > >> there is now a vulnerabilty warning for tcl-8.3.5_8, the one that is > >> frozen on my system as that release bypasses the good old expect > >> hang. is it safe to upgrade yet? > > > > it a tcl-freebsd bug; if its been fixed, you can upgrade. > > even i figgerd that out :) sorry, i dont smoke fbsd. have a look at the release notes for the recent tcl/expects and the ports commit comments for them. > i was wondering if any fellow freebsd users had tried a newew tcl, > e.g. 8.4.19 or 8.5.8 or 8.6.b.1, and would be willing to declare it > usable. > > randy From heas at shrubbery.net Fri Nov 27 21:53:57 2009 From: heas at shrubbery.net (john heasley) Date: Fri, 27 Nov 2009 13:53:57 -0800 Subject: [rancid] Re: Rancid output "Binary files differ" In-Reply-To: <59381F7E-E1AE-4D3D-B626-787C62337EF7@fattoc.com> References: <9D5A3076-A17A-4EEC-B24C-8EDD25E710DC@fattoc.com> <20091125194110.GL13089@shrubbery.net> <59381F7E-E1AE-4D3D-B626-787C62337EF7@fattoc.com> Message-ID: <20091127215357.GI7853@shrubbery.net> Wed, Nov 25, 2009 at 10:46:42PM +0000, ?rni Birgisson: > Hi John, thanks for your reply. > > > > > not likely. do you have a fsys or memory problem on this host? broken > > expect/tcl? some other unintentional change to rancid? > > I don't believe there is any problem with the server itself, no errors in dmesg concerning > hard disks or filesystems (mirrored disks), and 6GB free memory of total 8GB. > Very little load on the server, and other processes running on it are working fine. > > expect and tcl are newest versions from YUM, > -- snip -- > Package 1:tcl-8.5.6-6.fc11.x86_64 already installed and latest version > Package expect-5.43.0-17.fc11.x86_64 already installed and latest version > -- snip -- > > And this behaviour is not constant, I have seen it from time to time with other routers, but > most of the time it's this one. Still not always on this one either - usually the backups come > through correct. that'd lead me to believe its timing-based and most likely related to expect reading portions of the input buffer, but thats a WAG. could be a number of things. the easiest thing to try is get the lastest tcl and expect, apply the expect patch from the rancid website and compile them yourself. > - Arni > > > On Nov 25, 2009, at 7:41 PM, john heasley wrote: > > > Wed, Nov 25, 2009 at 11:39:20AM +0000, ?rni Birgisson: > >> Hi guys, > >> > >> I'm wondering if anybody has seen this problem before. > >> This mail is going to be a bit long, starting with a simple description of the problem, > >> and then my diagnosis of it. > >> > >>> From time to time I'm getting a strange output from RANCID: > >> > >> ----- > >> > >> Index: configs/router-x > >> =================================================================== > >> retrieving revision 1.88 > >> diff -U 4 -r1.88 router-x > >> Binary files /tmp/cvsQSyJ8S and router-x differ > >> > >> ----- > >> > >> As I noticed that the revision number was quite high I looked around and it seems that this > >> does happen for more than one router - but happens very often to this one. > >> Most of the network equipment has had about 30-40 revisions since RANCID was installed > >> but this one has 88 revisions. > >> > >> If I check a few versions of the config out of CVS I can see that indeed some of the files are weird. > >> > >> -bash-4.0$ cvs diff -r1.86 -r1.89 > >> --normal diff output showing config changes-- > >> -bash-4.0$ cvs diff -r1.86 -r1.87 > >> --normal diff output showing config changes-- > >> -bash-4.0$ cvs diff -r1.86 -r1.88 > >> cvs diff: Diffing pe > >> cvs diff: Diffing pe/configs > >> Index: pe/configs/router-x > >> =================================================================== > >> RCS file: /var/rancid/CVS/pe/configs/router-x,v > >> retrieving revision 1.86 > >> retrieving revision 1.88 > >> diff -r1.86 -r1.88 > >> Binary files /tmp/cvsCqpVfB and /tmp/cvsp09kv5 differ > >> > >> Okay, looks like version 1.88 is the weird one. > >> > >> Let's fetch 1.88 and 1.89 > >> -bash-4.0$ cvs co -r1.88 pe/configs/router-x > >> U pe/configs/router-x > >> -bash-4.0$ cp pe/configs/router-x v1.88 > >> -bash-4.0$ cvs co -r1.89 pe/configs/router-x > >> U pe/configs/router-x > >> -bash-4.0$ cp pe/configs/router-x v1.89 > >> > >> -bash-4.0$ ls -al v1.8* > >> -rw-r--r-x 1 rancid rancid 70556 2009-11-25 05:28 v1.88 > >> -rw-r--r-x 1 rancid rancid 70556 2009-11-25 05:28 v1.89 > >> -bash-4.0$ diff v1.88 v1.89 > >> Binary files v1.88 and v1.89 differ > >> -bash-4.0$ > >> > >> --- same size of the files, but diff won't compare them because they are (or one of them is) a binary file. > >> > >> -bash-4.0$ strings v1.88 | wc -l > >> 1387 > >> -bash-4.0$ strings v1.89 | wc -l > >> 1542 > >> > >> Now when I have a look at the files it seems that the smaller file (v1.88 and "binary") starts with a lot of \0 bytes, > >> it would seem one for each character that is missing - and then continues exactly like the other one. > >> Or should I say the files are exactly the same - but it's as if the first (1542 - 1387) bytes of v1.88 are 0-byte instead > >> of the character that should be there. > >> > >> Diff --text on them shows that v1.89 includes all the lines from v1.88 and more and there has been no real > >> change to the config. > >> > >> I'm running rancid version 2.3.2, with a slight change to jrancid: > >> The change to jrancid is to make it backup a "show configuration | display set" version of the config as well as the > >> normal "show configuration" and is done by adding one function: > >> > >> sub ShowConfigurationDisplaySet { > >> print STDERR " In ShowConfigurationDisplaySet: $_" if ($debug); > >> > >> s/^[a-z]+@//; > >> ProcessHistory("","","","# $_"); > >> while () { > >> tr/\015//d; > >> last if (/^$prompt/); > >> next if (/^system (shutdown message from|going down )/i); > >> next if (/^\{(master|backup)}/); > >> > >> /Unrecognized command/ && return; > >> /command is not valid/ && return; > >> /^\s+\^/ && return; > >> /syntax error/ && return; > >> > >> ProcessHistory("","","","$_"); > >> } > >> return(0); > >> } > >> > >> > >> and one item to @commandtable: > >> {'show configuration | display set' => 'ShowConfigurationDisplaySet'}, > >> > >> It could very well be that the errors are introduced because of my addition, > >> but I fail to see how. > > > > not likely. do you have a fsys or memory problem on this host? broken > > expect/tcl? some other unintentional change to rancid? > > > > Arni Birgisson > Network Engineer > FATTOC Iceland > Adalstraeti 6 > 101 Reykjavik > Iceland From vishal.ud at directi.com Mon Nov 30 11:50:06 2009 From: vishal.ud at directi.com (vishal.ud) Date: Mon, 30 Nov 2009 17:20:06 +0530 Subject: [rancid] Running rancid as a deamon Message-ID: <4B13B16E.8080501@directi.com> I was wondering if this is possible since the advantages wud be as below 1) instant notifications if changes made unlike waiting for the cron runs 2) eliminates the dependency on the cron if it fails to run From arussos at comune.modena.it Mon Nov 30 16:07:34 2009 From: arussos at comune.modena.it (Andrea) Date: Mon, 30 Nov 2009 17:07:34 +0100 Subject: [rancid] Help on Enterasys switches Message-ID: <4B13EDC6.2030206@comune.modena.it> Hi all, i'm successfully using rancid to store the configs of 4 Core L3-Switches of Enterasys ( ER16 ); now i'm trying to use rancid against other enterasys switches ( secire stack B2/B3 ). Now, the command-line commands differs a bit from that on ER16; in that case i believe rancid-run use the perl script rivrancid in conjunction with the expect one named rivlogin to do it'wrork. Now, as the switches have different cli commands i got an expect script with which i correctly mange to login to the switch; but when i run rancid-run the rancid log file says: ..... Trying to get all of the configs. 10.0.6.12: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 10.0.6.12: End of run not found ..... beeing the 10.0.6.12 the IP address. So, i suppose i need to modify the perl script rivrancid, is it right ?? Some one have ever use rancid with enterasys swithces and, if yes, could help me in pointing to the right direction in getting so far ?? I need to understand which is the way to use rancid also with others swithces like Allied Telesys ones... Thanks a lot in advance, --Andrea From cgauthier at mapscu.com Mon Nov 30 17:14:36 2009 From: cgauthier at mapscu.com (Chris Gauthier) Date: Mon, 30 Nov 2009 09:14:36 -0800 Subject: [rancid] Re: Running rancid as a deamon In-Reply-To: <4B13B16E.8080501@directi.com> References: <4B13B16E.8080501@directi.com> Message-ID: <0A9A5A2BC1C0A94C981AF5FCF2D2F338146F0B05@mshin01.mapscu.com> I don't see how it is feasible to run rancid as a daemon since that is not how is was designed. What I mean is rancid was designed to run on a periodic basis and it would time out during periods of no changes. Others have gained a more "near realtime" performance by integrating rancid with other NMS products or invoking it based on SNMP traps. I don't believe it is even possible to run rancid as a daemon without it quitting in just a short amount of time. Do you really need the realtime changelogs? Is your equipment really changing that often? When was the last time cron actually failed on you? If you are worried about cron failure, then you might consider writing a script invoked by cron that a) 'touch /tmp/some_dummy_filename b) executes rancid. Next, you would have to have a daemon that checks for the existence of the /tmp/some_dummy_filename file and also compares its timestamp to the current time. If it was beyond a certain age, you could then invoke rancid again. This daemon would ideally run as the rancid user. Complicated? Yep. Is there a simpler way? Probably. Am I worried about cron failure? No. I have never seen cron fail because of a problem with cron. My cron failures have all been self-induced. Good luck! Chris Gauthier -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of vishal.ud Sent: Monday, November 30, 2009 3:50 AM To: rancid-discuss at shrubbery.net Subject: [rancid] Running rancid as a deamon I was wondering if this is possible since the advantages wud be as below 1) instant notifications if changes made unlike waiting for the cron runs 2) eliminates the dependency on the cron if it fails to run _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From heas at shrubbery.net Mon Nov 30 18:15:44 2009 From: heas at shrubbery.net (john heasley) Date: Mon, 30 Nov 2009 10:15:44 -0800 Subject: [rancid] Re: Running rancid as a deamon In-Reply-To: <4B13B16E.8080501@directi.com> References: <4B13B16E.8080501@directi.com> Message-ID: <20091130181544.GG12964@shrubbery.net> Mon, Nov 30, 2009 at 05:20:06PM +0530, vishal.ud: > I was wondering if this is possible since the advantages wud be as below i don't know what "wud" is. > 1) instant notifications if changes made unlike waiting for the cron runs see the faq for a way to do that. > 2) eliminates the dependency on the cron if it fails to run i think you far more problems if you can't even rely upon cron. perhaps try a more stable o/s. From vishal.ud at directi.com Mon Nov 30 18:34:53 2009 From: vishal.ud at directi.com (vishal.ud) Date: Tue, 01 Dec 2009 00:04:53 +0530 Subject: [rancid] Re: Running rancid as a deamon In-Reply-To: <0A9A5A2BC1C0A94C981AF5FCF2D2F338146F0B05@mshin01.mapscu.com> References: <4B13B16E.8080501@directi.com> <0A9A5A2BC1C0A94C981AF5FCF2D2F338146F0B05@mshin01.mapscu.com> Message-ID: <4B14104D.70603@directi.com> Chris , Thank you for your comprehensive reply . Well i donot need the realtime change as such and no the configs donot change that often either Well im gonna look into integrating NMS with rancid(since we already have a local deployment) Thanks again for your help Chris Gauthier wrote: > I don't see how it is feasible to run rancid as a daemon since that is > not how is was designed. What I mean is rancid was designed to run on a > periodic basis and it would time out during periods of no changes. > Others have gained a more "near realtime" performance by integrating > rancid with other NMS products or invoking it based on SNMP traps. I > don't believe it is even possible to run rancid as a daemon without it > quitting in just a short amount of time. Do you really need the > realtime changelogs? Is your equipment really changing that often? > When was the last time cron actually failed on you? > > If you are worried about cron failure, then you might consider writing a > script invoked by cron that a) 'touch /tmp/some_dummy_filename b) > executes rancid. Next, you would have to have a daemon that checks for > the existence of the /tmp/some_dummy_filename file and also compares its > timestamp to the current time. If it was beyond a certain age, you > could then invoke rancid again. This daemon would ideally run as the > rancid user. > > Complicated? Yep. Is there a simpler way? Probably. Am I worried > about cron failure? No. I have never seen cron fail because of a > problem with cron. My cron failures have all been self-induced. > > Good luck! > > Chris Gauthier > > -----Original Message----- > From: rancid-discuss-bounces at shrubbery.net > [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of vishal.ud > Sent: Monday, November 30, 2009 3:50 AM > To: rancid-discuss at shrubbery.net > Subject: [rancid] Running rancid as a deamon > > I was wondering if this is possible since the advantages wud be as below > 1) instant notifications if changes made unlike waiting for the cron > runs > 2) eliminates the dependency on the cron if it fails to run > > > _______________________________________________ > 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 wbrown at qualcomm.com Mon Nov 30 18:41:50 2009 From: wbrown at qualcomm.com (Brown IV, Bill (MFT)) Date: Mon, 30 Nov 2009 10:41:50 -0800 Subject: [rancid] Backing Up Cisco ACE Modules Message-ID: <74A76F5DF2E5124CBE0396FD39D1718607CC33A1B2@NALASEXMB03.na.qualcomm.com> Hello all, I've been trying to backup the Cisco ACE but Rancid seems to time out during the connection. I think it has to do with the pager. On the ACE, every time I login the pager gets set back to its default. Logging in and then setting 'term length 0' only works for the session. After Rancid logs out, the pager gets reset. Scenario: I can login to the device using clogin. Issuing a 'show run' from there reveals that the pager is set, (noted by the --more-- prompt). I set 'term length 0' and 'sho run' completes with no pager. Logging out and then back in reveals that the pager is once again set. Using the rancid script with -d, the last output is: HIT COMMAND:/Admin#show running-config In WriteTerm: /Admin#show running-config HIT COMMAND: /Admin#write term In WriteTerm: /Admin#write term : End of run not found : End of run not found My assumption is that somehow Rancid is expecting the enable prompt but not getting it because of the pager. I looked at the rancid script but I'm just not proficient enough to know where to hard code a 'term length 0' and I definitely don't want to change the behavior for other devices, (I don't want to "mess up"). Does anyone have a piece of code that will accomplish this? If possible, if you have it, I would really like to backup all the contexts within the ACE as well. Thanks, Bill -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091130/7b8dbc5a/attachment.html From NMaio at guesswho.com Mon Nov 30 18:56:00 2009 From: NMaio at guesswho.com (NMaio at guesswho.com) Date: Mon, 30 Nov 2009 13:56:00 -0500 Subject: [rancid] Re: Backing Up Cisco ACE Modules In-Reply-To: <74A76F5DF2E5124CBE0396FD39D1718607CC33A1B2@NALASEXMB03.na.qualcomm.com> References: <74A76F5DF2E5124CBE0396FD39D1718607CC33A1B2@NALASEXMB03.na.qualcomm.com> Message-ID: <2AA600764E54964491083B1E0EC81A302F87497A3B@EXCLUS.nationala-1advertising.com> Bill, I have been backing up our ACE modules for a while now. I had to seriously modify a script to make it work (I am not a developer so please excuse) and I am only concerned about the config and the fault tolerance info (this helps to know if one has failed over) I will send the script off list but remember you need to add the appropriate lines to rancid-fe for the new device type: elsif ($vendor =~ /^ace$/i) { exec('acerancid', $router); } and I used "add autoenable" in .cloginrc. Let me know if you have any questions. Nick From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Brown IV, Bill (MFT) Sent: Monday, November 30, 2009 1:42 PM To: rancid-discuss at shrubbery.net Subject: [rancid] Backing Up Cisco ACE Modules Hello all, I've been trying to backup the Cisco ACE but Rancid seems to time out during the connection. I think it has to do with the pager. On the ACE, every time I login the pager gets set back to its default. Logging in and then setting 'term length 0' only works for the session. After Rancid logs out, the pager gets reset. Scenario: I can login to the device using clogin. Issuing a 'show run' from there reveals that the pager is set, (noted by the --more-- prompt). I set 'term length 0' and 'sho run' completes with no pager. Logging out and then back in reveals that the pager is once again set. Using the rancid script with -d, the last output is: HIT COMMAND:/Admin#show running-config In WriteTerm: /Admin#show running-config HIT COMMAND: /Admin#write term In WriteTerm: /Admin#write term : End of run not found : End of run not found My assumption is that somehow Rancid is expecting the enable prompt but not getting it because of the pager. I looked at the rancid script but I'm just not proficient enough to know where to hard code a 'term length 0' and I definitely don't want to change the behavior for other devices, (I don't want to "mess up"). Does anyone have a piece of code that will accomplish this? If possible, if you have it, I would really like to backup all the contexts within the ACE as well. Thanks, Bill -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091130/ac945d03/attachment.html