From owner-rancid-discuss-outgoing@shrubbery.net Fri Feb 11 14:52:02 2005 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id CA04111CE31 for ; Fri, 11 Feb 2005 14:52:02 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id 5EA5811139; Fri, 11 Feb 2005 14:52:02 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 4EA2A11146; Fri, 11 Feb 2005 14:52:02 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: from thanatos.is.co.za (thanatos.is.co.za [196.4.160.229]) by guelah.shrubbery.net (Postfix) with ESMTP id D413E11139 for ; Fri, 11 Feb 2005 14:52:00 +0000 (UTC) Received: from hermwas.is.co.za (hermwas.is.co.za [196.23.0.8]) by thanatos.is.co.za (Postfix) with ESMTP id 1C1E39C3B7 for ; Fri, 11 Feb 2005 16:51:51 +0200 (SAST) Received: by hermwas.is.co.za (Postfix, from userid 1071) id 78ABB30AEB; Fri, 11 Feb 2005 16:51:55 +0200 (SAT) Date: Fri, 11 Feb 2005 16:51:55 +0200 From: Andre van der Merwe To: rancid-discuss@shrubbery.net Subject: Cisco 1900s, fru, AS5300s and AS5400s... Message-ID: <20050211165155.D12895@is.co.za> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="+B+y8wtTXqdUj1xM" Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk --+B+y8wtTXqdUj1xM Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi NOTE: This is for -test- purpose only please don't patch your live systems... We have added the following to the version RANCID (2.3.1) we run. - fru / product code support - 1900 improved support, (I hope :) ) - Cisco AS5300, AS5400 basic "Slot" support FRU/product code. The additional field within the "Slot" field has been added and called "fru" for now, this is the product "fru" code. The ability for=20 RANCID to pick this up is based on the IOS you run and the age=20 of the PA/NM cards. As usual Cisco does not have a standard way of=20 doing this, so there a bit of kludging to make it work.=20 Here is the "fru" field as shown in the sample below. !RANCID-CONTENT-TYPE: Cisco ! !Chassis type: 7206VXR - a 7200 router !CPU: NPE-G1, SB-1 CPU at 700Mhz, impl 1025, Rev 0.2, 512KB L2 Cache ! ! =20 !Slot 1: fru PA-A3-OC3SMI=3D !Slot 1: type ATM WAN OC3 SMI, 1 ports !Slot 1: hvers 2.0 rev A0 =20 !Slot 1: part 73-2427-04, serial xxxxxxx ! !Slot 2: fru PA-2E3=3D !Slot 2: type E3 PA, 2 ports !Slot 2: hvers 1.1 rev C0 =20 !Slot 2: part 73-2324-03, serial xxxxxxxx ! !Slot 3: fru PA-8T-X21=3D !Slot 3: type Mx serial X.21, 8 ports !Slot 3: hvers 1.13 rev A0 =20 !Slot 3: part 73-1582-05, serial xxxxxx ! !Slot 4: fru PA-MC-8TE1+ !Slot 4: type PA-MC-8TE1 Plus, 8 ports !Slot 4: hvers 2.0 rev A0 =20 !Slot 4: part 800-19387-02, serial xxxxxxx ! !Slot 6: fru PA-MC-8TE1+ !Slot 6: type PA-MC-8TE1 Plus, 8 ports !Slot 6: hvers 2.0 rev A0 =20 !Slot 4: part 800-19387-02, serial xxxxxxx ! !Slot 6: fru PA-MC-8TE1+ !Slot 6: type PA-MC-8TE1 Plus, 8 ports !Slot 6: hvers 2.0 rev A0 =20 !Slot 6: part 800-19387-02, serial xxxxxxx ! !Slot Midplane: hvers 2.8 rev B0 !Slot Midplane: part 73-3223-11, serial xxxxxxx ! !Slot CPU: hvers 2.0 rev A0 !Slot CPU: part 28-5082-09, serial xxxxxxx ! Here is the basic mod to "rancid" to get it all in. ------- > } elsif ( $proc =3D~ /^AS5300/) { > $type =3D "AS5300"; > } elsif ( $proc =3D~ /^AS5350/) { =20 > $type =3D "AS5350"; > } elsif ( $proc =3D~ /^AS5400/) { > $type =3D "AS5400"; 843a850,857 > # > # For getting FRU part numbers from 7200's, not yet tested much. > # > if (/FRU\s+Part\s+Number:\s+(.*)/) { > ProcessHistory("SLOT","keysort","AF","!Slot $slot$WIC: fru $1= \n"); > next; > } > # 918a933,939 > # > # AS5300/5400 handling > /^Hardware is\s+(.*)$/i && > ProcessHistory("SLOT","keysort","B","!Slot $slot: type $1= \n") && next; > /^DFC type is\s+(.*)$/i && > ProcessHistory("SLOT","keysort","B","!Slot $slot: type $1= \n") && next; > # 960a982,986 > # fru bits > if (/product \(fru\) number\s+:\s+(\S+)/i) { $fn =3D $1; } > if (/product number\s+:\s+(\S+)/i) { $fn =3D $1; } > # >=20 962a989,991 > # fru bits > ProcessHistory("SLOT","keysort","AF","!Slot $slot$WIC: fru $fn\= n"); > # 971a1001,1010 > # AS5x00 bits > /^\ Board Revision\s+(\S+),\s+Serial Number\s+(\S+),/ && > ProcessHistory("SLOT","keysort","D","!Slot $slot$WIC: rev $1,= serial $2\n") && > next; > /^\ Board Hardware Version\s+(\S+),\s+Item Number\s+(\S+),/ && > ProcessHistory("SLOT","keysort","D","!Slot $slot$WIC: hvers $= 1, part $2\n") && > next; > /^Motherboard Info:/ && > ProcessHistory("SLOT","keysort","D","!Slot $slot$WIC: Motherb= oard\n") && > next; 1157a1197,1203 >=20 > # 1900's have spaces in the config which move around when > # changes are made, this get rid of them... > if ($type =3D~ /^1900$/ && /^$/) {=20 > next; > } -------- The other thing we have done is hopefully improve the Cat 1900 support by a= dding some pager handling stuff to clogin, we are now able to use RANCID collect = =20 configs from our group of 1900's they don't support "term length 0" as far = as I can see. Here is the basic mod to "clogin". -------- 531a532,535 > # 1900 pager sucks > -re "^\[\n\r]*^--More--\[\n\r\]*" { send " " > exp_continue} > # 561a566,569 =20 > # 1900 Pager sucks > -re "^\[\n\r]*^--More--\[\n\r]*" { send " " > exp_continue} > # -------- =20 Hope this helps. Andr=E9 van der Merwe --+B+y8wtTXqdUj1xM Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (SunOS) iD8DBQFCDMaJFgX7ot4NQaMRAozqAJwMFUyTHBU74IOhj7YHL8m/RWPaGwCeJIpF fzM3qxMZ0I1QEyFfUFt8yyk= =Gk2h -----END PGP SIGNATURE----- --+B+y8wtTXqdUj1xM-- From owner-rancid-discuss-outgoing@shrubbery.net Sat Feb 12 00:32:17 2005 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 8CCC011CE2E for ; Sat, 12 Feb 2005 00:32:17 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id E8DC011139; Sat, 12 Feb 2005 00:32:16 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id E244711142; Sat, 12 Feb 2005 00:32:16 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id 401B51113C; Sat, 12 Feb 2005 00:32:16 +0000 (UTC) Date: Fri, 11 Feb 2005 16:32:16 -0800 From: john heasley To: Andre van der Merwe Cc: rancid-discuss@shrubbery.net Subject: Re: Cisco 1900s, fru, AS5300s and AS5400s... Message-ID: <20050212003216.GC13167@shrubbery.net> References: <20050211165155.D12895@is.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20050211165155.D12895@is.co.za> User-Agent: Mutt/1.4.2.1i X-PGPkey: http://www.shrubbery.net/~heas/public-key.asc X-note: live free, or die! X-homer: i just want to have a beer while i am caring. Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Fri, Feb 11, 2005 at 04:51:55PM +0200, Andre van der Merwe: > - 1900 improved support, (I hope :) ) >=20 > The other thing we have done is hopefully improve the Cat 1900 support by= adding > some pager handling stuff to clogin, we are now able to use RANCID collec= t =20 > configs from our group of 1900's they don't support "term length 0" as fa= r as I can > see. >=20 > Here is the basic mod to "clogin". >=20 > -------- > 531a532,535 > > # 1900 pager sucks > > -re "^\[\n\r]*^--More--\[\n\r\]*" { send " " > > exp_continue} > > # > 561a566,569 =20 > > # 1900 Pager sucks > > -re "^\[\n\r]*^--More--\[\n\r]*" { send " " > > exp_continue} > > # > -------- =20 could you try ftp://ftp.shrubbery.net/pub/rancid/clogin.in I think all the 1900 issues were worked-out. From owner-rancid-discuss-outgoing@shrubbery.net Wed Feb 16 18:00:00 2005 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 707D011CE2D for ; Wed, 16 Feb 2005 18:00:00 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id 7ADB611139; Wed, 16 Feb 2005 17:59:59 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 708F911142; Wed, 16 Feb 2005 17:59:59 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id EE14B1113C; Wed, 16 Feb 2005 17:59:58 +0000 (UTC) Date: Wed, 16 Feb 2005 09:59:58 -0800 From: john heasley To: Mark Loveley Cc: rancid-discuss@shrubbery.net Subject: Re: Duplicate config when polling Foundry ServerIrons Message-ID: <20050216175958.GD13470@shrubbery.net> References: <20050216171850.B767D11142@guelah.shrubbery.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050216171850.B767D11142@guelah.shrubbery.net> User-Agent: Mutt/1.4.2.1i X-PGPkey: http://www.shrubbery.net/~heas/public-key.asc X-note: live free, or die! X-homer: i just want to have a beer while i am caring. Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk > We have problems with rancid when polling ServerIron Chassis devices. > It logs on and collects the data okay but it seems to duplicate lines of > config randomly. See an example below. > > @@ -410,8 +410,10 @@ > interface ethernet 4/10 > disable > ! > interface ethernet 4/11 > + interface ethernet 4/11 > + interface ethernet 4/11 > disable > ! > interface ethernet 4/12 > disable > > I'm assuming it's something with the cli, any idea how I can fix this or > prove that it is the cli causing it? could you try collecting it manually like $ export NOPIPE=YES $ francid -d host that will leave a host and host.raw file behind. do it a few times and see if you can get a pair of files where this duplication has happened. with those, we can narrow down the cause. From owner-rancid-discuss-outgoing@shrubbery.net Thu Feb 17 17:13:14 2005 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id A8EEC11CE2D for ; Thu, 17 Feb 2005 17:13:14 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id 0185A11139; Thu, 17 Feb 2005 17:13:14 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id E719611142; Thu, 17 Feb 2005 17:13:13 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: from ptb-relay01.plus.net (ptb-relay01.plus.net [212.159.14.212]) by guelah.shrubbery.net (Postfix) with ESMTP id 4DBC911139 for ; Thu, 17 Feb 2005 17:13:12 +0000 (UTC) Received: from [195.166.137.25] (helo=mail.plus.net.uk) by ptb-relay01.plus.net with smtp (Exim) id 1D1pD7-0000so-Nj for rancid-discuss@shrubbery.net; Thu, 17 Feb 2005 17:13:05 +0000 Received: (qmail 3304 invoked from network); 17 Feb 2005 17:13:05 -0000 Received: from 31.30.workstation.plus.net (172.29.31.30) by 0 with SMTP; 17 Feb 2005 17:13:05 -0000 Subject: Re: Duplicate config when polling Foundry ServerIrons From: Mark Loveley To: rancid-discuss@shrubbery.net In-Reply-To: <20050216175958.GD13470@shrubbery.net> References: <20050216171850.B767D11142@guelah.shrubbery.net> <20050216175958.GD13470@shrubbery.net> Content-Type: text/plain Date: Thu, 17 Feb 2005 17:13:05 +0000 Message-Id: <1108660385.3867.119.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 Content-Transfer-Encoding: 7bit Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk On Wed, 2005-02-16 at 09:59 -0800, john heasley wrote: > could you try collecting it manually like > $ export NOPIPE=YES > $ francid -d host > > that will leave a host and host.raw file behind. do it a few times and see > if you can get a pair of files where this duplication has happened. with > those, we can narrow down the cause. I did this and on the first attempt I can see a few lines that have been duplicated in both files. ie host.new:snmp-server community ..... rw 5 host.new:snmp-server community ..... rw 5 host.new:snmp-server community ..... rw 5 host.raw:snmp-server community ..... rw 5 host.raw:snmp-server community ..... rw 5 host.raw:snmp-server community ..... rw 5 The config only has one rw community:- tacacs-server key 1 snmp-server community ..... ro 5 snmp-server community ..... rw 5 snmp-server contact I can also replicate the problem with a straight telnet session (as in no expect) ie telnet host en term len 0 write term Sure enough I get some duplicated lines, time to raise a bug with foundry methinks, the cli on the SI GTE series just isn't as good as on the Bigirons, copying and pasting config also has problems.... If you can think of anything else that we can try let me know. Thanks -- | Mark Loveley Broadband Solutions for | Network Engineer Home & Business @ | PlusNet plc. www.plus.net + ----- PlusNet - The smarter way to broadband ------ From owner-rancid-discuss-outgoing@shrubbery.net Thu Feb 17 17:24:01 2005 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 2F98C11CE2D for ; Thu, 17 Feb 2005 17:24:00 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id 365C41113C; Thu, 17 Feb 2005 17:24:00 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 2C5EE11146; Thu, 17 Feb 2005 17:24:00 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id B19A311142; Thu, 17 Feb 2005 17:23:59 +0000 (UTC) Date: Thu, 17 Feb 2005 09:23:59 -0800 From: john heasley To: Mark Loveley Cc: rancid-discuss@shrubbery.net Subject: Re: Duplicate config when polling Foundry ServerIrons Message-ID: <20050217172359.GH10279@shrubbery.net> References: <20050216171850.B767D11142@guelah.shrubbery.net> <20050216175958.GD13470@shrubbery.net> <1108660385.3867.119.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1108660385.3867.119.camel@localhost.localdomain> User-Agent: Mutt/1.4.2.1i X-PGPkey: http://www.shrubbery.net/~heas/public-key.asc X-note: live free, or die! X-homer: i just want to have a beer while i am caring. Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Thu, Feb 17, 2005 at 05:13:05PM +0000, Mark Loveley: > Sure enough I get some duplicated lines, time to raise a bug with > foundry methinks, the cli on the SI GTE series just isn't as good as on > the Bigirons, copying and pasting config also has problems.... good luck. i tried for over 3 years to get them to fix bigiron cli bugs. their response was that "customers had become accustomed to the behavior."