From laker_netman at yahoo.com Wed Aug 1 19:11:36 2007 From: laker_netman at yahoo.com (Laker Netman) Date: Wed, 1 Aug 2007 12:11:36 -0700 (PDT) Subject: [rancid] spanning tree/portcost changes causing diffs Message-ID: <919294.44486.qm@web50511.mail.re2.yahoo.com> I have read several threads on the subject of portcost changes creating bogus diffs, but I haven't found one that presents a solution. Is there one? I am running RANCID 2.3.2a6 Thanks, Laker ____________________________________________________________________________________ Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 From rancid at gheek.net Wed Aug 1 19:39:20 2007 From: rancid at gheek.net (Lance) Date: Wed, 01 Aug 2007 12:39:20 -0700 Subject: [rancid] Re: spanning tree/portcost changes causing diffs Message-ID: <20070801123920.8e114e4890519e5179c192e02d6bca26.0f2bbbf8e3.wbe@email.secureserver.net> Maybe I am a little crazy but I don't think it would be that hard to do. Of course if depends where you want the changes to be ignored. If you want them to be tracked in CVS but not in the emails then I think that is easy to do, but I would like to see the emails reflect the CVS repo. So saying that I would say you either keep them or get rid of them with an option in rancid.conf. Opinions? -Lance > -------- Original Message -------- > Subject: [rancid] spanning tree/portcost changes causing diffs > From: Laker Netman > Date: Wed, August 01, 2007 12:11 pm > To: rancid-discuss at shrubbery.net > > I have read several threads on the subject of portcost changes creating bogus diffs, but I haven't found one that presents a solution. Is there one? > > I am running RANCID 2.3.2a6 > > > Thanks, > Laker > > > > > ____________________________________________________________________________________ > Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From feelgravityspull at gmail.com Thu Aug 2 17:51:24 2007 From: feelgravityspull at gmail.com (feelgravityspull at gmail.com) Date: Thu, 2 Aug 2007 11:51:24 -0600 Subject: [rancid] Re: rancid-2.3.2a6, clogin and HP Switches In-Reply-To: References: Message-ID: Figured it out, I removed the "\n" line I added to "enable" and removed the "." and the end of "Press any key to continue" on line 490 of clogin. -Mark On 8/2/07, feelgravityspull at gmail.com wrote: > > Just installed the alpha version of rancid and trying to connect to a HP > ProCurve 5406zl switch. Using clogin, it works 50% of the time, the other > 50% if hangs on the " Press any key to continue" login page. > > Has anyone seen this before? > > Thanks. > > fyi: I had to add a "\n" to line 544 on clogin to send the enable command, > otherwise just "nable" was sent. > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070802/fddbe7af/attachment.html From laker_netman at yahoo.com Thu Aug 2 20:13:05 2007 From: laker_netman at yahoo.com (Laker Netman) Date: Thu, 2 Aug 2007 13:13:05 -0700 (PDT) Subject: [rancid] Re: spanning tree/portcost changes causing diffs Message-ID: <405572.66280.qm@web50509.mail.re2.yahoo.com> Here's and example of what I get in email and CVS: Index: configs/192.168.20.206 =================================================================== retrieving revision 1.38 diff -U4 -r1.38 192.168.20.206 @@ -1072,10 +1072,10 @@ set trunk 4/46 auto negotiate 1-1005,1025-4094 set trunk 4/47 auto negotiate 1-1005,1025-4094 set trunk 4/48 auto negotiate 1-1005,1025-4094 set spantree portfast 4/1-48 disable - set spantree portcost 4/1,4/5-10,4/12-13,4/21-22,4/25-26,4/31-32,4/38,4/45,4/47 19 - set spantree portcost 4/2-4,4/11,4/14-20,4/23-24,4/27-30,4/33-37,4/39-44,4/46,4/48 100 + set spantree portcost 4/1,4/5-10,4/12-13,4/21-22,4/25-26,4/28,4/31-32,4/38,4/45,4/47 19 + set spantree portcost 4/2-4,4/11,4/14-20,4/23-24,4/27,4/29-30,4/33-37,4/39-44,4/46,4/48 100 set spantree portpri 4/1-48 32 set spantree portvlanpri 4/1 0 set spantree portvlanpri 4/2 0 set spantree portvlanpri 4/3 0 @@ -1150,9 +1150,9 @@ set spantree portvlancost 4/24 cost 99 set spantree portvlancost 4/25 cost 18 set spantree portvlancost 4/26 cost 18 set spantree portvlancost 4/27 cost 99 - set spantree portvlancost 4/28 cost 99 + set spantree portvlancost 4/28 cost 18 set spantree portvlancost 4/29 cost 99 set spantree portvlancost 4/30 cost 99 set spantree portvlancost 4/31 cost 18 set spantree portvlancost 4/32 cost 18 @@ -1270,10 +1270,10 @@ set trunk 5/47 auto negotiate 1-1005,1025-4094 set trunk 5/48 auto negotiate 1-1005,1025-4094 set spantree portfast 5/26 enable set spantree portfast 5/1-25,5/27-48 disable - set spantree portcost 5/4,5/6,5/9-12,5/14-15,5/19,5/22-24,5/28,5/33,5/35,5/38,5/41,5/44-45,5/48 19 - set spantree portcost 5/1-3,5/5,5/7-8,5/13,5/16-18,5/20-21,5/25-27,5/29-32,5/34,5/36-37,5/39-40,5/42-43,5/46-47 100 + set spantree portcost 5/4,5/6,5/9-12,5/14-15,5/19,5/22-24,5/28,5/33,5/35,5/38,5/44-45,5/48 19 + set spantree portcost 5/1-3,5/5,5/7-8,5/13,5/16-18,5/20-21,5/25-27,5/29-32,5/34,5/36-37,5/39-43,5/46-47 100 set spantree portpri 5/1-48 32 set spantree portvlanpri 5/1 0 set spantree portvlanpri 5/2 0 set spantree portvlanpri 5/3 0 @@ -1361,9 +1361,9 @@ set spantree portvlancost 5/37 cost 99 set spantree portvlancost 5/38 cost 18 set spantree portvlancost 5/39 cost 99 set spantree portvlancost 5/40 cost 99 - set spantree portvlancost 5/41 cost 18 + set spantree portvlancost 5/41 cost 99 set spantree portvlancost 5/42 cost 99 set spantree portvlancost 5/43 cost 99 set spantree portvlancost 5/44 cost 18 set spantree portvlancost 5/45 cost 18 @@ -1466,10 +1466,10 @@ set trunk 6/47 auto negotiate 1-1005,1025-4094 set trunk 6/48 auto negotiate 1-1005,1025-4094 set spantree portfast 6/2,6/37 enable set spantree portfast 6/1,6/3-36,6/38-48 disable - set spantree portcost 6/1,6/3-5,6/9,6/15-18,6/23,6/37-38,6/40-43,6/46,6/48 19 - set spantree portcost 6/2,6/6-8,6/10-14,6/19-22,6/24-36,6/39,6/44-45,6/47 100 + set spantree portcost 6/1,6/3-5,6/9,6/13,6/15-18,6/23,6/37-38,6/40-43,6/46,6/48 19 + set spantree portcost 6/2,6/6-8,6/10-12,6/14,6/19-22,6/24-36,6/39,6/44-45,6/47 100 set spantree portpri 6/1-48 32 set spantree portvlanpri 6/1 0 set spantree portvlanpri 6/2 0 set spantree portvlanpri 6/3 0 @@ -1529,9 +1529,9 @@ set spantree portvlancost 6/9 cost 18 set spantree portvlancost 6/10 cost 99 set spantree portvlancost 6/11 cost 99 set spantree portvlancost 6/12 cost 99 - set spantree portvlancost 6/13 cost 99 + set spantree portvlancost 6/13 cost 18 set spantree portvlancost 6/14 cost 99 set spantree portvlancost 6/15 cost 18 set spantree portvlancost 6/16 cost 18 set spantree portvlancost 6/17 cost 18 Index: configs/192.168.20.219 =================================================================== retrieving revision 1.28 diff -U4 -r1.28 192.168.20.219 @@ -668,10 +668,10 @@ set trunk 3/46 auto dot1q 1-1005 set trunk 3/47 auto dot1q 1-1005 set trunk 3/48 auto dot1q 1-1005 set spantree portfast 3/1-48 disable - set spantree portcost 3/1-2,3/11-12,3/19,3/25,3/27-29,3/35,3/37-39,3/41,3/43,3/46-48 19 - set spantree portcost 3/3-10,3/13-18,3/20-24,3/26,3/30-34,3/36,3/40,3/42,3/44-45 100 + set spantree portcost 3/1,3/11-12,3/19,3/25,3/27-29,3/35,3/37-38,3/41,3/43,3/46-48 19 + set spantree portcost 3/2-10,3/13-18,3/20-24,3/26,3/30-34,3/36,3/39-40,3/42,3/44-45 100 set spantree portpri 3/1-48 32 set spantree portvlanpri 3/1 0 set spantree portvlanpri 3/2 0 set spantree portvlanpri 3/3 0 @@ -720,9 +720,9 @@ set spantree portvlanpri 3/46 0 set spantree portvlanpri 3/47 0 set spantree portvlanpri 3/48 0 set spantree portvlancost 3/1 cost 18 - set spantree portvlancost 3/2 cost 18 + set spantree portvlancost 3/2 cost 99 set spantree portvlancost 3/3 cost 99 set spantree portvlancost 3/4 cost 99 set spantree portvlancost 3/5 cost 99 set spantree portvlancost 3/6 cost 99 @@ -757,9 +757,9 @@ set spantree portvlancost 3/35 cost 18 set spantree portvlancost 3/36 cost 99 set spantree portvlancost 3/37 cost 18 set spantree portvlancost 3/38 cost 18 - set spantree portvlancost 3/39 cost 18 + set spantree portvlancost 3/39 cost 99 set spantree portvlancost 3/40 cost 99 set spantree portvlancost 3/41 cost 18 set spantree portvlancost 3/42 cost 99 set spantree portvlancost 3/43 cost 18 Index: configs/192.168.20.223 =================================================================== retrieving revision 1.37 diff -U4 -r1.37 192.168.20.223 @@ -713,10 +713,10 @@ set trunk 4/47 auto dot1q 1-1005 set trunk 4/48 auto dot1q 1-1005 set spantree portfast 4/14 enable set spantree portfast 4/1-13,4/15-48 disable - set spantree portcost 4/1,4/10-11,4/17-18,4/21,4/23,4/25,4/27,4/29,4/32,4/34,4/38-39,4/42,4/44-45 19 - set spantree portcost 4/2-9,4/12-16,4/19-20,4/22,4/24,4/26,4/28,4/30-31,4/33,4/35-37,4/40-41,4/43,4/46-48 100 + set spantree portcost 4/1,4/10,4/17-18,4/21,4/23,4/25,4/27,4/29,4/32,4/34,4/38-39,4/42,4/44-45 19 + set spantree portcost 4/2-9,4/11-16,4/19-20,4/22,4/24,4/26,4/28,4/30-31,4/33,4/35-37,4/40-41,4/43,4/46-48 100 set spantree portpri 4/1-48 32 set spantree portvlanpri 4/1 0 set spantree portvlanpri 4/2 0 set spantree portvlanpri 4/3 0 @@ -774,9 +774,9 @@ set spantree portvlancost 4/7 cost 99 set spantree portvlancost 4/8 cost 99 set spantree portvlancost 4/9 cost 99 set spantree portvlancost 4/10 cost 18 - set spantree portvlancost 4/11 cost 18 + set spantree portvlancost 4/11 cost 99 set spantree portvlancost 4/12 cost 99 set spantree portvlancost 4/13 cost 99 set spantree portvlancost 4/14 cost 99 set spantree portvlancost 4/15 cost 99 @@ -889,10 +889,10 @@ set trunk 5/47 auto dot1q 1-1005 set trunk 5/48 auto dot1q 1-1005 set spantree portfast 5/10 enable set spantree portfast 5/1-9,5/11-48 disable - set spantree portcost 5/4,5/7,5/11-12,5/15,5/18,5/20,5/26-27,5/33,5/35-36,5/43 19 - set spantree portcost 5/1-3,5/5-6,5/8-10,5/13-14,5/16-17,5/19,5/21-25,5/28-32,5/34,5/37-42,5/44-48 100 + set spantree portcost 5/7,5/11-12,5/15,5/18,5/20,5/26-27,5/33,5/35-36,5/43 19 + set spantree portcost 5/1-6,5/8-10,5/13-14,5/16-17,5/19,5/21-25,5/28-32,5/34,5/37-42,5/44-48 100 set spantree portpri 5/1-48 32 set spantree portvlanpri 5/1 0 set spantree portvlanpri 5/2 0 set spantree portvlanpri 5/3 0 @@ -943,9 +943,9 @@ set spantree portvlanpri 5/48 0 set spantree portvlancost 5/1 cost 99 set spantree portvlancost 5/2 cost 99 set spantree portvlancost 5/3 cost 99 - set spantree portvlancost 5/4 cost 18 + set spantree portvlancost 5/4 cost 99 set spantree portvlancost 5/5 cost 99 set spantree portvlancost 5/6 cost 99 set spantree portvlancost 5/7 cost 18 set spantree portvlancost 5/8 cost 99 @@ -1063,10 +1063,10 @@ set trunk 6/47 auto dot1q 1-1005 set trunk 6/48 auto dot1q 1-1005 set spantree portfast 6/29,6/32 enable set spantree portfast 6/1-28,6/30-31,6/33-48 disable - set spantree portcost 6/9,6/17,6/26-27,6/30,6/33,6/36 19 - set spantree portcost 6/1-8,6/10-16,6/18-25,6/28-29,6/31-32,6/34-35,6/37-48 100 + set spantree portcost 6/9,6/17,6/24,6/26-27,6/30,6/33,6/36 19 + set spantree portcost 6/1-8,6/10-16,6/18-23,6/25,6/28-29,6/31-32,6/34-35,6/37-48 100 set spantree portpri 6/1-48 32 set spantree portvlanpri 6/1 0 set spantree portvlanpri 6/2 0 set spantree portvlanpri 6/3 0 @@ -1137,9 +1137,9 @@ set spantree portvlancost 6/20 cost 99 set spantree portvlancost 6/21 cost 99 set spantree portvlancost 6/22 cost 99 set spantree portvlancost 6/23 cost 99 - set spantree portvlancost 6/24 cost 99 + set spantree portvlancost 6/24 cost 18 set spantree portvlancost 6/25 cost 99 set spantree portvlancost 6/26 cost 18 set spantree portvlancost 6/27 cost 18 set spantree portvlancost 6/28 cost 99 ----- Original Message ---- From: Lance To: Laker Netman Cc: rancid-discuss at shrubbery.net Sent: Wednesday, August 1, 2007 2:39:20 PM Subject: RE: [rancid] spanning tree/portcost changes causing diffs Maybe I am a little crazy but I don't think it would be that hard to do. Of course if depends where you want the changes to be ignored. If you want them to be tracked in CVS but not in the emails then I think that is easy to do, but I would like to see the emails reflect the CVS repo. So saying that I would say you either keep them or get rid of them with an option in rancid.conf. Opinions? -Lance > -------- Original Message -------- > Subject: [rancid] spanning tree/portcost changes causing diffs > From: Laker Netman > Date: Wed, August 01, 2007 12:11 pm > To: rancid-discuss at shrubbery.net > > I have read several threads on the subject of portcost changes creating bogus diffs, but I haven't found one that presents a solution. Is there one? > > I am running RANCID 2.3.2a6 > > > Thanks, > Laker > > > > > ____________________________________________________________________________________ > Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss ____________________________________________________________________________________ Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool. http://autos.yahoo.com/carfinder/ From rancid at gheek.net Fri Aug 3 00:12:29 2007 From: rancid at gheek.net (Lance) Date: Thu, 02 Aug 2007 17:12:29 -0700 Subject: [rancid] Re: spanning tree/portcost changes causing diffs Message-ID: <20070802171229.8e114e4890519e5179c192e02d6bca26.943f6337f3.wbe@email.secureserver.net> Laker, This is directly related to ports changing state (aka someone turning on/off their pc). -Lance > -------- Original Message -------- > Subject: Re: [rancid] spanning tree/portcost changes causing diffs > From: Laker Netman > Date: Thu, August 02, 2007 1:13 pm > To: Lance > Cc: rancid-discuss at shrubbery.net > > Here's and example of what I get in email and CVS: > > Index: configs/192.168.20.206 > =================================================================== > retrieving revision 1.38 > diff -U4 -r1.38 192.168.20.206 > @@ -1072,10 +1072,10 @@ > set trunk 4/46 auto negotiate 1-1005,1025-4094 > set trunk 4/47 auto negotiate 1-1005,1025-4094 > set trunk 4/48 auto negotiate 1-1005,1025-4094 > set spantree portfast 4/1-48 disable > - set spantree portcost 4/1,4/5-10,4/12-13,4/21-22,4/25-26,4/31-32,4/38,4/45,4/47 19 > - set spantree portcost 4/2-4,4/11,4/14-20,4/23-24,4/27-30,4/33-37,4/39-44,4/46,4/48 100 > + set spantree portcost 4/1,4/5-10,4/12-13,4/21-22,4/25-26,4/28,4/31-32,4/38,4/45,4/47 19 > + set spantree portcost 4/2-4,4/11,4/14-20,4/23-24,4/27,4/29-30,4/33-37,4/39-44,4/46,4/48 100 > set spantree portpri 4/1-48 32 > set spantree portvlanpri 4/1 0 > set spantree portvlanpri 4/2 0 > set spantree portvlanpri 4/3 0 > @@ -1150,9 +1150,9 @@ > set spantree portvlancost 4/24 cost 99 > set spantree portvlancost 4/25 cost 18 > set spantree portvlancost 4/26 cost 18 > set spantree portvlancost 4/27 cost 99 > - set spantree portvlancost 4/28 cost 99 > + set spantree portvlancost 4/28 cost 18 > set spantree portvlancost 4/29 cost 99 > set spantree portvlancost 4/30 cost 99 > set spantree portvlancost 4/31 cost 18 > set spantree portvlancost 4/32 cost 18 > @@ -1270,10 +1270,10 @@ > set trunk 5/47 auto negotiate 1-1005,1025-4094 > set trunk 5/48 auto negotiate 1-1005,1025-4094 > set spantree portfast 5/26 enable > set spantree portfast 5/1-25,5/27-48 disable > - set spantree portcost 5/4,5/6,5/9-12,5/14-15,5/19,5/22-24,5/28,5/33,5/35,5/38,5/41,5/44-45,5/48 19 > - set spantree portcost 5/1-3,5/5,5/7-8,5/13,5/16-18,5/20-21,5/25-27,5/29-32,5/34,5/36-37,5/39-40,5/42-43,5/46-47 100 > + set spantree portcost 5/4,5/6,5/9-12,5/14-15,5/19,5/22-24,5/28,5/33,5/35,5/38,5/44-45,5/48 19 > + set spantree portcost 5/1-3,5/5,5/7-8,5/13,5/16-18,5/20-21,5/25-27,5/29-32,5/34,5/36-37,5/39-43,5/46-47 100 > set spantree portpri 5/1-48 32 > set spantree portvlanpri 5/1 0 > set spantree portvlanpri 5/2 0 > set spantree portvlanpri 5/3 0 > @@ -1361,9 +1361,9 @@ > set spantree portvlancost 5/37 cost 99 > set spantree portvlancost 5/38 cost 18 > set spantree portvlancost 5/39 cost 99 > set spantree portvlancost 5/40 cost 99 > - set spantree portvlancost 5/41 cost 18 > + set spantree portvlancost 5/41 cost 99 > set spantree portvlancost 5/42 cost 99 > set spantree portvlancost 5/43 cost 99 > set spantree portvlancost 5/44 cost 18 > set spantree portvlancost 5/45 cost 18 > @@ -1466,10 +1466,10 @@ > set trunk 6/47 auto negotiate 1-1005,1025-4094 > set trunk 6/48 auto negotiate 1-1005,1025-4094 > set spantree portfast 6/2,6/37 enable > set spantree portfast 6/1,6/3-36,6/38-48 disable > - set spantree portcost 6/1,6/3-5,6/9,6/15-18,6/23,6/37-38,6/40-43,6/46,6/48 19 > - set spantree portcost 6/2,6/6-8,6/10-14,6/19-22,6/24-36,6/39,6/44-45,6/47 100 > + set spantree portcost 6/1,6/3-5,6/9,6/13,6/15-18,6/23,6/37-38,6/40-43,6/46,6/48 19 > + set spantree portcost 6/2,6/6-8,6/10-12,6/14,6/19-22,6/24-36,6/39,6/44-45,6/47 100 > set spantree portpri 6/1-48 32 > set spantree portvlanpri 6/1 0 > set spantree portvlanpri 6/2 0 > set spantree portvlanpri 6/3 0 > @@ -1529,9 +1529,9 @@ > set spantree portvlancost 6/9 cost 18 > set spantree portvlancost 6/10 cost 99 > set spantree portvlancost 6/11 cost 99 > set spantree portvlancost 6/12 cost 99 > - set spantree portvlancost 6/13 cost 99 > + set spantree portvlancost 6/13 cost 18 > set spantree portvlancost 6/14 cost 99 > set spantree portvlancost 6/15 cost 18 > set spantree portvlancost 6/16 cost 18 > set spantree portvlancost 6/17 cost 18 > Index: configs/192.168.20.219 > =================================================================== > retrieving revision 1.28 > diff -U4 -r1.28 192.168.20.219 > @@ -668,10 +668,10 @@ > set trunk 3/46 auto dot1q 1-1005 > set trunk 3/47 auto dot1q 1-1005 > set trunk 3/48 auto dot1q 1-1005 > set spantree portfast 3/1-48 disable > - set spantree portcost 3/1-2,3/11-12,3/19,3/25,3/27-29,3/35,3/37-39,3/41,3/43,3/46-48 19 > - set spantree portcost 3/3-10,3/13-18,3/20-24,3/26,3/30-34,3/36,3/40,3/42,3/44-45 100 > + set spantree portcost 3/1,3/11-12,3/19,3/25,3/27-29,3/35,3/37-38,3/41,3/43,3/46-48 19 > + set spantree portcost 3/2-10,3/13-18,3/20-24,3/26,3/30-34,3/36,3/39-40,3/42,3/44-45 100 > set spantree portpri 3/1-48 32 > set spantree portvlanpri 3/1 0 > set spantree portvlanpri 3/2 0 > set spantree portvlanpri 3/3 0 > @@ -720,9 +720,9 @@ > set spantree portvlanpri 3/46 0 > set spantree portvlanpri 3/47 0 > set spantree portvlanpri 3/48 0 > set spantree portvlancost 3/1 cost 18 > - set spantree portvlancost 3/2 cost 18 > + set spantree portvlancost 3/2 cost 99 > set spantree portvlancost 3/3 cost 99 > set spantree portvlancost 3/4 cost 99 > set spantree portvlancost 3/5 cost 99 > set spantree portvlancost 3/6 cost 99 > @@ -757,9 +757,9 @@ > set spantree portvlancost 3/35 cost 18 > set spantree portvlancost 3/36 cost 99 > set spantree portvlancost 3/37 cost 18 > set spantree portvlancost 3/38 cost 18 > - set spantree portvlancost 3/39 cost 18 > + set spantree portvlancost 3/39 cost 99 > set spantree portvlancost 3/40 cost 99 > set spantree portvlancost 3/41 cost 18 > set spantree portvlancost 3/42 cost 99 > set spantree portvlancost 3/43 cost 18 > Index: configs/192.168.20.223 > =================================================================== > retrieving revision 1.37 > diff -U4 -r1.37 192.168.20.223 > @@ -713,10 +713,10 @@ > set trunk 4/47 auto dot1q 1-1005 > set trunk 4/48 auto dot1q 1-1005 > set spantree portfast 4/14 enable > set spantree portfast 4/1-13,4/15-48 disable > - set spantree portcost 4/1,4/10-11,4/17-18,4/21,4/23,4/25,4/27,4/29,4/32,4/34,4/38-39,4/42,4/44-45 19 > - set spantree portcost 4/2-9,4/12-16,4/19-20,4/22,4/24,4/26,4/28,4/30-31,4/33,4/35-37,4/40-41,4/43,4/46-48 100 > + set spantree portcost 4/1,4/10,4/17-18,4/21,4/23,4/25,4/27,4/29,4/32,4/34,4/38-39,4/42,4/44-45 19 > + set spantree portcost 4/2-9,4/11-16,4/19-20,4/22,4/24,4/26,4/28,4/30-31,4/33,4/35-37,4/40-41,4/43,4/46-48 100 > set spantree portpri 4/1-48 32 > set spantree portvlanpri 4/1 0 > set spantree portvlanpri 4/2 0 > set spantree portvlanpri 4/3 0 > @@ -774,9 +774,9 @@ > set spantree portvlancost 4/7 cost 99 > set spantree portvlancost 4/8 cost 99 > set spantree portvlancost 4/9 cost 99 > set spantree portvlancost 4/10 cost 18 > - set spantree portvlancost 4/11 cost 18 > + set spantree portvlancost 4/11 cost 99 > set spantree portvlancost 4/12 cost 99 > set spantree portvlancost 4/13 cost 99 > set spantree portvlancost 4/14 cost 99 > set spantree portvlancost 4/15 cost 99 > @@ -889,10 +889,10 @@ > set trunk 5/47 auto dot1q 1-1005 > set trunk 5/48 auto dot1q 1-1005 > set spantree portfast 5/10 enable > set spantree portfast 5/1-9,5/11-48 disable > - set spantree portcost 5/4,5/7,5/11-12,5/15,5/18,5/20,5/26-27,5/33,5/35-36,5/43 19 > - set spantree portcost 5/1-3,5/5-6,5/8-10,5/13-14,5/16-17,5/19,5/21-25,5/28-32,5/34,5/37-42,5/44-48 100 > + set spantree portcost 5/7,5/11-12,5/15,5/18,5/20,5/26-27,5/33,5/35-36,5/43 19 > + set spantree portcost 5/1-6,5/8-10,5/13-14,5/16-17,5/19,5/21-25,5/28-32,5/34,5/37-42,5/44-48 100 > set spantree portpri 5/1-48 32 > set spantree portvlanpri 5/1 0 > set spantree portvlanpri 5/2 0 > set spantree portvlanpri 5/3 0 > @@ -943,9 +943,9 @@ > set spantree portvlanpri 5/48 0 > set spantree portvlancost 5/1 cost 99 > set spantree portvlancost 5/2 cost 99 > set spantree portvlancost 5/3 cost 99 > - set spantree portvlancost 5/4 cost 18 > + set spantree portvlancost 5/4 cost 99 > set spantree portvlancost 5/5 cost 99 > set spantree portvlancost 5/6 cost 99 > set spantree portvlancost 5/7 cost 18 > set spantree portvlancost 5/8 cost 99 > @@ -1063,10 +1063,10 @@ > set trunk 6/47 auto dot1q 1-1005 > set trunk 6/48 auto dot1q 1-1005 > set spantree portfast 6/29,6/32 enable > set spantree portfast 6/1-28,6/30-31,6/33-48 disable > - set spantree portcost 6/9,6/17,6/26-27,6/30,6/33,6/36 19 > - set spantree portcost 6/1-8,6/10-16,6/18-25,6/28-29,6/31-32,6/34-35,6/37-48 100 > + set spantree portcost 6/9,6/17,6/24,6/26-27,6/30,6/33,6/36 19 > + set spantree portcost 6/1-8,6/10-16,6/18-23,6/25,6/28-29,6/31-32,6/34-35,6/37-48 100 > set spantree portpri 6/1-48 32 > set spantree portvlanpri 6/1 0 > set spantree portvlanpri 6/2 0 > set spantree portvlanpri 6/3 0 > @@ -1137,9 +1137,9 @@ > set spantree portvlancost 6/20 cost 99 > set spantree portvlancost 6/21 cost 99 > set spantree portvlancost 6/22 cost 99 > set spantree portvlancost 6/23 cost 99 > - set spantree portvlancost 6/24 cost 99 > + set spantree portvlancost 6/24 cost 18 > set spantree portvlancost 6/25 cost 99 > set spantree portvlancost 6/26 cost 18 > set spantree portvlancost 6/27 cost 18 > set spantree portvlancost 6/28 cost 99 > > ----- Original Message ---- > From: Lance > To: Laker Netman > Cc: rancid-discuss at shrubbery.net > Sent: Wednesday, August 1, 2007 2:39:20 PM > Subject: RE: [rancid] spanning tree/portcost changes causing diffs > > Maybe I am a little crazy but I don't think it would be that hard to do. > Of course if depends where you want the changes to be ignored. If you > want them to be tracked in CVS but not in the emails then I think that > is easy to do, but I would like to see the emails reflect the CVS repo. > So saying that I would say you either keep them or get rid of them with > an option in rancid.conf. > > Opinions? > > -Lance > > > -------- Original Message -------- > > Subject: [rancid] spanning tree/portcost changes causing diffs > > From: Laker Netman > > Date: Wed, August 01, 2007 12:11 pm > > To: rancid-discuss at shrubbery.net > > > > I have read several threads on the subject of portcost changes creating bogus diffs, but I haven't found one that presents a solution. Is there one? > > > > I am running RANCID 2.3.2a6 > > > > > > Thanks, > > Laker > > > > > > > > > > ____________________________________________________________________________________ > > Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 > > > > _______________________________________________ > > Rancid-discuss mailing list > > Rancid-discuss at shrubbery.net > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > > > > > > ____________________________________________________________________________________ > Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool. > http://autos.yahoo.com/carfinder/ From feelgravityspull at gmail.com Thu Aug 2 17:33:32 2007 From: feelgravityspull at gmail.com (feelgravityspull at gmail.com) Date: Thu, 2 Aug 2007 11:33:32 -0600 Subject: [rancid] rancid-2.3.2a6, clogin and HP Switches Message-ID: Just installed the alpha version of rancid and trying to connect to a HP ProCurve 5406zl switch. Using clogin, it works 50% of the time, the other 50% if hangs on the " Press any key to continue" login page. Has anyone seen this before? Thanks. fyi: I had to add a "\n" to line 544 on clogin to send the enable command, otherwise just "nable" was sent. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070802/bcb5668c/attachment.html From laker_netman at yahoo.com Fri Aug 3 13:51:18 2007 From: laker_netman at yahoo.com (Laker Netman) Date: Fri, 3 Aug 2007 06:51:18 -0700 (PDT) Subject: [rancid] Re: spanning tree/portcost changes causing diffs Message-ID: <787542.4339.qm@web50509.mail.re2.yahoo.com> I understand that, but I'd prefer not to have them appear as configuration changes if possible, i.e., have the script ignore changes to those lines. It wouldn't affect restoring a config, because the switch would set the ports to their correct state anyway. Laker ----- Original Message ---- From: Lance To: Laker Netman Cc: rancid-discuss at shrubbery.net Sent: Thursday, August 2, 2007 7:12:29 PM Subject: RE: [rancid] spanning tree/portcost changes causing diffs Laker, This is directly related to ports changing state (aka someone turning on/off their pc). -Lance > -------- Original Message -------- > Subject: Re: [rancid] spanning tree/portcost changes causing diffs > From: Laker Netman > Date: Thu, August 02, 2007 1:13 pm > To: Lance > Cc: rancid-discuss at shrubbery.net > > Here's and example of what I get in email and CVS: > > Index: configs/192.168.20.206 > =================================================================== > retrieving revision 1.38 > diff -U4 -r1.38 192.168.20.206 > @@ -1072,10 +1072,10 @@ > set trunk 4/46 auto negotiate 1-1005,1025-4094 > set trunk 4/47 auto negotiate 1-1005,1025-4094 > set trunk 4/48 auto negotiate 1-1005,1025-4094 > set spantree portfast 4/1-48 disable > - set spantree portcost 4/1,4/5-10,4/12-13,4/21-22,4/25-26,4/31-32,4/38,4/45,4/47 19 > - set spantree portcost 4/2-4,4/11,4/14-20,4/23-24,4/27-30,4/33-37,4/39-44,4/46,4/48 100 > + set spantree portcost 4/1,4/5-10,4/12-13,4/21-22,4/25-26,4/28,4/31-32,4/38,4/45,4/47 19 > + set spantree portcost 4/2-4,4/11,4/14-20,4/23-24,4/27,4/29-30,4/33-37,4/39-44,4/46,4/48 100 > set spantree portpri 4/1-48 32 > set spantree portvlanpri 4/1 0 > set spantree portvlanpri 4/2 0 > set spantree portvlanpri 4/3 0 > @@ -1150,9 +1150,9 @@ > set spantree portvlancost 4/24 cost 99 > set spantree portvlancost 4/25 cost 18 > set spantree portvlancost 4/26 cost 18 > set spantree portvlancost 4/27 cost 99 > - set spantree portvlancost 4/28 cost 99 > + set spantree portvlancost 4/28 cost 18 > set spantree portvlancost 4/29 cost 99 > set spantree portvlancost 4/30 cost 99 > set spantree portvlancost 4/31 cost 18 > set spantree portvlancost 4/32 cost 18 > @@ -1270,10 +1270,10 @@ > set trunk 5/47 auto negotiate 1-1005,1025-4094 > set trunk 5/48 auto negotiate 1-1005,1025-4094 > set spantree portfast 5/26 enable > set spantree portfast 5/1-25,5/27-48 disable > - set spantree portcost 5/4,5/6,5/9-12,5/14-15,5/19,5/22-24,5/28,5/33,5/35,5/38,5/41,5/44-45,5/48 19 > - set spantree portcost 5/1-3,5/5,5/7-8,5/13,5/16-18,5/20-21,5/25-27,5/29-32,5/34,5/36-37,5/39-40,5/42-43,5/46-47 100 > + set spantree portcost 5/4,5/6,5/9-12,5/14-15,5/19,5/22-24,5/28,5/33,5/35,5/38,5/44-45,5/48 19 > + set spantree portcost 5/1-3,5/5,5/7-8,5/13,5/16-18,5/20-21,5/25-27,5/29-32,5/34,5/36-37,5/39-43,5/46-47 100 > set spantree portpri 5/1-48 32 > set spantree portvlanpri 5/1 0 > set spantree portvlanpri 5/2 0 > set spantree portvlanpri 5/3 0 > @@ -1361,9 +1361,9 @@ > set spantree portvlancost 5/37 cost 99 > set spantree portvlancost 5/38 cost 18 > set spantree portvlancost 5/39 cost 99 > set spantree portvlancost 5/40 cost 99 > - set spantree portvlancost 5/41 cost 18 > + set spantree portvlancost 5/41 cost 99 > set spantree portvlancost 5/42 cost 99 > set spantree portvlancost 5/43 cost 99 > set spantree portvlancost 5/44 cost 18 > set spantree portvlancost 5/45 cost 18 > @@ -1466,10 +1466,10 @@ > set trunk 6/47 auto negotiate 1-1005,1025-4094 > set trunk 6/48 auto negotiate 1-1005,1025-4094 > set spantree portfast 6/2,6/37 enable > set spantree portfast 6/1,6/3-36,6/38-48 disable > - set spantree portcost 6/1,6/3-5,6/9,6/15-18,6/23,6/37-38,6/40-43,6/46,6/48 19 > - set spantree portcost 6/2,6/6-8,6/10-14,6/19-22,6/24-36,6/39,6/44-45,6/47 100 > + set spantree portcost 6/1,6/3-5,6/9,6/13,6/15-18,6/23,6/37-38,6/40-43,6/46,6/48 19 > + set spantree portcost 6/2,6/6-8,6/10-12,6/14,6/19-22,6/24-36,6/39,6/44-45,6/47 100 > set spantree portpri 6/1-48 32 > set spantree portvlanpri 6/1 0 > set spantree portvlanpri 6/2 0 > set spantree portvlanpri 6/3 0 > @@ -1529,9 +1529,9 @@ > set spantree portvlancost 6/9 cost 18 > set spantree portvlancost 6/10 cost 99 > set spantree portvlancost 6/11 cost 99 > set spantree portvlancost 6/12 cost 99 > - set spantree portvlancost 6/13 cost 99 > + set spantree portvlancost 6/13 cost 18 > set spantree portvlancost 6/14 cost 99 > set spantree portvlancost 6/15 cost 18 > set spantree portvlancost 6/16 cost 18 > set spantree portvlancost 6/17 cost 18 > Index: configs/192.168.20.219 > =================================================================== > retrieving revision 1.28 > diff -U4 -r1.28 192.168.20.219 > @@ -668,10 +668,10 @@ > set trunk 3/46 auto dot1q 1-1005 > set trunk 3/47 auto dot1q 1-1005 > set trunk 3/48 auto dot1q 1-1005 > set spantree portfast 3/1-48 disable > - set spantree portcost 3/1-2,3/11-12,3/19,3/25,3/27-29,3/35,3/37-39,3/41,3/43,3/46-48 19 > - set spantree portcost 3/3-10,3/13-18,3/20-24,3/26,3/30-34,3/36,3/40,3/42,3/44-45 100 > + set spantree portcost 3/1,3/11-12,3/19,3/25,3/27-29,3/35,3/37-38,3/41,3/43,3/46-48 19 > + set spantree portcost 3/2-10,3/13-18,3/20-24,3/26,3/30-34,3/36,3/39-40,3/42,3/44-45 100 > set spantree portpri 3/1-48 32 > set spantree portvlanpri 3/1 0 > set spantree portvlanpri 3/2 0 > set spantree portvlanpri 3/3 0 > @@ -720,9 +720,9 @@ > set spantree portvlanpri 3/46 0 > set spantree portvlanpri 3/47 0 > set spantree portvlanpri 3/48 0 > set spantree portvlancost 3/1 cost 18 > - set spantree portvlancost 3/2 cost 18 > + set spantree portvlancost 3/2 cost 99 > set spantree portvlancost 3/3 cost 99 > set spantree portvlancost 3/4 cost 99 > set spantree portvlancost 3/5 cost 99 > set spantree portvlancost 3/6 cost 99 > @@ -757,9 +757,9 @@ > set spantree portvlancost 3/35 cost 18 > set spantree portvlancost 3/36 cost 99 > set spantree portvlancost 3/37 cost 18 > set spantree portvlancost 3/38 cost 18 > - set spantree portvlancost 3/39 cost 18 > + set spantree portvlancost 3/39 cost 99 > set spantree portvlancost 3/40 cost 99 > set spantree portvlancost 3/41 cost 18 > set spantree portvlancost 3/42 cost 99 > set spantree portvlancost 3/43 cost 18 > Index: configs/192.168.20.223 > =================================================================== > retrieving revision 1.37 > diff -U4 -r1.37 192.168.20.223 > @@ -713,10 +713,10 @@ > set trunk 4/47 auto dot1q 1-1005 > set trunk 4/48 auto dot1q 1-1005 > set spantree portfast 4/14 enable > set spantree portfast 4/1-13,4/15-48 disable > - set spantree portcost 4/1,4/10-11,4/17-18,4/21,4/23,4/25,4/27,4/29,4/32,4/34,4/38-39,4/42,4/44-45 19 > - set spantree portcost 4/2-9,4/12-16,4/19-20,4/22,4/24,4/26,4/28,4/30-31,4/33,4/35-37,4/40-41,4/43,4/46-48 100 > + set spantree portcost 4/1,4/10,4/17-18,4/21,4/23,4/25,4/27,4/29,4/32,4/34,4/38-39,4/42,4/44-45 19 > + set spantree portcost 4/2-9,4/11-16,4/19-20,4/22,4/24,4/26,4/28,4/30-31,4/33,4/35-37,4/40-41,4/43,4/46-48 100 > set spantree portpri 4/1-48 32 > set spantree portvlanpri 4/1 0 > set spantree portvlanpri 4/2 0 > set spantree portvlanpri 4/3 0 > @@ -774,9 +774,9 @@ > set spantree portvlancost 4/7 cost 99 > set spantree portvlancost 4/8 cost 99 > set spantree portvlancost 4/9 cost 99 > set spantree portvlancost 4/10 cost 18 > - set spantree portvlancost 4/11 cost 18 > + set spantree portvlancost 4/11 cost 99 > set spantree portvlancost 4/12 cost 99 > set spantree portvlancost 4/13 cost 99 > set spantree portvlancost 4/14 cost 99 > set spantree portvlancost 4/15 cost 99 > @@ -889,10 +889,10 @@ > set trunk 5/47 auto dot1q 1-1005 > set trunk 5/48 auto dot1q 1-1005 > set spantree portfast 5/10 enable > set spantree portfast 5/1-9,5/11-48 disable > - set spantree portcost 5/4,5/7,5/11-12,5/15,5/18,5/20,5/26-27,5/33,5/35-36,5/43 19 > - set spantree portcost 5/1-3,5/5-6,5/8-10,5/13-14,5/16-17,5/19,5/21-25,5/28-32,5/34,5/37-42,5/44-48 100 > + set spantree portcost 5/7,5/11-12,5/15,5/18,5/20,5/26-27,5/33,5/35-36,5/43 19 > + set spantree portcost 5/1-6,5/8-10,5/13-14,5/16-17,5/19,5/21-25,5/28-32,5/34,5/37-42,5/44-48 100 > set spantree portpri 5/1-48 32 > set spantree portvlanpri 5/1 0 > set spantree portvlanpri 5/2 0 > set spantree portvlanpri 5/3 0 > @@ -943,9 +943,9 @@ > set spantree portvlanpri 5/48 0 > set spantree portvlancost 5/1 cost 99 > set spantree portvlancost 5/2 cost 99 > set spantree portvlancost 5/3 cost 99 > - set spantree portvlancost 5/4 cost 18 > + set spantree portvlancost 5/4 cost 99 > set spantree portvlancost 5/5 cost 99 > set spantree portvlancost 5/6 cost 99 > set spantree portvlancost 5/7 cost 18 > set spantree portvlancost 5/8 cost 99 > @@ -1063,10 +1063,10 @@ > set trunk 6/47 auto dot1q 1-1005 > set trunk 6/48 auto dot1q 1-1005 > set spantree portfast 6/29,6/32 enable > set spantree portfast 6/1-28,6/30-31,6/33-48 disable > - set spantree portcost 6/9,6/17,6/26-27,6/30,6/33,6/36 19 > - set spantree portcost 6/1-8,6/10-16,6/18-25,6/28-29,6/31-32,6/34-35,6/37-48 100 > + set spantree portcost 6/9,6/17,6/24,6/26-27,6/30,6/33,6/36 19 > + set spantree portcost 6/1-8,6/10-16,6/18-23,6/25,6/28-29,6/31-32,6/34-35,6/37-48 100 > set spantree portpri 6/1-48 32 > set spantree portvlanpri 6/1 0 > set spantree portvlanpri 6/2 0 > set spantree portvlanpri 6/3 0 > @@ -1137,9 +1137,9 @@ > set spantree portvlancost 6/20 cost 99 > set spantree portvlancost 6/21 cost 99 > set spantree portvlancost 6/22 cost 99 > set spantree portvlancost 6/23 cost 99 > - set spantree portvlancost 6/24 cost 99 > + set spantree portvlancost 6/24 cost 18 > set spantree portvlancost 6/25 cost 99 > set spantree portvlancost 6/26 cost 18 > set spantree portvlancost 6/27 cost 18 > set spantree portvlancost 6/28 cost 99 > > ----- Original Message ---- > From: Lance > To: Laker Netman > Cc: rancid-discuss at shrubbery.net > Sent: Wednesday, August 1, 2007 2:39:20 PM > Subject: RE: [rancid] spanning tree/portcost changes causing diffs > > Maybe I am a little crazy but I don't think it would be that hard to do. > Of course if depends where you want the changes to be ignored. If you > want them to be tracked in CVS but not in the emails then I think that > is easy to do, but I would like to see the emails reflect the CVS repo. > So saying that I would say you either keep them or get rid of them with > an option in rancid.conf. > > Opinions? > > -Lance > > > -------- Original Message -------- > > Subject: [rancid] spanning tree/portcost changes causing diffs > > From: Laker Netman > > Date: Wed, August 01, 2007 12:11 pm > > To: rancid-discuss at shrubbery.net > > > > I have read several threads on the subject of portcost changes creating bogus diffs, but I haven't found one that presents a solution. Is there one? > > > > I am running RANCID 2.3.2a6 > > > > > > Thanks, > > Laker > > > > > > > > > > ____________________________________________________________________________________ > > Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 > > > > _______________________________________________ > > Rancid-discuss mailing list > > Rancid-discuss at shrubbery.net > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > > > > > > ____________________________________________________________________________________ > Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool. > http://autos.yahoo.com/carfinder/ ____________________________________________________________________________________Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. http://tv.yahoo.com/ From rancid at gheek.net Fri Aug 3 16:15:53 2007 From: rancid at gheek.net (Lance) Date: Fri, 03 Aug 2007 09:15:53 -0700 Subject: [rancid] Re: spanning tree/portcost changes causing diffs Message-ID: <20070803091553.8e114e4890519e5179c192e02d6bca26.daefe3e427.wbe@email.secureserver.net> Laker, So in other words you don't want to see them even in the CVS repo correct? Filtering them out of the email is cake. 1 change to control_rancid and you are good to go. -Lance > -------- Original Message -------- > Subject: Re: [rancid] spanning tree/portcost changes causing diffs > From: Laker Netman > Date: Fri, August 03, 2007 6:51 am > To: Lance > Cc: rancid-discuss at shrubbery.net > > I understand that, but I'd prefer not to have them appear as configuration changes if possible, i.e., have the script ignore changes to those lines. It wouldn't affect restoring a config, because the switch would set the ports to their correct state anyway. > > Laker > > ----- Original Message ---- > From: Lance > To: Laker Netman > Cc: rancid-discuss at shrubbery.net > Sent: Thursday, August 2, 2007 7:12:29 PM > Subject: RE: [rancid] spanning tree/portcost changes causing diffs > > Laker, > > This is directly related to ports changing state (aka someone turning > on/off their pc). > > -Lance > > > > -------- Original Message -------- > > Subject: Re: [rancid] spanning tree/portcost changes causing diffs > > From: Laker Netman > > Date: Thu, August 02, 2007 1:13 pm > > To: Lance > > Cc: rancid-discuss at shrubbery.net > > > > Here's and example of what I get in email and CVS: > > > > Index: configs/192.168.20.206 > > =================================================================== > > retrieving revision 1.38 > > diff -U4 -r1.38 192.168.20.206 > > @@ -1072,10 +1072,10 @@ > > set trunk 4/46 auto negotiate 1-1005,1025-4094 > > set trunk 4/47 auto negotiate 1-1005,1025-4094 > > set trunk 4/48 auto negotiate 1-1005,1025-4094 > > set spantree portfast 4/1-48 disable > > - set spantree portcost 4/1,4/5-10,4/12-13,4/21-22,4/25-26,4/31-32,4/38,4/45,4/47 19 > > - set spantree portcost 4/2-4,4/11,4/14-20,4/23-24,4/27-30,4/33-37,4/39-44,4/46,4/48 100 > > + set spantree portcost 4/1,4/5-10,4/12-13,4/21-22,4/25-26,4/28,4/31-32,4/38,4/45,4/47 19 > > + set spantree portcost 4/2-4,4/11,4/14-20,4/23-24,4/27,4/29-30,4/33-37,4/39-44,4/46,4/48 100 > > set spantree portpri 4/1-48 32 > > set spantree portvlanpri 4/1 0 > > set spantree portvlanpri 4/2 0 > > set spantree portvlanpri 4/3 0 > > @@ -1150,9 +1150,9 @@ > > set spantree portvlancost 4/24 cost 99 > > set spantree portvlancost 4/25 cost 18 > > set spantree portvlancost 4/26 cost 18 > > set spantree portvlancost 4/27 cost 99 > > - set spantree portvlancost 4/28 cost 99 > > + set spantree portvlancost 4/28 cost 18 > > set spantree portvlancost 4/29 cost 99 > > set spantree portvlancost 4/30 cost 99 > > set spantree portvlancost 4/31 cost 18 > > set spantree portvlancost 4/32 cost 18 > > @@ -1270,10 +1270,10 @@ > > set trunk 5/47 auto negotiate 1-1005,1025-4094 > > set trunk 5/48 auto negotiate 1-1005,1025-4094 > > set spantree portfast 5/26 enable > > set spantree portfast 5/1-25,5/27-48 disable > > - set spantree portcost 5/4,5/6,5/9-12,5/14-15,5/19,5/22-24,5/28,5/33,5/35,5/38,5/41,5/44-45,5/48 19 > > - set spantree portcost 5/1-3,5/5,5/7-8,5/13,5/16-18,5/20-21,5/25-27,5/29-32,5/34,5/36-37,5/39-40,5/42-43,5/46-47 100 > > + set spantree portcost 5/4,5/6,5/9-12,5/14-15,5/19,5/22-24,5/28,5/33,5/35,5/38,5/44-45,5/48 19 > > + set spantree portcost 5/1-3,5/5,5/7-8,5/13,5/16-18,5/20-21,5/25-27,5/29-32,5/34,5/36-37,5/39-43,5/46-47 100 > > set spantree portpri 5/1-48 32 > > set spantree portvlanpri 5/1 0 > > set spantree portvlanpri 5/2 0 > > set spantree portvlanpri 5/3 0 > > @@ -1361,9 +1361,9 @@ > > set spantree portvlancost 5/37 cost 99 > > set spantree portvlancost 5/38 cost 18 > > set spantree portvlancost 5/39 cost 99 > > set spantree portvlancost 5/40 cost 99 > > - set spantree portvlancost 5/41 cost 18 > > + set spantree portvlancost 5/41 cost 99 > > set spantree portvlancost 5/42 cost 99 > > set spantree portvlancost 5/43 cost 99 > > set spantree portvlancost 5/44 cost 18 > > set spantree portvlancost 5/45 cost 18 > > @@ -1466,10 +1466,10 @@ > > set trunk 6/47 auto negotiate 1-1005,1025-4094 > > set trunk 6/48 auto negotiate 1-1005,1025-4094 > > set spantree portfast 6/2,6/37 enable > > set spantree portfast 6/1,6/3-36,6/38-48 disable > > - set spantree portcost 6/1,6/3-5,6/9,6/15-18,6/23,6/37-38,6/40-43,6/46,6/48 19 > > - set spantree portcost 6/2,6/6-8,6/10-14,6/19-22,6/24-36,6/39,6/44-45,6/47 100 > > + set spantree portcost 6/1,6/3-5,6/9,6/13,6/15-18,6/23,6/37-38,6/40-43,6/46,6/48 19 > > + set spantree portcost 6/2,6/6-8,6/10-12,6/14,6/19-22,6/24-36,6/39,6/44-45,6/47 100 > > set spantree portpri 6/1-48 32 > > set spantree portvlanpri 6/1 0 > > set spantree portvlanpri 6/2 0 > > set spantree portvlanpri 6/3 0 > > @@ -1529,9 +1529,9 @@ > > set spantree portvlancost 6/9 cost 18 > > set spantree portvlancost 6/10 cost 99 > > set spantree portvlancost 6/11 cost 99 > > set spantree portvlancost 6/12 cost 99 > > - set spantree portvlancost 6/13 cost 99 > > + set spantree portvlancost 6/13 cost 18 > > set spantree portvlancost 6/14 cost 99 > > set spantree portvlancost 6/15 cost 18 > > set spantree portvlancost 6/16 cost 18 > > set spantree portvlancost 6/17 cost 18 > > Index: configs/192.168.20.219 > > =================================================================== > > retrieving revision 1.28 > > diff -U4 -r1.28 192.168.20.219 > > @@ -668,10 +668,10 @@ > > set trunk 3/46 auto dot1q 1-1005 > > set trunk 3/47 auto dot1q 1-1005 > > set trunk 3/48 auto dot1q 1-1005 > > set spantree portfast 3/1-48 disable > > - set spantree portcost 3/1-2,3/11-12,3/19,3/25,3/27-29,3/35,3/37-39,3/41,3/43,3/46-48 19 > > - set spantree portcost 3/3-10,3/13-18,3/20-24,3/26,3/30-34,3/36,3/40,3/42,3/44-45 100 > > + set spantree portcost 3/1,3/11-12,3/19,3/25,3/27-29,3/35,3/37-38,3/41,3/43,3/46-48 19 > > + set spantree portcost 3/2-10,3/13-18,3/20-24,3/26,3/30-34,3/36,3/39-40,3/42,3/44-45 100 > > set spantree portpri 3/1-48 32 > > set spantree portvlanpri 3/1 0 > > set spantree portvlanpri 3/2 0 > > set spantree portvlanpri 3/3 0 > > @@ -720,9 +720,9 @@ > > set spantree portvlanpri 3/46 0 > > set spantree portvlanpri 3/47 0 > > set spantree portvlanpri 3/48 0 > > set spantree portvlancost 3/1 cost 18 > > - set spantree portvlancost 3/2 cost 18 > > + set spantree portvlancost 3/2 cost 99 > > set spantree portvlancost 3/3 cost 99 > > set spantree portvlancost 3/4 cost 99 > > set spantree portvlancost 3/5 cost 99 > > set spantree portvlancost 3/6 cost 99 > > @@ -757,9 +757,9 @@ > > set spantree portvlancost 3/35 cost 18 > > set spantree portvlancost 3/36 cost 99 > > set spantree portvlancost 3/37 cost 18 > > set spantree portvlancost 3/38 cost 18 > > - set spantree portvlancost 3/39 cost 18 > > + set spantree portvlancost 3/39 cost 99 > > set spantree portvlancost 3/40 cost 99 > > set spantree portvlancost 3/41 cost 18 > > set spantree portvlancost 3/42 cost 99 > > set spantree portvlancost 3/43 cost 18 > > Index: configs/192.168.20.223 > > =================================================================== > > retrieving revision 1.37 > > diff -U4 -r1.37 192.168.20.223 > > @@ -713,10 +713,10 @@ > > set trunk 4/47 auto dot1q 1-1005 > > set trunk 4/48 auto dot1q 1-1005 > > set spantree portfast 4/14 enable > > set spantree portfast 4/1-13,4/15-48 disable > > - set spantree portcost 4/1,4/10-11,4/17-18,4/21,4/23,4/25,4/27,4/29,4/32,4/34,4/38-39,4/42,4/44-45 19 > > - set spantree portcost 4/2-9,4/12-16,4/19-20,4/22,4/24,4/26,4/28,4/30-31,4/33,4/35-37,4/40-41,4/43,4/46-48 100 > > + set spantree portcost 4/1,4/10,4/17-18,4/21,4/23,4/25,4/27,4/29,4/32,4/34,4/38-39,4/42,4/44-45 19 > > + set spantree portcost 4/2-9,4/11-16,4/19-20,4/22,4/24,4/26,4/28,4/30-31,4/33,4/35-37,4/40-41,4/43,4/46-48 100 > > set spantree portpri 4/1-48 32 > > set spantree portvlanpri 4/1 0 > > set spantree portvlanpri 4/2 0 > > set spantree portvlanpri 4/3 0 > > @@ -774,9 +774,9 @@ > > set spantree portvlancost 4/7 cost 99 > > set spantree portvlancost 4/8 cost 99 > > set spantree portvlancost 4/9 cost 99 > > set spantree portvlancost 4/10 cost 18 > > - set spantree portvlancost 4/11 cost 18 > > + set spantree portvlancost 4/11 cost 99 > > set spantree portvlancost 4/12 cost 99 > > set spantree portvlancost 4/13 cost 99 > > set spantree portvlancost 4/14 cost 99 > > set spantree portvlancost 4/15 cost 99 > > @@ -889,10 +889,10 @@ > > set trunk 5/47 auto dot1q 1-1005 > > set trunk 5/48 auto dot1q 1-1005 > > set spantree portfast 5/10 enable > > set spantree portfast 5/1-9,5/11-48 disable > > - set spantree portcost 5/4,5/7,5/11-12,5/15,5/18,5/20,5/26-27,5/33,5/35-36,5/43 19 > > - set spantree portcost 5/1-3,5/5-6,5/8-10,5/13-14,5/16-17,5/19,5/21-25,5/28-32,5/34,5/37-42,5/44-48 100 > > + set spantree portcost 5/7,5/11-12,5/15,5/18,5/20,5/26-27,5/33,5/35-36,5/43 19 > > + set spantree portcost 5/1-6,5/8-10,5/13-14,5/16-17,5/19,5/21-25,5/28-32,5/34,5/37-42,5/44-48 100 > > set spantree portpri 5/1-48 32 > > set spantree portvlanpri 5/1 0 > > set spantree portvlanpri 5/2 0 > > set spantree portvlanpri 5/3 0 > > @@ -943,9 +943,9 @@ > > set spantree portvlanpri 5/48 0 > > set spantree portvlancost 5/1 cost 99 > > set spantree portvlancost 5/2 cost 99 > > set spantree portvlancost 5/3 cost 99 > > - set spantree portvlancost 5/4 cost 18 > > + set spantree portvlancost 5/4 cost 99 > > set spantree portvlancost 5/5 cost 99 > > set spantree portvlancost 5/6 cost 99 > > set spantree portvlancost 5/7 cost 18 > > set spantree portvlancost 5/8 cost 99 > > @@ -1063,10 +1063,10 @@ > > set trunk 6/47 auto dot1q 1-1005 > > set trunk 6/48 auto dot1q 1-1005 > > set spantree portfast 6/29,6/32 enable > > set spantree portfast 6/1-28,6/30-31,6/33-48 disable > > - set spantree portcost 6/9,6/17,6/26-27,6/30,6/33,6/36 19 > > - set spantree portcost 6/1-8,6/10-16,6/18-25,6/28-29,6/31-32,6/34-35,6/37-48 100 > > + set spantree portcost 6/9,6/17,6/24,6/26-27,6/30,6/33,6/36 19 > > + set spantree portcost 6/1-8,6/10-16,6/18-23,6/25,6/28-29,6/31-32,6/34-35,6/37-48 100 > > set spantree portpri 6/1-48 32 > > set spantree portvlanpri 6/1 0 > > set spantree portvlanpri 6/2 0 > > set spantree portvlanpri 6/3 0 > > @@ -1137,9 +1137,9 @@ > > set spantree portvlancost 6/20 cost 99 > > set spantree portvlancost 6/21 cost 99 > > set spantree portvlancost 6/22 cost 99 > > set spantree portvlancost 6/23 cost 99 > > - set spantree portvlancost 6/24 cost 99 > > + set spantree portvlancost 6/24 cost 18 > > set spantree portvlancost 6/25 cost 99 > > set spantree portvlancost 6/26 cost 18 > > set spantree portvlancost 6/27 cost 18 > > set spantree portvlancost 6/28 cost 99 > > > > ----- Original Message ---- > > From: Lance > > To: Laker Netman > > Cc: rancid-discuss at shrubbery.net > > Sent: Wednesday, August 1, 2007 2:39:20 PM > > Subject: RE: [rancid] spanning tree/portcost changes causing diffs > > > > Maybe I am a little crazy but I don't think it would be that hard to do. > > Of course if depends where you want the changes to be ignored. If you > > want them to be tracked in CVS but not in the emails then I think that > > is easy to do, but I would like to see the emails reflect the CVS repo. > > So saying that I would say you either keep them or get rid of them with > > an option in rancid.conf. > > > > Opinions? > > > > -Lance > > > > > -------- Original Message -------- > > > Subject: [rancid] spanning tree/portcost changes causing diffs > > > From: Laker Netman > > > Date: Wed, August 01, 2007 12:11 pm > > > To: rancid-discuss at shrubbery.net > > > > > > I have read several threads on the subject of portcost changes creating bogus diffs, but I haven't found one that presents a solution. Is there one? > > > > > > I am running RANCID 2.3.2a6 > > > > > > > > > Thanks, > > > Laker > > > > > > > > > > > > > > > ____________________________________________________________________________________ > > > Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 > > > > > > _______________________________________________ > > > Rancid-discuss mailing list > > > Rancid-discuss at shrubbery.net > > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > > > > > > > > > > > > > > ____________________________________________________________________________________ > > Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool. > > http://autos.yahoo.com/carfinder/ > > > > > > > > ____________________________________________________________________________________Ready for the edge of your seat? > Check out tonight's top picks on Yahoo! TV. > http://tv.yahoo.com/ From dbstewart at dswrite.com Sat Aug 4 12:26:40 2007 From: dbstewart at dswrite.com (David B. Stewart) Date: Sat, 4 Aug 2007 07:26:40 -0500 Subject: [rancid] Re: spanning tree/portcost changes causing diffs In-Reply-To: <20070803091553.8e114e4890519e5179c192e02d6bca26.daefe3e427.wbe@email.secureserver.net> Message-ID: <01f501c7d692$d2e068c0$4001a8c0@SUPERCECIL> What I don't understand is why anyone would want "normal" network activity 1) filling up CVS and 2) causing nuisance email notifications. Anyone know why the feature was added in the first place? Maybe it was intended as a poor-man's network monitoring tool, but it's a real pain on a larger enterprise. The sheer bulk of nuisance notifications by email has caused my organization to ignore rancid notifications altogether. -Dave -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Lance Sent: Friday, August 03, 2007 11:16 AM To: Laker Netman Cc: rancid-discuss at shrubbery.net Subject: [rancid] Re: spanning tree/portcost changes causing diffs Laker, So in other words you don't want to see them even in the CVS repo correct? Filtering them out of the email is cake. 1 change to control_rancid and you are good to go. -Lance > -------- Original Message -------- > Subject: Re: [rancid] spanning tree/portcost changes causing diffs > From: Laker Netman > Date: Fri, August 03, 2007 6:51 am > To: Lance > Cc: rancid-discuss at shrubbery.net > > I understand that, but I'd prefer not to have them appear as > configuration changes if possible, i.e., have the script ignore > changes to those lines. It wouldn't affect restoring a config, > because the switch would set the ports to their correct state anyway. > > Laker > > ----- Original Message ---- > From: Lance > To: Laker Netman > Cc: rancid-discuss at shrubbery.net > Sent: Thursday, August 2, 2007 7:12:29 PM > Subject: RE: [rancid] spanning tree/portcost changes causing diffs > > Laker, > > This is directly related to ports changing state (aka someone turning > on/off their pc). > > -Lance > > > > -------- Original Message -------- > > Subject: Re: [rancid] spanning tree/portcost changes causing diffs > > From: Laker Netman > > Date: Thu, August 02, 2007 1:13 pm > > To: Lance > > Cc: rancid-discuss at shrubbery.net > > > > Here's and example of what I get in email and CVS: > > > > Index: configs/192.168.20.206 > > =================================================================== > > retrieving revision 1.38 > > diff -U4 -r1.38 192.168.20.206 > > @@ -1072,10 +1072,10 @@ > > set trunk 4/46 auto negotiate 1-1005,1025-4094 > > set trunk 4/47 auto negotiate 1-1005,1025-4094 > > set trunk 4/48 auto negotiate 1-1005,1025-4094 > > set spantree portfast 4/1-48 disable > > - set spantree portcost 4/1,4/5-10,4/12-13,4/21-22,4/25-26,4/31-32,4/38,4/45,4/47 19 > > - set spantree portcost 4/2-4,4/11,4/14-20,4/23-24,4/27-30,4/33-37,4/39-44,4/46,4/48 100 > > + set spantree portcost 4/1,4/5-10,4/12-13,4/21-22,4/25-26,4/28,4/31-32,4/38,4/45,4/47 19 > > + set spantree portcost 4/2-4,4/11,4/14-20,4/23-24,4/27,4/29-30,4/33-37,4/39-44,4/46,4/48 100 > > set spantree portpri 4/1-48 32 > > set spantree portvlanpri 4/1 0 > > set spantree portvlanpri 4/2 0 > > set spantree portvlanpri 4/3 0 > > @@ -1150,9 +1150,9 @@ > > set spantree portvlancost 4/24 cost 99 > > set spantree portvlancost 4/25 cost 18 > > set spantree portvlancost 4/26 cost 18 > > set spantree portvlancost 4/27 cost 99 > > - set spantree portvlancost 4/28 cost 99 > > + set spantree portvlancost 4/28 cost 18 > > set spantree portvlancost 4/29 cost 99 > > set spantree portvlancost 4/30 cost 99 > > set spantree portvlancost 4/31 cost 18 > > set spantree portvlancost 4/32 cost 18 > > @@ -1270,10 +1270,10 @@ > > set trunk 5/47 auto negotiate 1-1005,1025-4094 > > set trunk 5/48 auto negotiate 1-1005,1025-4094 > > set spantree portfast 5/26 enable > > set spantree portfast 5/1-25,5/27-48 disable > > - set spantree portcost 5/4,5/6,5/9-12,5/14-15,5/19,5/22-24,5/28,5/33,5/35,5/38,5/41,5/44-45,5/48 19 > > - set spantree portcost 5/1-3,5/5,5/7-8,5/13,5/16-18,5/20-21,5/25-27,5/29-32,5/34,5/36-37,5/39-40,5/42-43,5/46-47 100 > > + set spantree portcost 5/4,5/6,5/9-12,5/14-15,5/19,5/22-24,5/28,5/33,5/35,5/38,5/44-45,5/48 19 > > + set spantree portcost 5/1-3,5/5,5/7-8,5/13,5/16-18,5/20-21,5/25-27,5/29-32,5/34,5/36-37,5/39-43,5/46-47 100 > > set spantree portpri 5/1-48 32 > > set spantree portvlanpri 5/1 0 > > set spantree portvlanpri 5/2 0 > > set spantree portvlanpri 5/3 0 > > @@ -1361,9 +1361,9 @@ > > set spantree portvlancost 5/37 cost 99 > > set spantree portvlancost 5/38 cost 18 > > set spantree portvlancost 5/39 cost 99 > > set spantree portvlancost 5/40 cost 99 > > - set spantree portvlancost 5/41 cost 18 > > + set spantree portvlancost 5/41 cost 99 > > set spantree portvlancost 5/42 cost 99 > > set spantree portvlancost 5/43 cost 99 > > set spantree portvlancost 5/44 cost 18 > > set spantree portvlancost 5/45 cost 18 > > @@ -1466,10 +1466,10 @@ > > set trunk 6/47 auto negotiate 1-1005,1025-4094 > > set trunk 6/48 auto negotiate 1-1005,1025-4094 > > set spantree portfast 6/2,6/37 enable > > set spantree portfast 6/1,6/3-36,6/38-48 disable > > - set spantree portcost 6/1,6/3-5,6/9,6/15-18,6/23,6/37-38,6/40-43,6/46,6/48 19 > > - set spantree portcost 6/2,6/6-8,6/10-14,6/19-22,6/24-36,6/39,6/44-45,6/47 100 > > + set spantree portcost 6/1,6/3-5,6/9,6/13,6/15-18,6/23,6/37-38,6/40-43,6/46,6/48 19 > > + set spantree portcost 6/2,6/6-8,6/10-12,6/14,6/19-22,6/24-36,6/39,6/44-45,6/47 100 > > set spantree portpri 6/1-48 32 > > set spantree portvlanpri 6/1 0 > > set spantree portvlanpri 6/2 0 > > set spantree portvlanpri 6/3 0 > > @@ -1529,9 +1529,9 @@ > > set spantree portvlancost 6/9 cost 18 > > set spantree portvlancost 6/10 cost 99 > > set spantree portvlancost 6/11 cost 99 > > set spantree portvlancost 6/12 cost 99 > > - set spantree portvlancost 6/13 cost 99 > > + set spantree portvlancost 6/13 cost 18 > > set spantree portvlancost 6/14 cost 99 > > set spantree portvlancost 6/15 cost 18 > > set spantree portvlancost 6/16 cost 18 > > set spantree portvlancost 6/17 cost 18 > > Index: configs/192.168.20.219 > > =================================================================== > > retrieving revision 1.28 > > diff -U4 -r1.28 192.168.20.219 > > @@ -668,10 +668,10 @@ > > set trunk 3/46 auto dot1q 1-1005 > > set trunk 3/47 auto dot1q 1-1005 > > set trunk 3/48 auto dot1q 1-1005 > > set spantree portfast 3/1-48 disable > > - set spantree portcost 3/1-2,3/11-12,3/19,3/25,3/27-29,3/35,3/37-39,3/41,3/43,3/46-48 19 > > - set spantree portcost 3/3-10,3/13-18,3/20-24,3/26,3/30-34,3/36,3/40,3/42,3/44-45 100 > > + set spantree portcost 3/1,3/11-12,3/19,3/25,3/27-29,3/35,3/37-38,3/41,3/43,3/46-48 19 > > + set spantree portcost 3/2-10,3/13-18,3/20-24,3/26,3/30-34,3/36,3/39-40,3/42,3/44-45 100 > > set spantree portpri 3/1-48 32 > > set spantree portvlanpri 3/1 0 > > set spantree portvlanpri 3/2 0 > > set spantree portvlanpri 3/3 0 > > @@ -720,9 +720,9 @@ > > set spantree portvlanpri 3/46 0 > > set spantree portvlanpri 3/47 0 > > set spantree portvlanpri 3/48 0 > > set spantree portvlancost 3/1 cost 18 > > - set spantree portvlancost 3/2 cost 18 > > + set spantree portvlancost 3/2 cost 99 > > set spantree portvlancost 3/3 cost 99 > > set spantree portvlancost 3/4 cost 99 > > set spantree portvlancost 3/5 cost 99 > > set spantree portvlancost 3/6 cost 99 > > @@ -757,9 +757,9 @@ > > set spantree portvlancost 3/35 cost 18 > > set spantree portvlancost 3/36 cost 99 > > set spantree portvlancost 3/37 cost 18 > > set spantree portvlancost 3/38 cost 18 > > - set spantree portvlancost 3/39 cost 18 > > + set spantree portvlancost 3/39 cost 99 > > set spantree portvlancost 3/40 cost 99 > > set spantree portvlancost 3/41 cost 18 > > set spantree portvlancost 3/42 cost 99 > > set spantree portvlancost 3/43 cost 18 > > Index: configs/192.168.20.223 > > =================================================================== > > retrieving revision 1.37 > > diff -U4 -r1.37 192.168.20.223 > > @@ -713,10 +713,10 @@ > > set trunk 4/47 auto dot1q 1-1005 > > set trunk 4/48 auto dot1q 1-1005 > > set spantree portfast 4/14 enable > > set spantree portfast 4/1-13,4/15-48 disable > > - set spantree portcost 4/1,4/10-11,4/17-18,4/21,4/23,4/25,4/27,4/29,4/32,4/34,4/38-39,4/42,4/44-45 19 > > - set spantree portcost 4/2-9,4/12-16,4/19-20,4/22,4/24,4/26,4/28,4/30-31,4/33,4/35-37,4/40-41,4/43,4/46-48 100 > > + set spantree portcost 4/1,4/10,4/17-18,4/21,4/23,4/25,4/27,4/29,4/32,4/34,4/38-39,4/42,4/44-45 19 > > + set spantree portcost 4/2-9,4/11-16,4/19-20,4/22,4/24,4/26,4/28,4/30-31,4/33,4/35-37,4/40-41,4/43,4/46-48 100 > > set spantree portpri 4/1-48 32 > > set spantree portvlanpri 4/1 0 > > set spantree portvlanpri 4/2 0 > > set spantree portvlanpri 4/3 0 > > @@ -774,9 +774,9 @@ > > set spantree portvlancost 4/7 cost 99 > > set spantree portvlancost 4/8 cost 99 > > set spantree portvlancost 4/9 cost 99 > > set spantree portvlancost 4/10 cost 18 > > - set spantree portvlancost 4/11 cost 18 > > + set spantree portvlancost 4/11 cost 99 > > set spantree portvlancost 4/12 cost 99 > > set spantree portvlancost 4/13 cost 99 > > set spantree portvlancost 4/14 cost 99 > > set spantree portvlancost 4/15 cost 99 > > @@ -889,10 +889,10 @@ > > set trunk 5/47 auto dot1q 1-1005 > > set trunk 5/48 auto dot1q 1-1005 > > set spantree portfast 5/10 enable > > set spantree portfast 5/1-9,5/11-48 disable > > - set spantree portcost 5/4,5/7,5/11-12,5/15,5/18,5/20,5/26-27,5/33,5/35-36,5/43 19 > > - set spantree portcost 5/1-3,5/5-6,5/8-10,5/13-14,5/16-17,5/19,5/21-25,5/28-32,5/34,5/37-42,5/44-48 100 > > + set spantree portcost 5/7,5/11-12,5/15,5/18,5/20,5/26-27,5/33,5/35-36,5/43 19 > > + set spantree portcost 5/1-6,5/8-10,5/13-14,5/16-17,5/19,5/21-25,5/28-32,5/34,5/37-42,5/44-48 100 > > set spantree portpri 5/1-48 32 > > set spantree portvlanpri 5/1 0 > > set spantree portvlanpri 5/2 0 > > set spantree portvlanpri 5/3 0 > > @@ -943,9 +943,9 @@ > > set spantree portvlanpri 5/48 0 > > set spantree portvlancost 5/1 cost 99 > > set spantree portvlancost 5/2 cost 99 > > set spantree portvlancost 5/3 cost 99 > > - set spantree portvlancost 5/4 cost 18 > > + set spantree portvlancost 5/4 cost 99 > > set spantree portvlancost 5/5 cost 99 > > set spantree portvlancost 5/6 cost 99 > > set spantree portvlancost 5/7 cost 18 > > set spantree portvlancost 5/8 cost 99 > > @@ -1063,10 +1063,10 @@ > > set trunk 6/47 auto dot1q 1-1005 > > set trunk 6/48 auto dot1q 1-1005 > > set spantree portfast 6/29,6/32 enable > > set spantree portfast 6/1-28,6/30-31,6/33-48 disable > > - set spantree portcost 6/9,6/17,6/26-27,6/30,6/33,6/36 19 > > - set spantree portcost 6/1-8,6/10-16,6/18-25,6/28-29,6/31-32,6/34-35,6/37-48 100 > > + set spantree portcost 6/9,6/17,6/24,6/26-27,6/30,6/33,6/36 19 > > + set spantree portcost 6/1-8,6/10-16,6/18-23,6/25,6/28-29,6/31-32,6/34-35,6/37-48 100 > > set spantree portpri 6/1-48 32 > > set spantree portvlanpri 6/1 0 > > set spantree portvlanpri 6/2 0 > > set spantree portvlanpri 6/3 0 > > @@ -1137,9 +1137,9 @@ > > set spantree portvlancost 6/20 cost 99 > > set spantree portvlancost 6/21 cost 99 > > set spantree portvlancost 6/22 cost 99 > > set spantree portvlancost 6/23 cost 99 > > - set spantree portvlancost 6/24 cost 99 > > + set spantree portvlancost 6/24 cost 18 > > set spantree portvlancost 6/25 cost 99 > > set spantree portvlancost 6/26 cost 18 > > set spantree portvlancost 6/27 cost 18 > > set spantree portvlancost 6/28 cost 99 > > > > ----- Original Message ---- > > From: Lance > > To: Laker Netman > > Cc: rancid-discuss at shrubbery.net > > Sent: Wednesday, August 1, 2007 2:39:20 PM > > Subject: RE: [rancid] spanning tree/portcost changes causing diffs > > > > Maybe I am a little crazy but I don't think it would be that hard to > > do. Of course if depends where you want the changes to be ignored. > > If you want them to be tracked in CVS but not in the emails then I > > think that is easy to do, but I would like to see the emails reflect > > the CVS repo. So saying that I would say you either keep them or get > > rid of them with an option in rancid.conf. > > > > Opinions? > > > > -Lance > > > > > -------- Original Message -------- > > > Subject: [rancid] spanning tree/portcost changes causing diffs > > > From: Laker Netman > > > Date: Wed, August 01, 2007 12:11 pm > > > To: rancid-discuss at shrubbery.net > > > > > > I have read several threads on the subject of portcost changes > > > creating bogus diffs, but I haven't found one that presents a > > > solution. Is there one? > > > > > > I am running RANCID 2.3.2a6 > > > > > > > > > Thanks, > > > Laker > > > > > > > > > > > > > > > > > > ____________________________________________________________________________________ > > > Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 > > > > > > _______________________________________________ > > > Rancid-discuss mailing list > > > Rancid-discuss at shrubbery.net > > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > > > > > > > > > > > > > > ____________________________________________________________________ > > ________________ > > Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool. > > http://autos.yahoo.com/carfinder/ > > > > > > > > ______________________________________________________________________ > ______________Ready for the edge of your seat? > Check out tonight's top picks on Yahoo! TV. > http://tv.yahoo.com/ _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From rancid at gheek.net Sat Aug 4 17:56:49 2007 From: rancid at gheek.net (Lance) Date: Sat, 04 Aug 2007 10:56:49 -0700 Subject: [rancid] Re: spanning tree/portcost changes causing diffs Message-ID: <20070804105649.8e114e4890519e5179c192e02d6bca26.3543b73b79.wbe@email.secureserver.net> All, To kill this one once and for all I will answer some questions. 1.) Yes CVS will fill up because the Catalyst OS based switches save changes like these in the configuration. You don't see this in the IOS versions because they don't save this i the configuration. 2.) I completely agree. Which is why I have written changes to cat5rancid so it will no longer see these changes. I will share these changes .... well the simple ugly fix for these. I can not say they will work on all OSes but I know for sure it runs just fine on Redhat 9 (yes old, but it was an old server I had) and Suse 9.3 (yes old once again, but it is my tools server. :( ). I will post this complete change on Monday/maybe this weekend if I get time as I need to still add the configuration option to turn it on/off. That is extremely simple but would like to test it first, before telling people to use it. Hopefully my simple but ugly fix will work you Dave an many more that tend to do just like most everyone ignore the changes due to the sheer number of "set spantree port" messages. Well at least to me these are the noisy ones. -lance > -------- Original Message -------- > Subject: [rancid] Re: spanning tree/portcost changes causing diffs > From: "David B. Stewart" > Date: Sat, August 04, 2007 5:26 am > To: > > What I don't understand is why anyone would want "normal" network activity 1) filling up CVS and 2) causing nuisance > email notifications. Anyone know why the feature was added in the first place? Maybe it was intended as a poor-man's > network monitoring tool, but it's a real pain on a larger enterprise. The sheer bulk of nuisance notifications by email > has caused my organization to ignore rancid notifications altogether. > -Dave > > -----Original Message----- > From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Lance > Sent: Friday, August 03, 2007 11:16 AM > To: Laker Netman > Cc: rancid-discuss at shrubbery.net > Subject: [rancid] Re: spanning tree/portcost changes causing diffs > > > Laker, > > So in other words you don't want to see them even in the CVS repo correct? Filtering them out of the email is cake. 1 > change to control_rancid and you are good to go. > > -Lance > > > -------- Original Message -------- > > Subject: Re: [rancid] spanning tree/portcost changes causing diffs > > From: Laker Netman > > Date: Fri, August 03, 2007 6:51 am > > To: Lance > > Cc: rancid-discuss at shrubbery.net > > > > I understand that, but I'd prefer not to have them appear as > > configuration changes if possible, i.e., have the script ignore > > changes to those lines. It wouldn't affect restoring a config, > > because the switch would set the ports to their correct state anyway. > > > > Laker > > > > ----- Original Message ---- > > From: Lance > > To: Laker Netman > > Cc: rancid-discuss at shrubbery.net > > Sent: Thursday, August 2, 2007 7:12:29 PM > > Subject: RE: [rancid] spanning tree/portcost changes causing diffs > > > > Laker, > > > > This is directly related to ports changing state (aka someone turning > > on/off their pc). > > > > -Lance > > > > > > > -------- Original Message -------- > > > Subject: Re: [rancid] spanning tree/portcost changes causing diffs > > > From: Laker Netman > > > Date: Thu, August 02, 2007 1:13 pm > > > To: Lance > > > Cc: rancid-discuss at shrubbery.net > > > > > > Here's and example of what I get in email and CVS: > > > > > > Index: configs/192.168.20.206 > > > =================================================================== > > > retrieving revision 1.38 > > > diff -U4 -r1.38 192.168.20.206 > > > @@ -1072,10 +1072,10 @@ > > > set trunk 4/46 auto negotiate 1-1005,1025-4094 > > > set trunk 4/47 auto negotiate 1-1005,1025-4094 > > > set trunk 4/48 auto negotiate 1-1005,1025-4094 > > > set spantree portfast 4/1-48 disable > > > - set spantree portcost 4/1,4/5-10,4/12-13,4/21-22,4/25-26,4/31-32,4/38,4/45,4/47 19 > > > - set spantree portcost 4/2-4,4/11,4/14-20,4/23-24,4/27-30,4/33-37,4/39-44,4/46,4/48 100 > > > + set spantree portcost 4/1,4/5-10,4/12-13,4/21-22,4/25-26,4/28,4/31-32,4/38,4/45,4/47 19 > > > + set spantree portcost 4/2-4,4/11,4/14-20,4/23-24,4/27,4/29-30,4/33-37,4/39-44,4/46,4/48 100 > > > set spantree portpri 4/1-48 32 > > > set spantree portvlanpri 4/1 0 > > > set spantree portvlanpri 4/2 0 > > > set spantree portvlanpri 4/3 0 > > > @@ -1150,9 +1150,9 @@ > > > set spantree portvlancost 4/24 cost 99 > > > set spantree portvlancost 4/25 cost 18 > > > set spantree portvlancost 4/26 cost 18 > > > set spantree portvlancost 4/27 cost 99 > > > - set spantree portvlancost 4/28 cost 99 > > > + set spantree portvlancost 4/28 cost 18 > > > set spantree portvlancost 4/29 cost 99 > > > set spantree portvlancost 4/30 cost 99 > > > set spantree portvlancost 4/31 cost 18 > > > set spantree portvlancost 4/32 cost 18 > > > @@ -1270,10 +1270,10 @@ > > > set trunk 5/47 auto negotiate 1-1005,1025-4094 > > > set trunk 5/48 auto negotiate 1-1005,1025-4094 > > > set spantree portfast 5/26 enable > > > set spantree portfast 5/1-25,5/27-48 disable > > > - set spantree portcost 5/4,5/6,5/9-12,5/14-15,5/19,5/22-24,5/28,5/33,5/35,5/38,5/41,5/44-45,5/48 19 > > > - set spantree portcost 5/1-3,5/5,5/7-8,5/13,5/16-18,5/20-21,5/25-27,5/29-32,5/34,5/36-37,5/39-40,5/42-43,5/46-47 > 100 > > > + set spantree portcost 5/4,5/6,5/9-12,5/14-15,5/19,5/22-24,5/28,5/33,5/35,5/38,5/44-45,5/48 19 > > > + set spantree portcost 5/1-3,5/5,5/7-8,5/13,5/16-18,5/20-21,5/25-27,5/29-32,5/34,5/36-37,5/39-43,5/46-47 100 > > > set spantree portpri 5/1-48 32 > > > set spantree portvlanpri 5/1 0 > > > set spantree portvlanpri 5/2 0 > > > set spantree portvlanpri 5/3 0 > > > @@ -1361,9 +1361,9 @@ > > > set spantree portvlancost 5/37 cost 99 > > > set spantree portvlancost 5/38 cost 18 > > > set spantree portvlancost 5/39 cost 99 > > > set spantree portvlancost 5/40 cost 99 > > > - set spantree portvlancost 5/41 cost 18 > > > + set spantree portvlancost 5/41 cost 99 > > > set spantree portvlancost 5/42 cost 99 > > > set spantree portvlancost 5/43 cost 99 > > > set spantree portvlancost 5/44 cost 18 > > > set spantree portvlancost 5/45 cost 18 > > > @@ -1466,10 +1466,10 @@ > > > set trunk 6/47 auto negotiate 1-1005,1025-4094 > > > set trunk 6/48 auto negotiate 1-1005,1025-4094 > > > set spantree portfast 6/2,6/37 enable > > > set spantree portfast 6/1,6/3-36,6/38-48 disable > > > - set spantree portcost 6/1,6/3-5,6/9,6/15-18,6/23,6/37-38,6/40-43,6/46,6/48 19 > > > - set spantree portcost 6/2,6/6-8,6/10-14,6/19-22,6/24-36,6/39,6/44-45,6/47 100 > > > + set spantree portcost 6/1,6/3-5,6/9,6/13,6/15-18,6/23,6/37-38,6/40-43,6/46,6/48 19 > > > + set spantree portcost 6/2,6/6-8,6/10-12,6/14,6/19-22,6/24-36,6/39,6/44-45,6/47 100 > > > set spantree portpri 6/1-48 32 > > > set spantree portvlanpri 6/1 0 > > > set spantree portvlanpri 6/2 0 > > > set spantree portvlanpri 6/3 0 > > > @@ -1529,9 +1529,9 @@ > > > set spantree portvlancost 6/9 cost 18 > > > set spantree portvlancost 6/10 cost 99 > > > set spantree portvlancost 6/11 cost 99 > > > set spantree portvlancost 6/12 cost 99 > > > - set spantree portvlancost 6/13 cost 99 > > > + set spantree portvlancost 6/13 cost 18 > > > set spantree portvlancost 6/14 cost 99 > > > set spantree portvlancost 6/15 cost 18 > > > set spantree portvlancost 6/16 cost 18 > > > set spantree portvlancost 6/17 cost 18 > > > Index: configs/192.168.20.219 > > > =================================================================== > > > retrieving revision 1.28 > > > diff -U4 -r1.28 192.168.20.219 > > > @@ -668,10 +668,10 @@ > > > set trunk 3/46 auto dot1q 1-1005 > > > set trunk 3/47 auto dot1q 1-1005 > > > set trunk 3/48 auto dot1q 1-1005 > > > set spantree portfast 3/1-48 disable > > > - set spantree portcost 3/1-2,3/11-12,3/19,3/25,3/27-29,3/35,3/37-39,3/41,3/43,3/46-48 19 > > > - set spantree portcost 3/3-10,3/13-18,3/20-24,3/26,3/30-34,3/36,3/40,3/42,3/44-45 100 > > > + set spantree portcost 3/1,3/11-12,3/19,3/25,3/27-29,3/35,3/37-38,3/41,3/43,3/46-48 19 > > > + set spantree portcost 3/2-10,3/13-18,3/20-24,3/26,3/30-34,3/36,3/39-40,3/42,3/44-45 100 > > > set spantree portpri 3/1-48 32 > > > set spantree portvlanpri 3/1 0 > > > set spantree portvlanpri 3/2 0 > > > set spantree portvlanpri 3/3 0 > > > @@ -720,9 +720,9 @@ > > > set spantree portvlanpri 3/46 0 > > > set spantree portvlanpri 3/47 0 > > > set spantree portvlanpri 3/48 0 > > > set spantree portvlancost 3/1 cost 18 > > > - set spantree portvlancost 3/2 cost 18 > > > + set spantree portvlancost 3/2 cost 99 > > > set spantree portvlancost 3/3 cost 99 > > > set spantree portvlancost 3/4 cost 99 > > > set spantree portvlancost 3/5 cost 99 > > > set spantree portvlancost 3/6 cost 99 > > > @@ -757,9 +757,9 @@ > > > set spantree portvlancost 3/35 cost 18 > > > set spantree portvlancost 3/36 cost 99 > > > set spantree portvlancost 3/37 cost 18 > > > set spantree portvlancost 3/38 cost 18 > > > - set spantree portvlancost 3/39 cost 18 > > > + set spantree portvlancost 3/39 cost 99 > > > set spantree portvlancost 3/40 cost 99 > > > set spantree portvlancost 3/41 cost 18 > > > set spantree portvlancost 3/42 cost 99 > > > set spantree portvlancost 3/43 cost 18 > > > Index: configs/192.168.20.223 > > > =================================================================== > > > retrieving revision 1.37 > > > diff -U4 -r1.37 192.168.20.223 > > > @@ -713,10 +713,10 @@ > > > set trunk 4/47 auto dot1q 1-1005 > > > set trunk 4/48 auto dot1q 1-1005 > > > set spantree portfast 4/14 enable > > > set spantree portfast 4/1-13,4/15-48 disable > > > - set spantree portcost 4/1,4/10-11,4/17-18,4/21,4/23,4/25,4/27,4/29,4/32,4/34,4/38-39,4/42,4/44-45 19 > > > - set spantree portcost 4/2-9,4/12-16,4/19-20,4/22,4/24,4/26,4/28,4/30-31,4/33,4/35-37,4/40-41,4/43,4/46-48 100 > > > + set spantree portcost 4/1,4/10,4/17-18,4/21,4/23,4/25,4/27,4/29,4/32,4/34,4/38-39,4/42,4/44-45 19 > > > + set spantree portcost 4/2-9,4/11-16,4/19-20,4/22,4/24,4/26,4/28,4/30-31,4/33,4/35-37,4/40-41,4/43,4/46-48 100 > > > set spantree portpri 4/1-48 32 > > > set spantree portvlanpri 4/1 0 > > > set spantree portvlanpri 4/2 0 > > > set spantree portvlanpri 4/3 0 > > > @@ -774,9 +774,9 @@ > > > set spantree portvlancost 4/7 cost 99 > > > set spantree portvlancost 4/8 cost 99 > > > set spantree portvlancost 4/9 cost 99 > > > set spantree portvlancost 4/10 cost 18 > > > - set spantree portvlancost 4/11 cost 18 > > > + set spantree portvlancost 4/11 cost 99 > > > set spantree portvlancost 4/12 cost 99 > > > set spantree portvlancost 4/13 cost 99 > > > set spantree portvlancost 4/14 cost 99 > > > set spantree portvlancost 4/15 cost 99 > > > @@ -889,10 +889,10 @@ > > > set trunk 5/47 auto dot1q 1-1005 > > > set trunk 5/48 auto dot1q 1-1005 > > > set spantree portfast 5/10 enable > > > set spantree portfast 5/1-9,5/11-48 disable > > > - set spantree portcost 5/4,5/7,5/11-12,5/15,5/18,5/20,5/26-27,5/33,5/35-36,5/43 19 > > > - set spantree portcost 5/1-3,5/5-6,5/8-10,5/13-14,5/16-17,5/19,5/21-25,5/28-32,5/34,5/37-42,5/44-48 100 > > > + set spantree portcost 5/7,5/11-12,5/15,5/18,5/20,5/26-27,5/33,5/35-36,5/43 19 > > > + set spantree portcost 5/1-6,5/8-10,5/13-14,5/16-17,5/19,5/21-25,5/28-32,5/34,5/37-42,5/44-48 100 > > > set spantree portpri 5/1-48 32 > > > set spantree portvlanpri 5/1 0 > > > set spantree portvlanpri 5/2 0 > > > set spantree portvlanpri 5/3 0 > > > @@ -943,9 +943,9 @@ > > > set spantree portvlanpri 5/48 0 > > > set spantree portvlancost 5/1 cost 99 > > > set spantree portvlancost 5/2 cost 99 > > > set spantree portvlancost 5/3 cost 99 > > > - set spantree portvlancost 5/4 cost 18 > > > + set spantree portvlancost 5/4 cost 99 > > > set spantree portvlancost 5/5 cost 99 > > > set spantree portvlancost 5/6 cost 99 > > > set spantree portvlancost 5/7 cost 18 > > > set spantree portvlancost 5/8 cost 99 > > > @@ -1063,10 +1063,10 @@ > > > set trunk 6/47 auto dot1q 1-1005 > > > set trunk 6/48 auto dot1q 1-1005 > > > set spantree portfast 6/29,6/32 enable > > > set spantree portfast 6/1-28,6/30-31,6/33-48 disable > > > - set spantree portcost 6/9,6/17,6/26-27,6/30,6/33,6/36 19 > > > - set spantree portcost 6/1-8,6/10-16,6/18-25,6/28-29,6/31-32,6/34-35,6/37-48 100 > > > + set spantree portcost 6/9,6/17,6/24,6/26-27,6/30,6/33,6/36 19 > > > + set spantree portcost 6/1-8,6/10-16,6/18-23,6/25,6/28-29,6/31-32,6/34-35,6/37-48 100 > > > set spantree portpri 6/1-48 32 > > > set spantree portvlanpri 6/1 0 > > > set spantree portvlanpri 6/2 0 > > > set spantree portvlanpri 6/3 0 > > > @@ -1137,9 +1137,9 @@ > > > set spantree portvlancost 6/20 cost 99 > > > set spantree portvlancost 6/21 cost 99 > > > set spantree portvlancost 6/22 cost 99 > > > set spantree portvlancost 6/23 cost 99 > > > - set spantree portvlancost 6/24 cost 99 > > > + set spantree portvlancost 6/24 cost 18 > > > set spantree portvlancost 6/25 cost 99 > > > set spantree portvlancost 6/26 cost 18 > > > set spantree portvlancost 6/27 cost 18 > > > set spantree portvlancost 6/28 cost 99 > > > > > > ----- Original Message ---- > > > From: Lance > > > To: Laker Netman > > > Cc: rancid-discuss at shrubbery.net > > > Sent: Wednesday, August 1, 2007 2:39:20 PM > > > Subject: RE: [rancid] spanning tree/portcost changes causing diffs > > > > > > Maybe I am a little crazy but I don't think it would be that hard to > > > do. Of course if depends where you want the changes to be ignored. > > > If you want them to be tracked in CVS but not in the emails then I > > > think that is easy to do, but I would like to see the emails reflect > > > the CVS repo. So saying that I would say you either keep them or get > > > rid of them with an option in rancid.conf. > > > > > > Opinions? > > > > > > -Lance > > > > > > > -------- Original Message -------- > > > > Subject: [rancid] spanning tree/portcost changes causing diffs > > > > From: Laker Netman > > > > Date: Wed, August 01, 2007 12:11 pm > > > > To: rancid-discuss at shrubbery.net > > > > > > > > I have read several threads on the subject of portcost changes > > > > creating bogus diffs, but I haven't found one that presents a > > > > solution. Is there one? > > > > > > > > I am running RANCID 2.3.2a6 > > > > > > > > > > > > Thanks, > > > > Laker > > > > > > > > > > > > > > > > > > > > > > > > ____________________________________________________________________________________ > > > > Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. > http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 > > > > > > > > _______________________________________________ > > > > Rancid-discuss mailing list > > > > Rancid-discuss at shrubbery.net > > > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > > > > > > > > > > > > > > > > > > > > > > ____________________________________________________________________ > > > ________________ > > > Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool. > > > http://autos.yahoo.com/carfinder/ > > > > > > > > > > > > > > > > ______________________________________________________________________ > > ______________Ready for the edge of your seat? > > Check out tonight's top picks on Yahoo! TV. > > http://tv.yahoo.com/ > > _______________________________________________ > 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 dbstewart at dswrite.com Sat Aug 4 18:22:22 2007 From: dbstewart at dswrite.com (David B. Stewart) Date: Sat, 4 Aug 2007 13:22:22 -0500 Subject: [rancid] Re: spanning tree/portcost changes causing diffs In-Reply-To: <20070804105649.8e114e4890519e5179c192e02d6bca26.3543b73b79.wbe@email.secureserver.net> Message-ID: <002a01c7d6c4$69211ba0$4001a8c0@SUPERCECIL> Ah, but the problem isn't limited to CatOS. Though the format and content is different, I see regular VLAN port state changes acknowledged by all switches - IOS and CatOS. CVS may not be affected for IOS, but the diff is run and reported regardless. Similar nag reports are noted for Flash changes. They are usually 1 to 3 byte changes in the amount of memory reported by IOS. No significance found (and no understanding of why the sizes would fluctuate), but it is a diff and gets reported nonetheless. Looking forward to the changes. Dave -----Original Message----- From: Lance [mailto:rancid at gheek.net] Sent: Saturday, August 04, 2007 12:57 PM To: dbstewart at dswrite.com Cc: rancid-discuss at shrubbery.net Subject: RE: [rancid] Re: spanning tree/portcost changes causing diffs All, To kill this one once and for all I will answer some questions. 1.) Yes CVS will fill up because the Catalyst OS based switches save changes like these in the configuration. You don't see this in the IOS versions because they don't save this i the configuration. 2.) I completely agree. Which is why I have written changes to cat5rancid so it will no longer see these changes. I will share these changes .... well the simple ugly fix for these. I can not say they will work on all OSes but I know for sure it runs just fine on Redhat 9 (yes old, but it was an old server I had) and Suse 9.3 (yes old once again, but it is my tools server. :( ). I will post this complete change on Monday/maybe this weekend if I get time as I need to still add the configuration option to turn it on/off. That is extremely simple but would like to test it first, before telling people to use it. Hopefully my simple but ugly fix will work you Dave an many more that tend to do just like most everyone ignore the changes due to the sheer number of "set spantree port" messages. Well at least to me these are the noisy ones. -lance > -------- Original Message -------- > Subject: [rancid] Re: spanning tree/portcost changes causing diffs > From: "David B. Stewart" > Date: Sat, August 04, 2007 5:26 am > To: > > What I don't understand is why anyone would want "normal" network > activity 1) filling up CVS and 2) causing nuisance email > notifications. Anyone know why the feature was added in the first > place? Maybe it was intended as a poor-man's network monitoring tool, > but it's a real pain on a larger enterprise. The sheer bulk of > nuisance notifications by email has caused my organization to ignore > rancid notifications altogether. -Dave > > -----Original Message----- > From: rancid-discuss-bounces at shrubbery.net > [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Lance > Sent: Friday, August 03, 2007 11:16 AM > To: Laker Netman > Cc: rancid-discuss at shrubbery.net > Subject: [rancid] Re: spanning tree/portcost changes causing diffs > > > Laker, > > So in other words you don't want to see them even in the CVS repo > correct? Filtering them out of the email is cake. 1 change to > control_rancid and you are good to go. > > -Lance > > > -------- Original Message -------- > > Subject: Re: [rancid] spanning tree/portcost changes causing diffs > > From: Laker Netman > > Date: Fri, August 03, 2007 6:51 am > > To: Lance > > Cc: rancid-discuss at shrubbery.net > > > > I understand that, but I'd prefer not to have them appear as > > configuration changes if possible, i.e., have the script ignore > > changes to those lines. It wouldn't affect restoring a config, > > because the switch would set the ports to their correct state > > anyway. > > > > Laker > > > > ----- Original Message ---- > > From: Lance > > To: Laker Netman > > Cc: rancid-discuss at shrubbery.net > > Sent: Thursday, August 2, 2007 7:12:29 PM > > Subject: RE: [rancid] spanning tree/portcost changes causing diffs > > > > Laker, > > > > This is directly related to ports changing state (aka someone > > turning on/off their pc). > > > > -Lance > > > > > > > -------- Original Message -------- > > > Subject: Re: [rancid] spanning tree/portcost changes causing > > > diffs > > > From: Laker Netman > > > Date: Thu, August 02, 2007 1:13 pm > > > To: Lance > > > Cc: rancid-discuss at shrubbery.net > > > > > > Here's and example of what I get in email and CVS: > > > > > > Index: configs/192.168.20.206 > > > ================================================================== > > > = > > > retrieving revision 1.38 > > > diff -U4 -r1.38 192.168.20.206 > > > @@ -1072,10 +1072,10 @@ > > > set trunk 4/46 auto negotiate 1-1005,1025-4094 > > > set trunk 4/47 auto negotiate 1-1005,1025-4094 > > > set trunk 4/48 auto negotiate 1-1005,1025-4094 > > > set spantree portfast 4/1-48 disable > > > - set spantree portcost 4/1,4/5-10,4/12-13,4/21-22,4/25-26,4/31-32,4/38,4/45,4/47 19 > > > - set spantree portcost 4/2-4,4/11,4/14-20,4/23-24,4/27-30,4/33-37,4/39-44,4/46,4/48 100 > > > + set spantree portcost 4/1,4/5-10,4/12-13,4/21-22,4/25-26,4/28,4/31-32,4/38,4/45,4/47 19 > > > + set spantree portcost 4/2-4,4/11,4/14-20,4/23-24,4/27,4/29-30,4/33-37,4/39-44,4/46,4/48 100 > > > set spantree portpri 4/1-48 32 > > > set spantree portvlanpri 4/1 0 > > > set spantree portvlanpri 4/2 0 > > > set spantree portvlanpri 4/3 0 > > > @@ -1150,9 +1150,9 @@ > > > set spantree portvlancost 4/24 cost 99 > > > set spantree portvlancost 4/25 cost 18 > > > set spantree portvlancost 4/26 cost 18 > > > set spantree portvlancost 4/27 cost 99 > > > - set spantree portvlancost 4/28 cost 99 > > > + set spantree portvlancost 4/28 cost 18 > > > set spantree portvlancost 4/29 cost 99 > > > set spantree portvlancost 4/30 cost 99 > > > set spantree portvlancost 4/31 cost 18 > > > set spantree portvlancost 4/32 cost 18 > > > @@ -1270,10 +1270,10 @@ > > > set trunk 5/47 auto negotiate 1-1005,1025-4094 > > > set trunk 5/48 auto negotiate 1-1005,1025-4094 > > > set spantree portfast 5/26 enable > > > set spantree portfast 5/1-25,5/27-48 disable > > > - set spantree portcost 5/4,5/6,5/9-12,5/14-15,5/19,5/22-24,5/28,5/33,5/35,5/38,5/41,5/44-45,5/48 19 > > > - set spantree portcost 5/1-3,5/5,5/7-8,5/13,5/16-18,5/20-21,5/25-27,5/29-32,5/34,5/36-37,5/39-40,5/42-43,5/46-47 > 100 > > > + set spantree portcost 5/4,5/6,5/9-12,5/14-15,5/19,5/22-24,5/28,5/33,5/35,5/38,5/44-45,5/48 19 > > > + set spantree portcost 5/1-3,5/5,5/7-8,5/13,5/16-18,5/20-21,5/25-27,5/29-32,5/34,5/36-37,5/39-43,5/46-47 100 > > > set spantree portpri 5/1-48 32 > > > set spantree portvlanpri 5/1 0 > > > set spantree portvlanpri 5/2 0 > > > set spantree portvlanpri 5/3 0 > > > @@ -1361,9 +1361,9 @@ > > > set spantree portvlancost 5/37 cost 99 > > > set spantree portvlancost 5/38 cost 18 > > > set spantree portvlancost 5/39 cost 99 > > > set spantree portvlancost 5/40 cost 99 > > > - set spantree portvlancost 5/41 cost 18 > > > + set spantree portvlancost 5/41 cost 99 > > > set spantree portvlancost 5/42 cost 99 > > > set spantree portvlancost 5/43 cost 99 > > > set spantree portvlancost 5/44 cost 18 > > > set spantree portvlancost 5/45 cost 18 > > > @@ -1466,10 +1466,10 @@ > > > set trunk 6/47 auto negotiate 1-1005,1025-4094 > > > set trunk 6/48 auto negotiate 1-1005,1025-4094 > > > set spantree portfast 6/2,6/37 enable > > > set spantree portfast 6/1,6/3-36,6/38-48 disable > > > - set spantree portcost 6/1,6/3-5,6/9,6/15-18,6/23,6/37-38,6/40-43,6/46,6/48 19 > > > - set spantree portcost 6/2,6/6-8,6/10-14,6/19-22,6/24-36,6/39,6/44-45,6/47 100 > > > + set spantree portcost 6/1,6/3-5,6/9,6/13,6/15-18,6/23,6/37-38,6/40-43,6/46,6/48 19 > > > + set spantree portcost 6/2,6/6-8,6/10-12,6/14,6/19-22,6/24-36,6/39,6/44-45,6/47 100 > > > set spantree portpri 6/1-48 32 > > > set spantree portvlanpri 6/1 0 > > > set spantree portvlanpri 6/2 0 > > > set spantree portvlanpri 6/3 0 > > > @@ -1529,9 +1529,9 @@ > > > set spantree portvlancost 6/9 cost 18 > > > set spantree portvlancost 6/10 cost 99 > > > set spantree portvlancost 6/11 cost 99 > > > set spantree portvlancost 6/12 cost 99 > > > - set spantree portvlancost 6/13 cost 99 > > > + set spantree portvlancost 6/13 cost 18 > > > set spantree portvlancost 6/14 cost 99 > > > set spantree portvlancost 6/15 cost 18 > > > set spantree portvlancost 6/16 cost 18 > > > set spantree portvlancost 6/17 cost 18 > > > Index: configs/192.168.20.219 > > > ================================================================== > > > = > > > retrieving revision 1.28 > > > diff -U4 -r1.28 192.168.20.219 > > > @@ -668,10 +668,10 @@ > > > set trunk 3/46 auto dot1q 1-1005 > > > set trunk 3/47 auto dot1q 1-1005 > > > set trunk 3/48 auto dot1q 1-1005 > > > set spantree portfast 3/1-48 disable > > > - set spantree portcost 3/1-2,3/11-12,3/19,3/25,3/27-29,3/35,3/37-39,3/41,3/43,3/46-48 19 > > > - set spantree portcost 3/3-10,3/13-18,3/20-24,3/26,3/30-34,3/36,3/40,3/42,3/44-45 100 > > > + set spantree portcost 3/1,3/11-12,3/19,3/25,3/27-29,3/35,3/37-38,3/41,3/43,3/46-48 19 > > > + set spantree portcost 3/2-10,3/13-18,3/20-24,3/26,3/30-34,3/36,3/39-40,3/42,3/44-45 100 > > > set spantree portpri 3/1-48 32 > > > set spantree portvlanpri 3/1 0 > > > set spantree portvlanpri 3/2 0 > > > set spantree portvlanpri 3/3 0 > > > @@ -720,9 +720,9 @@ > > > set spantree portvlanpri 3/46 0 > > > set spantree portvlanpri 3/47 0 > > > set spantree portvlanpri 3/48 0 > > > set spantree portvlancost 3/1 cost 18 > > > - set spantree portvlancost 3/2 cost 18 > > > + set spantree portvlancost 3/2 cost 99 > > > set spantree portvlancost 3/3 cost 99 > > > set spantree portvlancost 3/4 cost 99 > > > set spantree portvlancost 3/5 cost 99 > > > set spantree portvlancost 3/6 cost 99 > > > @@ -757,9 +757,9 @@ > > > set spantree portvlancost 3/35 cost 18 > > > set spantree portvlancost 3/36 cost 99 > > > set spantree portvlancost 3/37 cost 18 > > > set spantree portvlancost 3/38 cost 18 > > > - set spantree portvlancost 3/39 cost 18 > > > + set spantree portvlancost 3/39 cost 99 > > > set spantree portvlancost 3/40 cost 99 > > > set spantree portvlancost 3/41 cost 18 > > > set spantree portvlancost 3/42 cost 99 > > > set spantree portvlancost 3/43 cost 18 > > > Index: configs/192.168.20.223 > > > ================================================================== > > > = > > > retrieving revision 1.37 > > > diff -U4 -r1.37 192.168.20.223 > > > @@ -713,10 +713,10 @@ > > > set trunk 4/47 auto dot1q 1-1005 > > > set trunk 4/48 auto dot1q 1-1005 > > > set spantree portfast 4/14 enable > > > set spantree portfast 4/1-13,4/15-48 disable > > > - set spantree portcost 4/1,4/10-11,4/17-18,4/21,4/23,4/25,4/27,4/29,4/32,4/34,4/38-39,4/42,4/44-45 19 > > > - set spantree portcost 4/2-9,4/12-16,4/19-20,4/22,4/24,4/26,4/28,4/30-31,4/33,4/35-37,4/40-41,4/43,4/46-48 100 > > > + set spantree portcost 4/1,4/10,4/17-18,4/21,4/23,4/25,4/27,4/29,4/32,4/34,4/38-39,4/42,4/44-45 19 > > > + set spantree portcost 4/2-9,4/11-16,4/19-20,4/22,4/24,4/26,4/28,4/30-31,4/33,4/35-37,4/40-41,4/43,4/46-48 100 > > > set spantree portpri 4/1-48 32 > > > set spantree portvlanpri 4/1 0 > > > set spantree portvlanpri 4/2 0 > > > set spantree portvlanpri 4/3 0 > > > @@ -774,9 +774,9 @@ > > > set spantree portvlancost 4/7 cost 99 > > > set spantree portvlancost 4/8 cost 99 > > > set spantree portvlancost 4/9 cost 99 > > > set spantree portvlancost 4/10 cost 18 > > > - set spantree portvlancost 4/11 cost 18 > > > + set spantree portvlancost 4/11 cost 99 > > > set spantree portvlancost 4/12 cost 99 > > > set spantree portvlancost 4/13 cost 99 > > > set spantree portvlancost 4/14 cost 99 > > > set spantree portvlancost 4/15 cost 99 > > > @@ -889,10 +889,10 @@ > > > set trunk 5/47 auto dot1q 1-1005 > > > set trunk 5/48 auto dot1q 1-1005 > > > set spantree portfast 5/10 enable > > > set spantree portfast 5/1-9,5/11-48 disable > > > - set spantree portcost 5/4,5/7,5/11-12,5/15,5/18,5/20,5/26-27,5/33,5/35-36,5/43 19 > > > - set spantree portcost 5/1-3,5/5-6,5/8-10,5/13-14,5/16-17,5/19,5/21-25,5/28-32,5/34,5/37-42,5/44-48 100 > > > + set spantree portcost 5/7,5/11-12,5/15,5/18,5/20,5/26-27,5/33,5/35-36,5/43 19 > > > + set spantree portcost 5/1-6,5/8-10,5/13-14,5/16-17,5/19,5/21-25,5/28-32,5/34,5/37-42,5/44-48 100 > > > set spantree portpri 5/1-48 32 > > > set spantree portvlanpri 5/1 0 > > > set spantree portvlanpri 5/2 0 > > > set spantree portvlanpri 5/3 0 > > > @@ -943,9 +943,9 @@ > > > set spantree portvlanpri 5/48 0 > > > set spantree portvlancost 5/1 cost 99 > > > set spantree portvlancost 5/2 cost 99 > > > set spantree portvlancost 5/3 cost 99 > > > - set spantree portvlancost 5/4 cost 18 > > > + set spantree portvlancost 5/4 cost 99 > > > set spantree portvlancost 5/5 cost 99 > > > set spantree portvlancost 5/6 cost 99 > > > set spantree portvlancost 5/7 cost 18 > > > set spantree portvlancost 5/8 cost 99 > > > @@ -1063,10 +1063,10 @@ > > > set trunk 6/47 auto dot1q 1-1005 > > > set trunk 6/48 auto dot1q 1-1005 > > > set spantree portfast 6/29,6/32 enable > > > set spantree portfast 6/1-28,6/30-31,6/33-48 disable > > > - set spantree portcost 6/9,6/17,6/26-27,6/30,6/33,6/36 19 > > > - set spantree portcost 6/1-8,6/10-16,6/18-25,6/28-29,6/31-32,6/34-35,6/37-48 100 > > > + set spantree portcost 6/9,6/17,6/24,6/26-27,6/30,6/33,6/36 19 > > > + set spantree portcost 6/1-8,6/10-16,6/18-23,6/25,6/28-29,6/31-32,6/34-35,6/37-48 100 > > > set spantree portpri 6/1-48 32 > > > set spantree portvlanpri 6/1 0 > > > set spantree portvlanpri 6/2 0 > > > set spantree portvlanpri 6/3 0 > > > @@ -1137,9 +1137,9 @@ > > > set spantree portvlancost 6/20 cost 99 > > > set spantree portvlancost 6/21 cost 99 > > > set spantree portvlancost 6/22 cost 99 > > > set spantree portvlancost 6/23 cost 99 > > > - set spantree portvlancost 6/24 cost 99 > > > + set spantree portvlancost 6/24 cost 18 > > > set spantree portvlancost 6/25 cost 99 > > > set spantree portvlancost 6/26 cost 18 > > > set spantree portvlancost 6/27 cost 18 > > > set spantree portvlancost 6/28 cost 99 > > > > > > ----- Original Message ---- > > > From: Lance > > > To: Laker Netman > > > Cc: rancid-discuss at shrubbery.net > > > Sent: Wednesday, August 1, 2007 2:39:20 PM > > > Subject: RE: [rancid] spanning tree/portcost changes causing > > > diffs > > > > > > Maybe I am a little crazy but I don't think it would be that hard > > > to do. Of course if depends where you want the changes to be > > > ignored. If you want them to be tracked in CVS but not in the > > > emails then I think that is easy to do, but I would like to see > > > the emails reflect the CVS repo. So saying that I would say you > > > either keep them or get rid of them with an option in rancid.conf. > > > > > > Opinions? > > > > > > -Lance > > > > > > > -------- Original Message -------- > > > > Subject: [rancid] spanning tree/portcost changes causing diffs > > > > From: Laker Netman > > > > Date: Wed, August 01, 2007 12:11 pm > > > > To: rancid-discuss at shrubbery.net > > > > > > > > I have read several threads on the subject of portcost changes > > > > creating bogus diffs, but I haven't found one that presents a > > > > solution. Is there one? > > > > > > > > I am running RANCID 2.3.2a6 > > > > > > > > > > > > Thanks, > > > > Laker > > > > > > > > > > > > > > > > > > > > > > > > ________________________________________________________________ > > > > ____________________ > > > > Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. > http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 > > > > > > > > _______________________________________________ > > > > Rancid-discuss mailing list Rancid-discuss at shrubbery.net > > > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > > > > > > > > > > > > > > > > > > > > > > __________________________________________________________________ > > > __ > > > ________________ > > > Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool. > > > http://autos.yahoo.com/carfinder/ > > > > > > > > > > > > > > > > ____________________________________________________________________ > > __ > > ______________Ready for the edge of your seat? > > Check out tonight's top picks on Yahoo! TV. > > http://tv.yahoo.com/ > > _______________________________________________ > 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 QuastR at mail.ccsu.edu Sun Aug 5 16:53:01 2007 From: QuastR at mail.ccsu.edu (Quast, Robert (InfoTechServ)) Date: Sun, 5 Aug 2007 12:53:01 -0400 Subject: [rancid] Re: spanning tree/portcost changes causing diffs In-Reply-To: <002a01c7d6c4$69211ba0$4001a8c0@SUPERCECIL> References: <20070804105649.8e114e4890519e5179c192e02d6bca26.3543b73b79.wbe@email.secureserver.net> <002a01c7d6c4$69211ba0$4001a8c0@SUPERCECIL> Message-ID: <2B04C67D8EFC804F895BFA2A6AAFEDA3493D90@EXCHANGE2.facstaff.ccsu.edu> I just saw this thread and actually have something to contribute. I had this same problem several months ago. After digging through the archives, I ended up adding some lines to just ignore "set spantree portfast" and "set spantree portinstancecost" in cat5rancid. We have about 20 CatOS 4006's and have been running with these changes for about 4 months. I added the below 2 statements to line 861 in rancid/bin/cat5rancid (you could search for "Dog gone Cool" in the file). I basically found the section where they ignore certain commands and just copied the ones already there. # Dog gone Cool matches to process the rest of the config /^set spantree portcost / && next; /^set spantree portinstancecost / && next; /^#time: / && next; # kill time: /^tftp-server flash / && next; # kill any tftp remains /^ntp clock-period / && next; # kill ntp clock-period /^ length / && next; # kill length on serial lines /^ width / && next; # kill width on serial lines Oh and the only times I see where the memory bytes change are when switches either reboot or someone performs a write in IOS without making any changes, doesn't happen that often. Rob Quast Tech Systems Central Connecticut State University (860) 832-2057 quastr at ccsu.edu -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of David B. Stewart Sent: Saturday, August 04, 2007 2:22 PM To: rancid-discuss at shrubbery.net Subject: [rancid] Re: spanning tree/portcost changes causing diffs Ah, but the problem isn't limited to CatOS. Though the format and content is different, I see regular VLAN port state changes acknowledged by all switches - IOS and CatOS. CVS may not be affected for IOS, but the diff is run and reported regardless. Similar nag reports are noted for Flash changes. They are usually 1 to 3 byte changes in the amount of memory reported by IOS. No significance found (and no understanding of why the sizes would fluctuate), but it is a diff and gets reported nonetheless. Looking forward to the changes. Dave -----Original Message----- From: Lance [mailto:rancid at gheek.net] Sent: Saturday, August 04, 2007 12:57 PM To: dbstewart at dswrite.com Cc: rancid-discuss at shrubbery.net Subject: RE: [rancid] Re: spanning tree/portcost changes causing diffs All, To kill this one once and for all I will answer some questions. 1.) Yes CVS will fill up because the Catalyst OS based switches save changes like these in the configuration. You don't see this in the IOS versions because they don't save this i the configuration. 2.) I completely agree. Which is why I have written changes to cat5rancid so it will no longer see these changes. I will share these changes .... well the simple ugly fix for these. I can not say they will work on all OSes but I know for sure it runs just fine on Redhat 9 (yes old, but it was an old server I had) and Suse 9.3 (yes old once again, but it is my tools server. :( ). I will post this complete change on Monday/maybe this weekend if I get time as I need to still add the configuration option to turn it on/off. That is extremely simple but would like to test it first, before telling people to use it. Hopefully my simple but ugly fix will work you Dave an many more that tend to do just like most everyone ignore the changes due to the sheer number of "set spantree port" messages. Well at least to me these are the noisy ones. -lance > -------- Original Message -------- > Subject: [rancid] Re: spanning tree/portcost changes causing diffs > From: "David B. Stewart" > Date: Sat, August 04, 2007 5:26 am > To: > > What I don't understand is why anyone would want "normal" network > activity 1) filling up CVS and 2) causing nuisance email > notifications. Anyone know why the feature was added in the first > place? Maybe it was intended as a poor-man's network monitoring tool, > but it's a real pain on a larger enterprise. The sheer bulk of > nuisance notifications by email has caused my organization to ignore > rancid notifications altogether. -Dave > > -----Original Message----- > From: rancid-discuss-bounces at shrubbery.net > [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Lance > Sent: Friday, August 03, 2007 11:16 AM > To: Laker Netman > Cc: rancid-discuss at shrubbery.net > Subject: [rancid] Re: spanning tree/portcost changes causing diffs > > > Laker, > > So in other words you don't want to see them even in the CVS repo > correct? Filtering them out of the email is cake. 1 change to > control_rancid and you are good to go. > > -Lance > > > -------- Original Message -------- > > Subject: Re: [rancid] spanning tree/portcost changes causing diffs > > From: Laker Netman > > Date: Fri, August 03, 2007 6:51 am > > To: Lance > > Cc: rancid-discuss at shrubbery.net > > > > I understand that, but I'd prefer not to have them appear as > > configuration changes if possible, i.e., have the script ignore > > changes to those lines. It wouldn't affect restoring a config, > > because the switch would set the ports to their correct state > > anyway. > > > > Laker > > > > ----- Original Message ---- > > From: Lance > > To: Laker Netman > > Cc: rancid-discuss at shrubbery.net > > Sent: Thursday, August 2, 2007 7:12:29 PM > > Subject: RE: [rancid] spanning tree/portcost changes causing diffs > > > > Laker, > > > > This is directly related to ports changing state (aka someone > > turning on/off their pc). > > > > -Lance > > > > > > > -------- Original Message -------- > > > Subject: Re: [rancid] spanning tree/portcost changes causing > > > diffs > > > From: Laker Netman > > > Date: Thu, August 02, 2007 1:13 pm > > > To: Lance > > > Cc: rancid-discuss at shrubbery.net > > > > > > Here's and example of what I get in email and CVS: > > > > > > Index: configs/192.168.20.206 > > > ================================================================== > > > = > > > retrieving revision 1.38 > > > diff -U4 -r1.38 192.168.20.206 > > > @@ -1072,10 +1072,10 @@ > > > set trunk 4/46 auto negotiate 1-1005,1025-4094 > > > set trunk 4/47 auto negotiate 1-1005,1025-4094 > > > set trunk 4/48 auto negotiate 1-1005,1025-4094 > > > set spantree portfast 4/1-48 disable > > > - set spantree portcost 4/1,4/5-10,4/12-13,4/21-22,4/25-26,4/31-32,4/38,4/45,4/47 19 > > > - set spantree portcost 4/2-4,4/11,4/14-20,4/23-24,4/27-30,4/33-37,4/39-44,4/46,4/48 100 > > > + set spantree portcost 4/1,4/5-10,4/12-13,4/21-22,4/25-26,4/28,4/31-32,4/38,4/45,4/47 19 > > > + set spantree portcost 4/2-4,4/11,4/14-20,4/23-24,4/27,4/29-30,4/33-37,4/39-44,4/46,4/48 100 > > > set spantree portpri 4/1-48 32 > > > set spantree portvlanpri 4/1 0 > > > set spantree portvlanpri 4/2 0 > > > set spantree portvlanpri 4/3 0 > > > @@ -1150,9 +1150,9 @@ > > > set spantree portvlancost 4/24 cost 99 > > > set spantree portvlancost 4/25 cost 18 > > > set spantree portvlancost 4/26 cost 18 > > > set spantree portvlancost 4/27 cost 99 > > > - set spantree portvlancost 4/28 cost 99 > > > + set spantree portvlancost 4/28 cost 18 > > > set spantree portvlancost 4/29 cost 99 > > > set spantree portvlancost 4/30 cost 99 > > > set spantree portvlancost 4/31 cost 18 > > > set spantree portvlancost 4/32 cost 18 > > > @@ -1270,10 +1270,10 @@ > > > set trunk 5/47 auto negotiate 1-1005,1025-4094 > > > set trunk 5/48 auto negotiate 1-1005,1025-4094 > > > set spantree portfast 5/26 enable > > > set spantree portfast 5/1-25,5/27-48 disable > > > - set spantree portcost 5/4,5/6,5/9-12,5/14-15,5/19,5/22-24,5/28,5/33,5/35,5/38,5/41,5/44-45,5/4 8 19 > > > - set spantree portcost 5/1-3,5/5,5/7-8,5/13,5/16-18,5/20-21,5/25-27,5/29-32,5/34,5/36-37,5/39-4 0,5/42-43,5/46-47 > 100 > > > + set spantree portcost 5/4,5/6,5/9-12,5/14-15,5/19,5/22-24,5/28,5/33,5/35,5/38,5/44-45,5/48 19 > > > + set spantree portcost 5/1-3,5/5,5/7-8,5/13,5/16-18,5/20-21,5/25-27,5/29-32,5/34,5/36-37,5/39-4 3,5/46-47 100 > > > set spantree portpri 5/1-48 32 > > > set spantree portvlanpri 5/1 0 > > > set spantree portvlanpri 5/2 0 > > > set spantree portvlanpri 5/3 0 > > > @@ -1361,9 +1361,9 @@ > > > set spantree portvlancost 5/37 cost 99 > > > set spantree portvlancost 5/38 cost 18 > > > set spantree portvlancost 5/39 cost 99 > > > set spantree portvlancost 5/40 cost 99 > > > - set spantree portvlancost 5/41 cost 18 > > > + set spantree portvlancost 5/41 cost 99 > > > set spantree portvlancost 5/42 cost 99 > > > set spantree portvlancost 5/43 cost 99 > > > set spantree portvlancost 5/44 cost 18 > > > set spantree portvlancost 5/45 cost 18 > > > @@ -1466,10 +1466,10 @@ > > > set trunk 6/47 auto negotiate 1-1005,1025-4094 > > > set trunk 6/48 auto negotiate 1-1005,1025-4094 > > > set spantree portfast 6/2,6/37 enable > > > set spantree portfast 6/1,6/3-36,6/38-48 disable > > > - set spantree portcost 6/1,6/3-5,6/9,6/15-18,6/23,6/37-38,6/40-43,6/46,6/48 19 > > > - set spantree portcost 6/2,6/6-8,6/10-14,6/19-22,6/24-36,6/39,6/44-45,6/47 100 > > > + set spantree portcost 6/1,6/3-5,6/9,6/13,6/15-18,6/23,6/37-38,6/40-43,6/46,6/48 19 > > > + set spantree portcost 6/2,6/6-8,6/10-12,6/14,6/19-22,6/24-36,6/39,6/44-45,6/47 100 > > > set spantree portpri 6/1-48 32 > > > set spantree portvlanpri 6/1 0 > > > set spantree portvlanpri 6/2 0 > > > set spantree portvlanpri 6/3 0 > > > @@ -1529,9 +1529,9 @@ > > > set spantree portvlancost 6/9 cost 18 > > > set spantree portvlancost 6/10 cost 99 > > > set spantree portvlancost 6/11 cost 99 > > > set spantree portvlancost 6/12 cost 99 > > > - set spantree portvlancost 6/13 cost 99 > > > + set spantree portvlancost 6/13 cost 18 > > > set spantree portvlancost 6/14 cost 99 > > > set spantree portvlancost 6/15 cost 18 > > > set spantree portvlancost 6/16 cost 18 > > > set spantree portvlancost 6/17 cost 18 > > > Index: configs/192.168.20.219 > > > ================================================================== > > > = > > > retrieving revision 1.28 > > > diff -U4 -r1.28 192.168.20.219 > > > @@ -668,10 +668,10 @@ > > > set trunk 3/46 auto dot1q 1-1005 > > > set trunk 3/47 auto dot1q 1-1005 > > > set trunk 3/48 auto dot1q 1-1005 > > > set spantree portfast 3/1-48 disable > > > - set spantree portcost 3/1-2,3/11-12,3/19,3/25,3/27-29,3/35,3/37-39,3/41,3/43,3/46-48 19 > > > - set spantree portcost 3/3-10,3/13-18,3/20-24,3/26,3/30-34,3/36,3/40,3/42,3/44-45 100 > > > + set spantree portcost 3/1,3/11-12,3/19,3/25,3/27-29,3/35,3/37-38,3/41,3/43,3/46-48 19 > > > + set spantree portcost 3/2-10,3/13-18,3/20-24,3/26,3/30-34,3/36,3/39-40,3/42,3/44-45 100 > > > set spantree portpri 3/1-48 32 > > > set spantree portvlanpri 3/1 0 > > > set spantree portvlanpri 3/2 0 > > > set spantree portvlanpri 3/3 0 > > > @@ -720,9 +720,9 @@ > > > set spantree portvlanpri 3/46 0 > > > set spantree portvlanpri 3/47 0 > > > set spantree portvlanpri 3/48 0 > > > set spantree portvlancost 3/1 cost 18 > > > - set spantree portvlancost 3/2 cost 18 > > > + set spantree portvlancost 3/2 cost 99 > > > set spantree portvlancost 3/3 cost 99 > > > set spantree portvlancost 3/4 cost 99 > > > set spantree portvlancost 3/5 cost 99 > > > set spantree portvlancost 3/6 cost 99 > > > @@ -757,9 +757,9 @@ > > > set spantree portvlancost 3/35 cost 18 > > > set spantree portvlancost 3/36 cost 99 > > > set spantree portvlancost 3/37 cost 18 > > > set spantree portvlancost 3/38 cost 18 > > > - set spantree portvlancost 3/39 cost 18 > > > + set spantree portvlancost 3/39 cost 99 > > > set spantree portvlancost 3/40 cost 99 > > > set spantree portvlancost 3/41 cost 18 > > > set spantree portvlancost 3/42 cost 99 > > > set spantree portvlancost 3/43 cost 18 > > > Index: configs/192.168.20.223 > > > ================================================================== > > > = > > > retrieving revision 1.37 > > > diff -U4 -r1.37 192.168.20.223 > > > @@ -713,10 +713,10 @@ > > > set trunk 4/47 auto dot1q 1-1005 > > > set trunk 4/48 auto dot1q 1-1005 > > > set spantree portfast 4/14 enable > > > set spantree portfast 4/1-13,4/15-48 disable > > > - set spantree portcost 4/1,4/10-11,4/17-18,4/21,4/23,4/25,4/27,4/29,4/32,4/34,4/38-39,4/42,4/44 -45 19 > > > - set spantree portcost 4/2-9,4/12-16,4/19-20,4/22,4/24,4/26,4/28,4/30-31,4/33,4/35-37,4/40-41,4 /43,4/46-48 100 > > > + set spantree portcost 4/1,4/10,4/17-18,4/21,4/23,4/25,4/27,4/29,4/32,4/34,4/38-39,4/42,4/44-45 19 > > > + set spantree portcost 4/2-9,4/11-16,4/19-20,4/22,4/24,4/26,4/28,4/30-31,4/33,4/35-37,4/40-41,4 /43,4/46-48 100 > > > set spantree portpri 4/1-48 32 > > > set spantree portvlanpri 4/1 0 > > > set spantree portvlanpri 4/2 0 > > > set spantree portvlanpri 4/3 0 > > > @@ -774,9 +774,9 @@ > > > set spantree portvlancost 4/7 cost 99 > > > set spantree portvlancost 4/8 cost 99 > > > set spantree portvlancost 4/9 cost 99 > > > set spantree portvlancost 4/10 cost 18 > > > - set spantree portvlancost 4/11 cost 18 > > > + set spantree portvlancost 4/11 cost 99 > > > set spantree portvlancost 4/12 cost 99 > > > set spantree portvlancost 4/13 cost 99 > > > set spantree portvlancost 4/14 cost 99 > > > set spantree portvlancost 4/15 cost 99 > > > @@ -889,10 +889,10 @@ > > > set trunk 5/47 auto dot1q 1-1005 > > > set trunk 5/48 auto dot1q 1-1005 > > > set spantree portfast 5/10 enable > > > set spantree portfast 5/1-9,5/11-48 disable > > > - set spantree portcost 5/4,5/7,5/11-12,5/15,5/18,5/20,5/26-27,5/33,5/35-36,5/43 19 > > > - set spantree portcost 5/1-3,5/5-6,5/8-10,5/13-14,5/16-17,5/19,5/21-25,5/28-32,5/34,5/37-42,5/4 4-48 100 > > > + set spantree portcost 5/7,5/11-12,5/15,5/18,5/20,5/26-27,5/33,5/35-36,5/43 19 > > > + set spantree portcost 5/1-6,5/8-10,5/13-14,5/16-17,5/19,5/21-25,5/28-32,5/34,5/37-42,5/44-48 100 > > > set spantree portpri 5/1-48 32 > > > set spantree portvlanpri 5/1 0 > > > set spantree portvlanpri 5/2 0 > > > set spantree portvlanpri 5/3 0 > > > @@ -943,9 +943,9 @@ > > > set spantree portvlanpri 5/48 0 > > > set spantree portvlancost 5/1 cost 99 > > > set spantree portvlancost 5/2 cost 99 > > > set spantree portvlancost 5/3 cost 99 > > > - set spantree portvlancost 5/4 cost 18 > > > + set spantree portvlancost 5/4 cost 99 > > > set spantree portvlancost 5/5 cost 99 > > > set spantree portvlancost 5/6 cost 99 > > > set spantree portvlancost 5/7 cost 18 > > > set spantree portvlancost 5/8 cost 99 > > > @@ -1063,10 +1063,10 @@ > > > set trunk 6/47 auto dot1q 1-1005 > > > set trunk 6/48 auto dot1q 1-1005 > > > set spantree portfast 6/29,6/32 enable > > > set spantree portfast 6/1-28,6/30-31,6/33-48 disable > > > - set spantree portcost 6/9,6/17,6/26-27,6/30,6/33,6/36 19 > > > - set spantree portcost 6/1-8,6/10-16,6/18-25,6/28-29,6/31-32,6/34-35,6/37-48 100 > > > + set spantree portcost 6/9,6/17,6/24,6/26-27,6/30,6/33,6/36 19 > > > + set spantree portcost 6/1-8,6/10-16,6/18-23,6/25,6/28-29,6/31-32,6/34-35,6/37-48 100 > > > set spantree portpri 6/1-48 32 > > > set spantree portvlanpri 6/1 0 > > > set spantree portvlanpri 6/2 0 > > > set spantree portvlanpri 6/3 0 > > > @@ -1137,9 +1137,9 @@ > > > set spantree portvlancost 6/20 cost 99 > > > set spantree portvlancost 6/21 cost 99 > > > set spantree portvlancost 6/22 cost 99 > > > set spantree portvlancost 6/23 cost 99 > > > - set spantree portvlancost 6/24 cost 99 > > > + set spantree portvlancost 6/24 cost 18 > > > set spantree portvlancost 6/25 cost 99 > > > set spantree portvlancost 6/26 cost 18 > > > set spantree portvlancost 6/27 cost 18 > > > set spantree portvlancost 6/28 cost 99 > > > > > > ----- Original Message ---- > > > From: Lance > > > To: Laker Netman > > > Cc: rancid-discuss at shrubbery.net > > > Sent: Wednesday, August 1, 2007 2:39:20 PM > > > Subject: RE: [rancid] spanning tree/portcost changes causing > > > diffs > > > > > > Maybe I am a little crazy but I don't think it would be that hard > > > to do. Of course if depends where you want the changes to be > > > ignored. If you want them to be tracked in CVS but not in the > > > emails then I think that is easy to do, but I would like to see > > > the emails reflect the CVS repo. So saying that I would say you > > > either keep them or get rid of them with an option in rancid.conf. > > > > > > Opinions? > > > > > > -Lance > > > > > > > -------- Original Message -------- > > > > Subject: [rancid] spanning tree/portcost changes causing diffs > > > > From: Laker Netman > > > > Date: Wed, August 01, 2007 12:11 pm > > > > To: rancid-discuss at shrubbery.net > > > > > > > > I have read several threads on the subject of portcost changes > > > > creating bogus diffs, but I haven't found one that presents a > > > > solution. Is there one? > > > > > > > > I am running RANCID 2.3.2a6 > > > > > > > > > > > > Thanks, > > > > Laker > > > > > > > > > > > > > > > > > > > > > > > > ________________________________________________________________ > > > > ____________________ > > > > Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. > http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 > > > > > > > > _______________________________________________ > > > > Rancid-discuss mailing list Rancid-discuss at shrubbery.net > > > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > > > > > > > > > > > > > > > > > > > > > > __________________________________________________________________ > > > __ > > > ________________ > > > Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool. > > > http://autos.yahoo.com/carfinder/ > > > > > > > > > > > > > > > > ____________________________________________________________________ > > __ > > ______________Ready for the edge of your seat? > > Check out tonight's top picks on Yahoo! TV. > > http://tv.yahoo.com/ > > _______________________________________________ > 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 _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From rancid at gheek.net Sun Aug 5 18:17:26 2007 From: rancid at gheek.net (Lance) Date: Sun, 05 Aug 2007 11:17:26 -0700 Subject: [rancid] Re: spanning tree/portcost changes causing diffs Message-ID: <20070805111726.8e114e4890519e5179c192e02d6bca26.05e5a8ac8f.wbe@email.secureserver.net> Dave, Robert has purposed a very simple fix just like mine. I have an option to turn on/off the filtering of these config lines except I use the syntax /^set spantree port.*/ because it will catch both of those possible output lines and leaves the valid stuff. In regard to the changes of spanning-tree stuff on IOS it will not show up in your config thus never showing up in the CVS diff. The differencing normally for something to show up IOS based is due to info changes in the storage areas (flash/bootflash/etc). I personally have ignored those commands as they serve no purpose for me. I would suggest doing the same unless you have a very particular reason to capture the images tha are stored on your devices. -Lance > -------- Original Message -------- > Subject: [rancid] Re: spanning tree/portcost changes causing diffs > From: "Quast, Robert (InfoTechServ)" > Date: Sun, August 05, 2007 9:53 am > To: , > > I just saw this thread and actually have something to contribute. I had > this same problem several months ago. After digging through the > archives, I ended up adding some lines to just ignore "set spantree > portfast" and "set spantree portinstancecost" in cat5rancid. We have > about 20 CatOS 4006's and have been running with these changes for about > 4 months. I added the below 2 statements to line 861 in > rancid/bin/cat5rancid (you could search for "Dog gone Cool" in the > file). I basically found the section where they ignore certain commands > and just copied the ones already there. > > # Dog gone Cool matches to process the rest of the config > /^set spantree portcost / && next; > /^set spantree portinstancecost / && next; > > /^#time: / && next; # kill time: > /^tftp-server flash / && next; # kill any tftp remains > /^ntp clock-period / && next; # kill ntp clock-period > /^ length / && next; # kill length on serial lines > /^ width / && next; # kill width on serial lines > > Oh and the only times I see where the memory bytes change are when > switches either reboot or someone performs a write in IOS without making > any changes, doesn't happen that often. > > > Rob Quast > Tech Systems > Central Connecticut State University > (860) 832-2057 > quastr at ccsu.edu > > > > > > -----Original Message----- > From: rancid-discuss-bounces at shrubbery.net > [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of David B. > Stewart > Sent: Saturday, August 04, 2007 2:22 PM > To: rancid-discuss at shrubbery.net > Subject: [rancid] Re: spanning tree/portcost changes causing diffs > > Ah, but the problem isn't limited to CatOS. Though the format and > content is different, I see regular VLAN port state > changes acknowledged by all switches - IOS and CatOS. CVS may not be > affected for IOS, but the diff is run and reported > regardless. > > Similar nag reports are noted for Flash changes. They are usually 1 to > 3 byte changes in the amount of memory reported > by IOS. No significance found (and no understanding of why the sizes > would fluctuate), but it is a diff and gets > reported nonetheless. > > Looking forward to the changes. > Dave > > -----Original Message----- > From: Lance [mailto:rancid at gheek.net] > Sent: Saturday, August 04, 2007 12:57 PM > To: dbstewart at dswrite.com > Cc: rancid-discuss at shrubbery.net > Subject: RE: [rancid] Re: spanning tree/portcost changes causing diffs > > > All, > > To kill this one once and for all I will answer some questions. > > 1.) Yes CVS will fill up because the Catalyst OS based switches save > changes like these in the configuration. You don't > see this in the IOS versions because they don't save this i the > configuration. > 2.) I completely agree. Which is why I have written changes to > cat5rancid so it will no longer see these changes. I will > share these changes .... well the simple ugly fix for these. I can not > say they will work on all OSes but I know for > sure it runs just fine on Redhat 9 (yes old, but it was an old server I > had) and Suse 9.3 (yes old once again, but it is > my tools server. :( ). I will post this complete change on Monday/maybe > this weekend if I get time as I need to still > add the configuration option to turn it on/off. That is extremely simple > but would like to test it first, before telling > people to use it. > > > Hopefully my simple but ugly fix will work you Dave an many more that > tend to do just like most everyone ignore the > changes due to the sheer number of "set spantree port" messages. Well at > least to me these are the noisy ones. > > -lance > > > -------- Original Message -------- > > Subject: [rancid] Re: spanning tree/portcost changes causing diffs > > From: "David B. Stewart" > > Date: Sat, August 04, 2007 5:26 am > > To: > > > > What I don't understand is why anyone would want "normal" network > > activity 1) filling up CVS and 2) causing nuisance email > > notifications. Anyone know why the feature was added in the first > > place? Maybe it was intended as a poor-man's network monitoring tool, > > > but it's a real pain on a larger enterprise. The sheer bulk of > > nuisance notifications by email has caused my organization to ignore > > rancid notifications altogether. -Dave > > > > -----Original Message----- > > From: rancid-discuss-bounces at shrubbery.net > > [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Lance > > Sent: Friday, August 03, 2007 11:16 AM > > To: Laker Netman > > Cc: rancid-discuss at shrubbery.net > > Subject: [rancid] Re: spanning tree/portcost changes causing diffs > > > > > > Laker, > > > > So in other words you don't want to see them even in the CVS repo > > correct? Filtering them out of the email is cake. 1 change to > > control_rancid and you are good to go. > > > > -Lance > > > > > -------- Original Message -------- > > > Subject: Re: [rancid] spanning tree/portcost changes causing diffs > > > From: Laker Netman > > > Date: Fri, August 03, 2007 6:51 am > > > To: Lance > > > Cc: rancid-discuss at shrubbery.net > > > > > > I understand that, but I'd prefer not to have them appear as > > > configuration changes if possible, i.e., have the script ignore > > > changes to those lines. It wouldn't affect restoring a config, > > > because the switch would set the ports to their correct state > > > anyway. > > > > > > Laker > > > > > > ----- Original Message ---- > > > From: Lance > > > To: Laker Netman > > > Cc: rancid-discuss at shrubbery.net > > > Sent: Thursday, August 2, 2007 7:12:29 PM > > > Subject: RE: [rancid] spanning tree/portcost changes causing diffs > > > > > > Laker, > > > > > > This is directly related to ports changing state (aka someone > > > turning on/off their pc). > > > > > > -Lance > > > > > > > > > > -------- Original Message -------- > > > > Subject: Re: [rancid] spanning tree/portcost changes causing > > > > diffs > > > > From: Laker Netman > > > > Date: Thu, August 02, 2007 1:13 pm > > > > To: Lance > > > > Cc: rancid-discuss at shrubbery.net > > > > > > > > Here's and example of what I get in email and CVS: > > > > > > > > Index: configs/192.168.20.206 > > > > ================================================================== > > > > = > > > > retrieving revision 1.38 > > > > diff -U4 -r1.38 192.168.20.206 > > > > @@ -1072,10 +1072,10 @@ > > > > set trunk 4/46 auto negotiate 1-1005,1025-4094 > > > > set trunk 4/47 auto negotiate 1-1005,1025-4094 > > > > set trunk 4/48 auto negotiate 1-1005,1025-4094 > > > > set spantree portfast 4/1-48 disable > > > > - set spantree portcost > 4/1,4/5-10,4/12-13,4/21-22,4/25-26,4/31-32,4/38,4/45,4/47 19 > > > > - set spantree portcost > 4/2-4,4/11,4/14-20,4/23-24,4/27-30,4/33-37,4/39-44,4/46,4/48 100 > > > > + set spantree portcost > 4/1,4/5-10,4/12-13,4/21-22,4/25-26,4/28,4/31-32,4/38,4/45,4/47 19 > > > > + set spantree portcost > 4/2-4,4/11,4/14-20,4/23-24,4/27,4/29-30,4/33-37,4/39-44,4/46,4/48 100 > > > > set spantree portpri 4/1-48 32 > > > > set spantree portvlanpri 4/1 0 > > > > set spantree portvlanpri 4/2 0 > > > > set spantree portvlanpri 4/3 0 > > > > @@ -1150,9 +1150,9 @@ > > > > set spantree portvlancost 4/24 cost 99 > > > > set spantree portvlancost 4/25 cost 18 > > > > set spantree portvlancost 4/26 cost 18 > > > > set spantree portvlancost 4/27 cost 99 > > > > - set spantree portvlancost 4/28 cost 99 > > > > + set spantree portvlancost 4/28 cost 18 > > > > set spantree portvlancost 4/29 cost 99 > > > > set spantree portvlancost 4/30 cost 99 > > > > set spantree portvlancost 4/31 cost 18 > > > > set spantree portvlancost 4/32 cost 18 > > > > @@ -1270,10 +1270,10 @@ > > > > set trunk 5/47 auto negotiate 1-1005,1025-4094 > > > > set trunk 5/48 auto negotiate 1-1005,1025-4094 > > > > set spantree portfast 5/26 enable > > > > set spantree portfast 5/1-25,5/27-48 disable > > > > - set spantree portcost > 5/4,5/6,5/9-12,5/14-15,5/19,5/22-24,5/28,5/33,5/35,5/38,5/41,5/44-45,5/4 > 8 19 > > > > - set spantree portcost > 5/1-3,5/5,5/7-8,5/13,5/16-18,5/20-21,5/25-27,5/29-32,5/34,5/36-37,5/39-4 > 0,5/42-43,5/46-47 > > 100 > > > > + set spantree portcost > 5/4,5/6,5/9-12,5/14-15,5/19,5/22-24,5/28,5/33,5/35,5/38,5/44-45,5/48 19 > > > > + set spantree portcost > 5/1-3,5/5,5/7-8,5/13,5/16-18,5/20-21,5/25-27,5/29-32,5/34,5/36-37,5/39-4 > 3,5/46-47 100 > > > > set spantree portpri 5/1-48 32 > > > > set spantree portvlanpri 5/1 0 > > > > set spantree portvlanpri 5/2 0 > > > > set spantree portvlanpri 5/3 0 > > > > @@ -1361,9 +1361,9 @@ > > > > set spantree portvlancost 5/37 cost 99 > > > > set spantree portvlancost 5/38 cost 18 > > > > set spantree portvlancost 5/39 cost 99 > > > > set spantree portvlancost 5/40 cost 99 > > > > - set spantree portvlancost 5/41 cost 18 > > > > + set spantree portvlancost 5/41 cost 99 > > > > set spantree portvlancost 5/42 cost 99 > > > > set spantree portvlancost 5/43 cost 99 > > > > set spantree portvlancost 5/44 cost 18 > > > > set spantree portvlancost 5/45 cost 18 > > > > @@ -1466,10 +1466,10 @@ > > > > set trunk 6/47 auto negotiate 1-1005,1025-4094 > > > > set trunk 6/48 auto negotiate 1-1005,1025-4094 > > > > set spantree portfast 6/2,6/37 enable > > > > set spantree portfast 6/1,6/3-36,6/38-48 disable > > > > - set spantree portcost > 6/1,6/3-5,6/9,6/15-18,6/23,6/37-38,6/40-43,6/46,6/48 19 > > > > - set spantree portcost > 6/2,6/6-8,6/10-14,6/19-22,6/24-36,6/39,6/44-45,6/47 100 > > > > + set spantree portcost > 6/1,6/3-5,6/9,6/13,6/15-18,6/23,6/37-38,6/40-43,6/46,6/48 19 > > > > + set spantree portcost > 6/2,6/6-8,6/10-12,6/14,6/19-22,6/24-36,6/39,6/44-45,6/47 100 > > > > set spantree portpri 6/1-48 32 > > > > set spantree portvlanpri 6/1 0 > > > > set spantree portvlanpri 6/2 0 > > > > set spantree portvlanpri 6/3 0 > > > > @@ -1529,9 +1529,9 @@ > > > > set spantree portvlancost 6/9 cost 18 > > > > set spantree portvlancost 6/10 cost 99 > > > > set spantree portvlancost 6/11 cost 99 > > > > set spantree portvlancost 6/12 cost 99 > > > > - set spantree portvlancost 6/13 cost 99 > > > > + set spantree portvlancost 6/13 cost 18 > > > > set spantree portvlancost 6/14 cost 99 > > > > set spantree portvlancost 6/15 cost 18 > > > > set spantree portvlancost 6/16 cost 18 > > > > set spantree portvlancost 6/17 cost 18 > > > > Index: configs/192.168.20.219 > > > > ================================================================== > > > > = > > > > retrieving revision 1.28 > > > > diff -U4 -r1.28 192.168.20.219 > > > > @@ -668,10 +668,10 @@ > > > > set trunk 3/46 auto dot1q 1-1005 > > > > set trunk 3/47 auto dot1q 1-1005 > > > > set trunk 3/48 auto dot1q 1-1005 > > > > set spantree portfast 3/1-48 disable > > > > - set spantree portcost > 3/1-2,3/11-12,3/19,3/25,3/27-29,3/35,3/37-39,3/41,3/43,3/46-48 19 > > > > - set spantree portcost > 3/3-10,3/13-18,3/20-24,3/26,3/30-34,3/36,3/40,3/42,3/44-45 100 > > > > + set spantree portcost > 3/1,3/11-12,3/19,3/25,3/27-29,3/35,3/37-38,3/41,3/43,3/46-48 19 > > > > + set spantree portcost > 3/2-10,3/13-18,3/20-24,3/26,3/30-34,3/36,3/39-40,3/42,3/44-45 100 > > > > set spantree portpri 3/1-48 32 > > > > set spantree portvlanpri 3/1 0 > > > > set spantree portvlanpri 3/2 0 > > > > set spantree portvlanpri 3/3 0 > > > > @@ -720,9 +720,9 @@ > > > > set spantree portvlanpri 3/46 0 > > > > set spantree portvlanpri 3/47 0 > > > > set spantree portvlanpri 3/48 0 > > > > set spantree portvlancost 3/1 cost 18 > > > > - set spantree portvlancost 3/2 cost 18 > > > > + set spantree portvlancost 3/2 cost 99 > > > > set spantree portvlancost 3/3 cost 99 > > > > set spantree portvlancost 3/4 cost 99 > > > > set spantree portvlancost 3/5 cost 99 > > > > set spantree portvlancost 3/6 cost 99 > > > > @@ -757,9 +757,9 @@ > > > > set spantree portvlancost 3/35 cost 18 > > > > set spantree portvlancost 3/36 cost 99 > > > > set spantree portvlancost 3/37 cost 18 > > > > set spantree portvlancost 3/38 cost 18 > > > > - set spantree portvlancost 3/39 cost 18 > > > > + set spantree portvlancost 3/39 cost 99 > > > > set spantree portvlancost 3/40 cost 99 > > > > set spantree portvlancost 3/41 cost 18 > > > > set spantree portvlancost 3/42 cost 99 > > > > set spantree portvlancost 3/43 cost 18 > > > > Index: configs/192.168.20.223 > > > > ================================================================== > > > > = > > > > retrieving revision 1.37 > > > > diff -U4 -r1.37 192.168.20.223 > > > > @@ -713,10 +713,10 @@ > > > > set trunk 4/47 auto dot1q 1-1005 > > > > set trunk 4/48 auto dot1q 1-1005 > > > > set spantree portfast 4/14 enable > > > > set spantree portfast 4/1-13,4/15-48 disable > > > > - set spantree portcost > 4/1,4/10-11,4/17-18,4/21,4/23,4/25,4/27,4/29,4/32,4/34,4/38-39,4/42,4/44 > -45 19 > > > > - set spantree portcost > 4/2-9,4/12-16,4/19-20,4/22,4/24,4/26,4/28,4/30-31,4/33,4/35-37,4/40-41,4 > /43,4/46-48 > 100 > > > > + set spantree portcost > 4/1,4/10,4/17-18,4/21,4/23,4/25,4/27,4/29,4/32,4/34,4/38-39,4/42,4/44-45 > 19 > > > > + set spantree portcost > 4/2-9,4/11-16,4/19-20,4/22,4/24,4/26,4/28,4/30-31,4/33,4/35-37,4/40-41,4 > /43,4/46-48 > 100 > > > > set spantree portpri 4/1-48 32 > > > > set spantree portvlanpri 4/1 0 > > > > set spantree portvlanpri 4/2 0 > > > > set spantree portvlanpri 4/3 0 > > > > @@ -774,9 +774,9 @@ > > > > set spantree portvlancost 4/7 cost 99 > > > > set spantree portvlancost 4/8 cost 99 > > > > set spantree portvlancost 4/9 cost 99 > > > > set spantree portvlancost 4/10 cost 18 > > > > - set spantree portvlancost 4/11 cost 18 > > > > + set spantree portvlancost 4/11 cost 99 > > > > set spantree portvlancost 4/12 cost 99 > > > > set spantree portvlancost 4/13 cost 99 > > > > set spantree portvlancost 4/14 cost 99 > > > > set spantree portvlancost 4/15 cost 99 > > > > @@ -889,10 +889,10 @@ > > > > set trunk 5/47 auto dot1q 1-1005 > > > > set trunk 5/48 auto dot1q 1-1005 > > > > set spantree portfast 5/10 enable > > > > set spantree portfast 5/1-9,5/11-48 disable > > > > - set spantree portcost > 5/4,5/7,5/11-12,5/15,5/18,5/20,5/26-27,5/33,5/35-36,5/43 19 > > > > - set spantree portcost > 5/1-3,5/5-6,5/8-10,5/13-14,5/16-17,5/19,5/21-25,5/28-32,5/34,5/37-42,5/4 > 4-48 100 > > > > + set spantree portcost > 5/7,5/11-12,5/15,5/18,5/20,5/26-27,5/33,5/35-36,5/43 19 > > > > + set spantree portcost > 5/1-6,5/8-10,5/13-14,5/16-17,5/19,5/21-25,5/28-32,5/34,5/37-42,5/44-48 > 100 > > > > set spantree portpri 5/1-48 32 > > > > set spantree portvlanpri 5/1 0 > > > > set spantree portvlanpri 5/2 0 > > > > set spantree portvlanpri 5/3 0 > > > > @@ -943,9 +943,9 @@ > > > > set spantree portvlanpri 5/48 0 > > > > set spantree portvlancost 5/1 cost 99 > > > > set spantree portvlancost 5/2 cost 99 > > > > set spantree portvlancost 5/3 cost 99 > > > > - set spantree portvlancost 5/4 cost 18 > > > > + set spantree portvlancost 5/4 cost 99 > > > > set spantree portvlancost 5/5 cost 99 > > > > set spantree portvlancost 5/6 cost 99 > > > > set spantree portvlancost 5/7 cost 18 > > > > set spantree portvlancost 5/8 cost 99 > > > > @@ -1063,10 +1063,10 @@ > > > > set trunk 6/47 auto dot1q 1-1005 > > > > set trunk 6/48 auto dot1q 1-1005 > > > > set spantree portfast 6/29,6/32 enable > > > > set spantree portfast 6/1-28,6/30-31,6/33-48 disable > > > > - set spantree portcost 6/9,6/17,6/26-27,6/30,6/33,6/36 19 > > > > - set spantree portcost > 6/1-8,6/10-16,6/18-25,6/28-29,6/31-32,6/34-35,6/37-48 100 > > > > + set spantree portcost 6/9,6/17,6/24,6/26-27,6/30,6/33,6/36 > 19 > > > > + set spantree portcost > 6/1-8,6/10-16,6/18-23,6/25,6/28-29,6/31-32,6/34-35,6/37-48 100 > > > > set spantree portpri 6/1-48 32 > > > > set spantree portvlanpri 6/1 0 > > > > set spantree portvlanpri 6/2 0 > > > > set spantree portvlanpri 6/3 0 > > > > @@ -1137,9 +1137,9 @@ > > > > set spantree portvlancost 6/20 cost 99 > > > > set spantree portvlancost 6/21 cost 99 > > > > set spantree portvlancost 6/22 cost 99 > > > > set spantree portvlancost 6/23 cost 99 > > > > - set spantree portvlancost 6/24 cost 99 > > > > + set spantree portvlancost 6/24 cost 18 > > > > set spantree portvlancost 6/25 cost 99 > > > > set spantree portvlancost 6/26 cost 18 > > > > set spantree portvlancost 6/27 cost 18 > > > > set spantree portvlancost 6/28 cost 99 > > > > > > > > ----- Original Message ---- > > > > From: Lance > > > > To: Laker Netman > > > > Cc: rancid-discuss at shrubbery.net > > > > Sent: Wednesday, August 1, 2007 2:39:20 PM > > > > Subject: RE: [rancid] spanning tree/portcost changes causing > > > > diffs > > > > > > > > Maybe I am a little crazy but I don't think it would be that hard > > > > to do. Of course if depends where you want the changes to be > > > > ignored. If you want them to be tracked in CVS but not in the > > > > emails then I think that is easy to do, but I would like to see > > > > the emails reflect the CVS repo. So saying that I would say you > > > > either keep them or get rid of them with an option in rancid.conf. > > > > > > > > Opinions? > > > > > > > > -Lance > > > > > > > > > -------- Original Message -------- > > > > > Subject: [rancid] spanning tree/portcost changes causing diffs > > > > > From: Laker Netman > > > > > Date: Wed, August 01, 2007 12:11 pm > > > > > To: rancid-discuss at shrubbery.net > > > > > > > > > > I have read several threads on the subject of portcost changes > > > > > creating bogus diffs, but I haven't found one that presents a > > > > > solution. Is there one? > > > > > > > > > > I am running RANCID 2.3.2a6 > > > > > > > > > > > > > > > Thanks, > > > > > Laker > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ________________________________________________________________ > > > > > ____________________ > > > > > Fussy? Opinionated? Impossible to please? Perfect. Join > Yahoo!'s user panel and lay it on us. > > http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 > > > > > > > > > > _______________________________________________ > > > > > Rancid-discuss mailing list Rancid-discuss at shrubbery.net > > > > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > __________________________________________________________________ > > > > __ > > > > ________________ > > > > Choose the right car based on your needs. Check out Yahoo! Autos > new Car Finder tool. > > > > http://autos.yahoo.com/carfinder/ > > > > > > > > > > > > > > > > > > > > > > > > ____________________________________________________________________ > > > __ > > > ______________Ready for the edge of your seat? > > > Check out tonight's top picks on Yahoo! TV. > > > http://tv.yahoo.com/ > > > > _______________________________________________ > > 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 > > > _______________________________________________ > 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 regnar.lyngso at aak.com Fri Aug 3 09:05:41 2007 From: regnar.lyngso at aak.com (Regnar Bang =?ISO-8859-1?Q?Lyngs=F8?=) Date: Fri, 3 Aug 2007 11:05:41 +0200 Subject: [rancid] Re: rancid-2.3.2a6, clogin and HP Switches In-Reply-To: Message-ID: Hi, for HP equipment use hlogin and not clogin. clogin is for Cisco equipment. Regards, -- Regnar Bang Lyngs?, Network Administrator AarhusKarlshamn Denmark A/S M.P. Bruuns Gade 27, DK-8000 ?rhus C, Denmark Email: mailto:regnar.lyngso at aak.com Phone: +45 87 30 61 65 Mobile: +45 40 45 08 89 Registered office: Aarhus Reg. no: 15672099 feelgravityspull at gmail.com Sent by: rancid-discuss-bounces at shrubbery.net 03-08-2007 05:38 To rancid-discuss at shrubbery.net cc Subject [rancid] rancid-2.3.2a6, clogin and HP Switches Just installed the alpha version of rancid and trying to connect to a HP ProCurve 5406zl switch. Using clogin, it works 50% of the time, the other 50% if hangs on the " Press any key to continue" login page. Has anyone seen this before? Thanks. fyi: I had to add a "\n" to line 544 on clogin to send the enable command, otherwise just "nable" was sent. _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From rancid at gheek.net Mon Aug 6 16:00:25 2007 From: rancid at gheek.net (Lance) Date: Mon, 06 Aug 2007 09:00:25 -0700 Subject: [rancid] Re: spanning tree/portcost changes causing diffs Message-ID: <20070806090025.8e114e4890519e5179c192e02d6bca26.dec7d133b7.wbe@email.secureserver.net> Laker, Since you and others have been wanting this I have tried to figure out the easiest ways of doing it. So rather than posting a diff I will just post the couple of lines above and below where the new code will go I hope this helps. Let me know if it doesn't work. John H, Any chance getting this added to the next alpha release? # # bin/cat5rancid # The 2 new lines are directly below "# Dog gone Cool matches to process the rest of the config" # # Dog gone Cool matches to process the rest of the config /^set spantree priority.*$/ && next if (defined($ENV{'IGNORESPANTREE'})); # kill set spantree priority* /^set spantree port.*$/ && next if (defined($ENV{'IGNORESPANTREE'})); # kill set spantree port* /^#time: / && next; # kill time: /^tftp-server flash / && next; # kill any tftp remains /^ntp clock-period / && next; # kill ntp clock-period # # etc/rancid.conf # Place this anywhere in the rancid.conf # # Uncomment IGNORESPANTREE to ignore "set spantree port" and set # "spantree priority" messages in the diff email IGNORESPANTREE=YES; export IGNORESPANTREE -Lance > -------- Original Message -------- > Subject: [rancid] Re: spanning tree/portcost changes causing diffs > From: Lance > Date: Fri, August 03, 2007 9:15 am > To: Laker Netman > Cc: rancid-discuss at shrubbery.net > > Laker, > > So in other words you don't want to see them even in the CVS repo > correct? Filtering them out of the email is cake. 1 change to > control_rancid and you are good to go. > > -Lance > > > -------- Original Message -------- > > Subject: Re: [rancid] spanning tree/portcost changes causing diffs > > From: Laker Netman > > Date: Fri, August 03, 2007 6:51 am > > To: Lance > > Cc: rancid-discuss at shrubbery.net > > > > I understand that, but I'd prefer not to have them appear as configuration changes if possible, i.e., have the script ignore changes to those lines. It wouldn't affect restoring a config, because the switch would set the ports to their correct state anyway. > > > > Laker > > > > ----- Original Message ---- > > From: Lance > > To: Laker Netman > > Cc: rancid-discuss at shrubbery.net > > Sent: Thursday, August 2, 2007 7:12:29 PM > > Subject: RE: [rancid] spanning tree/portcost changes causing diffs > > > > Laker, > > > > This is directly related to ports changing state (aka someone turning > > on/off their pc). > > > > -Lance > > > > > > > -------- Original Message -------- > > > Subject: Re: [rancid] spanning tree/portcost changes causing diffs > > > From: Laker Netman > > > Date: Thu, August 02, 2007 1:13 pm > > > To: Lance > > > Cc: rancid-discuss at shrubbery.net > > > > > > Here's and example of what I get in email and CVS: > > > > > > Index: configs/192.168.20.206 > > > =================================================================== > > > retrieving revision 1.38 > > > diff -U4 -r1.38 192.168.20.206 > > > @@ -1072,10 +1072,10 @@ > > > set trunk 4/46 auto negotiate 1-1005,1025-4094 > > > set trunk 4/47 auto negotiate 1-1005,1025-4094 > > > set trunk 4/48 auto negotiate 1-1005,1025-4094 > > > set spantree portfast 4/1-48 disable > > > - set spantree portcost 4/1,4/5-10,4/12-13,4/21-22,4/25-26,4/31-32,4/38,4/45,4/47 19 > > > - set spantree portcost 4/2-4,4/11,4/14-20,4/23-24,4/27-30,4/33-37,4/39-44,4/46,4/48 100 > > > + set spantree portcost 4/1,4/5-10,4/12-13,4/21-22,4/25-26,4/28,4/31-32,4/38,4/45,4/47 19 > > > + set spantree portcost 4/2-4,4/11,4/14-20,4/23-24,4/27,4/29-30,4/33-37,4/39-44,4/46,4/48 100 > > > set spantree portpri 4/1-48 32 > > > set spantree portvlanpri 4/1 0 > > > set spantree portvlanpri 4/2 0 > > > set spantree portvlanpri 4/3 0 > > > @@ -1150,9 +1150,9 @@ > > > set spantree portvlancost 4/24 cost 99 > > > set spantree portvlancost 4/25 cost 18 > > > set spantree portvlancost 4/26 cost 18 > > > set spantree portvlancost 4/27 cost 99 > > > - set spantree portvlancost 4/28 cost 99 > > > + set spantree portvlancost 4/28 cost 18 > > > set spantree portvlancost 4/29 cost 99 > > > set spantree portvlancost 4/30 cost 99 > > > set spantree portvlancost 4/31 cost 18 > > > set spantree portvlancost 4/32 cost 18 > > > @@ -1270,10 +1270,10 @@ > > > set trunk 5/47 auto negotiate 1-1005,1025-4094 > > > set trunk 5/48 auto negotiate 1-1005,1025-4094 > > > set spantree portfast 5/26 enable > > > set spantree portfast 5/1-25,5/27-48 disable > > > - set spantree portcost 5/4,5/6,5/9-12,5/14-15,5/19,5/22-24,5/28,5/33,5/35,5/38,5/41,5/44-45,5/48 19 > > > - set spantree portcost 5/1-3,5/5,5/7-8,5/13,5/16-18,5/20-21,5/25-27,5/29-32,5/34,5/36-37,5/39-40,5/42-43,5/46-47 100 > > > + set spantree portcost 5/4,5/6,5/9-12,5/14-15,5/19,5/22-24,5/28,5/33,5/35,5/38,5/44-45,5/48 19 > > > + set spantree portcost 5/1-3,5/5,5/7-8,5/13,5/16-18,5/20-21,5/25-27,5/29-32,5/34,5/36-37,5/39-43,5/46-47 100 > > > set spantree portpri 5/1-48 32 > > > set spantree portvlanpri 5/1 0 > > > set spantree portvlanpri 5/2 0 > > > set spantree portvlanpri 5/3 0 > > > @@ -1361,9 +1361,9 @@ > > > set spantree portvlancost 5/37 cost 99 > > > set spantree portvlancost 5/38 cost 18 > > > set spantree portvlancost 5/39 cost 99 > > > set spantree portvlancost 5/40 cost 99 > > > - set spantree portvlancost 5/41 cost 18 > > > + set spantree portvlancost 5/41 cost 99 > > > set spantree portvlancost 5/42 cost 99 > > > set spantree portvlancost 5/43 cost 99 > > > set spantree portvlancost 5/44 cost 18 > > > set spantree portvlancost 5/45 cost 18 > > > @@ -1466,10 +1466,10 @@ > > > set trunk 6/47 auto negotiate 1-1005,1025-4094 > > > set trunk 6/48 auto negotiate 1-1005,1025-4094 > > > set spantree portfast 6/2,6/37 enable > > > set spantree portfast 6/1,6/3-36,6/38-48 disable > > > - set spantree portcost 6/1,6/3-5,6/9,6/15-18,6/23,6/37-38,6/40-43,6/46,6/48 19 > > > - set spantree portcost 6/2,6/6-8,6/10-14,6/19-22,6/24-36,6/39,6/44-45,6/47 100 > > > + set spantree portcost 6/1,6/3-5,6/9,6/13,6/15-18,6/23,6/37-38,6/40-43,6/46,6/48 19 > > > + set spantree portcost 6/2,6/6-8,6/10-12,6/14,6/19-22,6/24-36,6/39,6/44-45,6/47 100 > > > set spantree portpri 6/1-48 32 > > > set spantree portvlanpri 6/1 0 > > > set spantree portvlanpri 6/2 0 > > > set spantree portvlanpri 6/3 0 > > > @@ -1529,9 +1529,9 @@ > > > set spantree portvlancost 6/9 cost 18 > > > set spantree portvlancost 6/10 cost 99 > > > set spantree portvlancost 6/11 cost 99 > > > set spantree portvlancost 6/12 cost 99 > > > - set spantree portvlancost 6/13 cost 99 > > > + set spantree portvlancost 6/13 cost 18 > > > set spantree portvlancost 6/14 cost 99 > > > set spantree portvlancost 6/15 cost 18 > > > set spantree portvlancost 6/16 cost 18 > > > set spantree portvlancost 6/17 cost 18 > > > Index: configs/192.168.20.219 > > > =================================================================== > > > retrieving revision 1.28 > > > diff -U4 -r1.28 192.168.20.219 > > > @@ -668,10 +668,10 @@ > > > set trunk 3/46 auto dot1q 1-1005 > > > set trunk 3/47 auto dot1q 1-1005 > > > set trunk 3/48 auto dot1q 1-1005 > > > set spantree portfast 3/1-48 disable > > > - set spantree portcost 3/1-2,3/11-12,3/19,3/25,3/27-29,3/35,3/37-39,3/41,3/43,3/46-48 19 > > > - set spantree portcost 3/3-10,3/13-18,3/20-24,3/26,3/30-34,3/36,3/40,3/42,3/44-45 100 > > > + set spantree portcost 3/1,3/11-12,3/19,3/25,3/27-29,3/35,3/37-38,3/41,3/43,3/46-48 19 > > > + set spantree portcost 3/2-10,3/13-18,3/20-24,3/26,3/30-34,3/36,3/39-40,3/42,3/44-45 100 > > > set spantree portpri 3/1-48 32 > > > set spantree portvlanpri 3/1 0 > > > set spantree portvlanpri 3/2 0 > > > set spantree portvlanpri 3/3 0 > > > @@ -720,9 +720,9 @@ > > > set spantree portvlanpri 3/46 0 > > > set spantree portvlanpri 3/47 0 > > > set spantree portvlanpri 3/48 0 > > > set spantree portvlancost 3/1 cost 18 > > > - set spantree portvlancost 3/2 cost 18 > > > + set spantree portvlancost 3/2 cost 99 > > > set spantree portvlancost 3/3 cost 99 > > > set spantree portvlancost 3/4 cost 99 > > > set spantree portvlancost 3/5 cost 99 > > > set spantree portvlancost 3/6 cost 99 > > > @@ -757,9 +757,9 @@ > > > set spantree portvlancost 3/35 cost 18 > > > set spantree portvlancost 3/36 cost 99 > > > set spantree portvlancost 3/37 cost 18 > > > set spantree portvlancost 3/38 cost 18 > > > - set spantree portvlancost 3/39 cost 18 > > > + set spantree portvlancost 3/39 cost 99 > > > set spantree portvlancost 3/40 cost 99 > > > set spantree portvlancost 3/41 cost 18 > > > set spantree portvlancost 3/42 cost 99 > > > set spantree portvlancost 3/43 cost 18 > > > Index: configs/192.168.20.223 > > > =================================================================== > > > retrieving revision 1.37 > > > diff -U4 -r1.37 192.168.20.223 > > > @@ -713,10 +713,10 @@ > > > set trunk 4/47 auto dot1q 1-1005 > > > set trunk 4/48 auto dot1q 1-1005 > > > set spantree portfast 4/14 enable > > > set spantree portfast 4/1-13,4/15-48 disable > > > - set spantree portcost 4/1,4/10-11,4/17-18,4/21,4/23,4/25,4/27,4/29,4/32,4/34,4/38-39,4/42,4/44-45 19 > > > - set spantree portcost 4/2-9,4/12-16,4/19-20,4/22,4/24,4/26,4/28,4/30-31,4/33,4/35-37,4/40-41,4/43,4/46-48 100 > > > + set spantree portcost 4/1,4/10,4/17-18,4/21,4/23,4/25,4/27,4/29,4/32,4/34,4/38-39,4/42,4/44-45 19 > > > + set spantree portcost 4/2-9,4/11-16,4/19-20,4/22,4/24,4/26,4/28,4/30-31,4/33,4/35-37,4/40-41,4/43,4/46-48 100 > > > set spantree portpri 4/1-48 32 > > > set spantree portvlanpri 4/1 0 > > > set spantree portvlanpri 4/2 0 > > > set spantree portvlanpri 4/3 0 > > > @@ -774,9 +774,9 @@ > > > set spantree portvlancost 4/7 cost 99 > > > set spantree portvlancost 4/8 cost 99 > > > set spantree portvlancost 4/9 cost 99 > > > set spantree portvlancost 4/10 cost 18 > > > - set spantree portvlancost 4/11 cost 18 > > > + set spantree portvlancost 4/11 cost 99 > > > set spantree portvlancost 4/12 cost 99 > > > set spantree portvlancost 4/13 cost 99 > > > set spantree portvlancost 4/14 cost 99 > > > set spantree portvlancost 4/15 cost 99 > > > @@ -889,10 +889,10 @@ > > > set trunk 5/47 auto dot1q 1-1005 > > > set trunk 5/48 auto dot1q 1-1005 > > > set spantree portfast 5/10 enable > > > set spantree portfast 5/1-9,5/11-48 disable > > > - set spantree portcost 5/4,5/7,5/11-12,5/15,5/18,5/20,5/26-27,5/33,5/35-36,5/43 19 > > > - set spantree portcost 5/1-3,5/5-6,5/8-10,5/13-14,5/16-17,5/19,5/21-25,5/28-32,5/34,5/37-42,5/44-48 100 > > > + set spantree portcost 5/7,5/11-12,5/15,5/18,5/20,5/26-27,5/33,5/35-36,5/43 19 > > > + set spantree portcost 5/1-6,5/8-10,5/13-14,5/16-17,5/19,5/21-25,5/28-32,5/34,5/37-42,5/44-48 100 > > > set spantree portpri 5/1-48 32 > > > set spantree portvlanpri 5/1 0 > > > set spantree portvlanpri 5/2 0 > > > set spantree portvlanpri 5/3 0 > > > @@ -943,9 +943,9 @@ > > > set spantree portvlanpri 5/48 0 > > > set spantree portvlancost 5/1 cost 99 > > > set spantree portvlancost 5/2 cost 99 > > > set spantree portvlancost 5/3 cost 99 > > > - set spantree portvlancost 5/4 cost 18 > > > + set spantree portvlancost 5/4 cost 99 > > > set spantree portvlancost 5/5 cost 99 > > > set spantree portvlancost 5/6 cost 99 > > > set spantree portvlancost 5/7 cost 18 > > > set spantree portvlancost 5/8 cost 99 > > > @@ -1063,10 +1063,10 @@ > > > set trunk 6/47 auto dot1q 1-1005 > > > set trunk 6/48 auto dot1q 1-1005 > > > set spantree portfast 6/29,6/32 enable > > > set spantree portfast 6/1-28,6/30-31,6/33-48 disable > > > - set spantree portcost 6/9,6/17,6/26-27,6/30,6/33,6/36 19 > > > - set spantree portcost 6/1-8,6/10-16,6/18-25,6/28-29,6/31-32,6/34-35,6/37-48 100 > > > + set spantree portcost 6/9,6/17,6/24,6/26-27,6/30,6/33,6/36 19 > > > + set spantree portcost 6/1-8,6/10-16,6/18-23,6/25,6/28-29,6/31-32,6/34-35,6/37-48 100 > > > set spantree portpri 6/1-48 32 > > > set spantree portvlanpri 6/1 0 > > > set spantree portvlanpri 6/2 0 > > > set spantree portvlanpri 6/3 0 > > > @@ -1137,9 +1137,9 @@ > > > set spantree portvlancost 6/20 cost 99 > > > set spantree portvlancost 6/21 cost 99 > > > set spantree portvlancost 6/22 cost 99 > > > set spantree portvlancost 6/23 cost 99 > > > - set spantree portvlancost 6/24 cost 99 > > > + set spantree portvlancost 6/24 cost 18 > > > set spantree portvlancost 6/25 cost 99 > > > set spantree portvlancost 6/26 cost 18 > > > set spantree portvlancost 6/27 cost 18 > > > set spantree portvlancost 6/28 cost 99 > > > > > > ----- Original Message ---- > > > From: Lance > > > To: Laker Netman > > > Cc: rancid-discuss at shrubbery.net > > > Sent: Wednesday, August 1, 2007 2:39:20 PM > > > Subject: RE: [rancid] spanning tree/portcost changes causing diffs > > > > > > Maybe I am a little crazy but I don't think it would be that hard to do. > > > Of course if depends where you want the changes to be ignored. If you > > > want them to be tracked in CVS but not in the emails then I think that > > > is easy to do, but I would like to see the emails reflect the CVS repo. > > > So saying that I would say you either keep them or get rid of them with > > > an option in rancid.conf. > > > > > > Opinions? > > > > > > -Lance > > > > > > > -------- Original Message -------- > > > > Subject: [rancid] spanning tree/portcost changes causing diffs > > > > From: Laker Netman > > > > Date: Wed, August 01, 2007 12:11 pm > > > > To: rancid-discuss at shrubbery.net > > > > > > > > I have read several threads on the subject of portcost changes creating bogus diffs, but I haven't found one that presents a solution. Is there one? > > > > > > > > I am running RANCID 2.3.2a6 > > > > > > > > > > > > Thanks, > > > > Laker > > > > > > > > > > > > > > > > > > > > ____________________________________________________________________________________ > > > > Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 > > > > > > > > _______________________________________________ > > > > Rancid-discuss mailing list > > > > Rancid-discuss at shrubbery.net > > > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > > > > > > > > > > > > > > > > > > > > > > ____________________________________________________________________________________ > > > Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool. > > > http://autos.yahoo.com/carfinder/ > > > > > > > > > > > > > > > > ____________________________________________________________________________________Ready for the edge of your seat? > > Check out tonight's top picks on Yahoo! TV. > > http://tv.yahoo.com/ > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From Todd at equivoice.com Mon Aug 6 16:32:19 2007 From: Todd at equivoice.com (Todd Heide) Date: Mon, 6 Aug 2007 11:32:19 -0500 Subject: [rancid] File lock help Message-ID: <082FEA82DC985B4F8A6B412D5AC4E2207D67F2@exchange.Equivoice.local> I know I asked this before, but cant find the reply from a year ago. hourly config diffs failed: /tmp/.Customer_Routers.run.lock exists -rw-r----- 1 rancid netadm 0 Aug 2 14:10 /tmp/.Customer_Routers.run.lock How do I unlock the files? Also what would have locked them in the first place? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070806/1eba5e17/attachment.html From G.Ross at ccw.gov.uk Mon Aug 6 18:23:48 2007 From: G.Ross at ccw.gov.uk (Gordon Ross) Date: Mon, 06 Aug 2007 19:23:48 +0100 Subject: [rancid] clogin hanging on a Cisco router Message-ID: <46B77524.AC0B.0006.3@ccw.gov.uk> I started setting up RANCID for real. The first router I added (3745 running IOS 12.4.12) went fine. The next router I added (2811 running IOS 12.4.10a) isn't so good... When I run clogin to test, it gets an enable prompt fine, but when I type "q" to logout, nothing happens. I have to CTRL-C to break the connection. This happens with both TELNET & SSH connections. Any suggestions ? The only thing I can think of is a bug in IOS.. Thanks, GTG -- ? Gordon Ross, Network Manager/Rheolwr Rhydwaith Countryside Council for Wales/Cyngor Cefn Gwlad Cymru From mashcraft at omniture.com Mon Aug 6 18:28:40 2007 From: mashcraft at omniture.com (Mike Ashcraft) Date: Mon, 6 Aug 2007 12:28:40 -0600 Subject: [rancid] Re: clogin hanging on a Cisco router In-Reply-To: <46B77524.AC0B.0006.3@ccw.gov.uk> References: <46B77524.AC0B.0006.3@ccw.gov.uk> Message-ID: <45EB285310B55542A513F93230F0A533013AC98F@EXCHANGE0.orm.omniture.com> Sounds like you need to set autoenable properly in your .cloginrc file to correctly reflect the configuration and access level of the account rancid is using. Mike -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Gordon Ross Sent: Monday, August 06, 2007 12:24 PM To: rancid-discuss at shrubbery.net Subject: [rancid] clogin hanging on a Cisco router I started setting up RANCID for real. The first router I added (3745 running IOS 12.4.12) went fine. The next router I added (2811 running IOS 12.4.10a) isn't so good... When I run clogin to test, it gets an enable prompt fine, but when I type "q" to logout, nothing happens. I have to CTRL-C to break the connection. This happens with both TELNET & SSH connections. Any suggestions ? The only thing I can think of is a bug in IOS.. Thanks, GTG -- - Gordon Ross, Network Manager/Rheolwr Rhydwaith Countryside Council for Wales/Cyngor Cefn Gwlad Cymru _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From rancid at gheek.net Mon Aug 6 18:37:10 2007 From: rancid at gheek.net (Lance) Date: Mon, 06 Aug 2007 11:37:10 -0700 Subject: [rancid] Re: File lock help Message-ID: <20070806113710.8e114e4890519e5179c192e02d6bca26.e54e20acf1.wbe@email.secureserver.net> Todd, rm /tmp/.Customer_Routers.run.lock -Lance > -------- Original Message -------- > Subject: [rancid] File lock help > From: "Todd Heide" > Date: Mon, August 06, 2007 9:32 am > To: > > I know I asked this before, but cant find the reply from a year ago. > > > > hourly config diffs failed: /tmp/.Customer_Routers.run.lock exists > > -rw-r----- 1 rancid netadm 0 Aug 2 14:10 > /tmp/.Customer_Routers.run.lock > > > > > > > > How do I unlock the files? Also what would have locked them in the first > place?
_______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From laker_netman at yahoo.com Mon Aug 6 18:46:11 2007 From: laker_netman at yahoo.com (Laker Netman) Date: Mon, 6 Aug 2007 11:46:11 -0700 (PDT) Subject: [rancid] Re: spanning tree/portcost changes causing diffs Message-ID: <919613.53491.qm@web50502.mail.re2.yahoo.com> Awesome! My inbox and I thank you. And yes, I think this is a great addition for the next alpha. Ummm, any idea when this will become a beta? I've run it for a long time now and it's pretty stable! Thanks again, Laker ----- Original Message ---- From: Lance To: Laker Netman Cc: rancid-discuss at shrubbery.net Sent: Monday, August 6, 2007 11:00:25 AM Subject: RE: [rancid] Re: spanning tree/portcost changes causing diffs Laker, Since you and others have been wanting this I have tried to figure out the easiest ways of doing it. So rather than posting a diff I will just post the couple of lines above and below where the new code will go I hope this helps. Let me know if it doesn't work. John H, Any chance getting this added to the next alpha release? # # bin/cat5rancid # The 2 new lines are directly below "# Dog gone Cool matches to process the rest of the config" # # Dog gone Cool matches to process the rest of the config /^set spantree priority.*$/ && next if (defined($ENV{'IGNORESPANTREE'})); # kill set spantree priority* /^set spantree port.*$/ && next if (defined($ENV{'IGNORESPANTREE'})); # kill set spantree port* /^#time: / && next; # kill time: /^tftp-server flash / && next; # kill any tftp remains /^ntp clock-period / && next; # kill ntp clock-period # # etc/rancid.conf # Place this anywhere in the rancid.conf # # Uncomment IGNORESPANTREE to ignore "set spantree port" and set # "spantree priority" messages in the diff email IGNORESPANTREE=YES; export IGNORESPANTREE -Lance > -------- Original Message -------- > Subject: [rancid] Re: spanning tree/portcost changes causing diffs > From: Lance > Date: Fri, August 03, 2007 9:15 am > To: Laker Netman > Cc: rancid-discuss at shrubbery.net > > Laker, > > So in other words you don't want to see them even in the CVS repo > correct? Filtering them out of the email is cake. 1 change to > control_rancid and you are good to go. > > -Lance > > > -------- Original Message -------- > > Subject: Re: [rancid] spanning tree/portcost changes causing diffs > > From: Laker Netman > > Date: Fri, August 03, 2007 6:51 am > > To: Lance > > Cc: rancid-discuss at shrubbery.net > > > > I understand that, but I'd prefer not to have them appear as configuration changes if possible, i.e., have the script ignore changes to those lines. It wouldn't affect restoring a config, because the switch would set the ports to their correct state anyway. > > > > Laker > > > > ----- Original Message ---- > > From: Lance > > To: Laker Netman > > Cc: rancid-discuss at shrubbery.net > > Sent: Thursday, August 2, 2007 7:12:29 PM > > Subject: RE: [rancid] spanning tree/portcost changes causing diffs > > > > Laker, > > > > This is directly related to ports changing state (aka someone turning > > on/off their pc). > > > > -Lance > > > > > > > -------- Original Message -------- > > > Subject: Re: [rancid] spanning tree/portcost changes causing diffs > > > From: Laker Netman > > > Date: Thu, August 02, 2007 1:13 pm > > > To: Lance > > > Cc: rancid-discuss at shrubbery.net > > > > > > Here's and example of what I get in email and CVS: > > > > > > Index: configs/192.168.20.206 > > > =================================================================== > > > retrieving revision 1.38 > > > diff -U4 -r1.38 192.168.20.206 > > > @@ -1072,10 +1072,10 @@ > > > set trunk 4/46 auto negotiate 1-1005,1025-4094 > > > set trunk 4/47 auto negotiate 1-1005,1025-4094 > > > set trunk 4/48 auto negotiate 1-1005,1025-4094 > > > set spantree portfast 4/1-48 disable > > > - set spantree portcost 4/1,4/5-10,4/12-13,4/21-22,4/25-26,4/31-32,4/38,4/45,4/47 19 > > > - set spantree portcost 4/2-4,4/11,4/14-20,4/23-24,4/27-30,4/33-37,4/39-44,4/46,4/48 100 > > > + set spantree portcost 4/1,4/5-10,4/12-13,4/21-22,4/25-26,4/28,4/31-32,4/38,4/45,4/47 19 > > > + set spantree portcost 4/2-4,4/11,4/14-20,4/23-24,4/27,4/29-30,4/33-37,4/39-44,4/46,4/48 100 > > > set spantree portpri 4/1-48 32 > > > set spantree portvlanpri 4/1 0 > > > set spantree portvlanpri 4/2 0 > > > set spantree portvlanpri 4/3 0 > > > @@ -1150,9 +1150,9 @@ > > > set spantree portvlancost 4/24 cost 99 > > > set spantree portvlancost 4/25 cost 18 > > > set spantree portvlancost 4/26 cost 18 > > > set spantree portvlancost 4/27 cost 99 > > > - set spantree portvlancost 4/28 cost 99 > > > + set spantree portvlancost 4/28 cost 18 > > > set spantree portvlancost 4/29 cost 99 > > > set spantree portvlancost 4/30 cost 99 > > > set spantree portvlancost 4/31 cost 18 > > > set spantree portvlancost 4/32 cost 18 > > > @@ -1270,10 +1270,10 @@ > > > set trunk 5/47 auto negotiate 1-1005,1025-4094 > > > set trunk 5/48 auto negotiate 1-1005,1025-4094 > > > set spantree portfast 5/26 enable > > > set spantree portfast 5/1-25,5/27-48 disable > > > - set spantree portcost 5/4,5/6,5/9-12,5/14-15,5/19,5/22-24,5/28,5/33,5/35,5/38,5/41,5/44-45,5/48 19 > > > - set spantree portcost 5/1-3,5/5,5/7-8,5/13,5/16-18,5/20-21,5/25-27,5/29-32,5/34,5/36-37,5/39-40,5/42-43,5/46-47 100 > > > + set spantree portcost 5/4,5/6,5/9-12,5/14-15,5/19,5/22-24,5/28,5/33,5/35,5/38,5/44-45,5/48 19 > > > + set spantree portcost 5/1-3,5/5,5/7-8,5/13,5/16-18,5/20-21,5/25-27,5/29-32,5/34,5/36-37,5/39-43,5/46-47 100 > > > set spantree portpri 5/1-48 32 > > > set spantree portvlanpri 5/1 0 > > > set spantree portvlanpri 5/2 0 > > > set spantree portvlanpri 5/3 0 > > > @@ -1361,9 +1361,9 @@ > > > set spantree portvlancost 5/37 cost 99 > > > set spantree portvlancost 5/38 cost 18 > > > set spantree portvlancost 5/39 cost 99 > > > set spantree portvlancost 5/40 cost 99 > > > - set spantree portvlancost 5/41 cost 18 > > > + set spantree portvlancost 5/41 cost 99 > > > set spantree portvlancost 5/42 cost 99 > > > set spantree portvlancost 5/43 cost 99 > > > set spantree portvlancost 5/44 cost 18 > > > set spantree portvlancost 5/45 cost 18 > > > @@ -1466,10 +1466,10 @@ > > > set trunk 6/47 auto negotiate 1-1005,1025-4094 > > > set trunk 6/48 auto negotiate 1-1005,1025-4094 > > > set spantree portfast 6/2,6/37 enable > > > set spantree portfast 6/1,6/3-36,6/38-48 disable > > > - set spantree portcost 6/1,6/3-5,6/9,6/15-18,6/23,6/37-38,6/40-43,6/46,6/48 19 > > > - set spantree portcost 6/2,6/6-8,6/10-14,6/19-22,6/24-36,6/39,6/44-45,6/47 100 > > > + set spantree portcost 6/1,6/3-5,6/9,6/13,6/15-18,6/23,6/37-38,6/40-43,6/46,6/48 19 > > > + set spantree portcost 6/2,6/6-8,6/10-12,6/14,6/19-22,6/24-36,6/39,6/44-45,6/47 100 > > > set spantree portpri 6/1-48 32 > > > set spantree portvlanpri 6/1 0 > > > set spantree portvlanpri 6/2 0 > > > set spantree portvlanpri 6/3 0 > > > @@ -1529,9 +1529,9 @@ > > > set spantree portvlancost 6/9 cost 18 > > > set spantree portvlancost 6/10 cost 99 > > > set spantree portvlancost 6/11 cost 99 > > > set spantree portvlancost 6/12 cost 99 > > > - set spantree portvlancost 6/13 cost 99 > > > + set spantree portvlancost 6/13 cost 18 > > > set spantree portvlancost 6/14 cost 99 > > > set spantree portvlancost 6/15 cost 18 > > > set spantree portvlancost 6/16 cost 18 > > > set spantree portvlancost 6/17 cost 18 > > > Index: configs/192.168.20.219 > > > =================================================================== > > > retrieving revision 1.28 > > > diff -U4 -r1.28 192.168.20.219 > > > @@ -668,10 +668,10 @@ > > > set trunk 3/46 auto dot1q 1-1005 > > > set trunk 3/47 auto dot1q 1-1005 > > > set trunk 3/48 auto dot1q 1-1005 > > > set spantree portfast 3/1-48 disable > > > - set spantree portcost 3/1-2,3/11-12,3/19,3/25,3/27-29,3/35,3/37-39,3/41,3/43,3/46-48 19 > > > - set spantree portcost 3/3-10,3/13-18,3/20-24,3/26,3/30-34,3/36,3/40,3/42,3/44-45 100 > > > + set spantree portcost 3/1,3/11-12,3/19,3/25,3/27-29,3/35,3/37-38,3/41,3/43,3/46-48 19 > > > + set spantree portcost 3/2-10,3/13-18,3/20-24,3/26,3/30-34,3/36,3/39-40,3/42,3/44-45 100 > > > set spantree portpri 3/1-48 32 > > > set spantree portvlanpri 3/1 0 > > > set spantree portvlanpri 3/2 0 > > > set spantree portvlanpri 3/3 0 > > > @@ -720,9 +720,9 @@ > > > set spantree portvlanpri 3/46 0 > > > set spantree portvlanpri 3/47 0 > > > set spantree portvlanpri 3/48 0 > > > set spantree portvlancost 3/1 cost 18 > > > - set spantree portvlancost 3/2 cost 18 > > > + set spantree portvlancost 3/2 cost 99 > > > set spantree portvlancost 3/3 cost 99 > > > set spantree portvlancost 3/4 cost 99 > > > set spantree portvlancost 3/5 cost 99 > > > set spantree portvlancost 3/6 cost 99 > > > @@ -757,9 +757,9 @@ > > > set spantree portvlancost 3/35 cost 18 > > > set spantree portvlancost 3/36 cost 99 > > > set spantree portvlancost 3/37 cost 18 > > > set spantree portvlancost 3/38 cost 18 > > > - set spantree portvlancost 3/39 cost 18 > > > + set spantree portvlancost 3/39 cost 99 > > > set spantree portvlancost 3/40 cost 99 > > > set spantree portvlancost 3/41 cost 18 > > > set spantree portvlancost 3/42 cost 99 > > > set spantree portvlancost 3/43 cost 18 > > > Index: configs/192.168.20.223 > > > =================================================================== > > > retrieving revision 1.37 > > > diff -U4 -r1.37 192.168.20.223 > > > @@ -713,10 +713,10 @@ > > > set trunk 4/47 auto dot1q 1-1005 > > > set trunk 4/48 auto dot1q 1-1005 > > > set spantree portfast 4/14 enable > > > set spantree portfast 4/1-13,4/15-48 disable > > > - set spantree portcost 4/1,4/10-11,4/17-18,4/21,4/23,4/25,4/27,4/29,4/32,4/34,4/38-39,4/42,4/44-45 19 > > > - set spantree portcost 4/2-9,4/12-16,4/19-20,4/22,4/24,4/26,4/28,4/30-31,4/33,4/35-37,4/40-41,4/43,4/46-48 100 > > > + set spantree portcost 4/1,4/10,4/17-18,4/21,4/23,4/25,4/27,4/29,4/32,4/34,4/38-39,4/42,4/44-45 19 > > > + set spantree portcost 4/2-9,4/11-16,4/19-20,4/22,4/24,4/26,4/28,4/30-31,4/33,4/35-37,4/40-41,4/43,4/46-48 100 > > > set spantree portpri 4/1-48 32 > > > set spantree portvlanpri 4/1 0 > > > set spantree portvlanpri 4/2 0 > > > set spantree portvlanpri 4/3 0 > > > @@ -774,9 +774,9 @@ > > > set spantree portvlancost 4/7 cost 99 > > > set spantree portvlancost 4/8 cost 99 > > > set spantree portvlancost 4/9 cost 99 > > > set spantree portvlancost 4/10 cost 18 > > > - set spantree portvlancost 4/11 cost 18 > > > + set spantree portvlancost 4/11 cost 99 > > > set spantree portvlancost 4/12 cost 99 > > > set spantree portvlancost 4/13 cost 99 > > > set spantree portvlancost 4/14 cost 99 > > > set spantree portvlancost 4/15 cost 99 > > > @@ -889,10 +889,10 @@ > > > set trunk 5/47 auto dot1q 1-1005 > > > set trunk 5/48 auto dot1q 1-1005 > > > set spantree portfast 5/10 enable > > > set spantree portfast 5/1-9,5/11-48 disable > > > - set spantree portcost 5/4,5/7,5/11-12,5/15,5/18,5/20,5/26-27,5/33,5/35-36,5/43 19 > > > - set spantree portcost 5/1-3,5/5-6,5/8-10,5/13-14,5/16-17,5/19,5/21-25,5/28-32,5/34,5/37-42,5/44-48 100 > > > + set spantree portcost 5/7,5/11-12,5/15,5/18,5/20,5/26-27,5/33,5/35-36,5/43 19 > > > + set spantree portcost 5/1-6,5/8-10,5/13-14,5/16-17,5/19,5/21-25,5/28-32,5/34,5/37-42,5/44-48 100 > > > set spantree portpri 5/1-48 32 > > > set spantree portvlanpri 5/1 0 > > > set spantree portvlanpri 5/2 0 > > > set spantree portvlanpri 5/3 0 > > > @@ -943,9 +943,9 @@ > > > set spantree portvlanpri 5/48 0 > > > set spantree portvlancost 5/1 cost 99 > > > set spantree portvlancost 5/2 cost 99 > > > set spantree portvlancost 5/3 cost 99 > > > - set spantree portvlancost 5/4 cost 18 > > > + set spantree portvlancost 5/4 cost 99 > > > set spantree portvlancost 5/5 cost 99 > > > set spantree portvlancost 5/6 cost 99 > > > set spantree portvlancost 5/7 cost 18 > > > set spantree portvlancost 5/8 cost 99 > > > @@ -1063,10 +1063,10 @@ > > > set trunk 6/47 auto dot1q 1-1005 > > > set trunk 6/48 auto dot1q 1-1005 > > > set spantree portfast 6/29,6/32 enable > > > set spantree portfast 6/1-28,6/30-31,6/33-48 disable > > > - set spantree portcost 6/9,6/17,6/26-27,6/30,6/33,6/36 19 > > > - set spantree portcost 6/1-8,6/10-16,6/18-25,6/28-29,6/31-32,6/34-35,6/37-48 100 > > > + set spantree portcost 6/9,6/17,6/24,6/26-27,6/30,6/33,6/36 19 > > > + set spantree portcost 6/1-8,6/10-16,6/18-23,6/25,6/28-29,6/31-32,6/34-35,6/37-48 100 > > > set spantree portpri 6/1-48 32 > > > set spantree portvlanpri 6/1 0 > > > set spantree portvlanpri 6/2 0 > > > set spantree portvlanpri 6/3 0 > > > @@ -1137,9 +1137,9 @@ > > > set spantree portvlancost 6/20 cost 99 > > > set spantree portvlancost 6/21 cost 99 > > > set spantree portvlancost 6/22 cost 99 > > > set spantree portvlancost 6/23 cost 99 > > > - set spantree portvlancost 6/24 cost 99 > > > + set spantree portvlancost 6/24 cost 18 > > > set spantree portvlancost 6/25 cost 99 > > > set spantree portvlancost 6/26 cost 18 > > > set spantree portvlancost 6/27 cost 18 > > > set spantree portvlancost 6/28 cost 99 > > > > > > ----- Original Message ---- > > > From: Lance > > > To: Laker Netman > > > Cc: rancid-discuss at shrubbery.net > > > Sent: Wednesday, August 1, 2007 2:39:20 PM > > > Subject: RE: [rancid] spanning tree/portcost changes causing diffs > > > > > > Maybe I am a little crazy but I don't think it would be that hard to do. > > > Of course if depends where you want the changes to be ignored. If you > > > want them to be tracked in CVS but not in the emails then I think that > > > is easy to do, but I would like to see the emails reflect the CVS repo. > > > So saying that I would say you either keep them or get rid of them with > > > an option in rancid.conf. > > > > > > Opinions? > > > > > > -Lance > > > > > > > -------- Original Message -------- > > > > Subject: [rancid] spanning tree/portcost changes causing diffs > > > > From: Laker Netman > > > > Date: Wed, August 01, 2007 12:11 pm > > > > To: rancid-discuss at shrubbery.net > > > > > > > > I have read several threads on the subject of portcost changes creating bogus diffs, but I haven't found one that presents a solution. Is there one? > > > > > > > > I am running RANCID 2.3.2a6 > > > > > > > > > > > > Thanks, > > > > Laker > > > > > > > > > > > > > > > > > > > > ____________________________________________________________________________________ > > > > Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 > > > > > > > > _______________________________________________ > > > > Rancid-discuss mailing list > > > > Rancid-discuss at shrubbery.net > > > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > > > > > > > > > > > > > > > > > > > > > > ____________________________________________________________________________________ > > > Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool. > > > http://autos.yahoo.com/carfinder/ > > > > > > > > > > > > > > > > ____________________________________________________________________________________Ready for the edge of your seat? > > Check out tonight's top picks on Yahoo! TV. > > http://tv.yahoo.com/ > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss ____________________________________________________________________________________ Need a vacation? Get great deals to amazing places on Yahoo! Travel. http://travel.yahoo.com/ From Todd at equivoice.com Mon Aug 6 19:02:29 2007 From: Todd at equivoice.com (Todd Heide) Date: Mon, 6 Aug 2007 14:02:29 -0500 Subject: [rancid] Re: File lock help In-Reply-To: <20070806113710.8e114e4890519e5179c192e02d6bca26.e54e20acf1.wbe@email.secureserver.net> Message-ID: <082FEA82DC985B4F8A6B412D5AC4E2207D6838@exchange.Equivoice.local> Thanks Guys, it was a DOH moment on my part, I forgot it is a hidden file and couldn't find it due to a lack of using the -a after issuing ls. Its working again. Thanks Todd Heide Equivoice Inc. CCNA CWLSS CS-CISecS 847-235-3308 Nothing ever goes as planned, Its a hell of a notion, Even pharaohs turn to sand, Like a drop in the ocean -----Original Message----- From: Lance [mailto:rancid at gheek.net] Sent: Monday, August 06, 2007 1:37 PM To: Todd Heide Cc: rancid-discuss at shrubbery.net Subject: RE: [rancid] File lock help Todd, rm /tmp/.Customer_Routers.run.lock -Lance > -------- Original Message -------- > Subject: [rancid] File lock help > From: "Todd Heide" > Date: Mon, August 06, 2007 9:32 am > To: > > I know I asked this before, but cant find the reply from a year ago. > > > > hourly config diffs failed: /tmp/.Customer_Routers.run.lock exists > > -rw-r----- 1 rancid netadm 0 Aug 2 14:10 > /tmp/.Customer_Routers.run.lock > > > > > > > > How do I unlock the files? Also what would have locked them in the first > place?
_______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From rancid at gheek.net Mon Aug 6 22:31:10 2007 From: rancid at gheek.net (Lance) Date: Mon, 06 Aug 2007 15:31:10 -0700 Subject: [rancid] Re: File lock help Message-ID: <20070806153110.8e114e4890519e5179c192e02d6bca26.012322063e.wbe@email.secureserver.net> These lock files should never be left behind unless the scripts aren't finishing correctly. -Lance > -------- Original Message -------- > Subject: Re: [rancid] Re: File lock help > From: Manuel Noriega > Date: Mon, August 06, 2007 2:59 pm > To: Lance > Cc: Todd Heide , rancid-discuss at shrubbery.net > > I also kept finding these lock files which would not permit RANCID to > run, and I would only find out a couple of days later when I noticed > some notifications not being sent. > > Si I know it's a bit drastic, but I placed a script in cron.daily to > remove these files periodcally. > > ================= clean-locks-rancid ================= > #!/bin/sh > > rm -rf /tmp/.*.lock > ================================================== > > > Sincerely, > > Manuel Noriega > ISP Engineer
13 CALLE 3-40, ZONA 10 > 15 NIVEL, OFICINA 15-01 > GUATEMALA CITY, C.A. > PBX (502) 2279 0099 > FAX (502) 2279 0003 > > www.amnetdatos.com > > > On Aug 6, 2007, at 12:37 PM, Lance wrote: > > > Todd, > > > > rm /tmp/.Customer_Routers.run.lock > > > > > > -Lance > > > >> -------- Original Message -------- > >> Subject: [rancid] File lock help > >> From: "Todd Heide" > >> Date: Mon, August 06, 2007 9:32 am > >> To: > >> > >> I know I asked this before, but cant find the reply from a year ago. > >> > >> > >> > >> hourly config diffs failed: /tmp/.Customer_Routers.run.lock exists > >> > >> -rw-r----- 1 rancid netadm 0 Aug 2 14:10 > >> /tmp/.Customer_Routers.run.lock > >> > >> > >> > >> > >> > >> > >> > >> How do I unlock the files? Also what would have locked them in the > >> first > >> place?
_______________________________________________ > >> 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 jbirdsall at gmail.com Mon Aug 6 21:11:58 2007 From: jbirdsall at gmail.com (Jack G Birdsall) Date: Mon, 6 Aug 2007 16:11:58 -0500 Subject: [rancid] cisco ips v5.x & Rancid Message-ID: I was reading a thread archived a few months back in regards to the Cisco IPS and Rancid backups. The post included scripts and the relevant clogin edit. Of the two scripts cited, only the one defined as ciscoips was archived. A quick google yielded no good results. Anyone here using this or a similar method? Any guidance is appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070806/47962c76/attachment.html From rancid at gheek.net Mon Aug 6 23:29:16 2007 From: rancid at gheek.net (Lance) Date: Mon, 06 Aug 2007 16:29:16 -0700 Subject: [rancid] [FWD: Re: Cisco IPS V5.X & Rancid] Message-ID: <20070806162916.8e114e4890519e5179c192e02d6bca26.138b699d48.wbe@email.secureserver.net> Here you go. > -------- Original Message -------- > Subject: [rancid] Re: Cisco IPS V5.X & Rancid > From: "Jeremy M. Guthrie" > Date: Mon, May 07, 2007 10:50 am > To: john heasley > Cc: Rancid-discuss at shrubbery.net > > The terminal type was what 'made it angry'. > > However, I did fix that and here is the diff for rancid-fe: > diff --recursive new/ old/ > diff --recursive new/rancid-fe old/rancid-fe > 35d34 > < elsif ($vendor =~ /^ciscoips$/i) { exec('ciscoips', $router); } > > The attached are my scripts for the IPS: ipslogin and ciscoips. > > The AGM setup did not work for me. I'll dig into that in a bit. > > On Mon, 7 May 2007, john heasley wrote: > > > Mon, May 07, 2007 at 01:11:26AM +0000, rancid at dangermen.com: > >> I am working on writing a RANCID interpretter for Cisco's IPS V5.X/6.X > >> line. I have a modified clogin and have writen the ciscoips subsystem. > >> The issue I have is that I can manually run the debug file just fine. > >> However, clogin reports 'Error: EOF received' and dumps out. Cisco's IPS > >> accepts the username from SSH but does not prompt again for it. So my one > >> modification allows my ciscoips subsystem to tell clogin not to send the > >> username. In any case, I'm at a loss as to why I would be getting 'Error: > >> EOF received'. If I run the ciscoips -d hostname, I don't see it. > >> However, if I add it to the router.db, then I get the error message. Any > >> backround on the clogin EOF error would be much appreciated. > > > > I'd guess that it dislikes the TERM you get from the cron. The AGM does > > that, IIRC. > > > > BTW, this thing looks awefully similar to the AGM. Have you tried that > > rancid device type? > >
_______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss -------------- next part -------------- A non-text attachment was scrubbed... Name: ciscoips Type: application/x-perl Size: 10410 bytes Desc: not available Url : http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070806/ef750639/attachment.bin -------------- next part -------------- A non-text attachment was scrubbed... Name: ipslogin Type: text/plain,english Size: 25290 bytes Desc: not available Url : http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070806/ef750639/attachment-0001.bin From cstave at gmail.com Mon Aug 6 17:41:15 2007 From: cstave at gmail.com (Chris Stave) Date: Mon, 6 Aug 2007 13:41:15 -0400 Subject: [rancid] Re: File lock help In-Reply-To: <082FEA82DC985B4F8A6B412D5AC4E2207D67F2@exchange.Equivoice.local> References: <082FEA82DC985B4F8A6B412D5AC4E2207D67F2@exchange.Equivoice.local> Message-ID: <5471c93d0708061041q5698c9dbp412e162d30f6b14e@mail.gmail.com> To unlock, you just delete the file in question, /tmp/.Customer_Routers.run.lock This file gets created during the hourly run, and sometimes doesn't get properly removed. Chris Stave Computing and Network Services Drew University On 8/6/07, Todd Heide wrote: > > I know I asked this before, but cant find the reply from a year ago. > > > > hourly config diffs failed: /tmp/.Customer_Routers.run.lock exists > > -rw-r----- 1 rancid netadm 0 Aug 2 14:10 /tmp/.Customer_Routers.run.lock > > > > > > > > How do I unlock the files? Also what would have locked them in the first > place? > > _______________________________________________ > 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/20070806/4f2606ef/attachment.html From p.mahan at ucl.ac.uk Tue Aug 7 10:43:29 2007 From: p.mahan at ucl.ac.uk (Paul Mahan) Date: Tue, 7 Aug 2007 11:43:29 +0100 Subject: [rancid] IOS Commands Message-ID: <006701c7d8df$caef5e60$47132880@tallpaul> Hi, We have Cisco 1200/ 1130 Access Points running IOS. I've got RANCID up and running and everything appears to be OK except the diff command on the flash. For whatever reason the timestamp on the flash files changes by a matter of seconds: <... =================================================================== retrieving revision 1.4 diff -U 4 -r1.4 @@ -26,12 +26,12 @@ !BootFlash: buffer size: 32768 !BootFlash: Mode Button: on ! !Flash: Directory of flash:/ - !Flash: 2 -rwx 6642 Jul 30 2007 01:01:14 +00:00 config.txt - !Flash: 4 -rwx 3860 Jul 30 2007 01:01:14 +00:00 private-config + !Flash: 2 -rwx 3860 Jul 31 2007 01:01:20 +00:00 private-config + !Flash: 4 -rwx 3096 Jul 31 2007 01:01:20 +00:00 private-multiple-fs + !Flash: 3 -rwx 6642 Jul 31 2007 01:01:20 +00:00 config.txt !Flash: 7 drwx 512 Jan 16 2007 23:32:55 +00:00 c1200-k9w7-mx.123-8.JEA - !Flash: 5 -rwx 3096 Jul 30 2007 01:01:14 +00:00 private-multiple-fs !Flash: 6 -rwx 790 Mar 01 2002 00:00:09 +00:00 env_vars !Flash: 7741440 bytes total (2767872 bytes free) ! ! ...> Subsequently, every time RANCID is executed a diff in the flash is found on router.db device and a 1Mb config diff file is emailed out. I've commented out all dir and show flash commands in the @commandtable section of the /usr/local/rancid/bin/rancid file but it is still emailing diffs in the flash. Anyone got any suggestions? Paul From yuval.ben.ari at gmail.com Tue Aug 7 14:59:10 2007 From: yuval.ben.ari at gmail.com (Yuval Ben Ari) Date: Tue, 7 Aug 2007 17:59:10 +0300 Subject: [rancid] running rancid-run manually generates false changes Message-ID: Hi, I have a strange and annoying problem. when rancid-run is launched from cronjob (on user "rancid" crontab) all is ok. but if I try to run it manually on some groups or router even if I am logged in as user rancid while doing it, it create false diffs of router in all the groups and I get following mail: ----------- Subject: changes in groupname routers Routers changed to up: routerx:cisco Added routers: routerx:cisco Deleted routers: routerx:cisco ----------- such mail for every group I have. also if I try to run with command like this: /bin/su --command="/home/rancid/bin/rancid-run -r routername" - rancid I found it is related to control_rancid which falsely detects a change for some reason. any idea ? Thanks From david+rancid at luyer.net Tue Aug 7 16:57:20 2007 From: david+rancid at luyer.net (David Luyer) Date: Tue, 7 Aug 2007 09:57:20 -0700 (PDT) Subject: [rancid] Re: running rancid-run manually generates false changes In-Reply-To: References: Message-ID: <52773.208.201.244.10.1186505840.squirrel@www.luyer.net> > Hi, > I have a strange and annoying problem. > when rancid-run is launched from cronjob (on user "rancid" crontab) all is > ok. > but if I try to run it manually on some groups or router even if I am > logged in as user rancid while doing it, it create false diffs of > router in all the groups and I get following mail: > > ----------- > Subject: changes in groupname routers > Routers changed to up: > routerx:cisco > > Added routers: > routerx:cisco > > Deleted routers: > routerx:cisco > ----------- I take it you have multiple routers in each of these sections of the email? Some of the state files from RANCID are sorted. Some of the tools in the control_rancid script assume consistent sorting of the 'before' and 'after' files. Your cron daemon and your login session may be using different locales (with different sort orders)? David. From rancid at gheek.net Tue Aug 7 20:09:18 2007 From: rancid at gheek.net (Lance) Date: Tue, 07 Aug 2007 13:09:18 -0700 Subject: [rancid] Re: IOS Commands Message-ID: <20070807130918.8e114e4890519e5179c192e02d6bca26.efb68fc7e3.wbe@email.secureserver.net> Paul, I have RANCID ignore the flash as it has no real relevance to me. You can comment it out in you bin/rancid script file where it mentions commands. Look for ShowRun that should help you find the area I am talking about. It is in an array toward the bottom. -Lance > -------- Original Message -------- > Subject: [rancid] IOS Commands > From: "Paul Mahan" > Date: Tue, August 07, 2007 3:43 am > To: > > Hi, > > We have Cisco 1200/ 1130 Access Points running IOS. I've got RANCID up and > running and everything appears to be OK except the diff command on the > flash. For whatever reason the timestamp on the flash files changes by a > matter of seconds: > > <... > =================================================================== > retrieving revision 1.4 > diff -U 4 -r1.4 > @@ -26,12 +26,12 @@ > !BootFlash: buffer size: 32768 > !BootFlash: Mode Button: on > ! > !Flash: Directory of flash:/ > - !Flash: 2 -rwx 6642 Jul 30 2007 01:01:14 +00:00 config.txt > - !Flash: 4 -rwx 3860 Jul 30 2007 01:01:14 +00:00 > private-config > + !Flash: 2 -rwx 3860 Jul 31 2007 01:01:20 +00:00 > private-config > + !Flash: 4 -rwx 3096 Jul 31 2007 01:01:20 +00:00 > private-multiple-fs > + !Flash: 3 -rwx 6642 Jul 31 2007 01:01:20 +00:00 config.txt > !Flash: 7 drwx 512 Jan 16 2007 23:32:55 +00:00 > c1200-k9w7-mx.123-8.JEA > - !Flash: 5 -rwx 3096 Jul 30 2007 01:01:14 +00:00 > private-multiple-fs > !Flash: 6 -rwx 790 Mar 01 2002 00:00:09 +00:00 env_vars > !Flash: 7741440 bytes total (2767872 bytes free) > ! > ! > ...> > > Subsequently, every time RANCID is executed a diff in the flash is found on > router.db device and a 1Mb config diff file is emailed out. I've commented > out all dir and show flash commands in the @commandtable section of the > /usr/local/rancid/bin/rancid file but it is still emailing diffs in the > flash. Anyone got any suggestions? > > Paul > > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From rancid at gheek.net Tue Aug 7 20:12:34 2007 From: rancid at gheek.net (Lance) Date: Tue, 07 Aug 2007 13:12:34 -0700 Subject: [rancid] Re: running rancid-run manually generates false changes Message-ID: <20070807131234.8e114e4890519e5179c192e02d6bca26.4a7a9967ef.wbe@email.secureserver.net> David/Yuval, Make sure you source the /etc/rancid.conf file so that you have all the same environmental variable...including TERM. Different TERMs cause weird issues. -Lance > -------- Original Message -------- > Subject: [rancid] Re: running rancid-run manually generates false > changes > From: "David Luyer" > Date: Tue, August 07, 2007 9:57 am > To: "Yuval Ben Ari" > Cc: rancid-discuss at shrubbery.net > > > Hi, > > I have a strange and annoying problem. > > when rancid-run is launched from cronjob (on user "rancid" crontab) all is > > ok. > > but if I try to run it manually on some groups or router even if I am > > logged in as user rancid while doing it, it create false diffs of > > router in all the groups and I get following mail: > > > > ----------- > > Subject: changes in groupname routers > > Routers changed to up: > > routerx:cisco > > > > Added routers: > > routerx:cisco > > > > Deleted routers: > > routerx:cisco > > ----------- > > I take it you have multiple routers in each of these sections of the email? > > Some of the state files from RANCID are sorted. Some of the tools in the > control_rancid script assume consistent sorting of the 'before' and 'after' > files. > > Your cron daemon and your login session may be using different locales > (with different sort orders)? > > David. > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From aevans at kineto.com Tue Aug 7 20:35:51 2007 From: aevans at kineto.com (Alan Evans) Date: Tue, 7 Aug 2007 13:35:51 -0700 Subject: [rancid] Re: File lock help In-Reply-To: <5471c93d0708061041q5698c9dbp412e162d30f6b14e@mail.gmail.com> References: <082FEA82DC985B4F8A6B412D5AC4E2207D67F2@exchange.Equivoice.local> <5471c93d0708061041q5698c9dbp412e162d30f6b14e@mail.gmail.com> Message-ID: This maybe a coincidence but I started to get the same problem a couple of days ago. Rancid would hang after a while and I had to "kill -9" a number of rancid processes and then remove the lock file. It would work for about 12 hours and then hang again. I knew about the expect patch but hadn't applied it because I didn't have any problems. I applied the expect patch to see if this would fix my problem but it made things worse. After applying the patch I did not get any output in the .new files. I fixed my problem (hopefully) by installing the ActiveState's ActiveTcl distribution (http://www.activestate.com/Products/activetcl/). This distribution includes expect as a package to tclsh rather than a separate executable therefore if you want to use ActiveTcl's expect you need to change the first line in the rancid login scripts: From: # /usr/bin/expect -- To something like this: #! /usr/local/ActiveTcl-8.4/bin/tclsh8.4 package require Expect cheers AlanE ________________________________________ From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Chris Stave Sent: Monday, August 06, 2007 10:41 AM To: Todd Heide Cc: rancid-discuss at shrubbery.net Subject: [rancid] Re: File lock help To unlock, you just delete the file in question, /tmp/.Customer_Routers.run.lock This file gets created during the hourly run, and sometimes doesn't get properly removed. Chris Stave Computing and Network Services Drew University On 8/6/07, Todd Heide wrote: I know I asked this before, but cant find the reply from a year ago. ? hourly config diffs failed: /tmp/.Customer_Routers.run.lock exists -rw-r-----? 1 rancid netadm 0 Aug? 2 14:10 /tmp/.Customer_Routers.run.lock ? ? ? How do I unlock the files? Also what would have locked them in the first place? _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From Todd at equivoice.com Tue Aug 7 21:02:16 2007 From: Todd at equivoice.com (Todd Heide) Date: Tue, 7 Aug 2007 16:02:16 -0500 Subject: [rancid] Re: File lock help In-Reply-To: Message-ID: <082FEA82DC985B4F8A6B412D5AC4E2207D6946@exchange.Equivoice.local> My servers problem was due to it occasionally going into read only state due to a SCSI bios issue I have yet to fix. A new server is being built to replace it, slowly. I just haven't been checking on it for a while and found the locked file state when I noticed the router.db file for one group wasn't updated after I added some devices and did a rancid-run. It was a DOH moment for me because I forgot the darn file is hidden and I didn't see it to delete it. All is working fine for me. I like the Fedora Core server version that I run, other than the hardware issue, it has performed flawlessly. Nothing ever goes as planned, Its a hell of a notion, Even pharaohs turn to sand, Like a drop in the ocean -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Alan Evans Sent: Tuesday, August 07, 2007 3:36 PM To: rancid-discuss at shrubbery.net Subject: [rancid] Re: File lock help This maybe a coincidence but I started to get the same problem a couple of days ago. Rancid would hang after a while and I had to "kill -9" a number of rancid processes and then remove the lock file. It would work for about 12 hours and then hang again. I knew about the expect patch but hadn't applied it because I didn't have any problems. I applied the expect patch to see if this would fix my problem but it made things worse. After applying the patch I did not get any output in the .new files. I fixed my problem (hopefully) by installing the ActiveState's ActiveTcl distribution (http://www.activestate.com/Products/activetcl/). This distribution includes expect as a package to tclsh rather than a separate executable therefore if you want to use ActiveTcl's expect you need to change the first line in the rancid login scripts: From: # /usr/bin/expect -- To something like this: #! /usr/local/ActiveTcl-8.4/bin/tclsh8.4 package require Expect cheers AlanE ________________________________________ From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Chris Stave Sent: Monday, August 06, 2007 10:41 AM To: Todd Heide Cc: rancid-discuss at shrubbery.net Subject: [rancid] Re: File lock help To unlock, you just delete the file in question, /tmp/.Customer_Routers.run.lock This file gets created during the hourly run, and sometimes doesn't get properly removed. Chris Stave Computing and Network Services Drew University On 8/6/07, Todd Heide wrote: I know I asked this before, but cant find the reply from a year ago. ? hourly config diffs failed: /tmp/.Customer_Routers.run.lock exists -rw-r-----? 1 rancid netadm 0 Aug? 2 14:10 /tmp/.Customer_Routers.run.lock ? ? ? How do I unlock the files? Also what would have locked them in the first place? _______________________________________________ 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 mnoriega at amnetcorp.com Mon Aug 6 21:59:33 2007 From: mnoriega at amnetcorp.com (Manuel Noriega) Date: Mon, 6 Aug 2007 15:59:33 -0600 Subject: [rancid] Re: File lock help In-Reply-To: <20070806113710.8e114e4890519e5179c192e02d6bca26.e54e20acf1.wbe@email.secureserver.net> References: <20070806113710.8e114e4890519e5179c192e02d6bca26.e54e20acf1.wbe@email.secureserver.net> Message-ID: <13F61827-01A9-472F-95F7-78A6D65DDB94@amnetcorp.com> I also kept finding these lock files which would not permit RANCID to run, and I would only find out a couple of days later when I noticed some notifications not being sent. Si I know it's a bit drastic, but I placed a script in cron.daily to remove these files periodcally. ================= clean-locks-rancid ================= #!/bin/sh rm -rf /tmp/.*.lock ================================================== Sincerely, Manuel Noriega ISP Engineer -------------- next part -------------- A non-text attachment was scrubbed... Name: AmnetDatos-Little.jpg Type: image/jpeg Size: 12703 bytes Desc: not available Url : http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070806/181065e6/attachment.jpg -------------- next part -------------- 13 CALLE 3-40, ZONA 10 15 NIVEL, OFICINA 15-01 GUATEMALA CITY, C.A. PBX (502) 2279 0099 FAX (502) 2279 0003 www.amnetdatos.com On Aug 6, 2007, at 12:37 PM, Lance wrote: > Todd, > > rm /tmp/.Customer_Routers.run.lock > > > -Lance > >> -------- Original Message -------- >> Subject: [rancid] File lock help >> From: "Todd Heide" >> Date: Mon, August 06, 2007 9:32 am >> To: >> >> I know I asked this before, but cant find the reply from a year ago. >> >> >> >> hourly config diffs failed: /tmp/.Customer_Routers.run.lock exists >> >> -rw-r----- 1 rancid netadm 0 Aug 2 14:10 >> /tmp/.Customer_Routers.run.lock >> >> >> >> >> >> >> >> How do I unlock the files? Also what would have locked them in the >> first >> place?
_______________________________________________ >> 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 lance at gheek.net Tue Aug 7 20:11:20 2007 From: lance at gheek.net (Lance Vermilion) Date: Tue, 07 Aug 2007 13:11:20 -0700 Subject: [rancid] Re: running rancid-run manually generates false changes Message-ID: <20070807131120.8e114e4890519e5179c192e02d6bca26.d377b11303.wbe@email.secureserver.net> David/Yuval, Make sure you source the /etc/rancid.conf file so that you have all the same environmental variable...including TERM. Different TERMs cause weird issues. -Lance > -------- Original Message -------- > Subject: [rancid] Re: running rancid-run manually generates false > changes > From: "David Luyer" > Date: Tue, August 07, 2007 9:57 am > To: "Yuval Ben Ari" > Cc: rancid-discuss at shrubbery.net > > > Hi, > > I have a strange and annoying problem. > > when rancid-run is launched from cronjob (on user "rancid" crontab) all is > > ok. > > but if I try to run it manually on some groups or router even if I am > > logged in as user rancid while doing it, it create false diffs of > > router in all the groups and I get following mail: > > > > ----------- > > Subject: changes in groupname routers > > Routers changed to up: > > routerx:cisco > > > > Added routers: > > routerx:cisco > > > > Deleted routers: > > routerx:cisco > > ----------- > > I take it you have multiple routers in each of these sections of the email? > > Some of the state files from RANCID are sorted. Some of the tools in the > control_rancid script assume consistent sorting of the 'before' and 'after' > files. > > Your cron daemon and your login session may be using different locales > (with different sort orders)? > > David. > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From heas at shrubbery.net Thu Aug 9 16:50:45 2007 From: heas at shrubbery.net (john heasley) Date: Thu, 9 Aug 2007 16:50:45 +0000 Subject: [rancid] Re: File lock help In-Reply-To: <20070806153110.8e114e4890519e5179c192e02d6bca26.012322063e.wbe@email.secureserver.net> References: <20070806153110.8e114e4890519e5179c192e02d6bca26.012322063e.wbe@email.secureserver.net> Message-ID: <20070809165045.GJ10998@shrubbery.net> Mon, Aug 06, 2007 at 03:31:10PM -0700, Lance: > These lock files should never be left behind unless the scripts aren't > finishing correctly. even if they do not finish correctly, the lock should be removed via the signal handler. only if the machine crashed, it received a KILL signal, or the scripts are hung, should the lock file remain. if a script is hung, and you're using linux or solaris, please ensure that you have installed an expect(1) with the patch available on the rancid site. From heas at shrubbery.net Thu Aug 9 16:58:41 2007 From: heas at shrubbery.net (john heasley) Date: Thu, 9 Aug 2007 16:58:41 +0000 Subject: [rancid] Re: File lock help In-Reply-To: References: <082FEA82DC985B4F8A6B412D5AC4E2207D67F2@exchange.Equivoice.local> <5471c93d0708061041q5698c9dbp412e162d30f6b14e@mail.gmail.com> Message-ID: <20070809165841.GK10998@shrubbery.net> Tue, Aug 07, 2007 at 01:35:51PM -0700, Alan Evans: > I knew about the expect patch but hadn't applied it because I didn't have any problems. I applied the expect patch to see if this would fix my problem but it made things worse. After applying the patch I did not get any output in the .new files. This would lead me to believe that the patch was not applied properly or the problem is completely different, such as a duplex mismatch on your network interface. The patch is very simple and can not have the reverse affect. From cgauthie at pcc.edu Thu Aug 9 21:29:23 2007 From: cgauthie at pcc.edu (Chris Gauthier) Date: Thu, 09 Aug 2007 14:29:23 -0700 Subject: [rancid] Foundry EdgeIron switches Message-ID: <46BB8733.2020703@pcc.edu> Our organization uses Foundry EdgeIron switches, but the OS those run is completely different than the rest of Foundry's offerings. Has anyone used Rancid to monitor those devices? Any help is appreciated. The commands run by flogin work on the other devices, but not on the EIF line of switches (except show version works). These are: show version, show chassis, show module, show flash, and write term. I'm listing the equivalent commands (where possible) for the EIF2402/4802CF switch OS (as of v2.2.7.18): show version = show version show chassis (no equivalent) show module (no equivalent) show flash = dir write term = show running-config Thanks, Chris -- Chris Gauthier, CCNA, Network+, A+ Network Administration Team Portland Community College Portland, Oregon "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 From heas at shrubbery.net Fri Aug 10 17:50:03 2007 From: heas at shrubbery.net (john heasley) Date: Fri, 10 Aug 2007 17:50:03 +0000 Subject: [rancid] Re: Foundry EdgeIron switches In-Reply-To: <46BB8733.2020703@pcc.edu> References: <46BB8733.2020703@pcc.edu> Message-ID: <20070810175003.GE21815@shrubbery.net> Thu, Aug 09, 2007 at 02:29:23PM -0700, Chris Gauthier: > Our organization uses Foundry EdgeIron switches, but the OS those run is > completely different than the rest of Foundry's offerings. Has anyone > used Rancid to monitor those devices? Any help is appreciated. > > The commands run by flogin work on the other devices, but not on the EIF > line of switches (except show version works). These are: show version, > show chassis, show module, show flash, and write term. I'm listing the > equivalent commands (where possible) for the EIF2402/4802CF switch OS > (as of v2.2.7.18): > > show version = show version > show chassis (no equivalent) > show module (no equivalent) > show flash = dir > write term = show running-config I've not managed to arrange access to one of these, but it should be easy to add support. it should ignore the (errors from) commands that do not work and collect the rest. and, try adding the dir command {'dir /all' => 'ShowFlash'}, or whatever they dreamt up to show all files on all filesystems. From heas at shrubbery.net Fri Aug 10 18:25:46 2007 From: heas at shrubbery.net (john heasley) Date: Fri, 10 Aug 2007 18:25:46 +0000 Subject: [rancid] Re: running rancid-run manually generates false changes In-Reply-To: <20070807131234.8e114e4890519e5179c192e02d6bca26.4a7a9967ef.wbe@email.secureserver.net> References: <20070807131234.8e114e4890519e5179c192e02d6bca26.4a7a9967ef.wbe@email.secureserver.net> Message-ID: <20070810182546.GB27950@shrubbery.net> rancid-run will source the config file itself. I believe it was mentioned already, but you SHOULD NOT run rancid-run et al as any user except the rancid pseudo user [unless you know what you're doing]. Only the login scripts are intended to be used outside of rancid. Withou the proper permissions, that the rancid pseudo user would normally have, the results are undefined. And, David points out the subtle differences you can experience with an interactive shell compared to one from cron. Tue, Aug 07, 2007 at 01:12:34PM -0700, Lance: > David/Yuval, > > Make sure you source the /etc/rancid.conf file so that you have all the > same environmental variable...including TERM. Different TERMs cause > weird issues. > > -Lance > > > -------- Original Message -------- > > Subject: [rancid] Re: running rancid-run manually generates false > > changes > > From: "David Luyer" > > Date: Tue, August 07, 2007 9:57 am > > To: "Yuval Ben Ari" > > Cc: rancid-discuss at shrubbery.net > > > > > Hi, > > > I have a strange and annoying problem. > > > when rancid-run is launched from cronjob (on user "rancid" crontab) all is > > > ok. > > > but if I try to run it manually on some groups or router even if I am > > > logged in as user rancid while doing it, it create false diffs of > > > router in all the groups and I get following mail: > > > > > > ----------- > > > Subject: changes in groupname routers > > > Routers changed to up: > > > routerx:cisco > > > > > > Added routers: > > > routerx:cisco > > > > > > Deleted routers: > > > routerx:cisco > > > ----------- > > > > I take it you have multiple routers in each of these sections of the email? > > > > Some of the state files from RANCID are sorted. Some of the tools in the > > control_rancid script assume consistent sorting of the 'before' and 'after' > > files. > > > > Your cron daemon and your login session may be using different locales > > (with different sort orders)? > > > > David. From yraffah at gmail.com Sun Aug 12 06:44:09 2007 From: yraffah at gmail.com (Yousef Raffah) Date: Sun, 12 Aug 2007 09:44:09 +0300 Subject: [rancid] Recurring Diffs Message-ID: Hello.. I'm a new RANCID user who got really impressed by the project. Thanks a lot for creating such great tools. One little thing is bugging me though, one of my routers (6500) is giving me recurring diffs almost every hour. This is what it shows: @@ -28,10 +28,10 @@ !BootFlash: Configuration register is 0x2102 ! !Flash: 65536K bytes of Flash internal SIMM (Sector size 512K). !Flash: Directory of flash:/ - !Flash: 2 -rwx 36 Aug 11 2007 22:26:27 nv_hdr !Flash: 3 -rwx 5804 Aug 08 2007 13:07:31 config.text + !Flash: 4 -rwx 36 Aug 11 2007 23:26:27 nv_hdr !Flash: 1792000 bytes total (1784320 bytes free) ! !Flash: nvram: Directory of nvram:/ !Flash: nvram: 513 -rw- 5804 startup-config Why does nv_hdr change every hour? Any idea? I'm using rancind 2.3.1_2 on FreeBSD 6.2-RELEASE Thanks in advance for any help -- ------------------- |Yousef Raffah| -------------------------------- http://yousef.raffah.com | -------------------------------- From dusle at comcast.net Sat Aug 11 02:52:44 2007 From: dusle at comcast.net (dennis usle) Date: Sat, 11 Aug 2007 02:52:44 -0000 Subject: [rancid] Mulitple Context Cisco fwsm backups Message-ID: <000001c7dbc0$3010a730$6402a8c0@atx.com> Hello, I've been reading up on a post during my research to utilize RANCID to backup a multiple context Cisco FWSM. I've not found any verification or conclusive answer to a dynamic solution. Here is the post I've found you were involved and reccommended a solution. Are you aware if anyone has been successfull with this task? If this was successfull, would you be willing to share example copies of the scripts used? http://www.shrubbery.net/pipermail/rancid-discuss/2007-March/002146.html Thanks in advance, your time is very much appreciated! Dennis Usle -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070811/2529db89/attachment.html From rancid at gheek.net Sun Aug 12 17:17:14 2007 From: rancid at gheek.net (Lance) Date: Sun, 12 Aug 2007 10:17:14 -0700 Subject: [rancid] Re: Recurring Diffs Message-ID: <20070812101714.8e114e4890519e5179c192e02d6bca26.1fc09fadb8.wbe@email.secureserver.net> Yousef, Just my guess but probably due to some changes that the system is tracking. I personally ignore the collection of this output. I just comment out the command. -Lance > -------- Original Message -------- > Subject: [rancid] Recurring Diffs > From: "Yousef Raffah" > Date: Sat, August 11, 2007 11:44 pm > To: rancid-discuss at shrubbery.net > > Hello.. > > I'm a new RANCID user who got really impressed by the project. Thanks > a lot for creating such great tools. > > One little thing is bugging me though, one of my routers (6500) is > giving me recurring diffs almost every hour. This is what it shows: > > @@ -28,10 +28,10 @@ > !BootFlash: Configuration register is 0x2102 > ! > !Flash: 65536K bytes of Flash internal SIMM (Sector size 512K). > !Flash: Directory of flash:/ > - !Flash: 2 -rwx 36 Aug 11 2007 22:26:27 nv_hdr > !Flash: 3 -rwx 5804 Aug 08 2007 13:07:31 config.text > + !Flash: 4 -rwx 36 Aug 11 2007 23:26:27 nv_hdr > !Flash: 1792000 bytes total (1784320 bytes free) > ! > !Flash: nvram: Directory of nvram:/ > !Flash: nvram: 513 -rw- 5804 startup-config > > Why does nv_hdr change every hour? Any idea? > I'm using rancind 2.3.1_2 on FreeBSD 6.2-RELEASE > > Thanks in advance for any help > > -- > ------------------- > |Yousef Raffah| > -------------------------------- > http://yousef.raffah.com | > -------------------------------- > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From rancid at gheek.net Sun Aug 12 17:44:52 2007 From: rancid at gheek.net (Lance) Date: Sun, 12 Aug 2007 10:44:52 -0700 Subject: [rancid] Re: Mulitple Context Cisco fwsm backups Message-ID: <20070812104452.8e114e4890519e5179c192e02d6bca26.de4278562d.wbe@email.secureserver.net> Dennis, A few weeks back I purposed a solution for this as well. This would be completely dynamic and would be fairly easy to do. I just have not had the time to do as of yet. I will be looking at doing it in the near future. -Lance > -------- Original Message -------- > Subject: [rancid] Mulitple Context Cisco fwsm backups > From: "dennis usle" > Date: Tue, July 24, 2007 9:16 pm > To: > > Hello, > > I've been reading up on a post during my research to utilize RANCID to backup a multiple context Cisco FWSM. I've not found any verification or conclusive answer to a dynamic solution. Here is the post I've found you were involved and reccommended a solution. Are you aware if anyone has been successfull with this task? If this was successfull, would you be willing to share example copies of the scripts used? > > http://www.shrubbery.net/pipermail/rancid-discuss/2007-March/002146.html > > Thanks in advance, your time is very much appreciated! > > Dennis Usle
_______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From yraffah at gmail.com Sun Aug 12 22:55:42 2007 From: yraffah at gmail.com (Yousef Raffah) Date: Mon, 13 Aug 2007 01:55:42 +0300 Subject: [rancid] Re: Recurring Diffs In-Reply-To: <20070812101714.8e114e4890519e5179c192e02d6bca26.1fc09fadb8.wbe@email.secureserver.net> References: <20070812101714.8e114e4890519e5179c192e02d6bca26.1fc09fadb8.wbe@email.secureserver.net> Message-ID: On 8/12/07, Lance wrote: > Yousef, > > Just my guess but probably due to some changes that the system is > tracking. I personally ignore the collection of this output. I just > comment out the command. > I'm sorry but which command to commend and where to comment it? Thanks in advance... > -Lance > > -------- Original Message -------- > > Subject: [rancid] Recurring Diffs > > From: "Yousef Raffah" > > Date: Sat, August 11, 2007 11:44 pm > > To: rancid-discuss at shrubbery.net > > > > Hello.. > > > > I'm a new RANCID user who got really impressed by the project. Thanks > > a lot for creating such great tools. > > > > One little thing is bugging me though, one of my routers (6500) is > > giving me recurring diffs almost every hour. This is what it shows: > > > > @@ -28,10 +28,10 @@ > > !BootFlash: Configuration register is 0x2102 > > ! > > !Flash: 65536K bytes of Flash internal SIMM (Sector size 512K). > > !Flash: Directory of flash:/ > > - !Flash: 2 -rwx 36 Aug 11 2007 22:26:27 nv_hdr > > !Flash: 3 -rwx 5804 Aug 08 2007 13:07:31 config.text > > + !Flash: 4 -rwx 36 Aug 11 2007 23:26:27 nv_hdr > > !Flash: 1792000 bytes total (1784320 bytes free) > > ! > > !Flash: nvram: Directory of nvram:/ > > !Flash: nvram: 513 -rw- 5804 startup-config > > > > Why does nv_hdr change every hour? Any idea? > > I'm using rancind 2.3.1_2 on FreeBSD 6.2-RELEASE > > > > Thanks in advance for any help > > > > -- > > ------------------- > > |Yousef Raffah| > > -------------------------------- > > http://yousef.raffah.com | > > -------------------------------- > > _______________________________________________ > > Rancid-discuss mailing list > > Rancid-discuss at shrubbery.net > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > -- ------------------- |Yousef Raffah| -------------------------------- http://yousef.raffah.com | -------------------------------- From david at infotrek.co.uk Mon Aug 13 14:19:26 2007 From: david at infotrek.co.uk (David Croft) Date: Mon, 13 Aug 2007 15:19:26 +0100 Subject: [rancid] ASA line indentation Message-ID: I have a weird problem with the Cisco ASA 5540. For some reason, the indentation of various lines of the config keeps changing. This only seems to happen when I actually change the config - I change one line in the config, and then a load of extra bogus diffs appear that are just indentation changes. For example, in the config below, the only genuine change I made was to add dns-guard, but lots of extra diffs appear. It doesn't cause any extra mails to be sent, since it does only happen when I do change something, but it does show a load of spurious diffs. Has anyone else found this and is there a way to work around this in rancid - for example by removing all leading spaces from every line before storing it in CVS? Regards, David Index: configs/fw01-active.x.x.net.uk =================================================================== retrieving revision 1.87 diff -u -4 -r1.87 fw01-active.x.x.net.uk @@ -67,8 +67,9 @@ hostname fw01 domain-name x.x.net.uk enable password x encrypted names + dns-guard ! interface GigabitEthernet0/0 description to core routers via vlan 5 on distribution switches speed 1000 @@ -82,10 +83,10 @@ description to distribution switches via vlan 6 speed 1000 duplex full nameif inside - security-level 50 - ip address x 255.255.255.248 standby x + security-level 50 + ip address x 255.255.255.248 standby x ospf cost 10 ! interface GigabitEthernet0/2 speed 1000 @@ -105,10 +106,10 @@ ! interface Management0/0 speed 100 duplex full - nameif management - security-level 100 + nameif management + security-level 100 ip address 192.168.0.1 255.255.255.0 standby 192.168.0.199 ospf cost 10 ospf network point-to-point non-broadcast management-only @@ -128,10 +129,10 @@ description to noc 3560 speed 1000 duplex full nameif inside-noc - security-level 100 - no ip address + security-level 100 + no ip address ! interface GigabitEthernet1/3 shutdown no nameif @@ -221,9 +222,9 @@ area 0 log-adj-changes ! router eigrp 1 - no auto-summary + no auto-summary neighbor x interface inside neighbor x interface inside network x 255.255.255.248 ! @@ -266,10 +267,10 @@ sysopt noproxyarp inside-noc sla monitor 1 type echo protocol ipIcmpEcho x interface outside timeout 2000 - threshold 4000 - frequency 5 + threshold 4000 + frequency 5 sla monitor schedule 1 life forever start-time now sla monitor 2 type echo protocol ipIcmpEcho x interface outside timeout 2000 @@ -357,6 +358,6 @@ tunnel-group Remote-Staff ipsec-attributes pre-shared-key * smtp-server x x prompt hostname context - Cryptochecksum:9ada600f57fb6994832ba5bcef07562b + Cryptochecksum:db711fa252d3a044ca708fc6099a8af2 : end From rancid at gheek.net Mon Aug 13 17:35:16 2007 From: rancid at gheek.net (Lance) Date: Mon, 13 Aug 2007 10:35:16 -0700 Subject: [rancid] Re: Recurring Diffs Message-ID: <20070813103516.8e114e4890519e5179c192e02d6bca26.ab7e5f389c.wbe@email.secureserver.net> Yousef, edit your bin/rancid file. You will want to search for Main. There should only be one thing that matches that. Comment out the command you don't want to run. If that doesn't help you send me your rancid file I will comment it for you. -lance > -------- Original Message -------- > Subject: Re: [rancid] Recurring Diffs > From: "Yousef Raffah" > Date: Sun, August 12, 2007 3:55 pm > To: Lance > Cc: rancid-discuss at shrubbery.net > > On 8/12/07, Lance wrote: > > Yousef, > > > > Just my guess but probably due to some changes that the system is > > tracking. I personally ignore the collection of this output. I just > > comment out the command. > > > I'm sorry but which command to commend and where to comment it? > Thanks in advance... > > > -Lance > > > -------- Original Message -------- > > > Subject: [rancid] Recurring Diffs > > > From: "Yousef Raffah" > > > Date: Sat, August 11, 2007 11:44 pm > > > To: rancid-discuss at shrubbery.net > > > > > > Hello.. > > > > > > I'm a new RANCID user who got really impressed by the project. Thanks > > > a lot for creating such great tools. > > > > > > One little thing is bugging me though, one of my routers (6500) is > > > giving me recurring diffs almost every hour. This is what it shows: > > > > > > @@ -28,10 +28,10 @@ > > > !BootFlash: Configuration register is 0x2102 > > > ! > > > !Flash: 65536K bytes of Flash internal SIMM (Sector size 512K). > > > !Flash: Directory of flash:/ > > > - !Flash: 2 -rwx 36 Aug 11 2007 22:26:27 nv_hdr > > > !Flash: 3 -rwx 5804 Aug 08 2007 13:07:31 config.text > > > + !Flash: 4 -rwx 36 Aug 11 2007 23:26:27 nv_hdr > > > !Flash: 1792000 bytes total (1784320 bytes free) > > > ! > > > !Flash: nvram: Directory of nvram:/ > > > !Flash: nvram: 513 -rw- 5804 startup-config > > > > > > Why does nv_hdr change every hour? Any idea? > > > I'm using rancind 2.3.1_2 on FreeBSD 6.2-RELEASE > > > > > > Thanks in advance for any help > > > > > > -- > > > ------------------- > > > |Yousef Raffah| > > > -------------------------------- > > > http://yousef.raffah.com | > > > -------------------------------- > > > _______________________________________________ > > > Rancid-discuss mailing list > > > Rancid-discuss at shrubbery.net > > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > > > > > -- > ------------------- > |Yousef Raffah| > -------------------------------- > http://yousef.raffah.com | > -------------------------------- From rancid at gheek.net Mon Aug 13 17:39:34 2007 From: rancid at gheek.net (Lance) Date: Mon, 13 Aug 2007 10:39:34 -0700 Subject: [rancid] Re: ASA line indentation Message-ID: <20070813103934.8e114e4890519e5179c192e02d6bca26.82cab026d7.wbe@email.secureserver.net> David, Funky I have no such issue here. try doing a cat -vet on your file and then look back 1 revision and pipe it to cat -vet too. If you use CVS, you can get the previous revision like so. Assuming you are using the defaults the CVS would be in the RANCID home dir and under var/CVS. :) cvs diff -r $previous-revision -r $current-revision $router-switch -Lance > -------- Original Message -------- > Subject: [rancid] ASA line indentation > From: "David Croft" > Date: Mon, August 13, 2007 7:19 am > To: rancid-discuss at shrubbery.net > > I have a weird problem with the Cisco ASA 5540. For some reason, the > indentation of various lines of the config keeps changing. This only > seems to happen when I actually change the config - I change one line > in the config, and then a load of extra bogus diffs appear that are > just indentation changes. > > For example, in the config below, the only genuine change I made was > to add dns-guard, but lots of extra diffs appear. > > It doesn't cause any extra mails to be sent, since it does only happen > when I do change something, but it does show a load of spurious diffs. > > Has anyone else found this and is there a way to work around this in > rancid - for example by removing all leading spaces from every line > before storing it in CVS? > > Regards, > > David > > > Index: configs/fw01-active.x.x.net.uk > =================================================================== > retrieving revision 1.87 > diff -u -4 -r1.87 fw01-active.x.x.net.uk > @@ -67,8 +67,9 @@ > hostname fw01 > domain-name x.x.net.uk > enable password x encrypted > names > + dns-guard > ! > interface GigabitEthernet0/0 > description to core routers via vlan 5 on distribution switches > speed 1000 > @@ -82,10 +83,10 @@ > description to distribution switches via vlan 6 > speed 1000 > duplex full > nameif inside > - security-level 50 > - ip address x 255.255.255.248 standby x > + security-level 50 > + ip address x 255.255.255.248 standby x > ospf cost 10 > ! > interface GigabitEthernet0/2 > speed 1000 > @@ -105,10 +106,10 @@ > ! > interface Management0/0 > speed 100 > duplex full > - nameif management > - security-level 100 > + nameif management > + security-level 100 > ip address 192.168.0.1 255.255.255.0 standby 192.168.0.199 > ospf cost 10 > ospf network point-to-point non-broadcast > management-only > @@ -128,10 +129,10 @@ > description to noc 3560 > speed 1000 > duplex full > nameif inside-noc > - security-level 100 > - no ip address > + security-level 100 > + no ip address > ! > interface GigabitEthernet1/3 > shutdown > no nameif > @@ -221,9 +222,9 @@ > area 0 > log-adj-changes > ! > router eigrp 1 > - no auto-summary > + no auto-summary > neighbor x interface inside > neighbor x interface inside > network x 255.255.255.248 > ! > @@ -266,10 +267,10 @@ > sysopt noproxyarp inside-noc > sla monitor 1 > type echo protocol ipIcmpEcho x interface outside > timeout 2000 > - threshold 4000 > - frequency 5 > + threshold 4000 > + frequency 5 > sla monitor schedule 1 life forever start-time now > sla monitor 2 > type echo protocol ipIcmpEcho x interface outside > timeout 2000 > @@ -357,6 +358,6 @@ > tunnel-group Remote-Staff ipsec-attributes > pre-shared-key * > smtp-server x x > prompt hostname context > - Cryptochecksum:9ada600f57fb6994832ba5bcef07562b > + Cryptochecksum:db711fa252d3a044ca708fc6099a8af2 > : end > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From heas at shrubbery.net Mon Aug 13 17:57:16 2007 From: heas at shrubbery.net (john heasley) Date: Mon, 13 Aug 2007 17:57:16 +0000 Subject: [rancid] Re: ASA line indentation In-Reply-To: <20070813103934.8e114e4890519e5179c192e02d6bca26.82cab026d7.wbe@email.secureserver.net> References: <20070813103934.8e114e4890519e5179c192e02d6bca26.82cab026d7.wbe@email.secureserver.net> Message-ID: <20070813175716.GB10333@shrubbery.net> Mon, Aug 13, 2007 at 10:39:34AM -0700, Lance: > David, > > Funky I have no such issue here. try doing a cat -vet on your file and > then look back 1 revision and pipe it to cat -vet too. agreed. either the box is doing this, or this screen manipulation junk or some botch with handling the box's pager. does the pager get disabled on this platform? > If you use CVS, you can get the previous revision like so. Assuming you > are using the defaults the CVS would be in the RANCID home dir and under > var/CVS. :) > > cvs diff -r $previous-revision -r $current-revision $router-switch > > -Lance > > > > -------- Original Message -------- > > Subject: [rancid] ASA line indentation > > From: "David Croft" > > Date: Mon, August 13, 2007 7:19 am > > To: rancid-discuss at shrubbery.net > > > > I have a weird problem with the Cisco ASA 5540. For some reason, the > > indentation of various lines of the config keeps changing. This only > > seems to happen when I actually change the config - I change one line > > in the config, and then a load of extra bogus diffs appear that are > > just indentation changes. > > > > For example, in the config below, the only genuine change I made was > > to add dns-guard, but lots of extra diffs appear. > > > > It doesn't cause any extra mails to be sent, since it does only happen > > when I do change something, but it does show a load of spurious diffs. > > > > Has anyone else found this and is there a way to work around this in > > rancid - for example by removing all leading spaces from every line > > before storing it in CVS? > > > > Regards, > > > > David > > > > > > Index: configs/fw01-active.x.x.net.uk > > =================================================================== > > retrieving revision 1.87 > > diff -u -4 -r1.87 fw01-active.x.x.net.uk > > @@ -67,8 +67,9 @@ > > hostname fw01 > > domain-name x.x.net.uk > > enable password x encrypted > > names > > + dns-guard > > ! > > interface GigabitEthernet0/0 > > description to core routers via vlan 5 on distribution switches > > speed 1000 > > @@ -82,10 +83,10 @@ > > description to distribution switches via vlan 6 > > speed 1000 > > duplex full > > nameif inside > > - security-level 50 > > - ip address x 255.255.255.248 standby x > > + security-level 50 > > + ip address x 255.255.255.248 standby x > > ospf cost 10 > > ! > > interface GigabitEthernet0/2 > > speed 1000 > > @@ -105,10 +106,10 @@ > > ! > > interface Management0/0 > > speed 100 > > duplex full > > - nameif management > > - security-level 100 > > + nameif management > > + security-level 100 > > ip address 192.168.0.1 255.255.255.0 standby 192.168.0.199 > > ospf cost 10 > > ospf network point-to-point non-broadcast > > management-only > > @@ -128,10 +129,10 @@ > > description to noc 3560 > > speed 1000 > > duplex full > > nameif inside-noc > > - security-level 100 > > - no ip address > > + security-level 100 > > + no ip address > > ! > > interface GigabitEthernet1/3 > > shutdown > > no nameif > > @@ -221,9 +222,9 @@ > > area 0 > > log-adj-changes > > ! > > router eigrp 1 > > - no auto-summary > > + no auto-summary > > neighbor x interface inside > > neighbor x interface inside > > network x 255.255.255.248 > > ! > > @@ -266,10 +267,10 @@ > > sysopt noproxyarp inside-noc > > sla monitor 1 > > type echo protocol ipIcmpEcho x interface outside > > timeout 2000 > > - threshold 4000 > > - frequency 5 > > + threshold 4000 > > + frequency 5 > > sla monitor schedule 1 life forever start-time now > > sla monitor 2 > > type echo protocol ipIcmpEcho x interface outside > > timeout 2000 > > @@ -357,6 +358,6 @@ > > tunnel-group Remote-Staff ipsec-attributes > > pre-shared-key * > > smtp-server x x > > prompt hostname context > > - Cryptochecksum:9ada600f57fb6994832ba5bcef07562b > > + Cryptochecksum:db711fa252d3a044ca708fc6099a8af2 > > : end > > _______________________________________________ > > 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 yraffah at gmail.com Tue Aug 14 13:02:08 2007 From: yraffah at gmail.com (Yousef Raffah) Date: Tue, 14 Aug 2007 16:02:08 +0300 Subject: [rancid] Re: Recurring Diffs In-Reply-To: <20070813103516.8e114e4890519e5179c192e02d6bca26.ab7e5f389c.wbe@email.secureserver.net> References: <20070813103516.8e114e4890519e5179c192e02d6bca26.ab7e5f389c.wbe@email.secureserver.net> Message-ID: I'm sorry Lance, do you mean /usr/local/bin/rancid-cvs ? I couldn't figure out what to comment in that file, can you please help me with that? Thanks in advance. On 8/13/07, Lance wrote: > Yousef, > > edit your bin/rancid file. You will want to search for Main. There > should only be one thing that matches that. Comment out the command you > don't want to run. > > If that doesn't help you send me your rancid file I will comment it for > you. > > -lance > > > -------- Original Message -------- > > Subject: Re: [rancid] Recurring Diffs > > From: "Yousef Raffah" > > Date: Sun, August 12, 2007 3:55 pm > > To: Lance > > Cc: rancid-discuss at shrubbery.net > > > > On 8/12/07, Lance wrote: > > > Yousef, > > > > > > Just my guess but probably due to some changes that the system is > > > tracking. I personally ignore the collection of this output. I just > > > comment out the command. > > > > > I'm sorry but which command to commend and where to comment it? > > Thanks in advance... > > > > > -Lance > > > > -------- Original Message -------- > > > > Subject: [rancid] Recurring Diffs > > > > From: "Yousef Raffah" > > > > Date: Sat, August 11, 2007 11:44 pm > > > > To: rancid-discuss at shrubbery.net > > > > > > > > Hello.. > > > > > > > > I'm a new RANCID user who got really impressed by the project. Thanks > > > > a lot for creating such great tools. > > > > > > > > One little thing is bugging me though, one of my routers (6500) is > > > > giving me recurring diffs almost every hour. This is what it shows: > > > > > > > > @@ -28,10 +28,10 @@ > > > > !BootFlash: Configuration register is 0x2102 > > > > ! > > > > !Flash: 65536K bytes of Flash internal SIMM (Sector size 512K). > > > > !Flash: Directory of flash:/ > > > > - !Flash: 2 -rwx 36 Aug 11 2007 22:26:27 nv_hdr > > > > !Flash: 3 -rwx 5804 Aug 08 2007 13:07:31 config.text > > > > + !Flash: 4 -rwx 36 Aug 11 2007 23:26:27 nv_hdr > > > > !Flash: 1792000 bytes total (1784320 bytes free) > > > > ! > > > > !Flash: nvram: Directory of nvram:/ > > > > !Flash: nvram: 513 -rw- 5804 startup-config > > > > > > > > Why does nv_hdr change every hour? Any idea? > > > > I'm using rancind 2.3.1_2 on FreeBSD 6.2-RELEASE > > > > > > > > Thanks in advance for any help > > > > > > > > -- > > > > ------------------- > > > > |Yousef Raffah| > > > > -------------------------------- > > > > http://yousef.raffah.com | > > > > -------------------------------- > > > > _______________________________________________ > > > > Rancid-discuss mailing list > > > > Rancid-discuss at shrubbery.net > > > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > > > > > > > > > > -- > > ------------------- > > |Yousef Raffah| > > -------------------------------- > > http://yousef.raffah.com | > > -------------------------------- > > -- ------------------- |Yousef Raffah| -------------------------------- http://yousef.raffah.com | -------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: rancid-cvs Type: application/octet-stream Size: 2120 bytes Desc: not available Url : http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070814/9a353326/attachment.obj From rancid at gheek.net Tue Aug 14 18:40:04 2007 From: rancid at gheek.net (Lance) Date: Tue, 14 Aug 2007 11:40:04 -0700 Subject: [rancid] Re: Recurring Diffs Message-ID: <20070814114004.8e114e4890519e5179c192e02d6bca26.1f1d360db5.wbe@email.secureserver.net> Yousef, **NOTE** In this email when I am talking about the application as a WHOLE is say "RANCID". When I talk about files I will say something like "rancid" "clogin" "rancid-cvs" etc. Hopefully this makes it easier to understand what I am talking about. If you have the default you will have the follow as your install location for the bin files of RANCID. /usr/local/rancid/bin/ the file "rancid" in this directory is where you would make the changes. The "rancid" file is a perl script that makes a system call to an expect script "clogin". Open up the "rancid" file and do a search for "Main". You will find below that there is a list of commands. If you are unsure of what I am talking about send me your "rancid" file. This is a specific script file that is one of many scripts that come with RANCID. -Lance > -------- Original Message -------- > Subject: Re: [rancid] Recurring Diffs > From: "Yousef Raffah" > Date: Tue, August 14, 2007 6:02 am > To: Lance > Cc: rancid-discuss at shrubbery.net > > I'm sorry Lance, do you mean /usr/local/bin/rancid-cvs ? > > I couldn't figure out what to comment in that file, can you please > help me with that? > > Thanks in advance. > > On 8/13/07, Lance wrote: > > Yousef, > > > > edit your bin/rancid file. You will want to search for Main. There > > should only be one thing that matches that. Comment out the command you > > don't want to run. > > > > If that doesn't help you send me your rancid file I will comment it for > > you. > > > > -lance > > > > > -------- Original Message -------- > > > Subject: Re: [rancid] Recurring Diffs > > > From: "Yousef Raffah" > > > Date: Sun, August 12, 2007 3:55 pm > > > To: Lance > > > Cc: rancid-discuss at shrubbery.net > > > > > > On 8/12/07, Lance wrote: > > > > Yousef, > > > > > > > > Just my guess but probably due to some changes that the system is > > > > tracking. I personally ignore the collection of this output. I just > > > > comment out the command. > > > > > > > I'm sorry but which command to commend and where to comment it? > > > Thanks in advance... > > > > > > > -Lance > > > > > -------- Original Message -------- > > > > > Subject: [rancid] Recurring Diffs > > > > > From: "Yousef Raffah" > > > > > Date: Sat, August 11, 2007 11:44 pm > > > > > To: rancid-discuss at shrubbery.net > > > > > > > > > > Hello.. > > > > > > > > > > I'm a new RANCID user who got really impressed by the project. Thanks > > > > > a lot for creating such great tools. > > > > > > > > > > One little thing is bugging me though, one of my routers (6500) is > > > > > giving me recurring diffs almost every hour. This is what it shows: > > > > > > > > > > @@ -28,10 +28,10 @@ > > > > > !BootFlash: Configuration register is 0x2102 > > > > > ! > > > > > !Flash: 65536K bytes of Flash internal SIMM (Sector size 512K). > > > > > !Flash: Directory of flash:/ > > > > > - !Flash: 2 -rwx 36 Aug 11 2007 22:26:27 nv_hdr > > > > > !Flash: 3 -rwx 5804 Aug 08 2007 13:07:31 config.text > > > > > + !Flash: 4 -rwx 36 Aug 11 2007 23:26:27 nv_hdr > > > > > !Flash: 1792000 bytes total (1784320 bytes free) > > > > > ! > > > > > !Flash: nvram: Directory of nvram:/ > > > > > !Flash: nvram: 513 -rw- 5804 startup-config > > > > > > > > > > Why does nv_hdr change every hour? Any idea? > > > > > I'm using rancind 2.3.1_2 on FreeBSD 6.2-RELEASE > > > > > > > > > > Thanks in advance for any help > > > > > > > > > > -- > > > > > ------------------- > > > > > |Yousef Raffah| > > > > > -------------------------------- > > > > > http://yousef.raffah.com | > > > > > -------------------------------- > > > > > _______________________________________________ > > > > > Rancid-discuss mailing list > > > > > Rancid-discuss at shrubbery.net > > > > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > > > > > > > > > > > > > > > -- > > > ------------------- > > > |Yousef Raffah| > > > -------------------------------- > > > http://yousef.raffah.com | > > > -------------------------------- > > > > > > > -- > ------------------- > |Yousef Raffah| > -------------------------------- > http://yousef.raffah.com | > -------------------------------- From yraffah at gmail.com Wed Aug 15 07:25:15 2007 From: yraffah at gmail.com (Yousef Raffah) Date: Wed, 15 Aug 2007 10:25:15 +0300 Subject: [rancid] Re: Recurring Diffs In-Reply-To: <20070814114004.8e114e4890519e5179c192e02d6bca26.1f1d360db5.wbe@email.secureserver.net> References: <20070814114004.8e114e4890519e5179c192e02d6bca26.1f1d360db5.wbe@email.secureserver.net> Message-ID: On 8/14/07, Lance wrote: > Yousef, > > > If you have the default you will have the follow as your install > location for the bin files of RANCID. > > /usr/local/rancid/bin/ > I'm using FreeBSD and it installs it under /usr/local/libexec/rancind/bin > the file "rancid" in this directory is where you would make the changes. > The "rancid" file is a perl script that makes a system call to an expect > script "clogin". Open up the "rancid" file and do a search for "Main". > You will find below that there is a list of commands. If you are unsure > of what I am talking about send me your "rancid" file. This is a > specific script file that is one of many scripts that come with RANCID. > I found it, but is this the right line to comment 'dir /all nvram:' => "DirSlotN", or is it something else? Thanks a lot for your great help :) > -Lance > > > -------- Original Message -------- > > Subject: Re: [rancid] Recurring Diffs > > From: "Yousef Raffah" > > Date: Tue, August 14, 2007 6:02 am > > To: Lance > > Cc: rancid-discuss at shrubbery.net > > > > I'm sorry Lance, do you mean /usr/local/bin/rancid-cvs ? > > > > I couldn't figure out what to comment in that file, can you please > > help me with that? > > > > Thanks in advance. > > > > On 8/13/07, Lance wrote: > > > Yousef, > > > > > > edit your bin/rancid file. You will want to search for Main. There > > > should only be one thing that matches that. Comment out the command you > > > don't want to run. > > > > > > If that doesn't help you send me your rancid file I will comment it for > > > you. > > > > > > -lance > > > > > > > -------- Original Message -------- > > > > Subject: Re: [rancid] Recurring Diffs > > > > From: "Yousef Raffah" > > > > Date: Sun, August 12, 2007 3:55 pm > > > > To: Lance > > > > Cc: rancid-discuss at shrubbery.net > > > > > > > > On 8/12/07, Lance wrote: > > > > > Yousef, > > > > > > > > > > Just my guess but probably due to some changes that the system is > > > > > tracking. I personally ignore the collection of this output. I just > > > > > comment out the command. > > > > > > > > > I'm sorry but which command to commend and where to comment it? > > > > Thanks in advance... > > > > > > > > > -Lance > > > > > > -------- Original Message -------- > > > > > > Subject: [rancid] Recurring Diffs > > > > > > From: "Yousef Raffah" > > > > > > Date: Sat, August 11, 2007 11:44 pm > > > > > > To: rancid-discuss at shrubbery.net > > > > > > > > > > > > Hello.. > > > > > > > > > > > > I'm a new RANCID user who got really impressed by the project. Thanks > > > > > > a lot for creating such great tools. > > > > > > > > > > > > One little thing is bugging me though, one of my routers (6500) is > > > > > > giving me recurring diffs almost every hour. This is what it shows: > > > > > > > > > > > > @@ -28,10 +28,10 @@ > > > > > > !BootFlash: Configuration register is 0x2102 > > > > > > ! > > > > > > !Flash: 65536K bytes of Flash internal SIMM (Sector size 512K). > > > > > > !Flash: Directory of flash:/ > > > > > > - !Flash: 2 -rwx 36 Aug 11 2007 22:26:27 nv_hdr > > > > > > !Flash: 3 -rwx 5804 Aug 08 2007 13:07:31 config.text > > > > > > + !Flash: 4 -rwx 36 Aug 11 2007 23:26:27 nv_hdr > > > > > > !Flash: 1792000 bytes total (1784320 bytes free) > > > > > > ! > > > > > > !Flash: nvram: Directory of nvram:/ > > > > > > !Flash: nvram: 513 -rw- 5804 startup-config > > > > > > > > > > > > Why does nv_hdr change every hour? Any idea? > > > > > > I'm using rancind 2.3.1_2 on FreeBSD 6.2-RELEASE > > > > > > > > > > > > Thanks in advance for any help > > > > > > > > > > > > -- > > > > > > ------------------- > > > > > > |Yousef Raffah| > > > > > > -------------------------------- > > > > > > http://yousef.raffah.com | > > > > > > -------------------------------- > > > > > > _______________________________________________ > > > > > > Rancid-discuss mailing list > > > > > > Rancid-discuss at shrubbery.net > > > > > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > > > > > > > > > > > > > > > > > > > > -- > > > > ------------------- > > > > |Yousef Raffah| > > > > -------------------------------- > > > > http://yousef.raffah.com | > > > > -------------------------------- > > > > > > > > > > > > -- > > ------------------- > > |Yousef Raffah| > > -------------------------------- > > http://yousef.raffah.com | > > -------------------------------- > > -- ------------------- |Yousef Raffah| -------------------------------- http://yousef.raffah.com | -------------------------------- From tzago at timbrasil.com.br Fri Aug 17 14:45:55 2007 From: tzago at timbrasil.com.br (Thiago Lacerda Zago) Date: Fri, 17 Aug 2007 11:45:55 -0300 Subject: [rancid] Delete( Remove) old revision cvs Message-ID: <1EA6EF878B09DC44892FD9C2BE4D68421A263A@SNEDCPMS01.internal.timbrasil.com.br> Hi, I'm using cvsweb with rancid to control my revisions and they are growing and I wonder to know if there is a way to supress or even remove old revisions from the history tree. My revisions graph tree is growing fast and the older diffs are meaningless in this occasion (startup operation). I was checking in the cvs commands and found this solution (cvs admin -o allows you to "oblitereate" revisions. Read the man page. ) but have not tested yet because they don't recommend it so. Is there another approach to tackle this problems? Thanks in advance. Thiago Zago * TIM Rio - Gest?o de Rede/COR * HYPERLINK "mailto:tzago at timbrasil.com.br"tzago at timbrasil.com.br No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.484 / Virus Database: 269.12.0/957 - Release Date: 16/8/2007 13:46 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.484 / Virus Database: 269.12.0/957 - Release Date: 16/8/2007 13:46 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070817/32c9da3a/attachment.html From dpz at ack.berkeley.edu Fri Aug 17 21:26:29 2007 From: dpz at ack.berkeley.edu (David Paul Zimmerman) Date: Fri, 17 Aug 2007 14:26:29 -0700 Subject: [rancid] beware tcl-8.4.15_2,1 Message-ID: In a fit of maintenance, I took one of my RANCID systems from: FreeBSD 6.2-RELEASE-p3 rancid-2.3.1_1 port expect-5.43.0_1 port tcl-8.4.13_1,1 port to FreeBSD 6.2-RELEASE-p6 rancid-2.3.1_2 port expect-5.43.0_3 (-D WITHOUT_X11) port tcl-8.4.15_2,1 port and immediately went from a perfectly happy RANCID installation to one that can't get through a group of 500 or so devices without getting hung randomly. I tried taking out WITHOUT_X11, I tried all sorts of port deinstalls, reinstalls, you name it. I tried the expect patch. Nothing worked. Finally I manually tweaked my ports tree to install the tcl-8.4.13_1,1 port instead, and my problems vanished (so far... 24 hours and counting). Mind the gap.... dp From dpz at ack.berkeley.edu Fri Aug 17 21:30:11 2007 From: dpz at ack.berkeley.edu (David Paul Zimmerman) Date: Fri, 17 Aug 2007 14:30:11 -0700 Subject: [rancid] Re: beware tcl-8.4.15_2,1 In-Reply-To: References: Message-ID: <608F7C75-3717-45D5-BEA6-930B00B5D3CD@ack.berkeley.edu> On Aug 17, 2007, at 2:26 PM, David Paul Zimmerman wrote: > Finally I manually tweaked my ports tree to install the > tcl-8.4.13_1,1 port instead, and my problems > vanished (so far... 24 hours and counting). Sorry, I meant tcl-8.4.14_4,1. I had to make _some_ progress. dp From Shon.Hender at spservicing.com Fri Aug 17 21:39:43 2007 From: Shon.Hender at spservicing.com (Shon Hender) Date: Fri, 17 Aug 2007 15:39:43 -0600 Subject: [rancid] rancid-run not working Message-ID: <70262067E7786B458AF587D944A20959011F6B3B@SLEX1.fairbankscapital.com> When I run 'rancid-run' it doesn't fail, but it also doesn't back-up any config files. 'clogin' works with all the devices I've tested (about 7 different devices)... but 'rancid-run' doesn't back up any config files. Here is an example log after I run 'rancid-run': [rancid at slnagios logs]$ less all.20070817.153007 starting: Fri Aug 17 15:30:07 MDT 2007 ending: Fri Aug 17 15:30:07 MDT 2007 Please help. Thank you, -Shon From kll at swip.net Fri Aug 17 13:23:21 2007 From: kll at swip.net (Kristian Larsson) Date: Fri, 17 Aug 2007 15:23:21 +0200 Subject: [rancid] Automatic RedBack backup Message-ID: <46C5A149.4040904@swip.net> Hey all! I'm trying to use RANCID for backing up the configuration of a few Red Back SE800 routers. For Cisco routers I already have a working mechanism in place which basically tail -f's a syslog file, when it find a "Configured from console by ..." message it executes rancid to log in to the router and pull out the configuration. My problem with Red Back is that they just won't syslog when there has been a configuration change and thus I don't know when to execute the backup script. Does anyone know of any secret knobs or other way for me to accomplish this? Regards, Kristian. From heas at shrubbery.net Fri Aug 17 23:52:48 2007 From: heas at shrubbery.net (john heasley) Date: Fri, 17 Aug 2007 23:52:48 +0000 Subject: [rancid] Re: Delete( Remove) old revision cvs In-Reply-To: <1EA6EF878B09DC44892FD9C2BE4D68421A263A@SNEDCPMS01.internal.timbrasil.com.br> References: <1EA6EF878B09DC44892FD9C2BE4D68421A263A@SNEDCPMS01.internal.timbrasil.com.br> Message-ID: <20070817235248.GH3026@shrubbery.net> Fri, Aug 17, 2007 at 11:45:55AM -0300, Thiago Lacerda Zago: > Hi, > > I'm using cvsweb with rancid to control my revisions and they are growing and I wonder to know if there is a way to supress or even remove old revisions from the history tree. > > My revisions graph tree is growing fast and the older diffs are meaningless in this occasion (startup operation). > > I was checking in the cvs commands and found this solution (cvs admin -o allows you to "oblitereate" revisions. Read the man page. ) but have not tested yet because they don't recommend it so. > > Is there another approach to tackle this problems? I've used -o to delete old revisions and have not had a problem with it, but it is true that it could create issues if you wish to create diffs against old revisions or re-create old revisions. I wouldn't expect the growing number of reivisons to create a real issue, but if you insist and wish to be 100% safe, start with new revisions or write a script that re-creates a range of versions and commits them under a new name. eg: for 1 2 3 in ver; do cvs -d ./CVS co -p $ver group/config/host > group/config/newhost cvs commit -m 'updates' group/config/newhost done again, I recommend that you just leave it alone or re-start with a clean slate. From heas at shrubbery.net Fri Aug 17 23:56:55 2007 From: heas at shrubbery.net (john heasley) Date: Fri, 17 Aug 2007 23:56:55 +0000 Subject: [rancid] Re: beware tcl-8.4.15_2,1 In-Reply-To: <608F7C75-3717-45D5-BEA6-930B00B5D3CD@ack.berkeley.edu> References: <608F7C75-3717-45D5-BEA6-930B00B5D3CD@ack.berkeley.edu> Message-ID: <20070817235655.GI3026@shrubbery.net> Fri, Aug 17, 2007 at 02:30:11PM -0700, David Paul Zimmerman: > On Aug 17, 2007, at 2:26 PM, David Paul Zimmerman wrote: > > > Finally I manually tweaked my ports tree to install the > > tcl-8.4.13_1,1 port instead, and my problems > > vanished (so far... 24 hours and counting). > > Sorry, I meant tcl-8.4.14_4,1. I had to make _some_ progress. My advice is that if the tcl and expect you are using works, don't change it. [1] You'll have more leisure time if you follow this rule. :) [1] except for Linux and Solaris where you should apply the patch ("hack") we've supplied. From yraffah at gmail.com Sat Aug 18 12:24:50 2007 From: yraffah at gmail.com (Yousef Raffah) Date: Sat, 18 Aug 2007 15:24:50 +0300 Subject: [rancid] Re: Recurring Diffs In-Reply-To: <20070814114004.8e114e4890519e5179c192e02d6bca26.1f1d360db5.wbe@email.secureserver.net> References: <20070814114004.8e114e4890519e5179c192e02d6bca26.1f1d360db5.wbe@email.secureserver.net> Message-ID: On 8/14/07, Lance wrote: > Yousef, > > **NOTE** > In this email when I am talking about the application as a WHOLE is say > "RANCID". When I talk about files I will say something like "rancid" > "clogin" "rancid-cvs" etc. Hopefully this makes it easier to understand > what I am talking about. > > If you have the default you will have the follow as your install > location for the bin files of RANCID. > > /usr/local/rancid/bin/ > > the file "rancid" in this directory is where you would make the changes. > The "rancid" file is a perl script that makes a system call to an expect > script "clogin". Open up the "rancid" file and do a search for "Main". > You will find below that there is a list of commands. If you are unsure > of what I am talking about send me your "rancid" file. This is a > specific script file that is one of many scripts that come with RANCID. > Dear Lance and group members, Once I comment/remove the line 'dir /all nvram:' => "DirSlotN", rancid can't connect to ANY of my devices, it sends me this E-mail The following routers have not been successfully contacted for more than 4 hours. -rw-r----- 1 rancid netteam 28495 Aug 18 09:00 192.168.10.6 I have attached the rancid file I have, can someone tell me what is the correct line to comment? Thanks in advance for your great help... > > > -------- Original Message -------- > > Subject: Re: [rancid] Recurring Diffs > > From: "Yousef Raffah" > > Date: Tue, August 14, 2007 6:02 am > > To: Lance > > Cc: rancid-discuss at shrubbery.net > > > > I'm sorry Lance, do you mean /usr/local/bin/rancid-cvs ? > > > > I couldn't figure out what to comment in that file, can you please > > help me with that? > > > > Thanks in advance. > > > > On 8/13/07, Lance wrote: > > > Yousef, > > > > > > edit your bin/rancid file. You will want to search for Main. There > > > should only be one thing that matches that. Comment out the command you > > > don't want to run. > > > > > > If that doesn't help you send me your rancid file I will comment it for > > > you. > > > > > > -lance > > > > > > > -------- Original Message -------- > > > > Subject: Re: [rancid] Recurring Diffs > > > > From: "Yousef Raffah" > > > > Date: Sun, August 12, 2007 3:55 pm > > > > To: Lance > > > > Cc: rancid-discuss at shrubbery.net > > > > > > > > On 8/12/07, Lance wrote: > > > > > Yousef, > > > > > > > > > > Just my guess but probably due to some changes that the system is > > > > > tracking. I personally ignore the collection of this output. I just > > > > > comment out the command. > > > > > > > > > I'm sorry but which command to commend and where to comment it? > > > > Thanks in advance... > > > > > > > > > -Lance > > > > > > -------- Original Message -------- > > > > > > Subject: [rancid] Recurring Diffs > > > > > > From: "Yousef Raffah" > > > > > > Date: Sat, August 11, 2007 11:44 pm > > > > > > To: rancid-discuss at shrubbery.net > > > > > > > > > > > > Hello.. > > > > > > > > > > > > I'm a new RANCID user who got really impressed by the project. Thanks > > > > > > a lot for creating such great tools. > > > > > > > > > > > > One little thing is bugging me though, one of my routers (6500) is > > > > > > giving me recurring diffs almost every hour. This is what it shows: > > > > > > > > > > > > @@ -28,10 +28,10 @@ > > > > > > !BootFlash: Configuration register is 0x2102 > > > > > > ! > > > > > > !Flash: 65536K bytes of Flash internal SIMM (Sector size 512K). > > > > > > !Flash: Directory of flash:/ > > > > > > - !Flash: 2 -rwx 36 Aug 11 2007 22:26:27 nv_hdr > > > > > > !Flash: 3 -rwx 5804 Aug 08 2007 13:07:31 config.text > > > > > > + !Flash: 4 -rwx 36 Aug 11 2007 23:26:27 nv_hdr > > > > > > !Flash: 1792000 bytes total (1784320 bytes free) > > > > > > ! > > > > > > !Flash: nvram: Directory of nvram:/ > > > > > > !Flash: nvram: 513 -rw- 5804 startup-config > > > > > > > > > > > > Why does nv_hdr change every hour? Any idea? > > > > > > I'm using rancind 2.3.1_2 on FreeBSD 6.2-RELEASE > > > > > > > > > > > > Thanks in advance for any help > > > > > > > > > > > > -- > > > > > > ------------------- > > > > > > |Yousef Raffah| > > > > > > -------------------------------- > > > > > > http://yousef.raffah.com | > > > > > > -------------------------------- > > > > > > _______________________________________________ > > > > > > Rancid-discuss mailing list > > > > > > Rancid-discuss at shrubbery.net > > > > > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > > > > > > > > > > > > > > > > > > > > -- > > > > ------------------- > > > > |Yousef Raffah| > > > > -------------------------------- > > > > http://yousef.raffah.com | > > > > -------------------------------- > > > > > > > > > > > > -- > > ------------------- > > |Yousef Raffah| > > -------------------------------- > > http://yousef.raffah.com | > > -------------------------------- > > -- ------------------- |Yousef Raffah| -------------------------------- http://yousef.raffah.com | -------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: rancid Type: application/octet-stream Size: 51907 bytes Desc: not available Url : http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070818/6b7618da/attachment.obj From rancid at gheek.net Sun Aug 19 00:17:48 2007 From: rancid at gheek.net (Lance) Date: Sat, 18 Aug 2007 17:17:48 -0700 Subject: [rancid] Re: Recurring Diffs Message-ID: <20070818171748.8e114e4890519e5179c192e02d6bca26.279a410760.wbe@email.secureserver.net> Yousef, I have attached a version of rancid that has all the dir statement commented out. I will double check my own version when I get to work on monday and see exactly what I have. I will let you know. What error is in the logs? It should not effect any of the connection scripts and if a command should fail the device will spit back and error or wait for timeout then continue to the next command. -Lance > -------- Original Message -------- > Subject: Re: [rancid] Recurring Diffs > From: "Yousef Raffah" > Date: Sat, August 18, 2007 5:24 am > To: Lance > Cc: rancid-discuss at shrubbery.net > > On 8/14/07, Lance wrote: > > Yousef, > > > > **NOTE** > > In this email when I am talking about the application as a WHOLE is say > > "RANCID". When I talk about files I will say something like "rancid" > > "clogin" "rancid-cvs" etc. Hopefully this makes it easier to understand > > what I am talking about. > > > > If you have the default you will have the follow as your install > > location for the bin files of RANCID. > > > > /usr/local/rancid/bin/ > > > > the file "rancid" in this directory is where you would make the changes. > > The "rancid" file is a perl script that makes a system call to an expect > > script "clogin". Open up the "rancid" file and do a search for "Main". > > You will find below that there is a list of commands. If you are unsure > > of what I am talking about send me your "rancid" file. This is a > > specific script file that is one of many scripts that come with RANCID. > > > > Dear Lance and group members, > > Once I comment/remove the line > 'dir /all nvram:' => "DirSlotN", > rancid can't connect to ANY of my devices, it sends me this E-mail > > The following routers have not been successfully contacted for > more than 4 hours. > -rw-r----- 1 rancid netteam 28495 Aug 18 09:00 192.168.10.6 > > I have attached the rancid file I have, can someone tell me what is > the correct line to comment? > > Thanks in advance for your great help... > > > > > > > > -------- Original Message -------- > > > Subject: Re: [rancid] Recurring Diffs > > > From: "Yousef Raffah" > > > Date: Tue, August 14, 2007 6:02 am > > > To: Lance > > > Cc: rancid-discuss at shrubbery.net > > > > > > I'm sorry Lance, do you mean /usr/local/bin/rancid-cvs ? > > > > > > I couldn't figure out what to comment in that file, can you please > > > help me with that? > > > > > > Thanks in advance. > > > > > > On 8/13/07, Lance wrote: > > > > Yousef, > > > > > > > > edit your bin/rancid file. You will want to search for Main. There > > > > should only be one thing that matches that. Comment out the command you > > > > don't want to run. > > > > > > > > If that doesn't help you send me your rancid file I will comment it for > > > > you. > > > > > > > > -lance > > > > > > > > > -------- Original Message -------- > > > > > Subject: Re: [rancid] Recurring Diffs > > > > > From: "Yousef Raffah" > > > > > Date: Sun, August 12, 2007 3:55 pm > > > > > To: Lance > > > > > Cc: rancid-discuss at shrubbery.net > > > > > > > > > > On 8/12/07, Lance wrote: > > > > > > Yousef, > > > > > > > > > > > > Just my guess but probably due to some changes that the system is > > > > > > tracking. I personally ignore the collection of this output. I just > > > > > > comment out the command. > > > > > > > > > > > I'm sorry but which command to commend and where to comment it? > > > > > Thanks in advance... > > > > > > > > > > > -Lance > > > > > > > -------- Original Message -------- > > > > > > > Subject: [rancid] Recurring Diffs > > > > > > > From: "Yousef Raffah" > > > > > > > Date: Sat, August 11, 2007 11:44 pm > > > > > > > To: rancid-discuss at shrubbery.net > > > > > > > > > > > > > > Hello.. > > > > > > > > > > > > > > I'm a new RANCID user who got really impressed by the project. Thanks > > > > > > > a lot for creating such great tools. > > > > > > > > > > > > > > One little thing is bugging me though, one of my routers (6500) is > > > > > > > giving me recurring diffs almost every hour. This is what it shows: > > > > > > > > > > > > > > @@ -28,10 +28,10 @@ > > > > > > > !BootFlash: Configuration register is 0x2102 > > > > > > > ! > > > > > > > !Flash: 65536K bytes of Flash internal SIMM (Sector size 512K). > > > > > > > !Flash: Directory of flash:/ > > > > > > > - !Flash: 2 -rwx 36 Aug 11 2007 22:26:27 nv_hdr > > > > > > > !Flash: 3 -rwx 5804 Aug 08 2007 13:07:31 config.text > > > > > > > + !Flash: 4 -rwx 36 Aug 11 2007 23:26:27 nv_hdr > > > > > > > !Flash: 1792000 bytes total (1784320 bytes free) > > > > > > > ! > > > > > > > !Flash: nvram: Directory of nvram:/ > > > > > > > !Flash: nvram: 513 -rw- 5804 startup-config > > > > > > > > > > > > > > Why does nv_hdr change every hour? Any idea? > > > > > > > I'm using rancind 2.3.1_2 on FreeBSD 6.2-RELEASE > > > > > > > > > > > > > > Thanks in advance for any help > > > > > > > > > > > > > > -- > > > > > > > ------------------- > > > > > > > |Yousef Raffah| > > > > > > > -------------------------------- > > > > > > > http://yousef.raffah.com | > > > > > > > -------------------------------- > > > > > > > _______________________________________________ > > > > > > > Rancid-discuss mailing list > > > > > > > Rancid-discuss at shrubbery.net > > > > > > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > ------------------- > > > > > |Yousef Raffah| > > > > > -------------------------------- > > > > > http://yousef.raffah.com | > > > > > -------------------------------- > > > > > > > > > > > > > > > > > -- > > > ------------------- > > > |Yousef Raffah| > > > -------------------------------- > > > http://yousef.raffah.com | > > > -------------------------------- > > > > > > > -- > ------------------- > |Yousef Raffah| > -------------------------------- > http://yousef.raffah.com | > -------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: rancid.txt Type: application/x-perl Size: 53565 bytes Desc: not available Url : http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070818/752c3e47/attachment.bin From yraffah at gmail.com Sun Aug 19 08:54:45 2007 From: yraffah at gmail.com (Yousef Raffah) Date: Sun, 19 Aug 2007 11:54:45 +0300 Subject: [rancid] Re: Recurring Diffs In-Reply-To: <20070818171748.8e114e4890519e5179c192e02d6bca26.279a410760.wbe@email.secureserver.net> References: <20070818171748.8e114e4890519e5179c192e02d6bca26.279a410760.wbe@email.secureserver.net> Message-ID: On 8/19/07, Lance wrote: > Yousef, > > I have attached a version of rancid that has all the dir statement > commented out. I will double check my own version when I get to work on > monday and see exactly what I have. I will let you know. > Thanks a lot for your help. > What error is in the logs? It should not effect any of the connection > scripts and if a command should fail the device will spit back and error > or wait for timeout then continue to the next command. > It gives this: The following routers have not been successfully contacted for more than 4 hours. -rw-r----- 1 rancid netteam 16919 Aug 18 09:00 192.168.2.x -rw-r----- 1 rancid netteam 16919 Aug 18 09:00 192.168.2.y -rw-r----- 1 rancid netteam 16919 Aug 18 09:00 192.168.2.z It seems like it is affecting the connection scripts somehow! > > -------- Original Message -------- > > Subject: Re: [rancid] Recurring Diffs > > From: "Yousef Raffah" > > Date: Sat, August 18, 2007 5:24 am > > To: Lance > > Cc: rancid-discuss at shrubbery.net > > > > On 8/14/07, Lance wrote: > > > Yousef, > > > > > > **NOTE** > > > In this email when I am talking about the application as a WHOLE is say > > > "RANCID". When I talk about files I will say something like "rancid" > > > "clogin" "rancid-cvs" etc. Hopefully this makes it easier to understand > > > what I am talking about. > > > > > > If you have the default you will have the follow as your install > > > location for the bin files of RANCID. > > > > > > /usr/local/rancid/bin/ > > > > > > the file "rancid" in this directory is where you would make the changes. > > > The "rancid" file is a perl script that makes a system call to an expect > > > script "clogin". Open up the "rancid" file and do a search for "Main". > > > You will find below that there is a list of commands. If you are unsure > > > of what I am talking about send me your "rancid" file. This is a > > > specific script file that is one of many scripts that come with RANCID. > > > > > > > Dear Lance and group members, > > > > Once I comment/remove the line > > 'dir /all nvram:' => "DirSlotN", > > rancid can't connect to ANY of my devices, it sends me this E-mail > > > > The following routers have not been successfully contacted for > > more than 4 hours. > > -rw-r----- 1 rancid netteam 28495 Aug 18 09:00 192.168.10.6 > > > > I have attached the rancid file I have, can someone tell me what is > > the correct line to comment? > > > > Thanks in advance for your great help... > > > > > > > > > > > > > -------- Original Message -------- > > > > Subject: Re: [rancid] Recurring Diffs > > > > From: "Yousef Raffah" > > > > Date: Tue, August 14, 2007 6:02 am > > > > To: Lance > > > > Cc: rancid-discuss at shrubbery.net > > > > > > > > I'm sorry Lance, do you mean /usr/local/bin/rancid-cvs ? > > > > > > > > I couldn't figure out what to comment in that file, can you please > > > > help me with that? > > > > > > > > Thanks in advance. > > > > > > > > On 8/13/07, Lance wrote: > > > > > Yousef, > > > > > > > > > > edit your bin/rancid file. You will want to search for Main. There > > > > > should only be one thing that matches that. Comment out the command you > > > > > don't want to run. > > > > > > > > > > If that doesn't help you send me your rancid file I will comment it for > > > > > you. > > > > > > > > > > -lance > > > > > > > > > > > -------- Original Message -------- > > > > > > Subject: Re: [rancid] Recurring Diffs > > > > > > From: "Yousef Raffah" > > > > > > Date: Sun, August 12, 2007 3:55 pm > > > > > > To: Lance > > > > > > Cc: rancid-discuss at shrubbery.net > > > > > > > > > > > > On 8/12/07, Lance wrote: > > > > > > > Yousef, > > > > > > > > > > > > > > Just my guess but probably due to some changes that the system is > > > > > > > tracking. I personally ignore the collection of this output. I just > > > > > > > comment out the command. > > > > > > > > > > > > > I'm sorry but which command to commend and where to comment it? > > > > > > Thanks in advance... > > > > > > > > > > > > > -Lance > > > > > > > > -------- Original Message -------- > > > > > > > > Subject: [rancid] Recurring Diffs > > > > > > > > From: "Yousef Raffah" > > > > > > > > Date: Sat, August 11, 2007 11:44 pm > > > > > > > > To: rancid-discuss at shrubbery.net > > > > > > > > > > > > > > > > Hello.. > > > > > > > > > > > > > > > > I'm a new RANCID user who got really impressed by the project. Thanks > > > > > > > > a lot for creating such great tools. > > > > > > > > > > > > > > > > One little thing is bugging me though, one of my routers (6500) is > > > > > > > > giving me recurring diffs almost every hour. This is what it shows: > > > > > > > > > > > > > > > > @@ -28,10 +28,10 @@ > > > > > > > > !BootFlash: Configuration register is 0x2102 > > > > > > > > ! > > > > > > > > !Flash: 65536K bytes of Flash internal SIMM (Sector size 512K). > > > > > > > > !Flash: Directory of flash:/ > > > > > > > > - !Flash: 2 -rwx 36 Aug 11 2007 22:26:27 nv_hdr > > > > > > > > !Flash: 3 -rwx 5804 Aug 08 2007 13:07:31 config.text > > > > > > > > + !Flash: 4 -rwx 36 Aug 11 2007 23:26:27 nv_hdr > > > > > > > > !Flash: 1792000 bytes total (1784320 bytes free) > > > > > > > > ! > > > > > > > > !Flash: nvram: Directory of nvram:/ > > > > > > > > !Flash: nvram: 513 -rw- 5804 startup-config > > > > > > > > > > > > > > > > Why does nv_hdr change every hour? Any idea? > > > > > > > > I'm using rancind 2.3.1_2 on FreeBSD 6.2-RELEASE > > > > > > > > > > > > > > > > Thanks in advance for any help > > > > > > > > > > > > > > > > -- > > > > > > > > ------------------- > > > > > > > > |Yousef Raffah| > > > > > > > > -------------------------------- > > > > > > > > http://yousef.raffah.com | > > > > > > > > -------------------------------- > > > > > > > > _______________________________________________ > > > > > > > > Rancid-discuss mailing list > > > > > > > > Rancid-discuss at shrubbery.net > > > > > > > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > ------------------- > > > > > > |Yousef Raffah| > > > > > > -------------------------------- > > > > > > http://yousef.raffah.com | > > > > > > -------------------------------- > > > > > > > > > > > > > > > > > > > > > > -- > > > > ------------------- > > > > |Yousef Raffah| > > > > -------------------------------- > > > > http://yousef.raffah.com | > > > > -------------------------------- > > > > > > > > > > > > -- > > ------------------- > > |Yousef Raffah| > > -------------------------------- > > http://yousef.raffah.com | > > -------------------------------- > > -- ------------------- |Yousef Raffah| -------------------------------- http://yousef.raffah.com | -------------------------------- From rancid at gheek.net Sun Aug 19 16:48:53 2007 From: rancid at gheek.net (Lance) Date: Sun, 19 Aug 2007 09:48:53 -0700 Subject: [rancid] Re: Recurring Diffs Message-ID: <20070819094853.8e114e4890519e5179c192e02d6bca26.6906b36905.wbe@email.secureserver.net> Yousef, You need to check your log file. That would be something similar to "/var/log/-date" /usr/local/rancid/var/log/network-20070919 Look in that file and see exactly what it says. None the less I will check my script at work on monday and let you know. -Lance > -------- Original Message -------- > Subject: Re: [rancid] Recurring Diffs > From: "Yousef Raffah" > Date: Sun, August 19, 2007 1:54 am > To: Lance > Cc: rancid-discuss at shrubbery.net > > On 8/19/07, Lance wrote: > > Yousef, > > > > I have attached a version of rancid that has all the dir statement > > commented out. I will double check my own version when I get to work on > > monday and see exactly what I have. I will let you know. > > > Thanks a lot for your help. > > > What error is in the logs? It should not effect any of the connection > > scripts and if a command should fail the device will spit back and error > > or wait for timeout then continue to the next command. > > > It gives this: > The following routers have not been successfully contacted for > more than 4 hours. > -rw-r----- 1 rancid netteam 16919 Aug 18 09:00 192.168.2.x > -rw-r----- 1 rancid netteam 16919 Aug 18 09:00 192.168.2.y > -rw-r----- 1 rancid netteam 16919 Aug 18 09:00 192.168.2.z > > It seems like it is affecting the connection scripts somehow! > > > > -------- Original Message -------- > > > Subject: Re: [rancid] Recurring Diffs > > > From: "Yousef Raffah" > > > Date: Sat, August 18, 2007 5:24 am > > > To: Lance > > > Cc: rancid-discuss at shrubbery.net > > > > > > On 8/14/07, Lance wrote: > > > > Yousef, > > > > > > > > **NOTE** > > > > In this email when I am talking about the application as a WHOLE is say > > > > "RANCID". When I talk about files I will say something like "rancid" > > > > "clogin" "rancid-cvs" etc. Hopefully this makes it easier to understand > > > > what I am talking about. > > > > > > > > If you have the default you will have the follow as your install > > > > location for the bin files of RANCID. > > > > > > > > /usr/local/rancid/bin/ > > > > > > > > the file "rancid" in this directory is where you would make the changes. > > > > The "rancid" file is a perl script that makes a system call to an expect > > > > script "clogin". Open up the "rancid" file and do a search for "Main". > > > > You will find below that there is a list of commands. If you are unsure > > > > of what I am talking about send me your "rancid" file. This is a > > > > specific script file that is one of many scripts that come with RANCID. > > > > > > > > > > Dear Lance and group members, > > > > > > Once I comment/remove the line > > > 'dir /all nvram:' => "DirSlotN", > > > rancid can't connect to ANY of my devices, it sends me this E-mail > > > > > > The following routers have not been successfully contacted for > > > more than 4 hours. > > > -rw-r----- 1 rancid netteam 28495 Aug 18 09:00 192.168.10.6 > > > > > > I have attached the rancid file I have, can someone tell me what is > > > the correct line to comment? > > > > > > Thanks in advance for your great help... > > > > > > > > > > > > > > > > > > -------- Original Message -------- > > > > > Subject: Re: [rancid] Recurring Diffs > > > > > From: "Yousef Raffah" > > > > > Date: Tue, August 14, 2007 6:02 am > > > > > To: Lance > > > > > Cc: rancid-discuss at shrubbery.net > > > > > > > > > > I'm sorry Lance, do you mean /usr/local/bin/rancid-cvs ? > > > > > > > > > > I couldn't figure out what to comment in that file, can you please > > > > > help me with that? > > > > > > > > > > Thanks in advance. > > > > > > > > > > On 8/13/07, Lance wrote: > > > > > > Yousef, > > > > > > > > > > > > edit your bin/rancid file. You will want to search for Main. There > > > > > > should only be one thing that matches that. Comment out the command you > > > > > > don't want to run. > > > > > > > > > > > > If that doesn't help you send me your rancid file I will comment it for > > > > > > you. > > > > > > > > > > > > -lance > > > > > > > > > > > > > -------- Original Message -------- > > > > > > > Subject: Re: [rancid] Recurring Diffs > > > > > > > From: "Yousef Raffah" > > > > > > > Date: Sun, August 12, 2007 3:55 pm > > > > > > > To: Lance > > > > > > > Cc: rancid-discuss at shrubbery.net > > > > > > > > > > > > > > On 8/12/07, Lance wrote: > > > > > > > > Yousef, > > > > > > > > > > > > > > > > Just my guess but probably due to some changes that the system is > > > > > > > > tracking. I personally ignore the collection of this output. I just > > > > > > > > comment out the command. > > > > > > > > > > > > > > > I'm sorry but which command to commend and where to comment it? > > > > > > > Thanks in advance... > > > > > > > > > > > > > > > -Lance > > > > > > > > > -------- Original Message -------- > > > > > > > > > Subject: [rancid] Recurring Diffs > > > > > > > > > From: "Yousef Raffah" > > > > > > > > > Date: Sat, August 11, 2007 11:44 pm > > > > > > > > > To: rancid-discuss at shrubbery.net > > > > > > > > > > > > > > > > > > Hello.. > > > > > > > > > > > > > > > > > > I'm a new RANCID user who got really impressed by the project. Thanks > > > > > > > > > a lot for creating such great tools. > > > > > > > > > > > > > > > > > > One little thing is bugging me though, one of my routers (6500) is > > > > > > > > > giving me recurring diffs almost every hour. This is what it shows: > > > > > > > > > > > > > > > > > > @@ -28,10 +28,10 @@ > > > > > > > > > !BootFlash: Configuration register is 0x2102 > > > > > > > > > ! > > > > > > > > > !Flash: 65536K bytes of Flash internal SIMM (Sector size 512K). > > > > > > > > > !Flash: Directory of flash:/ > > > > > > > > > - !Flash: 2 -rwx 36 Aug 11 2007 22:26:27 nv_hdr > > > > > > > > > !Flash: 3 -rwx 5804 Aug 08 2007 13:07:31 config.text > > > > > > > > > + !Flash: 4 -rwx 36 Aug 11 2007 23:26:27 nv_hdr > > > > > > > > > !Flash: 1792000 bytes total (1784320 bytes free) > > > > > > > > > ! > > > > > > > > > !Flash: nvram: Directory of nvram:/ > > > > > > > > > !Flash: nvram: 513 -rw- 5804 startup-config > > > > > > > > > > > > > > > > > > Why does nv_hdr change every hour? Any idea? > > > > > > > > > I'm using rancind 2.3.1_2 on FreeBSD 6.2-RELEASE > > > > > > > > > > > > > > > > > > Thanks in advance for any help > > > > > > > > > > > > > > > > > > -- > > > > > > > > > ------------------- > > > > > > > > > |Yousef Raffah| > > > > > > > > > -------------------------------- > > > > > > > > > http://yousef.raffah.com | > > > > > > > > > -------------------------------- > > > > > > > > > _______________________________________________ > > > > > > > > > Rancid-discuss mailing list > > > > > > > > > Rancid-discuss at shrubbery.net > > > > > > > > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > ------------------- > > > > > > > |Yousef Raffah| > > > > > > > -------------------------------- > > > > > > > http://yousef.raffah.com | > > > > > > > -------------------------------- > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > ------------------- > > > > > |Yousef Raffah| > > > > > -------------------------------- > > > > > http://yousef.raffah.com | > > > > > -------------------------------- > > > > > > > > > > > > > > > > > -- > > > ------------------- > > > |Yousef Raffah| > > > -------------------------------- > > > http://yousef.raffah.com | > > > -------------------------------- > > > > > > > -- > ------------------- > |Yousef Raffah| > -------------------------------- > http://yousef.raffah.com | > -------------------------------- From yraffah at gmail.com Mon Aug 20 08:03:20 2007 From: yraffah at gmail.com (Yousef Raffah) Date: Mon, 20 Aug 2007 11:03:20 +0300 Subject: [rancid] Re: Recurring Diffs In-Reply-To: <20070819094853.8e114e4890519e5179c192e02d6bca26.6906b36905.wbe@email.secureserver.net> References: <20070819094853.8e114e4890519e5179c192e02d6bca26.6906b36905.wbe@email.secureserver.net> Message-ID: On 8/19/07, Lance wrote: > Yousef, > > You need to check your log file. That would be something similar to > "/var/log/-date" > /usr/local/rancid/var/log/network-20070919 > > Look in that file and see exactly what it says. > I found something related in one of my groups log file (/ Trying to get all of the configs. 192.168.2.6: found unexpected command - "dir /all nvram:" write(spawn_id=1): broken pipe while executing "send_user -- "$expect_out(buffer)"" invoked from within "expect -nobrace -re+ { exp_continue } -re {^[^ ^M *]*SAVOLAPIX([^#>\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]*$reprompt." { send..." invoked from within "if [ string match "*\;*" "$command" ] { set commands [split $command \;] set num_commands [llength $commands] # the pager can not be turned off on ..." (procedure "run_commands" line 34) invoked from within "run_commands $prompt $command" ("foreach" body line 144) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] send_user "$router\n" # Figure out prompt. # Since autoena..." (file "/usr/local/libexec/rancid//clogin" line 616) 192.168.2.6: missed cmd(s): dir /all slavedisk2:,dir /all sec-slot2:,show diag,dir /all disk1:,dir /all sec-nvram:,dir /all disk2:,dir /all sec-bootflash:,s how spe version,dir /all slaveslot2:,dir /all disk0:,dir /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all slavenvram:,dir /all sec-disk2:,d ir /all slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,dir /all slavedisk1:,show module,show controllers,show diagbus,dir /all slavedisk0:,dir /all bootflash:,dir /all sec-slot0:,dir /all sec-disk1:,write term,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all slot0 :,dir /all sup-microcode:,show vlan,dir /all slavebootflash:,show controllers cbus,dir /all slaveslot1:,show running-config,show c7200,dir /all slot1: 192.168.2.6: End of run not found ! ===================================== Getting missed routers: round 1. 192.168.2.6: found unexpected command - "dir /all nvram:" write(spawn_id=1): broken pipe while executing "send_user -- "$expect_out(buffer)"" invoked from within . . . . and so much more. > None the less I will check my script at work on monday and let you know. > > -Lance > > > -------- Original Message -------- > > Subject: Re: [rancid] Recurring Diffs > > From: "Yousef Raffah" > > Date: Sun, August 19, 2007 1:54 am > > To: Lance > > Cc: rancid-discuss at shrubbery.net > > > > On 8/19/07, Lance wrote: > > > Yousef, > > > > > > I have attached a version of rancid that has all the dir statement > > > commented out. I will double check my own version when I get to work on > > > monday and see exactly what I have. I will let you know. > > > > > Thanks a lot for your help. > > > > > What error is in the logs? It should not effect any of the connection > > > scripts and if a command should fail the device will spit back and error > > > or wait for timeout then continue to the next command. > > > > > It gives this: > > The following routers have not been successfully contacted for > > more than 4 hours. > > -rw-r----- 1 rancid netteam 16919 Aug 18 09:00 192.168.2.x > > -rw-r----- 1 rancid netteam 16919 Aug 18 09:00 192.168.2.y > > -rw-r----- 1 rancid netteam 16919 Aug 18 09:00 192.168.2.z > > > > It seems like it is affecting the connection scripts somehow! > > > > > > -------- Original Message -------- > > > > Subject: Re: [rancid] Recurring Diffs > > > > From: "Yousef Raffah" > > > > Date: Sat, August 18, 2007 5:24 am > > > > To: Lance > > > > Cc: rancid-discuss at shrubbery.net > > > > > > > > On 8/14/07, Lance wrote: > > > > > Yousef, > > > > > > > > > > **NOTE** > > > > > In this email when I am talking about the application as a WHOLE is say > > > > > "RANCID". When I talk about files I will say something like "rancid" > > > > > "clogin" "rancid-cvs" etc. Hopefully this makes it easier to understand > > > > > what I am talking about. > > > > > > > > > > If you have the default you will have the follow as your install > > > > > location for the bin files of RANCID. > > > > > > > > > > /usr/local/rancid/bin/ > > > > > > > > > > the file "rancid" in this directory is where you would make the changes. > > > > > The "rancid" file is a perl script that makes a system call to an expect > > > > > script "clogin". Open up the "rancid" file and do a search for "Main". > > > > > You will find below that there is a list of commands. If you are unsure > > > > > of what I am talking about send me your "rancid" file. This is a > > > > > specific script file that is one of many scripts that come with RANCID. > > > > > > > > > > > > > Dear Lance and group members, > > > > > > > > Once I comment/remove the line > > > > 'dir /all nvram:' => "DirSlotN", > > > > rancid can't connect to ANY of my devices, it sends me this E-mail > > > > > > > > The following routers have not been successfully contacted for > > > > more than 4 hours. > > > > -rw-r----- 1 rancid netteam 28495 Aug 18 09:00 192.168.10.6 > > > > > > > > I have attached the rancid file I have, can someone tell me what is > > > > the correct line to comment? > > > > > > > > Thanks in advance for your great help... > > > > > > > > > > > > > > > > > > > > > > > -------- Original Message -------- > > > > > > Subject: Re: [rancid] Recurring Diffs > > > > > > From: "Yousef Raffah" > > > > > > Date: Tue, August 14, 2007 6:02 am > > > > > > To: Lance > > > > > > Cc: rancid-discuss at shrubbery.net > > > > > > > > > > > > I'm sorry Lance, do you mean /usr/local/bin/rancid-cvs ? > > > > > > > > > > > > I couldn't figure out what to comment in that file, can you please > > > > > > help me with that? > > > > > > > > > > > > Thanks in advance. > > > > > > > > > > > > On 8/13/07, Lance wrote: > > > > > > > Yousef, > > > > > > > > > > > > > > edit your bin/rancid file. You will want to search for Main. There > > > > > > > should only be one thing that matches that. Comment out the command you > > > > > > > don't want to run. > > > > > > > > > > > > > > If that doesn't help you send me your rancid file I will comment it for > > > > > > > you. > > > > > > > > > > > > > > -lance > > > > > > > > > > > > > > > -------- Original Message -------- > > > > > > > > Subject: Re: [rancid] Recurring Diffs > > > > > > > > From: "Yousef Raffah" > > > > > > > > Date: Sun, August 12, 2007 3:55 pm > > > > > > > > To: Lance > > > > > > > > Cc: rancid-discuss at shrubbery.net > > > > > > > > > > > > > > > > On 8/12/07, Lance wrote: > > > > > > > > > Yousef, > > > > > > > > > > > > > > > > > > Just my guess but probably due to some changes that the system is > > > > > > > > > tracking. I personally ignore the collection of this output. I just > > > > > > > > > comment out the command. > > > > > > > > > > > > > > > > > I'm sorry but which command to commend and where to comment it? > > > > > > > > Thanks in advance... > > > > > > > > > > > > > > > > > -Lance > > > > > > > > > > -------- Original Message -------- > > > > > > > > > > Subject: [rancid] Recurring Diffs > > > > > > > > > > From: "Yousef Raffah" > > > > > > > > > > Date: Sat, August 11, 2007 11:44 pm > > > > > > > > > > To: rancid-discuss at shrubbery.net > > > > > > > > > > > > > > > > > > > > Hello.. > > > > > > > > > > > > > > > > > > > > I'm a new RANCID user who got really impressed by the project. Thanks > > > > > > > > > > a lot for creating such great tools. > > > > > > > > > > > > > > > > > > > > One little thing is bugging me though, one of my routers (6500) is > > > > > > > > > > giving me recurring diffs almost every hour. This is what it shows: > > > > > > > > > > > > > > > > > > > > @@ -28,10 +28,10 @@ > > > > > > > > > > !BootFlash: Configuration register is 0x2102 > > > > > > > > > > ! > > > > > > > > > > !Flash: 65536K bytes of Flash internal SIMM (Sector size 512K). > > > > > > > > > > !Flash: Directory of flash:/ > > > > > > > > > > - !Flash: 2 -rwx 36 Aug 11 2007 22:26:27 nv_hdr > > > > > > > > > > !Flash: 3 -rwx 5804 Aug 08 2007 13:07:31 config.text > > > > > > > > > > + !Flash: 4 -rwx 36 Aug 11 2007 23:26:27 nv_hdr > > > > > > > > > > !Flash: 1792000 bytes total (1784320 bytes free) > > > > > > > > > > ! > > > > > > > > > > !Flash: nvram: Directory of nvram:/ > > > > > > > > > > !Flash: nvram: 513 -rw- 5804 startup-config > > > > > > > > > > > > > > > > > > > > Why does nv_hdr change every hour? Any idea? > > > > > > > > > > I'm using rancind 2.3.1_2 on FreeBSD 6.2-RELEASE > > > > > > > > > > > > > > > > > > > > Thanks in advance for any help > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > > > ------------------- > > > > > > > > > > |Yousef Raffah| > > > > > > > > > > -------------------------------- > > > > > > > > > > http://yousef.raffah.com | > > > > > > > > > > -------------------------------- > > > > > > > > > > _______________________________________________ > > > > > > > > > > Rancid-discuss mailing list > > > > > > > > > > Rancid-discuss at shrubbery.net > > > > > > > > > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > ------------------- > > > > > > > > |Yousef Raffah| > > > > > > > > -------------------------------- > > > > > > > > http://yousef.raffah.com | > > > > > > > > -------------------------------- > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > ------------------- > > > > > > |Yousef Raffah| > > > > > > -------------------------------- > > > > > > http://yousef.raffah.com | > > > > > > -------------------------------- > > > > > > > > > > > > > > > > > > > > > > -- > > > > ------------------- > > > > |Yousef Raffah| > > > > -------------------------------- > > > > http://yousef.raffah.com | > > > > -------------------------------- > > > > > > > > > > > > -- > > ------------------- > > |Yousef Raffah| > > -------------------------------- > > http://yousef.raffah.com | > > -------------------------------- > > -- ------------------- |Yousef Raffah| -------------------------------- http://yousef.raffah.com | -------------------------------- From rancid at gheek.net Mon Aug 20 16:25:12 2007 From: rancid at gheek.net (Lance) Date: Mon, 20 Aug 2007 09:25:12 -0700 Subject: [rancid] Re: Recurring Diffs Message-ID: <20070820092512.8e114e4890519e5179c192e02d6bca26.d68c092863.wbe@email.secureserver.net> Yousef, I know why it is bitching. It is cause you are running the stable while I run the alpha. Meaning in the alpha there not a separate Hash, it is created from the array. So Try the file I have attached. I think this should do the trick for you. -Lance > -------- Original Message -------- > Subject: Re: [rancid] Recurring Diffs > From: "Yousef Raffah" > Date: Mon, August 20, 2007 1:03 am > To: Lance > Cc: rancid-discuss at shrubbery.net > > On 8/19/07, Lance wrote: > > Yousef, > > > > You need to check your log file. That would be something similar to > > "/var/log/-date" > > /usr/local/rancid/var/log/network-20070919 > > > > Look in that file and see exactly what it says. > > > I found something related in one of my groups log file (/ > > Trying to get all of the configs. > 192.168.2.6: found unexpected command - "dir /all nvram:" > write(spawn_id=1): broken pipe > while executing > "send_user -- "$expect_out(buffer)"" > invoked from within > "expect -nobrace -re+ { exp_continue } -re {^[^ > ^M *]*SAVOLAPIX([^#>\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]*$reprompt." { send..." > invoked from within > "if [ string match "*\;*" "$command" ] { > set commands [split $command \;] > set num_commands [llength $commands] > # the pager can not be turned off on ..." > (procedure "run_commands" line 34) > invoked from within > "run_commands $prompt $command" > ("foreach" body line 144) > invoked from within > "foreach router [lrange $argv $i end] { > set router [string tolower $router] > send_user "$router\n" > > # Figure out prompt. > # Since autoena..." > (file "/usr/local/libexec/rancid//clogin" line 616) > 192.168.2.6: missed cmd(s): dir /all slavedisk2:,dir /all > sec-slot2:,show diag,dir /all disk1:,dir /all sec-nvram:,dir /all > disk2:,dir /all sec-bootflash:,s > how spe version,dir /all slaveslot2:,dir /all disk0:,dir /all > slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all > slavenvram:,dir /all sec-disk2:,d > ir /all slavesup-bootflash:,dir /all sec-disk0:,dir /all > harddiskb:,dir /all slavedisk1:,show module,show controllers,show > diagbus,dir /all slavedisk0:,dir > /all bootflash:,dir /all sec-slot0:,dir /all sec-disk1:,write > term,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /all > harddisk:,dir /all slot0 > :,dir /all sup-microcode:,show vlan,dir /all slavebootflash:,show > controllers cbus,dir /all slaveslot1:,show running-config,show > c7200,dir /all slot1: > 192.168.2.6: End of run not found > ! > ===================================== > Getting missed routers: round 1. > 192.168.2.6: found unexpected command - "dir /all nvram:" > write(spawn_id=1): broken pipe > while executing > "send_user -- "$expect_out(buffer)"" > invoked from within > . > . > . > . > and so much more. > > > > None the less I will check my script at work on monday and let you know. > > > > -Lance > > > > > -------- Original Message -------- > > > Subject: Re: [rancid] Recurring Diffs > > > From: "Yousef Raffah" > > > Date: Sun, August 19, 2007 1:54 am > > > To: Lance > > > Cc: rancid-discuss at shrubbery.net > > > > > > On 8/19/07, Lance wrote: > > > > Yousef, > > > > > > > > I have attached a version of rancid that has all the dir statement > > > > commented out. I will double check my own version when I get to work on > > > > monday and see exactly what I have. I will let you know. > > > > > > > Thanks a lot for your help. > > > > > > > What error is in the logs? It should not effect any of the connection > > > > scripts and if a command should fail the device will spit back and error > > > > or wait for timeout then continue to the next command. > > > > > > > It gives this: > > > The following routers have not been successfully contacted for > > > more than 4 hours. > > > -rw-r----- 1 rancid netteam 16919 Aug 18 09:00 192.168.2.x > > > -rw-r----- 1 rancid netteam 16919 Aug 18 09:00 192.168.2.y > > > -rw-r----- 1 rancid netteam 16919 Aug 18 09:00 192.168.2.z > > > > > > It seems like it is affecting the connection scripts somehow! > > > > > > > > -------- Original Message -------- > > > > > Subject: Re: [rancid] Recurring Diffs > > > > > From: "Yousef Raffah" > > > > > Date: Sat, August 18, 2007 5:24 am > > > > > To: Lance > > > > > Cc: rancid-discuss at shrubbery.net > > > > > > > > > > On 8/14/07, Lance wrote: > > > > > > Yousef, > > > > > > > > > > > > **NOTE** > > > > > > In this email when I am talking about the application as a WHOLE is say > > > > > > "RANCID". When I talk about files I will say something like "rancid" > > > > > > "clogin" "rancid-cvs" etc. Hopefully this makes it easier to understand > > > > > > what I am talking about. > > > > > > > > > > > > If you have the default you will have the follow as your install > > > > > > location for the bin files of RANCID. > > > > > > > > > > > > /usr/local/rancid/bin/ > > > > > > > > > > > > the file "rancid" in this directory is where you would make the changes. > > > > > > The "rancid" file is a perl script that makes a system call to an expect > > > > > > script "clogin". Open up the "rancid" file and do a search for "Main". > > > > > > You will find below that there is a list of commands. If you are unsure > > > > > > of what I am talking about send me your "rancid" file. This is a > > > > > > specific script file that is one of many scripts that come with RANCID. > > > > > > > > > > > > > > > > Dear Lance and group members, > > > > > > > > > > Once I comment/remove the line > > > > > 'dir /all nvram:' => "DirSlotN", > > > > > rancid can't connect to ANY of my devices, it sends me this E-mail > > > > > > > > > > The following routers have not been successfully contacted for > > > > > more than 4 hours. > > > > > -rw-r----- 1 rancid netteam 28495 Aug 18 09:00 192.168.10.6 > > > > > > > > > > I have attached the rancid file I have, can someone tell me what is > > > > > the correct line to comment? > > > > > > > > > > Thanks in advance for your great help... > > > > > > > > > > > > > > > > > > > > > > > > > > > > -------- Original Message -------- > > > > > > > Subject: Re: [rancid] Recurring Diffs > > > > > > > From: "Yousef Raffah" > > > > > > > Date: Tue, August 14, 2007 6:02 am > > > > > > > To: Lance > > > > > > > Cc: rancid-discuss at shrubbery.net > > > > > > > > > > > > > > I'm sorry Lance, do you mean /usr/local/bin/rancid-cvs ? > > > > > > > > > > > > > > I couldn't figure out what to comment in that file, can you please > > > > > > > help me with that? > > > > > > > > > > > > > > Thanks in advance. > > > > > > > > > > > > > > On 8/13/07, Lance wrote: > > > > > > > > Yousef, > > > > > > > > > > > > > > > > edit your bin/rancid file. You will want to search for Main. There > > > > > > > > should only be one thing that matches that. Comment out the command you > > > > > > > > don't want to run. > > > > > > > > > > > > > > > > If that doesn't help you send me your rancid file I will comment it for > > > > > > > > you. > > > > > > > > > > > > > > > > -lance > > > > > > > > > > > > > > > > > -------- Original Message -------- > > > > > > > > > Subject: Re: [rancid] Recurring Diffs > > > > > > > > > From: "Yousef Raffah" > > > > > > > > > Date: Sun, August 12, 2007 3:55 pm > > > > > > > > > To: Lance > > > > > > > > > Cc: rancid-discuss at shrubbery.net > > > > > > > > > > > > > > > > > > On 8/12/07, Lance wrote: > > > > > > > > > > Yousef, > > > > > > > > > > > > > > > > > > > > Just my guess but probably due to some changes that the system is > > > > > > > > > > tracking. I personally ignore the collection of this output. I just > > > > > > > > > > comment out the command. > > > > > > > > > > > > > > > > > > > I'm sorry but which command to commend and where to comment it? > > > > > > > > > Thanks in advance... > > > > > > > > > > > > > > > > > > > -Lance > > > > > > > > > > > -------- Original Message -------- > > > > > > > > > > > Subject: [rancid] Recurring Diffs > > > > > > > > > > > From: "Yousef Raffah" > > > > > > > > > > > Date: Sat, August 11, 2007 11:44 pm > > > > > > > > > > > To: rancid-discuss at shrubbery.net > > > > > > > > > > > > > > > > > > > > > > Hello.. > > > > > > > > > > > > > > > > > > > > > > I'm a new RANCID user who got really impressed by the project. Thanks > > > > > > > > > > > a lot for creating such great tools. > > > > > > > > > > > > > > > > > > > > > > One little thing is bugging me though, one of my routers (6500) is > > > > > > > > > > > giving me recurring diffs almost every hour. This is what it shows: > > > > > > > > > > > > > > > > > > > > > > @@ -28,10 +28,10 @@ > > > > > > > > > > > !BootFlash: Configuration register is 0x2102 > > > > > > > > > > > ! > > > > > > > > > > > !Flash: 65536K bytes of Flash internal SIMM (Sector size 512K). > > > > > > > > > > > !Flash: Directory of flash:/ > > > > > > > > > > > - !Flash: 2 -rwx 36 Aug 11 2007 22:26:27 nv_hdr > > > > > > > > > > > !Flash: 3 -rwx 5804 Aug 08 2007 13:07:31 config.text > > > > > > > > > > > + !Flash: 4 -rwx 36 Aug 11 2007 23:26:27 nv_hdr > > > > > > > > > > > !Flash: 1792000 bytes total (1784320 bytes free) > > > > > > > > > > > ! > > > > > > > > > > > !Flash: nvram: Directory of nvram:/ > > > > > > > > > > > !Flash: nvram: 513 -rw- 5804 startup-config > > > > > > > > > > > > > > > > > > > > > > Why does nv_hdr change every hour? Any idea? > > > > > > > > > > > I'm using rancind 2.3.1_2 on FreeBSD 6.2-RELEASE > > > > > > > > > > > > > > > > > > > > > > Thanks in advance for any help > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > > > > ------------------- > > > > > > > > > > > |Yousef Raffah| > > > > > > > > > > > -------------------------------- > > > > > > > > > > > http://yousef.raffah.com | > > > > > > > > > > > -------------------------------- > > > > > > > > > > > _______________________________________________ > > > > > > > > > > > Rancid-discuss mailing list > > > > > > > > > > > Rancid-discuss at shrubbery.net > > > > > > > > > > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > > ------------------- > > > > > > > > > |Yousef Raffah| > > > > > > > > > -------------------------------- > > > > > > > > > http://yousef.raffah.com | > > > > > > > > > -------------------------------- > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > ------------------- > > > > > > > |Yousef Raffah| > > > > > > > -------------------------------- > > > > > > > http://yousef.raffah.com | > > > > > > > -------------------------------- > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > ------------------- > > > > > |Yousef Raffah| > > > > > -------------------------------- > > > > > http://yousef.raffah.com | > > > > > -------------------------------- > > > > > > > > > > > > > > > > > -- > > > ------------------- > > > |Yousef Raffah| > > > -------------------------------- > > > http://yousef.raffah.com | > > > -------------------------------- > > > > > > > -- > ------------------- > |Yousef Raffah| > -------------------------------- > http://yousef.raffah.com | > -------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: rancid Type: application/x-perl Size: 51970 bytes Desc: not available Url : http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070820/740ef22f/attachment.bin From yraffah at gmail.com Wed Aug 22 07:20:47 2007 From: yraffah at gmail.com (Yousef Raffah) Date: Wed, 22 Aug 2007 10:20:47 +0300 Subject: [rancid] Re: Recurring Diffs In-Reply-To: <20070820092512.8e114e4890519e5179c192e02d6bca26.d68c092863.wbe@email.secureserver.net> References: <20070820092512.8e114e4890519e5179c192e02d6bca26.d68c092863.wbe@email.secureserver.net> Message-ID: Thank you so much Lance, this solved it :) On 8/20/07, Lance wrote: > Yousef, > > I know why it is bitching. It is cause you are running the stable while > I run the alpha. Meaning in the alpha there not a separate Hash, it is > created from the array. So Try the file I have attached. I think this > should do the trick for you. > > -Lance > > > -------- Original Message -------- > > Subject: Re: [rancid] Recurring Diffs > > From: "Yousef Raffah" > > Date: Mon, August 20, 2007 1:03 am > > To: Lance > > Cc: rancid-discuss at shrubbery.net > > > > On 8/19/07, Lance wrote: > > > Yousef, > > > > > > You need to check your log file. That would be something similar to > > > "/var/log/-date" > > > /usr/local/rancid/var/log/network-20070919 > > > > > > Look in that file and see exactly what it says. > > > > > I found something related in one of my groups log file (/ > > > > Trying to get all of the configs. > > 192.168.2.6: found unexpected command - "dir /all nvram:" > > write(spawn_id=1): broken pipe > > while executing > > "send_user -- "$expect_out(buffer)"" > > invoked from within > > "expect -nobrace -re+ { exp_continue } -re {^[^ > > ^M *]*SAVOLAPIX([^#>\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]*$reprompt." { send..." > > invoked from within > > "if [ string match "*\;*" "$command" ] { > > set commands [split $command \;] > > set num_commands [llength $commands] > > # the pager can not be turned off on ..." > > (procedure "run_commands" line 34) > > invoked from within > > "run_commands $prompt $command" > > ("foreach" body line 144) > > invoked from within > > "foreach router [lrange $argv $i end] { > > set router [string tolower $router] > > send_user "$router\n" > > > > # Figure out prompt. > > # Since autoena..." > > (file "/usr/local/libexec/rancid//clogin" line 616) > > 192.168.2.6: missed cmd(s): dir /all slavedisk2:,dir /all > > sec-slot2:,show diag,dir /all disk1:,dir /all sec-nvram:,dir /all > > disk2:,dir /all sec-bootflash:,s > > how spe version,dir /all slaveslot2:,dir /all disk0:,dir /all > > slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all > > slavenvram:,dir /all sec-disk2:,d > > ir /all slavesup-bootflash:,dir /all sec-disk0:,dir /all > > harddiskb:,dir /all slavedisk1:,show module,show controllers,show > > diagbus,dir /all slavedisk0:,dir > > /all bootflash:,dir /all sec-slot0:,dir /all sec-disk1:,write > > term,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /all > > harddisk:,dir /all slot0 > > :,dir /all sup-microcode:,show vlan,dir /all slavebootflash:,show > > controllers cbus,dir /all slaveslot1:,show running-config,show > > c7200,dir /all slot1: > > 192.168.2.6: End of run not found > > ! > > ===================================== > > Getting missed routers: round 1. > > 192.168.2.6: found unexpected command - "dir /all nvram:" > > write(spawn_id=1): broken pipe > > while executing > > "send_user -- "$expect_out(buffer)"" > > invoked from within > > . > > . > > . > > . > > and so much more. > > > > > > > None the less I will check my script at work on monday and let you know. > > > > > > -Lance > > > > > > > -------- Original Message -------- > > > > Subject: Re: [rancid] Recurring Diffs > > > > From: "Yousef Raffah" > > > > Date: Sun, August 19, 2007 1:54 am > > > > To: Lance > > > > Cc: rancid-discuss at shrubbery.net > > > > > > > > On 8/19/07, Lance wrote: > > > > > Yousef, > > > > > > > > > > I have attached a version of rancid that has all the dir statement > > > > > commented out. I will double check my own version when I get to work on > > > > > monday and see exactly what I have. I will let you know. > > > > > > > > > Thanks a lot for your help. > > > > > > > > > What error is in the logs? It should not effect any of the connection > > > > > scripts and if a command should fail the device will spit back and error > > > > > or wait for timeout then continue to the next command. > > > > > > > > > It gives this: > > > > The following routers have not been successfully contacted for > > > > more than 4 hours. > > > > -rw-r----- 1 rancid netteam 16919 Aug 18 09:00 192.168.2.x > > > > -rw-r----- 1 rancid netteam 16919 Aug 18 09:00 192.168.2.y > > > > -rw-r----- 1 rancid netteam 16919 Aug 18 09:00 192.168.2.z > > > > > > > > It seems like it is affecting the connection scripts somehow! > > > > > > > > > > -------- Original Message -------- > > > > > > Subject: Re: [rancid] Recurring Diffs > > > > > > From: "Yousef Raffah" > > > > > > Date: Sat, August 18, 2007 5:24 am > > > > > > To: Lance > > > > > > Cc: rancid-discuss at shrubbery.net > > > > > > > > > > > > On 8/14/07, Lance wrote: > > > > > > > Yousef, > > > > > > > > > > > > > > **NOTE** > > > > > > > In this email when I am talking about the application as a WHOLE is say > > > > > > > "RANCID". When I talk about files I will say something like "rancid" > > > > > > > "clogin" "rancid-cvs" etc. Hopefully this makes it easier to understand > > > > > > > what I am talking about. > > > > > > > > > > > > > > If you have the default you will have the follow as your install > > > > > > > location for the bin files of RANCID. > > > > > > > > > > > > > > /usr/local/rancid/bin/ > > > > > > > > > > > > > > the file "rancid" in this directory is where you would make the changes. > > > > > > > The "rancid" file is a perl script that makes a system call to an expect > > > > > > > script "clogin". Open up the "rancid" file and do a search for "Main". > > > > > > > You will find below that there is a list of commands. If you are unsure > > > > > > > of what I am talking about send me your "rancid" file. This is a > > > > > > > specific script file that is one of many scripts that come with RANCID. > > > > > > > > > > > > > > > > > > > Dear Lance and group members, > > > > > > > > > > > > Once I comment/remove the line > > > > > > 'dir /all nvram:' => "DirSlotN", > > > > > > rancid can't connect to ANY of my devices, it sends me this E-mail > > > > > > > > > > > > The following routers have not been successfully contacted for > > > > > > more than 4 hours. > > > > > > -rw-r----- 1 rancid netteam 28495 Aug 18 09:00 192.168.10.6 > > > > > > > > > > > > I have attached the rancid file I have, can someone tell me what is > > > > > > the correct line to comment? > > > > > > > > > > > > Thanks in advance for your great help... > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -------- Original Message -------- > > > > > > > > Subject: Re: [rancid] Recurring Diffs > > > > > > > > From: "Yousef Raffah" > > > > > > > > Date: Tue, August 14, 2007 6:02 am > > > > > > > > To: Lance > > > > > > > > Cc: rancid-discuss at shrubbery.net > > > > > > > > > > > > > > > > I'm sorry Lance, do you mean /usr/local/bin/rancid-cvs ? > > > > > > > > > > > > > > > > I couldn't figure out what to comment in that file, can you please > > > > > > > > help me with that? > > > > > > > > > > > > > > > > Thanks in advance. > > > > > > > > > > > > > > > > On 8/13/07, Lance wrote: > > > > > > > > > Yousef, > > > > > > > > > > > > > > > > > > edit your bin/rancid file. You will want to search for Main. There > > > > > > > > > should only be one thing that matches that. Comment out the command you > > > > > > > > > don't want to run. > > > > > > > > > > > > > > > > > > If that doesn't help you send me your rancid file I will comment it for > > > > > > > > > you. > > > > > > > > > > > > > > > > > > -lance > > > > > > > > > > > > > > > > > > > -------- Original Message -------- > > > > > > > > > > Subject: Re: [rancid] Recurring Diffs > > > > > > > > > > From: "Yousef Raffah" > > > > > > > > > > Date: Sun, August 12, 2007 3:55 pm > > > > > > > > > > To: Lance > > > > > > > > > > Cc: rancid-discuss at shrubbery.net > > > > > > > > > > > > > > > > > > > > On 8/12/07, Lance wrote: > > > > > > > > > > > Yousef, > > > > > > > > > > > > > > > > > > > > > > Just my guess but probably due to some changes that the system is > > > > > > > > > > > tracking. I personally ignore the collection of this output. I just > > > > > > > > > > > comment out the command. > > > > > > > > > > > > > > > > > > > > > I'm sorry but which command to commend and where to comment it? > > > > > > > > > > Thanks in advance... > > > > > > > > > > > > > > > > > > > > > -Lance > > > > > > > > > > > > -------- Original Message -------- > > > > > > > > > > > > Subject: [rancid] Recurring Diffs > > > > > > > > > > > > From: "Yousef Raffah" > > > > > > > > > > > > Date: Sat, August 11, 2007 11:44 pm > > > > > > > > > > > > To: rancid-discuss at shrubbery.net > > > > > > > > > > > > > > > > > > > > > > > > Hello.. > > > > > > > > > > > > > > > > > > > > > > > > I'm a new RANCID user who got really impressed by the project. Thanks > > > > > > > > > > > > a lot for creating such great tools. > > > > > > > > > > > > > > > > > > > > > > > > One little thing is bugging me though, one of my routers (6500) is > > > > > > > > > > > > giving me recurring diffs almost every hour. This is what it shows: > > > > > > > > > > > > > > > > > > > > > > > > @@ -28,10 +28,10 @@ > > > > > > > > > > > > !BootFlash: Configuration register is 0x2102 > > > > > > > > > > > > ! > > > > > > > > > > > > !Flash: 65536K bytes of Flash internal SIMM (Sector size 512K). > > > > > > > > > > > > !Flash: Directory of flash:/ > > > > > > > > > > > > - !Flash: 2 -rwx 36 Aug 11 2007 22:26:27 nv_hdr > > > > > > > > > > > > !Flash: 3 -rwx 5804 Aug 08 2007 13:07:31 config.text > > > > > > > > > > > > + !Flash: 4 -rwx 36 Aug 11 2007 23:26:27 nv_hdr > > > > > > > > > > > > !Flash: 1792000 bytes total (1784320 bytes free) > > > > > > > > > > > > ! > > > > > > > > > > > > !Flash: nvram: Directory of nvram:/ > > > > > > > > > > > > !Flash: nvram: 513 -rw- 5804 startup-config > > > > > > > > > > > > > > > > > > > > > > > > Why does nv_hdr change every hour? Any idea? > > > > > > > > > > > > I'm using rancind 2.3.1_2 on FreeBSD 6.2-RELEASE > > > > > > > > > > > > > > > > > > > > > > > > Thanks in advance for any help > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > > > > > ------------------- > > > > > > > > > > > > |Yousef Raffah| > > > > > > > > > > > > -------------------------------- > > > > > > > > > > > > http://yousef.raffah.com | > > > > > > > > > > > > -------------------------------- > > > > > > > > > > > > _______________________________________________ > > > > > > > > > > > > Rancid-discuss mailing list > > > > > > > > > > > > Rancid-discuss at shrubbery.net > > > > > > > > > > > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > > > ------------------- > > > > > > > > > > |Yousef Raffah| > > > > > > > > > > -------------------------------- > > > > > > > > > > http://yousef.raffah.com | > > > > > > > > > > -------------------------------- > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > ------------------- > > > > > > > > |Yousef Raffah| > > > > > > > > -------------------------------- > > > > > > > > http://yousef.raffah.com | > > > > > > > > -------------------------------- > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > ------------------- > > > > > > |Yousef Raffah| > > > > > > -------------------------------- > > > > > > http://yousef.raffah.com | > > > > > > -------------------------------- > > > > > > > > > > > > > > > > > > > > > > -- > > > > ------------------- > > > > |Yousef Raffah| > > > > -------------------------------- > > > > http://yousef.raffah.com | > > > > -------------------------------- > > > > > > > > > > > > -- > > ------------------- > > |Yousef Raffah| > > -------------------------------- > > http://yousef.raffah.com | > > -------------------------------- > > -- ------------------- |Yousef Raffah| -------------------------------- http://yousef.raffah.com | -------------------------------- From G.Ross at ccw.gov.uk Thu Aug 23 08:23:32 2007 From: G.Ross at ccw.gov.uk (Gordon Ross) Date: Thu, 23 Aug 2007 09:23:32 +0100 Subject: [rancid] Sending Summary E-Mails Message-ID: <46CD5225.AC0B.0006.3@ccw.gov.uk> Rancid, as I see at the moment, sends an e-mail with the full text of changes in it. Is it possible to configure rancid to also send a summary e-mail saying "Device X configuration has changed", without the actual diffs in it (and still send the e-mails with the fill diffs to elsewhere ?) GTG -- ? Gordon Ross, Network Manager/Rheolwr Rhydwaith Countryside Council for Wales/Cyngor Cefn Gwlad Cymru From tex at off.org Thu Aug 23 08:22:02 2007 From: tex at off.org (Austin Schutz) Date: Thu, 23 Aug 2007 01:22:02 -0700 Subject: [rancid] Re: Sending Summary E-Mails In-Reply-To: <46CD5225.AC0B.0006.3@ccw.gov.uk> References: <46CD5225.AC0B.0006.3@ccw.gov.uk> Message-ID: <20070823082202.GD4405@gblx.net> On Thu, Aug 23, 2007 at 09:23:32AM +0100, Gordon Ross wrote: > Rancid, as I see at the moment, sends an e-mail with the full text of > changes in it. Is it possible to configure rancid to also send a summary > e-mail saying "Device X configuration has changed", without the actual > diffs in it (and still send the e-mails with the fill diffs to elsewhere > ?) > You could run cvs stat right before or after the email is sent in control_rancid. You would have to do a little extra work to format it the way you want. Rancid won't do anything like that out of the box, but it would not be a monstrous task to do if you have any experience with shell or perl programming. Austin From heas at shrubbery.net Thu Aug 23 15:49:10 2007 From: heas at shrubbery.net (john heasley) Date: Thu, 23 Aug 2007 15:49:10 +0000 Subject: [rancid] Re: Sending Summary E-Mails In-Reply-To: <20070823082202.GD4405@gblx.net> References: <46CD5225.AC0B.0006.3@ccw.gov.uk> <20070823082202.GD4405@gblx.net> Message-ID: <20070823154910.GA14783@shrubbery.net> Thu, Aug 23, 2007 at 01:22:02AM -0700, Austin Schutz: > On Thu, Aug 23, 2007 at 09:23:32AM +0100, Gordon Ross wrote: > > Rancid, as I see at the moment, sends an e-mail with the full text of > > changes in it. Is it possible to configure rancid to also send a summary > > e-mail saying "Device X configuration has changed", without the actual > > diffs in it (and still send the e-mails with the fill diffs to elsewhere > > ?) > > > > You could run cvs stat right before or after the email is sent in > control_rancid. You would have to do a little extra work to format it the way > you want. > > Rancid won't do anything like that out of the box, but it would not > be a monstrous task to do if you have any experience with shell or perl > programming. also see share/rtrfilter From ecables at gmail.com Thu Aug 23 17:55:14 2007 From: ecables at gmail.com (Eric Cables) Date: Thu, 23 Aug 2007 10:55:14 -0700 Subject: [rancid] Archiving Cisco MDS switches.. Message-ID: I was wondering if anyone has gotten RANCID to work with the Cisco line of MDS switches. -- Eric Cables -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070823/e89678e2/attachment.html From smunzani at comcast.net Wed Aug 29 18:03:49 2007 From: smunzani at comcast.net (Sam Munzani) Date: Wed, 29 Aug 2007 13:03:49 -0500 Subject: [rancid] Re: F5 load balancer support In-Reply-To: <45EB285310B55542A513F93230F0A5330115DB4F@EXCHANGE0.orm.omniture.com> References: <20070716173200.8e114e4890519e5179c192e02d6bca26.b34fb90ffd.wbe@email.secureserver.net> <469C200F.4020909@munzani.com> <45EB285310B55542A513F93230F0A5330115DB4F@EXCHANGE0.orm.omniture.com> Message-ID: <46D5B505.1050603@comcast.net> Team, I am sorry to reopen this old thread but the question I have relates to this old thread. Attached 2 rancid login files work fine on newer F5 boxes. However on old boxes, it prompts for "term type" at the ssh login. I need to insert logic in the script to answer to this "term type" question. What's best way to handle it? Pass it as an argument like f5login -t vt100 device-name and then catch the variable and add necessary logic for the expect? The interaction I am seeing is as below. << Some junk MOTB and Banner trimmed here >> Terminal type? [xterm] I just need to pass "vt100" at this prompt. Thanks, Sam > I have been on vacation for the last couple of weeks or I would have > posted this sooner and possibly saved some of you a bit of effort. > > It sounds like Lance and Sam have put together a working f5rancid > with basic functionality which Sam posted last night. I have attached > my f5rancid which I have been running for a few months. Installation > instructions are included as comments in the file. This version uses > clogin so that a separate f5login script is not required. > > This version formats and processes the output to make it more > usable. As far as what is captured, I based this on the F5 equivalent > of a tech out. It grabs a copy of all the configuration files, > hardware configuration and software version as well as the timestamps > and file sizes for SSL certs hosted on the device. This facilitates > rebuilding from scratch as quickly as possible if this is ever needed. > > I was able to resolve the bug I mentioned yesterday by increasing the > clogin timeout. On a small number of devices it failed to process the > last few commands when running from cron but always worked properly > from the command line on all devices [making it difficult to track > down]. I mention this because it may be an appropriate fix for other > intermittent problems sometimes discussed on this list. > > Any feedback is appreciated. I hope to get f5 support added to future > releases of rancid. > > Thanks, > > Mike > > > > ------------------------------------------------------------------------ > *From:* Sam Munzani [mailto:sam at munzani.com] > *Sent:* Monday, July 16, 2007 7:49 PM > *To:* Lance > *Cc:* Mike Ashcraft; rancid-discuss at shrubbery.net > *Subject:* Re: [rancid] Re: F5 load balancer support > > Lance, > > Thanks a lot for all your help. Pretty much you did all the work while > I watched what you are doing :-).. > > Attached are cleaned up files. In f5rancid file, I have left some > basic functions(non platform specific) just in case we expand this > script to do a lot more than just "b list" output. In rancid-fe, we > defined a new device type "f5", f5login was copied from clogin and > remarked some "term length" statements we don't need on F5. > > All 3 files are attached and working great. Please be aware, we are > not parsing anything at all. All its doing is basic function of > running "b list" command and capturing its output. As I expand more on > this, I will be sure to share with the audience here. > > Again, thanks a lot for all your help today. > > Regards, > Sam >> I have helped Sam get a working f5rancid which requires a f5login (only >> because it doesn't recognize the prompt with a space and exit, unless >> you enter a return before the exit). He is cleaning up all the unused >> functions and will post it. >> >> Once John H. sends out his script I will look at it and see how it >> differs from the one I did with Sam. I will even help Sam get it working >> for his setup. We will let you know when it is all working. >> >> -lance >> >> >>> -------- Original Message -------- >>> Subject: [rancid] Re: F5 load balancer support >>> From: "Mike Ashcraft" >>> Date: Mon, July 16, 2007 11:48 am >>> To: >>> Cc: rancid-discuss at shrubbery.net >>> >>> Sam, >>> >>> I have a working f5rancid that I have been using for a number of months >>> now. I have one minor bug related to tracking installed SSL certs >>> which you probably don't care about. Other than that, it works great. >>> >>> I did encounter and solve all the problems you have been discussing on >>> the list. >>> >>> Let me know if you are interested in trying what I have. I have tested >>> it with Big-IP 9.1.2. >>> >>> Mike >>> >>> ________________________________ >>> >>> From: rancid-discuss-bounces at shrubbery.net >>> [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Sam Munzani >>> Sent: Monday, July 16, 2007 10:58 AM >>> To: smunzani at comcast.net >>> Cc: rancid-discuss at shrubbery.net >>> Subject: [rancid] Re: F5 load balancer support >>> >>> >>> BTW, this is what I see in the log when I do rancid-run now. That means >>> the f5rancid file(hacked copy of rancid) is still missing something. >>> >>> more nfl.20070716.114842 >>> starting: Mon Jul 16 11:48:42 CDT 2007 >>> >>> >>> >>> Trying to get all of the configs. >>> test-f5-01: End of run not found >>> -bash: write: command not found >>> ===================================== >>> Getting missed routers: round 1. >>> test-f5-01: End of run not found >>> -bash: write: command not found >>> ===================================== >>> Getting missed routers: round 2. >>> test-f5-01: End of run not found >>> -bash: write: command not found >>> ===================================== >>> Getting missed routers: round 3. >>> test-f5-01: End of run not found >>> -bash: write: command not found >>> ===================================== >>> Getting missed routers: round 4. >>> test-f5-01: End of run not found >>> -bash: write: command not found >>> >>> cvs diff: Diffing . >>> cvs diff: Diffing configs >>> nfl.20070716.114842 71%starting: Mon Jul 16 11:48:42 CDT 2007 >>> >>> >>> >>> Trying to get all of the configs. >>> test-f5-01: End of run not found >>> -bash: write: command not found >>> ===================================== >>> Getting missed routers: round 1. >>> test-f5-01: End of run not found >>> -bash: write: command not found >>> ===================================== >>> Getting missed routers: round 2. >>> test-f5-01: End of run not found >>> -bash: write: command not found >>> ===================================== >>> Getting missed routers: round 3. >>> test-f5-01: End of run not found >>> -bash: write: command not found >>> ===================================== >>> Getting missed routers: round 4. >>> test-f5-01: End of run not found >>> -bash: write: command not found >>> >>> cvs diff: Diffing . >>> cvs diff: Diffing configs >>> cvs diff: cannot find configs/test-f5-01 >>> cvs commit: Examining . >>> cvs commit: Examining configs >>> cvs commit: Up-to-date check failed for `configs/test-f5-01' >>> cvs [commit aborted]: correct above errors first! >>> ls: test-f5-01: No such file or directory >>> >>> ending: Mon Jul 16 11:49:41 CDT 2007 >>> >>> Thanks, >>> Sam >>> >>> >>> David, >>> >>> Thanks a lot for the tip. This worked well. Now f5login goes >>> much more >>> cleaner and the "root" doesn't set sent again. I still have >>> other issues >>> where rancid-run is backing up config properly but I am still >>> troubleshooting it. >>> >>> Now here is a question. What does "bldshgalsjd" mean and how >>> does it do >>> this miracle? >>> >>> Thanks, >>> Sam >>> >>> >>> Thanks for this tip, turns out that this is also the >>> reason the >>> username gets entered at a prompt on the cisco IPS >>> devices. Since it's >>> using SSH and therefore doesn't need a username prompt, >>> solution was >>> to simply add in .cloginrc: >>> >>> add userprompt ids* bldshgalsjd (<- something that >>> won't get sent >>> during login) >>> >>> Regards, >>> >>> David >>> >>> On 14/07/07, Lance >>> wrote: >>> >>> >>> Sam, >>> >>> Have you tried using telnet to login, if the f5 >>> has it enabled. >>> You may also want to set auto enable in your >>> .cloginrc for this device >>> as it looks to clogin as you are already in a >>> cisco equivalent equal to >>> enable since your prompt has a # sign in it. >>> >>> Looking at your next email along with this one >>> it looks like you are >>> already in a cisco equivalent of enable after >>> you login. f5login seems >>> to be sending your username of root as a command >>> after you get connected >>> because it sees this line "Last login: Fri Jul >>> 13 14:38:03 2007 from >>> 172.24.100.12" and it matches on the word >>> "Login". See below. >>> >>> "(Username|Login|login|user name):"? yes >>> >>> expect: set expect_out(0,string) "login:" >>> >>> expect: set expect_out(1,string) "login" >>> >>> expect: set expect_out(spawn_id) "exp4" >>> >>> expect: set expect_out(buffer) " \r\nLast >>> login:" >>> >>> send: sending "root\r" to { exp4 } >>> >>> expect: continuing expect >>> >>> You are just using a Cisco login/parsing script >>> so it expects prompts >>> from a Cisco device and in this case you have a >>> *nix SSH banner that >>> gets interrupted. I know you can use RANCID to >>> backup *nix systems. So >>> it knows how to understand connecting to a *nix >>> system. You might want >>> to try this email thread which asks about >>> backing up Linux conifgs. >>> >>> "http://www.shrubbery.net/pipermail/rancid-discuss/2006-August/001649.ht >>> ml" >>> >> ml> >>> >>> Or you could modify the existing f5login like >>> so. >>> >>> I think you have to use the carrot before the () >>> to work. I haven't >>> checked this as I am at home and not on a UNIX >>> system right now. Sorry >>> to lazy to check it out right now. You might >>> want to uncomment the line >>> below 3. and comment out the line below 2. and >>> see if that works. This >>> is the only point in the code that I see it look >>> for login in any line. >>> If that doesn't work send me back the debug and >>> I will see what I can >>> do. I am sure some people that use expect more >>> often then I can probably >>> quickly tell you what to use as syntax there. >>> >>> # Figure out prompts >>> set u_prompt [find userprompt $router >>> if { "$u_prompt" == "" } { >>> #1. ORIGINAL >>> #set u_prompt >>> "^(Username|Login|login|user name):" >>> #2. Modified to read for a line beginning >>> with >>> Username,Login,login, or >>> user name. >>> set u_prompt "^(Username|Login|login|user >>> name):" >>> #3. Modified to read for a line beginning >>> with Login or login. >>> but I >>> may be wrong >>> #set u_prompt >>> "^(Username|^Login|^login|user name):" >>> } else { >>> set u_prompt [join [lindex $u_prompt 0] >>> ""] >>> >>> >>> Let me know if this works for you. >>> >>> -Lance >>> >>> >>> >>> -------- Original Message -------- >>> Subject: Re: [rancid] F5 load balancer >>> support >>> From: Sam Munzani >>> >>> Date: Fri, July 13, 2007 2:30 pm >>> To: Lance >>> >>> Cc: rancid-discuss at shrubbery.net >>> >>> Lance, >>> >>> F5 login works fine with a minor error. >>> >>> $ f5login test-f5-01 >>> test-f5-01 >>> spawn ssh -c 3des -x -l root test-f5-01 >>> Password: >>> Last login: Fri Jul 13 14:26:28 2007 >>> from 172.24.100.12 >>> root >>> [root at test-f5-01:Active] config # root >>> -bash: root: command not found >>> [root at test-f5-01:Active] config # >>> [root at test-f5-01:Active] config # >>> [root at test-f5-01:Active] config # >>> >>> I don't know how to debug otherwise I >>> would turn on debug too. If you >>> can provide some hints on debug, I would >>> appreciate it. >>> >>> Thanks, >>> Sam >>> >>> >>> What error(s) do you get when you try to >>> run your f5rancid? >>> >>> Where does it fail if you debug your >>> f5login? >>> >>> >>> -lance >>> >>> >>> >>> >>> -------- Original Message -------- >>> Subject: [rancid] F5 load balancer >>> support >>> From: Sam Munzani >>> >>> Date: Fri, July 13, 2007 12:45 pm >>> To: rancid-discuss at shrubbery.net >>> >>> Hi, >>> >>> Did anybody happened to hack one of >>> Cisco scripts to support >>> >>> >>> BigIP F5 >>> >>> >>> boxes? It should be pretty simple. All I >>> want to do is login and >>> >>> >>> type "b >>> >>> >>> list" which is equivalent of "show run" >>> on cisco. >>> >>> However for some reason things not >>> working. All I did was copied >>> >>> >>> clogin >>> >>> >>> to f5login, copied rancid to f5rancid >>> and added following to >>> >>> >>> rancid-fe. >>> >>> >>> elsif ($vendor =~ /^f5$/i) >>> { exec('f5rancid', >>> >>> >>> $router); } >>> >>> >>> Then modified f5 rancid file and kept >>> only one command in list of >>> commands "b list". >>> >>> For some reason its not working. I can >>> post my configs here if >>> >>> >>> somebody >>> >>> >>> like to see them. >>> >>> Thanks, >>> Sam >>> >>> _______________________________________________ >>> 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 >>> >>> >>> >>> >>> _______________________________________________ >>> 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 >>> >> >> _______________________________________________ >> 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/20070829/66238030/attachment.html From mashcraft at omniture.com Wed Aug 29 19:14:55 2007 From: mashcraft at omniture.com (Mike Ashcraft) Date: Wed, 29 Aug 2007 13:14:55 -0600 Subject: [rancid] Re: F5 load balancer support In-Reply-To: <46D5B1DC.9000207@munzani.com> References: <20070716173200.8e114e4890519e5179c192e02d6bca26.b34fb90ffd.wbe@email.secureserver.net> <469C200F.4020909@munzani.com> <45EB285310B55542A513F93230F0A5330115DB4F@EXCHANGE0.orm.omniture.com> <46D5B1DC.9000207@munzani.com> Message-ID: <45EB285310B55542A513F93230F0A53301A39BDF@EXCHANGE0.orm.omniture.com> Sam, What version is on your old boxes? 4.x? I don't know how well f5rancid will work on BIG-IP 4.x as I do not have it to test. That said, along with all disclaimers of fitness for any purpose or any liability for anything that might happen, I gave it a quick attempt. Here is a diff for f5login that you can test. This tries to send the TERM type from your environment and defaults to vt100 if it is not set. It replaces a chunk of Cisco related code that is not needed. 418,421c418,424 < -re "Enter Selection: " { < # Catalyst 1900s have some lame menu. Enter < # K to reach a command-line. < send "K\r" --- > -re "Terminal type\?" { > # v4.x asks for term type > if {[info exists env(TERM)]} { > send "$env(TERM)\r" > } else { > send "vt100\r" > } If that does not work, adjust the regex to match the actual prompt and hardcode vt100 if necessary. If that fails, send a screen capture of the normal login process and the results of an f5login for comparison. Mike ________________________________ From: Sam Munzani [mailto:sam at munzani.com] Sent: Wednesday, August 29, 2007 11:50 AM To: Mike Ashcraft Cc: Lance; rancid-discuss at shrubbery.net Subject: Re: [rancid] Re: F5 load balancer support Team, I am sorry to reopen this old thread but the question I have relates to this old thread. Attached 2 rancid login files work fine on newer F5 boxes. However on old boxes, it prompts for "term type" at the ssh login. I need to insert logic in the script to answer to this "term type" question. What's best way to handle it? Pass it as an argument like f5login -t vt100 device-name and then catch the variable and add necessary logic for the expect? Thanks, Sam I have been on vacation for the last couple of weeks or I would have posted this sooner and possibly saved some of you a bit of effort. It sounds like Lance and Sam have put together a working f5rancid with basic functionality which Sam posted last night. I have attached my f5rancid which I have been running for a few months. Installation instructions are included as comments in the file. This version uses clogin so that a separate f5login script is not required. This version formats and processes the output to make it more usable. As far as what is captured, I based this on the F5 equivalent of a tech out. It grabs a copy of all the configuration files, hardware configuration and software version as well as the timestamps and file sizes for SSL certs hosted on the device. This facilitates rebuilding from scratch as quickly as possible if this is ever needed. I was able to resolve the bug I mentioned yesterday by increasing the clogin timeout. On a small number of devices it failed to process the last few commands when running from cron but always worked properly from the command line on all devices [making it difficult to track down]. I mention this because it may be an appropriate fix for other intermittent problems sometimes discussed on this list. Any feedback is appreciated. I hope to get f5 support added to future releases of rancid. Thanks, Mike ________________________________ From: Sam Munzani [mailto:sam at munzani.com] Sent: Monday, July 16, 2007 7:49 PM To: Lance Cc: Mike Ashcraft; rancid-discuss at shrubbery.net Subject: Re: [rancid] Re: F5 load balancer support Lance, Thanks a lot for all your help. Pretty much you did all the work while I watched what you are doing :-).. Attached are cleaned up files. In f5rancid file, I have left some basic functions(non platform specific) just in case we expand this script to do a lot more than just "b list" output. In rancid-fe, we defined a new device type "f5", f5login was copied from clogin and remarked some "term length" statements we don't need on F5. All 3 files are attached and working great. Please be aware, we are not parsing anything at all. All its doing is basic function of running "b list" command and capturing its output. As I expand more on this, I will be sure to share with the audience here. Again, thanks a lot for all your help today. Regards, Sam I have helped Sam get a working f5rancid which requires a f5login (only because it doesn't recognize the prompt with a space and exit, unless you enter a return before the exit). He is cleaning up all the unused functions and will post it. Once John H. sends out his script I will look at it and see how it differs from the one I did with Sam. I will even help Sam get it working for his setup. We will let you know when it is all working. -lance -------- Original Message -------- Subject: [rancid] Re: F5 load balancer support From: "Mike Ashcraft" Date: Mon, July 16, 2007 11:48 am To: Cc: rancid-discuss at shrubbery.net Sam, I have a working f5rancid that I have been using for a number of months now. I have one minor bug related to tracking installed SSL certs which you probably don't care about. Other than that, it works great. I did encounter and solve all the problems you have been discussing on the list. Let me know if you are interested in trying what I have. I have tested it with Big-IP 9.1.2. Mike ________________________________ From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Sam Munzani Sent: Monday, July 16, 2007 10:58 AM To: smunzani at comcast.net Cc: rancid-discuss at shrubbery.net Subject: [rancid] Re: F5 load balancer support BTW, this is what I see in the log when I do rancid-run now. That means the f5rancid file(hacked copy of rancid) is still missing something. more nfl.20070716.114842 starting: Mon Jul 16 11:48:42 CDT 2007 Trying to get all of the configs. test-f5-01: End of run not found -bash: write: command not found ===================================== Getting missed routers: round 1. test-f5-01: End of run not found -bash: write: command not found ===================================== Getting missed routers: round 2. test-f5-01: End of run not found -bash: write: command not found ===================================== Getting missed routers: round 3. test-f5-01: End of run not found -bash: write: command not found ===================================== Getting missed routers: round 4. test-f5-01: End of run not found -bash: write: command not found cvs diff: Diffing . cvs diff: Diffing configs nfl.20070716.114842 71%starting: Mon Jul 16 11:48:42 CDT 2007 Trying to get all of the configs. test-f5-01: End of run not found -bash: write: command not found ===================================== Getting missed routers: round 1. test-f5-01: End of run not found -bash: write: command not found ===================================== Getting missed routers: round 2. test-f5-01: End of run not found -bash: write: command not found ===================================== Getting missed routers: round 3. test-f5-01: End of run not found -bash: write: command not found ===================================== Getting missed routers: round 4. test-f5-01: End of run not found -bash: write: command not found cvs diff: Diffing . cvs diff: Diffing configs cvs diff: cannot find configs/test-f5-01 cvs commit: Examining . cvs commit: Examining configs cvs commit: Up-to-date check failed for `configs/test-f5-01' cvs [commit aborted]: correct above errors first! ls: test-f5-01: No such file or directory ending: Mon Jul 16 11:49:41 CDT 2007 Thanks, Sam David, Thanks a lot for the tip. This worked well. Now f5login goes much more cleaner and the "root" doesn't set sent again. I still have other issues where rancid-run is backing up config properly but I am still troubleshooting it. Now here is a question. What does "bldshgalsjd" mean and how does it do this miracle? Thanks, Sam Thanks for this tip, turns out that this is also the reason the username gets entered at a prompt on the cisco IPS devices. Since it's using SSH and therefore doesn't need a username prompt, solution was to simply add in .cloginrc: add userprompt ids* bldshgalsjd (<- something that won't get sent during login) Regards, David On 14/07/07, Lance wrote: Sam, Have you tried using telnet to login, if the f5 has it enabled. You may also want to set auto enable in your .cloginrc for this device as it looks to clogin as you are already in a cisco equivalent equal to enable since your prompt has a # sign in it. Looking at your next email along with this one it looks like you are already in a cisco equivalent of enable after you login. f5login seems to be sending your username of root as a command after you get connected because it sees this line "Last login: Fri Jul 13 14:38:03 2007 from 172.24.100.12" and it matches on the word "Login". See below. "(Username|Login|login|user name):"? yes expect: set expect_out(0,string) "login:" expect: set expect_out(1,string) "login" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " \r\nLast login:" send: sending "root\r" to { exp4 } expect: continuing expect You are just using a Cisco login/parsing script so it expects prompts from a Cisco device and in this case you have a *nix SSH banner that gets interrupted. I know you can use RANCID to backup *nix systems. So it knows how to understand connecting to a *nix system. You might want to try this email thread which asks about backing up Linux conifgs. "http://www.shrubbery.net/pipermail/rancid-discuss/2006-August/001649.ht ml" Or you could modify the existing f5login like so. I think you have to use the carrot before the () to work. I haven't checked this as I am at home and not on a UNIX system right now. Sorry to lazy to check it out right now. You might want to uncomment the line below 3. and comment out the line below 2. and see if that works. This is the only point in the code that I see it look for login in any line. If that doesn't work send me back the debug and I will see what I can do. I am sure some people that use expect more often then I can probably quickly tell you what to use as syntax there. # Figure out prompts set u_prompt [find userprompt $router if { "$u_prompt" == "" } { #1. ORIGINAL #set u_prompt "^(Username|Login|login|user name):" #2. Modified to read for a line beginning with Username,Login,login, or user name. set u_prompt "^(Username|Login|login|user name):" #3. Modified to read for a line beginning with Login or login. but I may be wrong #set u_prompt "^(Username|^Login|^login|user name):" } else { set u_prompt [join [lindex $u_prompt 0] ""] Let me know if this works for you. -Lance -------- Original Message -------- Subject: Re: [rancid] F5 load balancer support From: Sam Munzani Date: Fri, July 13, 2007 2:30 pm To: Lance Cc: rancid-discuss at shrubbery.net Lance, F5 login works fine with a minor error. $ f5login test-f5-01 test-f5-01 spawn ssh -c 3des -x -l root test-f5-01 Password: Last login: Fri Jul 13 14:26:28 2007 from 172.24.100.12 root [root at test-f5-01:Active] config # root -bash: root: command not found [root at test-f5-01:Active] config # [root at test-f5-01:Active] config # [root at test-f5-01:Active] config # I don't know how to debug otherwise I would turn on debug too. If you can provide some hints on debug, I would appreciate it. Thanks, Sam What error(s) do you get when you try to run your f5rancid? Where does it fail if you debug your f5login? -lance -------- Original Message -------- Subject: [rancid] F5 load balancer support From: Sam Munzani Date: Fri, July 13, 2007 12:45 pm To: rancid-discuss at shrubbery.net Hi, Did anybody happened to hack one of Cisco scripts to support BigIP F5 boxes? It should be pretty simple. All I want to do is login and type "b list" which is equivalent of "show run" on cisco. However for some reason things not working. All I did was copied clogin to f5login, copied rancid to f5rancid and added following to rancid-fe. elsif ($vendor =~ /^f5$/i) { exec('f5rancid', $router); } Then modified f5 rancid file and kept only one command in list of commands "b list". For some reason its not working. I can post my configs here if somebody like to see them. Thanks, Sam _______________________________________________ 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 _______________________________________________ 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 _______________________________________________ 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/20070829/7569d567/attachment.html From smunzani at comcast.net Wed Aug 29 21:06:21 2007 From: smunzani at comcast.net (Sam Munzani) Date: Wed, 29 Aug 2007 16:06:21 -0500 Subject: [rancid] Re: F5 load balancer support In-Reply-To: <45EB285310B55542A513F93230F0A53301A39BDF@EXCHANGE0.orm.omniture.com> References: <20070716173200.8e114e4890519e5179c192e02d6bca26.b34fb90ffd.wbe@email.secureserver.net> <469C200F.4020909@munzani.com> <45EB285310B55542A513F93230F0A5330115DB4F@EXCHANGE0.orm.omniture.com> <46D5B1DC.9000207@munzani.com> <45EB285310B55542A513F93230F0A53301A39BDF@EXCHANGE0.orm.omniture.com> Message-ID: <46D5DFCD.8030305@comcast.net> Mike, Yes. The code was 4.x. I ended up hard coding the term with vt100. The look gave me an error for some reason. Below is the code I added below Cat1900 code. When I added following code, I got error. -re "Terminal type\?" { if {[info exists env(TERM)]} { send "$env(TERM)\r" } else { send "vt100\r" } } ########## error output ######## Terminal type? [xterm] invalid command name "else" while executing "else { send "vt100\r" }" invoked from within "expect -nobrace -re {(Connection refused|Secure connection [^ ]+ refused)} { catch {close}; wait if !$progs { send_user "\nError: Connect..." invoked from within "expect { -re "(Connection refused|Secure connection \[^\n\r]+ refused)" { catch {close}; wait if !$progs { send_user "\nError: Connection..." (procedure "login" line 73) invoked from within "login $router $ruser $userpswd $passwd $enapasswd $cmethod $cyphertype" ("foreach" body line 111) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] send_user "$router\n" ################################ So I hard coded to vt100 like below -re "Terminal type\?" { send "vt100\r" } and things are working fine. Thanks, Sam > Sam, > > What version is on your old boxes? 4.x? I don't know how well > f5rancid will work on BIG-IP 4.x as I do not have it to test. > > That said, along with all disclaimers of fitness for any purpose or > any liability for anything that might happen, I gave it a quick attempt. > > Here is a diff for f5login that you can test. This tries to send the > TERM type from your environment and defaults to vt100 if it is not > set. It replaces a chunk of Cisco related code that is not needed. > > 418,421c418,424 > < -re "Enter Selection: " { > < # Catalyst 1900s have some lame > menu. Enter > < # K to reach a command-line. > < send "K\r" > --- > > -re "Terminal type\?" { > > # v4.x asks for term type > > if {[info exists env(TERM)]} { > > send "$env(TERM)\r" > > } else { > > send "vt100\r" > > } > If that does not work, adjust the regex to match the actual prompt > and hardcode vt100 if necessary. If that fails, send a screen capture > of the normal login process and the results of an f5login for comparison. > > Mike > ------------------------------------------------------------------------ > *From:* Sam Munzani [mailto:sam at munzani.com] > *Sent:* Wednesday, August 29, 2007 11:50 AM > *To:* Mike Ashcraft > *Cc:* Lance; rancid-discuss at shrubbery.net > *Subject:* Re: [rancid] Re: F5 load balancer support > > Team, > > I am sorry to reopen this old thread but the question I have relates > to this old thread. > Attached 2 rancid login files work fine on newer F5 boxes. However on > old boxes, it prompts for "term type" at the ssh login. I need to > insert logic in the script to answer to this "term type" question. > What's best way to handle it? > > Pass it as an argument like > f5login -t vt100 device-name > > and then catch the variable and add necessary logic for the expect? > > Thanks, > Sam >> I have been on vacation for the last couple of weeks or I would have >> posted this sooner and possibly saved some of you a bit of effort. >> >> It sounds like Lance and Sam have put together a working f5rancid >> with basic functionality which Sam posted last night. I have >> attached my f5rancid which I have been running for a few months. >> Installation instructions are included as comments in the file. >> This version uses clogin so that a separate f5login script is not >> required. >> >> This version formats and processes the output to make it more >> usable. As far as what is captured, I based this on the F5 >> equivalent of a tech out. It grabs a copy of all the configuration >> files, hardware configuration and software version as well as the >> timestamps and file sizes for SSL certs hosted on the device. This >> facilitates rebuilding from scratch as quickly as possible if this is >> ever needed. >> >> I was able to resolve the bug I mentioned yesterday by increasing the >> clogin timeout. On a small number of devices it failed to process >> the last few commands when running from cron but always worked >> properly from the command line on all devices [making it difficult to >> track down]. I mention this because it may be an appropriate fix >> for other intermittent problems sometimes discussed on this list. >> >> Any feedback is appreciated. I hope to get f5 support added to >> future releases of rancid. >> >> Thanks, >> >> Mike >> >> >> >> ------------------------------------------------------------------------ >> *From:* Sam Munzani [mailto:sam at munzani.com] >> *Sent:* Monday, July 16, 2007 7:49 PM >> *To:* Lance >> *Cc:* Mike Ashcraft; rancid-discuss at shrubbery.net >> *Subject:* Re: [rancid] Re: F5 load balancer support >> >> Lance, >> >> Thanks a lot for all your help. Pretty much you did all the work >> while I watched what you are doing :-).. >> >> Attached are cleaned up files. In f5rancid file, I have left some >> basic functions(non platform specific) just in case we expand this >> script to do a lot more than just "b list" output. In rancid-fe, we >> defined a new device type "f5", f5login was copied from clogin and >> remarked some "term length" statements we don't need on F5. >> >> All 3 files are attached and working great. Please be aware, we are >> not parsing anything at all. All its doing is basic function of >> running "b list" command and capturing its output. As I expand more >> on this, I will be sure to share with the audience here. >> >> Again, thanks a lot for all your help today. >> >> Regards, >> Sam >>> I have helped Sam get a working f5rancid which requires a f5login (only >>> because it doesn't recognize the prompt with a space and exit, unless >>> you enter a return before the exit). He is cleaning up all the unused >>> functions and will post it. >>> >>> Once John H. sends out his script I will look at it and see how it >>> differs from the one I did with Sam. I will even help Sam get it working >>> for his setup. We will let you know when it is all working. >>> >>> -lance >>> >>> >>>> -------- Original Message -------- >>>> Subject: [rancid] Re: F5 load balancer support >>>> From: "Mike Ashcraft" >>>> Date: Mon, July 16, 2007 11:48 am >>>> To: >>>> Cc: rancid-discuss at shrubbery.net >>>> >>>> Sam, >>>> >>>> I have a working f5rancid that I have been using for a number of months >>>> now. I have one minor bug related to tracking installed SSL certs >>>> which you probably don't care about. Other than that, it works great. >>>> >>>> I did encounter and solve all the problems you have been discussing on >>>> the list. >>>> >>>> Let me know if you are interested in trying what I have. I have tested >>>> it with Big-IP 9.1.2. >>>> >>>> Mike >>>> >>>> ________________________________ >>>> >>>> From: rancid-discuss-bounces at shrubbery.net >>>> [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Sam Munzani >>>> Sent: Monday, July 16, 2007 10:58 AM >>>> To: smunzani at comcast.net >>>> Cc: rancid-discuss at shrubbery.net >>>> Subject: [rancid] Re: F5 load balancer support >>>> >>>> >>>> BTW, this is what I see in the log when I do rancid-run now. That means >>>> the f5rancid file(hacked copy of rancid) is still missing something. >>>> >>>> more nfl.20070716.114842 >>>> starting: Mon Jul 16 11:48:42 CDT 2007 >>>> >>>> >>>> >>>> Trying to get all of the configs. >>>> test-f5-01: End of run not found >>>> -bash: write: command not found >>>> ===================================== >>>> Getting missed routers: round 1. >>>> test-f5-01: End of run not found >>>> -bash: write: command not found >>>> ===================================== >>>> Getting missed routers: round 2. >>>> test-f5-01: End of run not found >>>> -bash: write: command not found >>>> ===================================== >>>> Getting missed routers: round 3. >>>> test-f5-01: End of run not found >>>> -bash: write: command not found >>>> ===================================== >>>> Getting missed routers: round 4. >>>> test-f5-01: End of run not found >>>> -bash: write: command not found >>>> >>>> cvs diff: Diffing . >>>> cvs diff: Diffing configs >>>> nfl.20070716.114842 71%starting: Mon Jul 16 11:48:42 CDT 2007 >>>> >>>> >>>> >>>> Trying to get all of the configs. >>>> test-f5-01: End of run not found >>>> -bash: write: command not found >>>> ===================================== >>>> Getting missed routers: round 1. >>>> test-f5-01: End of run not found >>>> -bash: write: command not found >>>> ===================================== >>>> Getting missed routers: round 2. >>>> test-f5-01: End of run not found >>>> -bash: write: command not found >>>> ===================================== >>>> Getting missed routers: round 3. >>>> test-f5-01: End of run not found >>>> -bash: write: command not found >>>> ===================================== >>>> Getting missed routers: round 4. >>>> test-f5-01: End of run not found >>>> -bash: write: command not found >>>> >>>> cvs diff: Diffing . >>>> cvs diff: Diffing configs >>>> cvs diff: cannot find configs/test-f5-01 >>>> cvs commit: Examining . >>>> cvs commit: Examining configs >>>> cvs commit: Up-to-date check failed for `configs/test-f5-01' >>>> cvs [commit aborted]: correct above errors first! >>>> ls: test-f5-01: No such file or directory >>>> >>>> ending: Mon Jul 16 11:49:41 CDT 2007 >>>> >>>> Thanks, >>>> Sam >>>> >>>> >>>> David, >>>> >>>> Thanks a lot for the tip. This worked well. Now f5login goes >>>> much more >>>> cleaner and the "root" doesn't set sent again. I still have >>>> other issues >>>> where rancid-run is backing up config properly but I am still >>>> troubleshooting it. >>>> >>>> Now here is a question. What does "bldshgalsjd" mean and how >>>> does it do >>>> this miracle? >>>> >>>> Thanks, >>>> Sam >>>> >>>> >>>> Thanks for this tip, turns out that this is also the >>>> reason the >>>> username gets entered at a prompt on the cisco IPS >>>> devices. Since it's >>>> using SSH and therefore doesn't need a username prompt, >>>> solution was >>>> to simply add in .cloginrc: >>>> >>>> add userprompt ids* bldshgalsjd (<- something that >>>> won't get sent >>>> during login) >>>> >>>> Regards, >>>> >>>> David >>>> >>>> On 14/07/07, Lance >>>> wrote: >>>> >>>> >>>> Sam, >>>> >>>> Have you tried using telnet to login, if the f5 >>>> has it enabled. >>>> You may also want to set auto enable in your >>>> .cloginrc for this device >>>> as it looks to clogin as you are already in a >>>> cisco equivalent equal to >>>> enable since your prompt has a # sign in it. >>>> >>>> Looking at your next email along with this one >>>> it looks like you are >>>> already in a cisco equivalent of enable after >>>> you login. f5login seems >>>> to be sending your username of root as a command >>>> after you get connected >>>> because it sees this line "Last login: Fri Jul >>>> 13 14:38:03 2007 from >>>> 172.24.100.12" and it matches on the word >>>> "Login". See below. >>>> >>>> "(Username|Login|login|user name):"? yes >>>> >>>> expect: set expect_out(0,string) "login:" >>>> >>>> expect: set expect_out(1,string) "login" >>>> >>>> expect: set expect_out(spawn_id) "exp4" >>>> >>>> expect: set expect_out(buffer) " \r\nLast >>>> login:" >>>> >>>> send: sending "root\r" to { exp4 } >>>> >>>> expect: continuing expect >>>> >>>> You are just using a Cisco login/parsing script >>>> so it expects prompts >>>> from a Cisco device and in this case you have a >>>> *nix SSH banner that >>>> gets interrupted. I know you can use RANCID to >>>> backup *nix systems. So >>>> it knows how to understand connecting to a *nix >>>> system. You might want >>>> to try this email thread which asks about >>>> backing up Linux conifgs. >>>> >>>> "http://www.shrubbery.net/pipermail/rancid-discuss/2006-August/001649.ht >>>> ml" >>>> >>> ml> >>>> >>>> Or you could modify the existing f5login like >>>> so. >>>> >>>> I think you have to use the carrot before the () >>>> to work. I haven't >>>> checked this as I am at home and not on a UNIX >>>> system right now. Sorry >>>> to lazy to check it out right now. You might >>>> want to uncomment the line >>>> below 3. and comment out the line below 2. and >>>> see if that works. This >>>> is the only point in the code that I see it look >>>> for login in any line. >>>> If that doesn't work send me back the debug and >>>> I will see what I can >>>> do. I am sure some people that use expect more >>>> often then I can probably >>>> quickly tell you what to use as syntax there. >>>> >>>> # Figure out prompts >>>> set u_prompt [find userprompt $router >>>> if { "$u_prompt" == "" } { >>>> #1. ORIGINAL >>>> #set u_prompt >>>> "^(Username|Login|login|user name):" >>>> #2. Modified to read for a line beginning >>>> with >>>> Username,Login,login, or >>>> user name. >>>> set u_prompt "^(Username|Login|login|user >>>> name):" >>>> #3. Modified to read for a line beginning >>>> with Login or login. >>>> but I >>>> may be wrong >>>> #set u_prompt >>>> "^(Username|^Login|^login|user name):" >>>> } else { >>>> set u_prompt [join [lindex $u_prompt 0] >>>> ""] >>>> >>>> >>>> Let me know if this works for you. >>>> >>>> -Lance >>>> >>>> >>>> >>>> -------- Original Message -------- >>>> Subject: Re: [rancid] F5 load balancer >>>> support >>>> From: Sam Munzani >>>> >>>> Date: Fri, July 13, 2007 2:30 pm >>>> To: Lance >>>> >>>> Cc: rancid-discuss at shrubbery.net >>>> >>>> Lance, >>>> >>>> F5 login works fine with a minor error. >>>> >>>> $ f5login test-f5-01 >>>> test-f5-01 >>>> spawn ssh -c 3des -x -l root test-f5-01 >>>> Password: >>>> Last login: Fri Jul 13 14:26:28 2007 >>>> from 172.24.100.12 >>>> root >>>> [root at test-f5-01:Active] config # root >>>> -bash: root: command not found >>>> [root at test-f5-01:Active] config # >>>> [root at test-f5-01:Active] config # >>>> [root at test-f5-01:Active] config # >>>> >>>> I don't know how to debug otherwise I >>>> would turn on debug too. If you >>>> can provide some hints on debug, I would >>>> appreciate it. >>>> >>>> Thanks, >>>> Sam >>>> >>>> >>>> What error(s) do you get when you try to >>>> run your f5rancid? >>>> >>>> Where does it fail if you debug your >>>> f5login? >>>> >>>> >>>> -lance >>>> >>>> >>>> >>>> >>>> -------- Original Message -------- >>>> Subject: [rancid] F5 load balancer >>>> support >>>> From: Sam Munzani >>>> >>>> Date: Fri, July 13, 2007 12:45 pm >>>> To: rancid-discuss at shrubbery.net >>>> >>>> Hi, >>>> >>>> Did anybody happened to hack one of >>>> Cisco scripts to support >>>> >>>> >>>> BigIP F5 >>>> >>>> >>>> boxes? It should be pretty simple. All I >>>> want to do is login and >>>> >>>> >>>> type "b >>>> >>>> >>>> list" which is equivalent of "show run" >>>> on cisco. >>>> >>>> However for some reason things not >>>> working. All I did was copied >>>> >>>> >>>> clogin >>>> >>>> >>>> to f5login, copied rancid to f5rancid >>>> and added following to >>>> >>>> >>>> rancid-fe. >>>> >>>> >>>> elsif ($vendor =~ /^f5$/i) >>>> { exec('f5rancid', >>>> >>>> >>>> $router); } >>>> >>>> >>>> Then modified f5 rancid file and kept >>>> only one command in list of >>>> commands "b list". >>>> >>>> For some reason its not working. I can >>>> post my configs here if >>>> >>>> >>>> somebody >>>> >>>> >>>> like to see them. >>>> >>>> Thanks, >>>> Sam >>>> >>>> _______________________________________________ >>>> 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 >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> 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 >>>> >>> >>> _______________________________________________ >>> 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070829/6f29b367/attachment.html From mashcraft at omniture.com Wed Aug 29 21:32:43 2007 From: mashcraft at omniture.com (Mike Ashcraft) Date: Wed, 29 Aug 2007 15:32:43 -0600 Subject: [rancid] Re: F5 load balancer support In-Reply-To: <46D5DFCD.8030305@comcast.net> References: <20070716173200.8e114e4890519e5179c192e02d6bca26.b34fb90ffd.wbe@email.secureserver.net> <469C200F.4020909@munzani.com> <45EB285310B55542A513F93230F0A5330115DB4F@EXCHANGE0.orm.omniture.com> <46D5B1DC.9000207@munzani.com> <45EB285310B55542A513F93230F0A53301A39BDF@EXCHANGE0.orm.omniture.com> <46D5DFCD.8030305@comcast.net> Message-ID: <45EB285310B55542A513F93230F0A53301A39C7D@EXCHANGE0.orm.omniture.com> Sam, Glad you got it working. Your problem was that you inserted my patch manually and accidentally made a syntax error. In expect, you can not start a line with else, it has to be: } else { If you have a chance to make this change and try it out, please let me know. Mike ________________________________ From: Sam Munzani [mailto:smunzani at comcast.net] Sent: Wednesday, August 29, 2007 3:06 PM To: Mike Ashcraft Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] Re: F5 load balancer support Mike, Yes. The code was 4.x. I ended up hard coding the term with vt100. The look gave me an error for some reason. Below is the code I added below Cat1900 code. When I added following code, I got error. -re "Terminal type\?" { if {[info exists env(TERM)]} { send "$env(TERM)\r" } else { send "vt100\r" } } ########## error output ######## Terminal type? [xterm] invalid command name "else" while executing "else { send "vt100\r" }" invoked from within "expect -nobrace -re {(Connection refused|Secure connection [^ ]+ refused)} { catch {close}; wait if !$progs { send_user "\nError: Connect..." invoked from within "expect { -re "(Connection refused|Secure connection \[^\n\r]+ refused)" { catch {close}; wait if !$progs { send_user "\nError: Connection..." (procedure "login" line 73) invoked from within "login $router $ruser $userpswd $passwd $enapasswd $cmethod $cyphertype" ("foreach" body line 111) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] send_user "$router\n" ################################ So I hard coded to vt100 like below -re "Terminal type\?" { send "vt100\r" } and things are working fine. Thanks, Sam Sam, What version is on your old boxes? 4.x? I don't know how well f5rancid will work on BIG-IP 4.x as I do not have it to test. That said, along with all disclaimers of fitness for any purpose or any liability for anything that might happen, I gave it a quick attempt. Here is a diff for f5login that you can test. This tries to send the TERM type from your environment and defaults to vt100 if it is not set. It replaces a chunk of Cisco related code that is not needed. 418,421c418,424 < -re "Enter Selection: " { < # Catalyst 1900s have some lame menu. Enter < # K to reach a command-line. < send "K\r" --- > -re "Terminal type\?" { > # v4.x asks for term type > if {[info exists env(TERM)]} { > send "$env(TERM)\r" > } else { > send "vt100\r" > } If that does not work, adjust the regex to match the actual prompt and hardcode vt100 if necessary. If that fails, send a screen capture of the normal login process and the results of an f5login for comparison. Mike ________________________________ From: Sam Munzani [mailto:sam at munzani.com] Sent: Wednesday, August 29, 2007 11:50 AM To: Mike Ashcraft Cc: Lance; rancid-discuss at shrubbery.net Subject: Re: [rancid] Re: F5 load balancer support Team, I am sorry to reopen this old thread but the question I have relates to this old thread. Attached 2 rancid login files work fine on newer F5 boxes. However on old boxes, it prompts for "term type" at the ssh login. I need to insert logic in the script to answer to this "term type" question. What's best way to handle it? Pass it as an argument like f5login -t vt100 device-name and then catch the variable and add necessary logic for the expect? Thanks, Sam I have been on vacation for the last couple of weeks or I would have posted this sooner and possibly saved some of you a bit of effort. It sounds like Lance and Sam have put together a working f5rancid with basic functionality which Sam posted last night. I have attached my f5rancid which I have been running for a few months. Installation instructions are included as comments in the file. This version uses clogin so that a separate f5login script is not required. This version formats and processes the output to make it more usable. As far as what is captured, I based this on the F5 equivalent of a tech out. It grabs a copy of all the configuration files, hardware configuration and software version as well as the timestamps and file sizes for SSL certs hosted on the device. This facilitates rebuilding from scratch as quickly as possible if this is ever needed. I was able to resolve the bug I mentioned yesterday by increasing the clogin timeout. On a small number of devices it failed to process the last few commands when running from cron but always worked properly from the command line on all devices [making it difficult to track down]. I mention this because it may be an appropriate fix for other intermittent problems sometimes discussed on this list. Any feedback is appreciated. I hope to get f5 support added to future releases of rancid. Thanks, Mike ________________________________ From: Sam Munzani [mailto:sam at munzani.com] Sent: Monday, July 16, 2007 7:49 PM To: Lance Cc: Mike Ashcraft; rancid-discuss at shrubbery.net Subject: Re: [rancid] Re: F5 load balancer support Lance, Thanks a lot for all your help. Pretty much you did all the work while I watched what you are doing :-).. Attached are cleaned up files. In f5rancid file, I have left some basic functions(non platform specific) just in case we expand this script to do a lot more than just "b list" output. In rancid-fe, we defined a new device type "f5", f5login was copied from clogin and remarked some "term length" statements we don't need on F5. All 3 files are attached and working great. Please be aware, we are not parsing anything at all. All its doing is basic function of running "b list" command and capturing its output. As I expand more on this, I will be sure to share with the audience here. Again, thanks a lot for all your help today. Regards, Sam I have helped Sam get a working f5rancid which requires a f5login (only because it doesn't recognize the prompt with a space and exit, unless you enter a return before the exit). He is cleaning up all the unused functions and will post it. Once John H. sends out his script I will look at it and see how it differs from the one I did with Sam. I will even help Sam get it working for his setup. We will let you know when it is all working. -lance -------- Original Message -------- Subject: [rancid] Re: F5 load balancer support From: "Mike Ashcraft" Date: Mon, July 16, 2007 11:48 am To: Cc: rancid-discuss at shrubbery.net Sam, I have a working f5rancid that I have been using for a number of months now. I have one minor bug related to tracking installed SSL certs which you probably don't care about. Other than that, it works great. I did encounter and solve all the problems you have been discussing on the list. Let me know if you are interested in trying what I have. I have tested it with Big-IP 9.1.2. Mike ________________________________ From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Sam Munzani Sent: Monday, July 16, 2007 10:58 AM To: smunzani at comcast.net Cc: rancid-discuss at shrubbery.net Subject: [rancid] Re: F5 load balancer support BTW, this is what I see in the log when I do rancid-run now. That means the f5rancid file(hacked copy of rancid) is still missing something. more nfl.20070716.114842 starting: Mon Jul 16 11:48:42 CDT 2007 Trying to get all of the configs. test-f5-01: End of run not found -bash: write: command not found ===================================== Getting missed routers: round 1. test-f5-01: End of run not found -bash: write: command not found ===================================== Getting missed routers: round 2. test-f5-01: End of run not found -bash: write: command not found ===================================== Getting missed routers: round 3. test-f5-01: End of run not found -bash: write: command not found ===================================== Getting missed routers: round 4. test-f5-01: End of run not found -bash: write: command not found cvs diff: Diffing . cvs diff: Diffing configs nfl.20070716.114842 71%starting: Mon Jul 16 11:48:42 CDT 2007 Trying to get all of the configs. test-f5-01: End of run not found -bash: write: command not found ===================================== Getting missed routers: round 1. test-f5-01: End of run not found -bash: write: command not found ===================================== Getting missed routers: round 2. test-f5-01: End of run not found -bash: write: command not found ===================================== Getting missed routers: round 3. test-f5-01: End of run not found -bash: write: command not found ===================================== Getting missed routers: round 4. test-f5-01: End of run not found -bash: write: command not found cvs diff: Diffing . cvs diff: Diffing configs cvs diff: cannot find configs/test-f5-01 cvs commit: Examining . cvs commit: Examining configs cvs commit: Up-to-date check failed for `configs/test-f5-01' cvs [commit aborted]: correct above errors first! ls: test-f5-01: No such file or directory ending: Mon Jul 16 11:49:41 CDT 2007 Thanks, Sam David, Thanks a lot for the tip. This worked well. Now f5login goes much more cleaner and the "root" doesn't set sent again. I still have other issues where rancid-run is backing up config properly but I am still troubleshooting it. Now here is a question. What does "bldshgalsjd" mean and how does it do this miracle? Thanks, Sam Thanks for this tip, turns out that this is also the reason the username gets entered at a prompt on the cisco IPS devices. Since it's using SSH and therefore doesn't need a username prompt, solution was to simply add in .cloginrc: add userprompt ids* bldshgalsjd (<- something that won't get sent during login) Regards, David On 14/07/07, Lance wrote: Sam, Have you tried using telnet to login, if the f5 has it enabled. You may also want to set auto enable in your .cloginrc for this device as it looks to clogin as you are already in a cisco equivalent equal to enable since your prompt has a # sign in it. Looking at your next email along with this one it looks like you are already in a cisco equivalent of enable after you login. f5login seems to be sending your username of root as a command after you get connected because it sees this line "Last login: Fri Jul 13 14:38:03 2007 from 172.24.100.12" and it matches on the word "Login". See below. "(Username|Login|login|user name):"? yes expect: set expect_out(0,string) "login:" expect: set expect_out(1,string) "login" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " \r\nLast login:" send: sending "root\r" to { exp4 } expect: continuing expect You are just using a Cisco login/parsing script so it expects prompts from a Cisco device and in this case you have a *nix SSH banner that gets interrupted. I know you can use RANCID to backup *nix systems. So it knows how to understand connecting to a *nix system. You might want to try this email thread which asks about backing up Linux conifgs. "http://www.shrubbery.net/pipermail/rancid-discuss/2006-August/001649.ht ml" Or you could modify the existing f5login like so. I think you have to use the carrot before the () to work. I haven't checked this as I am at home and not on a UNIX system right now. Sorry to lazy to check it out right now. You might want to uncomment the line below 3. and comment out the line below 2. and see if that works. This is the only point in the code that I see it look for login in any line. If that doesn't work send me back the debug and I will see what I can do. I am sure some people that use expect more often then I can probably quickly tell you what to use as syntax there. # Figure out prompts set u_prompt [find userprompt $router if { "$u_prompt" == "" } { #1. ORIGINAL #set u_prompt "^(Username|Login|login|user name):" #2. Modified to read for a line beginning with Username,Login,login, or user name. set u_prompt "^(Username|Login|login|user name):" #3. Modified to read for a line beginning with Login or login. but I may be wrong #set u_prompt "^(Username|^Login|^login|user name):" } else { set u_prompt [join [lindex $u_prompt 0] ""] Let me know if this works for you. -Lance -------- Original Message -------- Subject: Re: [rancid] F5 load balancer support From: Sam Munzani Date: Fri, July 13, 2007 2:30 pm To: Lance Cc: rancid-discuss at shrubbery.net Lance, F5 login works fine with a minor error. $ f5login test-f5-01 test-f5-01 spawn ssh -c 3des -x -l root test-f5-01 Password: Last login: Fri Jul 13 14:26:28 2007 from 172.24.100.12 root [root at test-f5-01:Active] config # root -bash: root: command not found [root at test-f5-01:Active] config # [root at test-f5-01:Active] config # [root at test-f5-01:Active] config # I don't know how to debug otherwise I would turn on debug too. If you can provide some hints on debug, I would appreciate it. Thanks, Sam What error(s) do you get when you try to run your f5rancid? Where does it fail if you debug your f5login? -lance -------- Original Message -------- Subject: [rancid] F5 load balancer support From: Sam Munzani Date: Fri, July 13, 2007 12:45 pm To: rancid-discuss at shrubbery.net Hi, Did anybody happened to hack one of Cisco scripts to support BigIP F5 boxes? It should be pretty simple. All I want to do is login and type "b list" which is equivalent of "show run" on cisco. However for some reason things not working. All I did was copied clogin to f5login, copied rancid to f5rancid and added following to rancid-fe. elsif ($vendor =~ /^f5$/i) { exec('f5rancid', $router); } Then modified f5 rancid file and kept only one command in list of commands "b list". For some reason its not working. I can post my configs here if somebody like to see them. Thanks, Sam _______________________________________________ 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 _______________________________________________ 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 _______________________________________________ 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070829/3db91b87/attachment.html From smunzani at comcast.net Wed Aug 29 21:45:58 2007 From: smunzani at comcast.net (Sam Munzani) Date: Wed, 29 Aug 2007 16:45:58 -0500 Subject: [rancid] Re: F5 load balancer support In-Reply-To: <45EB285310B55542A513F93230F0A53301A39C7D@EXCHANGE0.orm.omniture.com> References: <20070716173200.8e114e4890519e5179c192e02d6bca26.b34fb90ffd.wbe@email.secureserver.net> <469C200F.4020909@munzani.com> <45EB285310B55542A513F93230F0A5330115DB4F@EXCHANGE0.orm.omniture.com> <46D5B1DC.9000207@munzani.com> <45EB285310B55542A513F93230F0A53301A39BDF@EXCHANGE0.orm.omniture.com> <46D5DFCD.8030305@comcast.net> <45EB285310B55542A513F93230F0A53301A39C7D@EXCHANGE0.orm.omniture.com> Message-ID: <46D5E916.4070103@comcast.net> Mike, You are absolutely correct. My manual typing and ignoring expect syntax rules had issues. This time I cut-pasted your code and it worked fine. Thanks a lot, Sam > Sam, > > Glad you got it working. > > Your problem was that you inserted my patch manually and accidentally > made a syntax error. > > In expect, you can not start a line with else, it has to be: > > } else { > > If you have a chance to make this change and try it out, please let me > know. > > > Mike > > ------------------------------------------------------------------------ > *From:* Sam Munzani [mailto:smunzani at comcast.net] > *Sent:* Wednesday, August 29, 2007 3:06 PM > *To:* Mike Ashcraft > *Cc:* rancid-discuss at shrubbery.net > *Subject:* Re: [rancid] Re: F5 load balancer support > > Mike, > > Yes. The code was 4.x. I ended up hard coding the term with vt100. The > look gave me an error for some reason. Below is the code I added below > Cat1900 code. > When I added following code, I got error. > -re "Terminal type\?" { > if {[info exists env(TERM)]} { > send "$env(TERM)\r" > } > else { > send "vt100\r" > } > } > ########## error output ######## > Terminal type? [xterm] invalid command name "else" > while executing > "else { > send "vt100\r" > }" > invoked from within > "expect -nobrace -re {(Connection refused|Secure connection [^ > ]+ refused)} { > catch {close}; wait > if !$progs { > send_user "\nError: Connect..." > invoked from within > "expect { > -re "(Connection refused|Secure connection \[^\n\r]+ refused)" { > catch {close}; wait > if !$progs { > send_user "\nError: Connection..." > (procedure "login" line 73) > invoked from within > "login $router $ruser $userpswd $passwd $enapasswd $cmethod $cyphertype" > ("foreach" body line 111) > invoked from within > "foreach router [lrange $argv $i end] { > set router [string tolower $router] > send_user "$router\n" > > ################################ > > So I hard coded to vt100 like below > > -re "Terminal type\?" { > send "vt100\r" > } > > and things are working fine. > > Thanks, > Sam >> Sam, >> >> What version is on your old boxes? 4.x? I don't know how well >> f5rancid will work on BIG-IP 4.x as I do not have it to test. >> >> That said, along with all disclaimers of fitness for any purpose or >> any liability for anything that might happen, I gave it a >> quick attempt. >> >> Here is a diff for f5login that you can test. This tries to send the >> TERM type from your environment and defaults to vt100 if it is not >> set. It replaces a chunk of Cisco related code that is not needed. >> >> 418,421c418,424 >> < -re "Enter Selection: " { >> < # Catalyst 1900s have some lame >> menu. Enter >> < # K to reach a command-line. >> < send "K\r" >> --- >> > -re "Terminal type\?" { >> > # v4.x asks for term type >> > if {[info exists env(TERM)]} { >> > send "$env(TERM)\r" >> > } else { >> > send "vt100\r" >> > } >> If that does not work, adjust the regex to match the actual prompt >> and hardcode vt100 if necessary. If that fails, send a screen >> capture of the normal login process and the results of an f5login for >> comparison. >> >> Mike >> ------------------------------------------------------------------------ >> *From:* Sam Munzani [mailto:sam at munzani.com] >> *Sent:* Wednesday, August 29, 2007 11:50 AM >> *To:* Mike Ashcraft >> *Cc:* Lance; rancid-discuss at shrubbery.net >> *Subject:* Re: [rancid] Re: F5 load balancer support >> >> Team, >> >> I am sorry to reopen this old thread but the question I have relates >> to this old thread. >> Attached 2 rancid login files work fine on newer F5 boxes. However on >> old boxes, it prompts for "term type" at the ssh login. I need to >> insert logic in the script to answer to this "term type" question. >> What's best way to handle it? >> >> Pass it as an argument like >> f5login -t vt100 device-name >> >> and then catch the variable and add necessary logic for the expect? >> >> Thanks, >> Sam >>> I have been on vacation for the last couple of weeks or I would have >>> posted this sooner and possibly saved some of you a bit of effort. >>> >>> It sounds like Lance and Sam have put together a working f5rancid >>> with basic functionality which Sam posted last night. I have >>> attached my f5rancid which I have been running for a few months. >>> Installation instructions are included as comments in the file. >>> This version uses clogin so that a separate f5login script is not >>> required. >>> >>> This version formats and processes the output to make it more >>> usable. As far as what is captured, I based this on the F5 >>> equivalent of a tech out. It grabs a copy of all the configuration >>> files, hardware configuration and software version as well as the >>> timestamps and file sizes for SSL certs hosted on the device. This >>> facilitates rebuilding from scratch as quickly as possible if this >>> is ever needed. >>> >>> I was able to resolve the bug I mentioned yesterday by increasing >>> the clogin timeout. On a small number of devices it failed to >>> process the last few commands when running from cron but always >>> worked properly from the command line on all devices [making it >>> difficult to track down]. I mention this because it may be an >>> appropriate fix for other intermittent problems sometimes discussed >>> on this list. >>> >>> Any feedback is appreciated. I hope to get f5 support added to >>> future releases of rancid. >>> >>> Thanks, >>> >>> Mike >>> >>> >>> >>> ------------------------------------------------------------------------ >>> *From:* Sam Munzani [mailto:sam at munzani.com] >>> *Sent:* Monday, July 16, 2007 7:49 PM >>> *To:* Lance >>> *Cc:* Mike Ashcraft; rancid-discuss at shrubbery.net >>> *Subject:* Re: [rancid] Re: F5 load balancer support >>> >>> Lance, >>> >>> Thanks a lot for all your help. Pretty much you did all the work >>> while I watched what you are doing :-).. >>> >>> Attached are cleaned up files. In f5rancid file, I have left some >>> basic functions(non platform specific) just in case we expand this >>> script to do a lot more than just "b list" output. In rancid-fe, we >>> defined a new device type "f5", f5login was copied from clogin and >>> remarked some "term length" statements we don't need on F5. >>> >>> All 3 files are attached and working great. Please be aware, we are >>> not parsing anything at all. All its doing is basic function of >>> running "b list" command and capturing its output. As I expand more >>> on this, I will be sure to share with the audience here. >>> >>> Again, thanks a lot for all your help today. >>> >>> Regards, >>> Sam >>>> I have helped Sam get a working f5rancid which requires a f5login (only >>>> because it doesn't recognize the prompt with a space and exit, unless >>>> you enter a return before the exit). He is cleaning up all the unused >>>> functions and will post it. >>>> >>>> Once John H. sends out his script I will look at it and see how it >>>> differs from the one I did with Sam. I will even help Sam get it working >>>> for his setup. We will let you know when it is all working. >>>> >>>> -lance >>>> >>>> >>>>> -------- Original Message -------- >>>>> Subject: [rancid] Re: F5 load balancer support >>>>> From: "Mike Ashcraft" >>>>> Date: Mon, July 16, 2007 11:48 am >>>>> To: >>>>> Cc: rancid-discuss at shrubbery.net >>>>> >>>>> Sam, >>>>> >>>>> I have a working f5rancid that I have been using for a number of months >>>>> now. I have one minor bug related to tracking installed SSL certs >>>>> which you probably don't care about. Other than that, it works great. >>>>> >>>>> I did encounter and solve all the problems you have been discussing on >>>>> the list. >>>>> >>>>> Let me know if you are interested in trying what I have. I have tested >>>>> it with Big-IP 9.1.2. >>>>> >>>>> Mike >>>>> >>>>> ________________________________ >>>>> >>>>> From: rancid-discuss-bounces at shrubbery.net >>>>> [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Sam Munzani >>>>> Sent: Monday, July 16, 2007 10:58 AM >>>>> To: smunzani at comcast.net >>>>> Cc: rancid-discuss at shrubbery.net >>>>> Subject: [rancid] Re: F5 load balancer support >>>>> >>>>> >>>>> BTW, this is what I see in the log when I do rancid-run now. That means >>>>> the f5rancid file(hacked copy of rancid) is still missing something. >>>>> >>>>> more nfl.20070716.114842 >>>>> starting: Mon Jul 16 11:48:42 CDT 2007 >>>>> >>>>> >>>>> >>>>> Trying to get all of the configs. >>>>> test-f5-01: End of run not found >>>>> -bash: write: command not found >>>>> ===================================== >>>>> Getting missed routers: round 1. >>>>> test-f5-01: End of run not found >>>>> -bash: write: command not found >>>>> ===================================== >>>>> Getting missed routers: round 2. >>>>> test-f5-01: End of run not found >>>>> -bash: write: command not found >>>>> ===================================== >>>>> Getting missed routers: round 3. >>>>> test-f5-01: End of run not found >>>>> -bash: write: command not found >>>>> ===================================== >>>>> Getting missed routers: round 4. >>>>> test-f5-01: End of run not found >>>>> -bash: write: command not found >>>>> >>>>> cvs diff: Diffing . >>>>> cvs diff: Diffing configs >>>>> nfl.20070716.114842 71%starting: Mon Jul 16 11:48:42 CDT 2007 >>>>> >>>>> >>>>> >>>>> Trying to get all of the configs. >>>>> test-f5-01: End of run not found >>>>> -bash: write: command not found >>>>> ===================================== >>>>> Getting missed routers: round 1. >>>>> test-f5-01: End of run not found >>>>> -bash: write: command not found >>>>> ===================================== >>>>> Getting missed routers: round 2. >>>>> test-f5-01: End of run not found >>>>> -bash: write: command not found >>>>> ===================================== >>>>> Getting missed routers: round 3. >>>>> test-f5-01: End of run not found >>>>> -bash: write: command not found >>>>> ===================================== >>>>> Getting missed routers: round 4. >>>>> test-f5-01: End of run not found >>>>> -bash: write: command not found >>>>> >>>>> cvs diff: Diffing . >>>>> cvs diff: Diffing configs >>>>> cvs diff: cannot find configs/test-f5-01 >>>>> cvs commit: Examining . >>>>> cvs commit: Examining configs >>>>> cvs commit: Up-to-date check failed for `configs/test-f5-01' >>>>> cvs [commit aborted]: correct above errors first! >>>>> ls: test-f5-01: No such file or directory >>>>> >>>>> ending: Mon Jul 16 11:49:41 CDT 2007 >>>>> >>>>> Thanks, >>>>> Sam >>>>> >>>>> >>>>> David, >>>>> >>>>> Thanks a lot for the tip. This worked well. Now f5login goes >>>>> much more >>>>> cleaner and the "root" doesn't set sent again. I still have >>>>> other issues >>>>> where rancid-run is backing up config properly but I am still >>>>> troubleshooting it. >>>>> >>>>> Now here is a question. What does "bldshgalsjd" mean and how >>>>> does it do >>>>> this miracle? >>>>> >>>>> Thanks, >>>>> Sam >>>>> >>>>> >>>>> Thanks for this tip, turns out that this is also the >>>>> reason the >>>>> username gets entered at a prompt on the cisco IPS >>>>> devices. Since it's >>>>> using SSH and therefore doesn't need a username prompt, >>>>> solution was >>>>> to simply add in .cloginrc: >>>>> >>>>> add userprompt ids* bldshgalsjd (<- something that >>>>> won't get sent >>>>> during login) >>>>> >>>>> Regards, >>>>> >>>>> David >>>>> >>>>> On 14/07/07, Lance >>>>> wrote: >>>>> >>>>> >>>>> Sam, >>>>> >>>>> Have you tried using telnet to login, if the f5 >>>>> has it enabled. >>>>> You may also want to set auto enable in your >>>>> .cloginrc for this device >>>>> as it looks to clogin as you are already in a >>>>> cisco equivalent equal to >>>>> enable since your prompt has a # sign in it. >>>>> >>>>> Looking at your next email along with this one >>>>> it looks like you are >>>>> already in a cisco equivalent of enable after >>>>> you login. f5login seems >>>>> to be sending your username of root as a command >>>>> after you get connected >>>>> because it sees this line "Last login: Fri Jul >>>>> 13 14:38:03 2007 from >>>>> 172.24.100.12" and it matches on the word >>>>> "Login". See below. >>>>> >>>>> "(Username|Login|login|user name):"? yes >>>>> >>>>> expect: set expect_out(0,string) "login:" >>>>> >>>>> expect: set expect_out(1,string) "login" >>>>> >>>>> expect: set expect_out(spawn_id) "exp4" >>>>> >>>>> expect: set expect_out(buffer) " \r\nLast >>>>> login:" >>>>> >>>>> send: sending "root\r" to { exp4 } >>>>> >>>>> expect: continuing expect >>>>> >>>>> You are just using a Cisco login/parsing script >>>>> so it expects prompts >>>>> from a Cisco device and in this case you have a >>>>> *nix SSH banner that >>>>> gets interrupted. I know you can use RANCID to >>>>> backup *nix systems. So >>>>> it knows how to understand connecting to a *nix >>>>> system. You might want >>>>> to try this email thread which asks about >>>>> backing up Linux conifgs. >>>>> >>>>> "http://www.shrubbery.net/pipermail/rancid-discuss/2006-August/001649.ht >>>>> ml" >>>>> >>>> ml> >>>>> >>>>> Or you could modify the existing f5login like >>>>> so. >>>>> >>>>> I think you have to use the carrot before the () >>>>> to work. I haven't >>>>> checked this as I am at home and not on a UNIX >>>>> system right now. Sorry >>>>> to lazy to check it out right now. You might >>>>> want to uncomment the line >>>>> below 3. and comment out the line below 2. and >>>>> see if that works. This >>>>> is the only point in the code that I see it look >>>>> for login in any line. >>>>> If that doesn't work send me back the debug and >>>>> I will see what I can >>>>> do. I am sure some people that use expect more >>>>> often then I can probably >>>>> quickly tell you what to use as syntax there. >>>>> >>>>> # Figure out prompts >>>>> set u_prompt [find userprompt $router >>>>> if { "$u_prompt" == "" } { >>>>> #1. ORIGINAL >>>>> #set u_prompt >>>>> "^(Username|Login|login|user name):" >>>>> #2. Modified to read for a line beginning >>>>> with >>>>> Username,Login,login, or >>>>> user name. >>>>> set u_prompt "^(Username|Login|login|user >>>>> name):" >>>>> #3. Modified to read for a line beginning >>>>> with Login or login. >>>>> but I >>>>> may be wrong >>>>> #set u_prompt >>>>> "^(Username|^Login|^login|user name):" >>>>> } else { >>>>> set u_prompt [join [lindex $u_prompt 0] >>>>> ""] >>>>> >>>>> >>>>> Let me know if this works for you. >>>>> >>>>> -Lance >>>>> >>>>> >>>>> >>>>> -------- Original Message -------- >>>>> Subject: Re: [rancid] F5 load balancer >>>>> support >>>>> From: Sam Munzani >>>>> >>>>> Date: Fri, July 13, 2007 2:30 pm >>>>> To: Lance >>>>> >>>>> Cc: rancid-discuss at shrubbery.net >>>>> >>>>> Lance, >>>>> >>>>> F5 login works fine with a minor error. >>>>> >>>>> $ f5login test-f5-01 >>>>> test-f5-01 >>>>> spawn ssh -c 3des -x -l root test-f5-01 >>>>> Password: >>>>> Last login: Fri Jul 13 14:26:28 2007 >>>>> from 172.24.100.12 >>>>> root >>>>> [root at test-f5-01:Active] config # root >>>>> -bash: root: command not found >>>>> [root at test-f5-01:Active] config # >>>>> [root at test-f5-01:Active] config # >>>>> [root at test-f5-01:Active] config # >>>>> >>>>> I don't know how to debug otherwise I >>>>> would turn on debug too. If you >>>>> can provide some hints on debug, I would >>>>> appreciate it. >>>>> >>>>> Thanks, >>>>> Sam >>>>> >>>>> >>>>> What error(s) do you get when you try to >>>>> run your f5rancid? >>>>> >>>>> Where does it fail if you debug your >>>>> f5login? >>>>> >>>>> >>>>> -lance >>>>> >>>>> >>>>> >>>>> >>>>> -------- Original Message -------- >>>>> Subject: [rancid] F5 load balancer >>>>> support >>>>> From: Sam Munzani >>>>> >>>>> Date: Fri, July 13, 2007 12:45 pm >>>>> To: rancid-discuss at shrubbery.net >>>>> >>>>> Hi, >>>>> >>>>> Did anybody happened to hack one of >>>>> Cisco scripts to support >>>>> >>>>> >>>>> BigIP F5 >>>>> >>>>> >>>>> boxes? It should be pretty simple. All I >>>>> want to do is login and >>>>> >>>>> >>>>> type "b >>>>> >>>>> >>>>> list" which is equivalent of "show run" >>>>> on cisco. >>>>> >>>>> However for some reason things not >>>>> working. All I did was copied >>>>> >>>>> >>>>> clogin >>>>> >>>>> >>>>> to f5login, copied rancid to f5rancid >>>>> and added following to >>>>> >>>>> >>>>> rancid-fe. >>>>> >>>>> >>>>> elsif ($vendor =~ /^f5$/i) >>>>> { exec('f5rancid', >>>>> >>>>> >>>>> $router); } >>>>> >>>>> >>>>> Then modified f5 rancid file and kept >>>>> only one command in list of >>>>> commands "b list". >>>>> >>>>> For some reason its not working. I can >>>>> post my configs here if >>>>> >>>>> >>>>> somebody >>>>> >>>>> >>>>> like to see them. >>>>> >>>>> Thanks, >>>>> Sam >>>>> >>>>> _______________________________________________ >>>>> 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 >>>>> >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> 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 >>>>> >>>> >>>> _______________________________________________ >>>> 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070829/e3aab338/attachment.html From nocph at aim.com Thu Aug 30 10:41:25 2007 From: nocph at aim.com (nocph at aim.com) Date: Thu, 30 Aug 2007 06:41:25 -0400 Subject: [rancid] clogin tail logs Message-ID: <8C9B90972DC83D1-FB8-78EB@FWM-M02.sysops.aol.com> Hi Guys, How can I see the log of clogin? Something like tail logs. Thanks, Phi ________________________________________________________________________ Check Out the new free AIM(R) Mail -- Unlimited storage and industry-leading spam and email virus protection. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070830/21ab6478/attachment.html From sam at munzani.com Wed Aug 29 17:50:20 2007 From: sam at munzani.com (Sam Munzani) Date: Wed, 29 Aug 2007 12:50:20 -0500 Subject: [rancid] Re: F5 load balancer support In-Reply-To: <45EB285310B55542A513F93230F0A5330115DB4F@EXCHANGE0.orm.omniture.com> References: <20070716173200.8e114e4890519e5179c192e02d6bca26.b34fb90ffd.wbe@email.secureserver.net> <469C200F.4020909@munzani.com> <45EB285310B55542A513F93230F0A5330115DB4F@EXCHANGE0.orm.omniture.com> Message-ID: <46D5B1DC.9000207@munzani.com> Team, I am sorry to reopen this old thread but the question I have relates to this old thread. Attached 2 rancid login files work fine on newer F5 boxes. However on old boxes, it prompts for "term type" at the ssh login. I need to insert logic in the script to answer to this "term type" question. What's best way to handle it? Pass it as an argument like f5login -t vt100 device-name and then catch the variable and add necessary logic for the expect? Thanks, Sam > I have been on vacation for the last couple of weeks or I would have > posted this sooner and possibly saved some of you a bit of effort. > > It sounds like Lance and Sam have put together a working f5rancid > with basic functionality which Sam posted last night. I have attached > my f5rancid which I have been running for a few months. Installation > instructions are included as comments in the file. This version uses > clogin so that a separate f5login script is not required. > > This version formats and processes the output to make it more > usable. As far as what is captured, I based this on the F5 equivalent > of a tech out. It grabs a copy of all the configuration files, > hardware configuration and software version as well as the timestamps > and file sizes for SSL certs hosted on the device. This facilitates > rebuilding from scratch as quickly as possible if this is ever needed. > > I was able to resolve the bug I mentioned yesterday by increasing the > clogin timeout. On a small number of devices it failed to process the > last few commands when running from cron but always worked properly > from the command line on all devices [making it difficult to track > down]. I mention this because it may be an appropriate fix for other > intermittent problems sometimes discussed on this list. > > Any feedback is appreciated. I hope to get f5 support added to future > releases of rancid. > > Thanks, > > Mike > > > > ------------------------------------------------------------------------ > *From:* Sam Munzani [mailto:sam at munzani.com] > *Sent:* Monday, July 16, 2007 7:49 PM > *To:* Lance > *Cc:* Mike Ashcraft; rancid-discuss at shrubbery.net > *Subject:* Re: [rancid] Re: F5 load balancer support > > Lance, > > Thanks a lot for all your help. Pretty much you did all the work while > I watched what you are doing :-).. > > Attached are cleaned up files. In f5rancid file, I have left some > basic functions(non platform specific) just in case we expand this > script to do a lot more than just "b list" output. In rancid-fe, we > defined a new device type "f5", f5login was copied from clogin and > remarked some "term length" statements we don't need on F5. > > All 3 files are attached and working great. Please be aware, we are > not parsing anything at all. All its doing is basic function of > running "b list" command and capturing its output. As I expand more on > this, I will be sure to share with the audience here. > > Again, thanks a lot for all your help today. > > Regards, > Sam >> I have helped Sam get a working f5rancid which requires a f5login (only >> because it doesn't recognize the prompt with a space and exit, unless >> you enter a return before the exit). He is cleaning up all the unused >> functions and will post it. >> >> Once John H. sends out his script I will look at it and see how it >> differs from the one I did with Sam. I will even help Sam get it working >> for his setup. We will let you know when it is all working. >> >> -lance >> >> >>> -------- Original Message -------- >>> Subject: [rancid] Re: F5 load balancer support >>> From: "Mike Ashcraft" >>> Date: Mon, July 16, 2007 11:48 am >>> To: >>> Cc: rancid-discuss at shrubbery.net >>> >>> Sam, >>> >>> I have a working f5rancid that I have been using for a number of months >>> now. I have one minor bug related to tracking installed SSL certs >>> which you probably don't care about. Other than that, it works great. >>> >>> I did encounter and solve all the problems you have been discussing on >>> the list. >>> >>> Let me know if you are interested in trying what I have. I have tested >>> it with Big-IP 9.1.2. >>> >>> Mike >>> >>> ________________________________ >>> >>> From: rancid-discuss-bounces at shrubbery.net >>> [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Sam Munzani >>> Sent: Monday, July 16, 2007 10:58 AM >>> To: smunzani at comcast.net >>> Cc: rancid-discuss at shrubbery.net >>> Subject: [rancid] Re: F5 load balancer support >>> >>> >>> BTW, this is what I see in the log when I do rancid-run now. That means >>> the f5rancid file(hacked copy of rancid) is still missing something. >>> >>> more nfl.20070716.114842 >>> starting: Mon Jul 16 11:48:42 CDT 2007 >>> >>> >>> >>> Trying to get all of the configs. >>> test-f5-01: End of run not found >>> -bash: write: command not found >>> ===================================== >>> Getting missed routers: round 1. >>> test-f5-01: End of run not found >>> -bash: write: command not found >>> ===================================== >>> Getting missed routers: round 2. >>> test-f5-01: End of run not found >>> -bash: write: command not found >>> ===================================== >>> Getting missed routers: round 3. >>> test-f5-01: End of run not found >>> -bash: write: command not found >>> ===================================== >>> Getting missed routers: round 4. >>> test-f5-01: End of run not found >>> -bash: write: command not found >>> >>> cvs diff: Diffing . >>> cvs diff: Diffing configs >>> nfl.20070716.114842 71%starting: Mon Jul 16 11:48:42 CDT 2007 >>> >>> >>> >>> Trying to get all of the configs. >>> test-f5-01: End of run not found >>> -bash: write: command not found >>> ===================================== >>> Getting missed routers: round 1. >>> test-f5-01: End of run not found >>> -bash: write: command not found >>> ===================================== >>> Getting missed routers: round 2. >>> test-f5-01: End of run not found >>> -bash: write: command not found >>> ===================================== >>> Getting missed routers: round 3. >>> test-f5-01: End of run not found >>> -bash: write: command not found >>> ===================================== >>> Getting missed routers: round 4. >>> test-f5-01: End of run not found >>> -bash: write: command not found >>> >>> cvs diff: Diffing . >>> cvs diff: Diffing configs >>> cvs diff: cannot find configs/test-f5-01 >>> cvs commit: Examining . >>> cvs commit: Examining configs >>> cvs commit: Up-to-date check failed for `configs/test-f5-01' >>> cvs [commit aborted]: correct above errors first! >>> ls: test-f5-01: No such file or directory >>> >>> ending: Mon Jul 16 11:49:41 CDT 2007 >>> >>> Thanks, >>> Sam >>> >>> >>> David, >>> >>> Thanks a lot for the tip. This worked well. Now f5login goes >>> much more >>> cleaner and the "root" doesn't set sent again. I still have >>> other issues >>> where rancid-run is backing up config properly but I am still >>> troubleshooting it. >>> >>> Now here is a question. What does "bldshgalsjd" mean and how >>> does it do >>> this miracle? >>> >>> Thanks, >>> Sam >>> >>> >>> Thanks for this tip, turns out that this is also the >>> reason the >>> username gets entered at a prompt on the cisco IPS >>> devices. Since it's >>> using SSH and therefore doesn't need a username prompt, >>> solution was >>> to simply add in .cloginrc: >>> >>> add userprompt ids* bldshgalsjd (<- something that >>> won't get sent >>> during login) >>> >>> Regards, >>> >>> David >>> >>> On 14/07/07, Lance >>> wrote: >>> >>> >>> Sam, >>> >>> Have you tried using telnet to login, if the f5 >>> has it enabled. >>> You may also want to set auto enable in your >>> .cloginrc for this device >>> as it looks to clogin as you are already in a >>> cisco equivalent equal to >>> enable since your prompt has a # sign in it. >>> >>> Looking at your next email along with this one >>> it looks like you are >>> already in a cisco equivalent of enable after >>> you login. f5login seems >>> to be sending your username of root as a command >>> after you get connected >>> because it sees this line "Last login: Fri Jul >>> 13 14:38:03 2007 from >>> 172.24.100.12" and it matches on the word >>> "Login". See below. >>> >>> "(Username|Login|login|user name):"? yes >>> >>> expect: set expect_out(0,string) "login:" >>> >>> expect: set expect_out(1,string) "login" >>> >>> expect: set expect_out(spawn_id) "exp4" >>> >>> expect: set expect_out(buffer) " \r\nLast >>> login:" >>> >>> send: sending "root\r" to { exp4 } >>> >>> expect: continuing expect >>> >>> You are just using a Cisco login/parsing script >>> so it expects prompts >>> from a Cisco device and in this case you have a >>> *nix SSH banner that >>> gets interrupted. I know you can use RANCID to >>> backup *nix systems. So >>> it knows how to understand connecting to a *nix >>> system. You might want >>> to try this email thread which asks about >>> backing up Linux conifgs. >>> >>> "http://www.shrubbery.net/pipermail/rancid-discuss/2006-August/001649.ht >>> ml" >>> >> ml> >>> >>> Or you could modify the existing f5login like >>> so. >>> >>> I think you have to use the carrot before the () >>> to work. I haven't >>> checked this as I am at home and not on a UNIX >>> system right now. Sorry >>> to lazy to check it out right now. You might >>> want to uncomment the line >>> below 3. and comment out the line below 2. and >>> see if that works. This >>> is the only point in the code that I see it look >>> for login in any line. >>> If that doesn't work send me back the debug and >>> I will see what I can >>> do. I am sure some people that use expect more >>> often then I can probably >>> quickly tell you what to use as syntax there. >>> >>> # Figure out prompts >>> set u_prompt [find userprompt $router >>> if { "$u_prompt" == "" } { >>> #1. ORIGINAL >>> #set u_prompt >>> "^(Username|Login|login|user name):" >>> #2. Modified to read for a line beginning >>> with >>> Username,Login,login, or >>> user name. >>> set u_prompt "^(Username|Login|login|user >>> name):" >>> #3. Modified to read for a line beginning >>> with Login or login. >>> but I >>> may be wrong >>> #set u_prompt >>> "^(Username|^Login|^login|user name):" >>> } else { >>> set u_prompt [join [lindex $u_prompt 0] >>> ""] >>> >>> >>> Let me know if this works for you. >>> >>> -Lance >>> >>> >>> >>> -------- Original Message -------- >>> Subject: Re: [rancid] F5 load balancer >>> support >>> From: Sam Munzani >>> >>> Date: Fri, July 13, 2007 2:30 pm >>> To: Lance >>> >>> Cc: rancid-discuss at shrubbery.net >>> >>> Lance, >>> >>> F5 login works fine with a minor error. >>> >>> $ f5login test-f5-01 >>> test-f5-01 >>> spawn ssh -c 3des -x -l root test-f5-01 >>> Password: >>> Last login: Fri Jul 13 14:26:28 2007 >>> from 172.24.100.12 >>> root >>> [root at test-f5-01:Active] config # root >>> -bash: root: command not found >>> [root at test-f5-01:Active] config # >>> [root at test-f5-01:Active] config # >>> [root at test-f5-01:Active] config # >>> >>> I don't know how to debug otherwise I >>> would turn on debug too. If you >>> can provide some hints on debug, I would >>> appreciate it. >>> >>> Thanks, >>> Sam >>> >>> >>> What error(s) do you get when you try to >>> run your f5rancid? >>> >>> Where does it fail if you debug your >>> f5login? >>> >>> >>> -lance >>> >>> >>> >>> >>> -------- Original Message -------- >>> Subject: [rancid] F5 load balancer >>> support >>> From: Sam Munzani >>> >>> Date: Fri, July 13, 2007 12:45 pm >>> To: rancid-discuss at shrubbery.net >>> >>> Hi, >>> >>> Did anybody happened to hack one of >>> Cisco scripts to support >>> >>> >>> BigIP F5 >>> >>> >>> boxes? It should be pretty simple. All I >>> want to do is login and >>> >>> >>> type "b >>> >>> >>> list" which is equivalent of "show run" >>> on cisco. >>> >>> However for some reason things not >>> working. All I did was copied >>> >>> >>> clogin >>> >>> >>> to f5login, copied rancid to f5rancid >>> and added following to >>> >>> >>> rancid-fe. >>> >>> >>> elsif ($vendor =~ /^f5$/i) >>> { exec('f5rancid', >>> >>> >>> $router); } >>> >>> >>> Then modified f5 rancid file and kept >>> only one command in list of >>> commands "b list". >>> >>> For some reason its not working. I can >>> post my configs here if >>> >>> >>> somebody >>> >>> >>> like to see them. >>> >>> Thanks, >>> Sam >>> >>> _______________________________________________ >>> 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 >>> >>> >>> >>> >>> _______________________________________________ >>> 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 >>> >> >> _______________________________________________ >> 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/20070829/a9aba213/attachment.html From rancid at gheek.net Thu Aug 30 17:30:32 2007 From: rancid at gheek.net (Lance) Date: Thu, 30 Aug 2007 10:30:32 -0700 Subject: [rancid] Re: clogin tail logs Message-ID: <20070830103032.8e114e4890519e5179c192e02d6bca26.3456e125e9.wbe@email.secureserver.net> New files are created for each device and are placed in the config directory with a .new extension. OTher than that you would need to do a debug. -Lance > -------- Original Message -------- > Subject: [rancid] clogin tail logs > From: nocph at aim.com > Date: Thu, August 30, 2007 3:41 am > To: rancid-discuss at shrubbery.net > > Hi Guys, > > How can I see the log of clogin? Something like tail logs. > > Thanks, > Phi > > ________________________________________________________________________ > Check Out the new free AIM(R) Mail -- Unlimited storage and industry-leading spam and email virus protection.
_______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From smunzani at comcast.net Thu Aug 30 20:35:30 2007 From: smunzani at comcast.net (Sam Munzani) Date: Thu, 30 Aug 2007 15:35:30 -0500 Subject: [rancid] CVS errors Message-ID: <46D72A12.1060800@comcast.net> Team, I am getting this error for almost all of my config files on one of the rancid deployment. It started happening after somebody played with directory permissions. I think the permission is now set the way it was but I still have the errors. cvs status: move away `router-name1'; it is in the way cvs status: move away `router-name2'; it is in the way cvs status: move away `router-name3'; it is in the way cvs status: move away `router-name4'; it is in the way What does it really mean and what's best approach fixing them? Thanks, Sam From mashcraft at omniture.com Thu Aug 30 21:55:24 2007 From: mashcraft at omniture.com (Mike Ashcraft) Date: Thu, 30 Aug 2007 15:55:24 -0600 Subject: [rancid] Re: CVS errors In-Reply-To: <46D72A12.1060800@comcast.net> References: <46D72A12.1060800@comcast.net> Message-ID: <45EB285310B55542A513F93230F0A53301A39E1D@EXCHANGE0.orm.omniture.com> Have you fixed perms on all the hidden files? -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Sam Munzani Sent: Thursday, August 30, 2007 2:36 PM To: rancid-discuss at shrubbery.net Subject: [rancid] CVS errors Team, I am getting this error for almost all of my config files on one of the rancid deployment. It started happening after somebody played with directory permissions. I think the permission is now set the way it was but I still have the errors. cvs status: move away `router-name1'; it is in the way cvs status: move away `router-name2'; it is in the way cvs status: move away `router-name3'; it is in the way cvs status: move away `router-name4'; it is in the way What does it really mean and what's best approach fixing them? Thanks, Sam _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From mark.meijerink at sara.nl Thu Aug 30 22:02:36 2007 From: mark.meijerink at sara.nl (Mark Meijerink) Date: Fri, 31 Aug 2007 00:02:36 +0200 Subject: [rancid] Re: clogin tail logs In-Reply-To: <8C9B90972DC83D1-FB8-78EB@FWM-M02.sysops.aol.com> References: <8C9B90972DC83D1-FB8-78EB@FWM-M02.sysops.aol.com> Message-ID: Hi there, You can check the logfiles in the ~rancid/var/log/ directory. When rancid-run runs it will create an logfile for every groep. Someting like testgroup.20070830.131022, where 20070830 is the date and 131022 is the time. I hope this is what you were looking for. Regards, Mark ________________________________ From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of nocph at aim.com Sent: donderdag 30 augustus 2007 12:41 To: rancid-discuss at shrubbery.net Subject: [rancid] clogin tail logs Hi Guys, How can I see the log of clogin? Something like tail logs. Thanks, Phi ________________________________ Check Out the new free AIM(R) Mail -- Unlimited storage and industry-leading spam and email virus protection. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070831/ebbb681c/attachment.html From smunzani at comcast.net Thu Aug 30 22:09:57 2007 From: smunzani at comcast.net (Sam Munzani) Date: Thu, 30 Aug 2007 17:09:57 -0500 Subject: [rancid] Re: CVS errors In-Reply-To: <45EB285310B55542A513F93230F0A53301A39E1D@EXCHANGE0.orm.omniture.com> References: <46D72A12.1060800@comcast.net> <45EB285310B55542A513F93230F0A53301A39E1D@EXCHANGE0.orm.omniture.com> Message-ID: <46D74035.9070900@comcast.net> I fixed my issue. I deleted all config files in my repository and did cvs update. Then run rancid-run fresh and it created new version entry and things are well now. Answer to your question, yes. That's 1st thing I did is ls -la in each rancid dir and ensured it had proper permission. Thanks, Sam > Have you fixed perms on all the hidden files? > > -----Original Message----- > From: rancid-discuss-bounces at shrubbery.net > [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Sam Munzani > Sent: Thursday, August 30, 2007 2:36 PM > To: rancid-discuss at shrubbery.net > Subject: [rancid] CVS errors > > Team, > > I am getting this error for almost all of my config files on one of the > rancid deployment. It started happening after somebody played with > directory permissions. I think the permission is now set the way it was > but I still have the errors. > > cvs status: move away `router-name1'; it is in the way > cvs status: move away `router-name2'; it is in the way > cvs status: move away `router-name3'; it is in the way > cvs status: move away `router-name4'; it is in the way > > What does it really mean and what's best approach fixing them? > > Thanks, > Sam > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > From rc.harrison at gmail.com Fri Aug 31 19:29:39 2007 From: rc.harrison at gmail.com (Russell Harrison) Date: Fri, 31 Aug 2007 14:29:39 -0500 Subject: [rancid] Re: F5 load balancer support In-Reply-To: <4697D659.7050006@comcast.net> References: <4697D659.7050006@comcast.net> Message-ID: I've modified clogin/rancid to work with F5 gear. See the attached patches. Unfortunately there is a lot more to a functional BigIP configuration than what resides in bigip.conf; your best bet is to move ucs backups off the box (in 4.x code these live in /usr/local/ucs). Please note that this has only been run against 4.x BigIP systems; it has not been tested to work with 9.x (and from the looks of your output, you are dealing with a 9.x box). Regards, Russell On 7/13/07, Sam Munzani wrote: > Hi, > > Did anybody happened to hack one of Cisco scripts to support BigIP F5 > boxes? It should be pretty simple. All I want to do is login and type "b > list" which is equivalent of "show run" on cisco. > > However for some reason things not working. All I did was copied clogin > to f5login, copied rancid to f5rancid and added following to rancid-fe. > elsif ($vendor =~ /^f5$/i) { exec('f5rancid', $router); } > > Then modified f5 rancid file and kept only one command in list of > commands "b list". > > For some reason its not working. I can post my configs here if somebody > like to see them. > > Thanks, > Sam > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > -------------- next part -------------- A non-text attachment was scrubbed... Name: f5login.patch Type: text/x-patch Size: 2503 bytes Desc: not available Url : http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070831/72d36cd2/attachment.bin -------------- next part -------------- A non-text attachment was scrubbed... Name: f5rancid.patch Type: text/x-patch Size: 54840 bytes Desc: not available Url : http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070831/72d36cd2/attachment-0001.bin