From rancid at ale.cx Thu Jan 1 01:27:04 2009 From: rancid at ale.cx (alex) Date: Thu, 1 Jan 2009 01:27:04 +0000 Subject: [rancid] Re: Erratic "e" and "x" characters with clogin and hlogin In-Reply-To: <469e38160812310722r1adbc223n6ff026c93e0bece1@mail.gmail.com> References: <469e38160812310722r1adbc223n6ff026c93e0bece1@mail.gmail.com> Message-ID: <200901010127.04519.rancid@ale.cx> On Wednesday 31 December 2008 15:22:30 Ryan Shea wrote: > seemingly random spaces at the beginning of lines with Cisco ASAs You're not alone. This seems to be an undocumented feature of the ASA series, although it only happens when there's been a config change, not spontaneously on it's own. alexd From Steve at host-it.co.uk Fri Jan 2 12:40:34 2009 From: Steve at host-it.co.uk (Steve D. Ousley) Date: Fri, 2 Jan 2009 12:40:34 -0000 Subject: [rancid] Tunneling Telnet connections Message-ID: <000001c96cd7$4edcee40$ec96cac0$@co.uk> Hi All We manage 2 data centres, and have some switches in the second (unmanned) data centre that are being backed up from our Rancid box in the primary (manned) data centre. What we would like though is some secure way to get the configs from the remote data centre. At the moment, rancid logs in with Telnet, which is obviously unsecure, and could be sniffed to gain our password. Unfortunately due to these being Cisco 2960's (without the K9 bundle) we cannot setup SSH to access these remotely, and for the 3 or 4 switches we have in the remote centre (at the moment) it is not worth setting up another rancid box for that. I would like to know the best way to secure this, either maybe through an SSH tunnel to a machine in the remote data centre or any other ideas anyone has? Regards Steve Ousley - SO620-RIPE Nuco Technologies Ltd steve at host-it.co.uk www.nucotechnologies.com Tel. 0870 165 1300 Nuco Technologies Ltd is a company registered in England and Wales with company number 04470751 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090102/426d43cf/attachment.html From rancid at ale.cx Fri Jan 2 13:59:49 2009 From: rancid at ale.cx (alex dekker) Date: Fri, 2 Jan 2009 13:59:49 +0000 Subject: [rancid] Re: Tunneling Telnet connections In-Reply-To: <000001c96cd7$4edcee40$ec96cac0$@co.uk> References: <000001c96cd7$4edcee40$ec96cac0$@co.uk> Message-ID: <200901021359.49397.rancid@ale.cx> On Friday 02 January 2009 12:40:34 Steve D. Ousley wrote: > I would like to know the best way to secure this, either maybe through an > SSH tunnel to a machine in the remote data centre or any other ideas anyone > has? You could set up an OpenVPN tunnel, which I'm sure you'd find useful for other things too. http://www.theregister.co.uk/2008/09/01/openvpn_primer/ http://en.wikipedia.org/wiki/OpenVPN alexd From dan at rootlike.com Fri Jan 2 13:13:47 2009 From: dan at rootlike.com (Daniel Epstein) Date: Fri, 2 Jan 2009 07:13:47 -0600 Subject: [rancid] Re: Tunneling Telnet connections In-Reply-To: <000001c96cd7$4edcee40$ec96cac0$@co.uk> References: <000001c96cd7$4edcee40$ec96cac0$@co.uk> Message-ID: <168F20A8-6506-423D-BE15-39CF9B8A1933@rootlike.com> An SSH tunnel would do it, but I'd imagine you have a firewall at each location. If both of these devices support IPSec VPNs, you could also setup a LAN to LAN VPN between sites. Daniel G. Epstein (mobile) On Jan 2, 2009, at 6:40, "Steve D. Ousley" wrote: > Hi All > > > > We manage 2 data centres, and have some switches in the second > (unmanned) data centre that are being backed up from our Rancid box > in the primary (manned) data centre. What we would like though is > some secure way to get the configs from the remote data centre. At > the moment, rancid logs in with Telnet, which is obviously unsecure, > and could be sniffed to gain our password. > > > > Unfortunately due to these being Cisco 2960?s (without the K9 bundle > ) we cannot setup SSH to access these remotely, and for the 3 or 4 s > witches we have in the remote centre (at the moment) it is not worth > setting up another rancid box for that. > > > > I would like to know the best way to secure this, either maybe > through an SSH tunnel to a machine in the remote data centre or any > other ideas anyone has? > > > > Regards > > > > Steve Ousley - SO620-RIPE > > Nuco Technologies Ltd > > steve at host-it.co.uk > > www.nucotechnologies.com > > Tel. 0870 165 1300 > > > > Nuco Technologies Ltd is a company registered in England and Wales > with company number 04470751 > > > > _______________________________________________ > 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/20090102/ac1ad0fc/attachment.html From oliver.gorwits at oucs.ox.ac.uk Fri Jan 2 15:00:42 2009 From: oliver.gorwits at oucs.ox.ac.uk (Oliver Gorwits) Date: Fri, 02 Jan 2009 15:00:42 +0000 Subject: [rancid] Re: Tunneling Telnet connections In-Reply-To: <000001c96cd7$4edcee40$ec96cac0$@co.uk> References: <000001c96cd7$4edcee40$ec96cac0$@co.uk> Message-ID: <495E2C1A.2080408@oucs.ox.ac.uk> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Steve D. Ousley wrote: > We manage 2 data centres, and have some switches in the second > (unmanned) data centre that are being backed up from our Rancid box in > the primary (manned) data centre. What we would like though is some > secure way to get the configs from the remote data centre. You might be able to SSH to a router in your remote data centre, then Telnet from there. So at least the hop across the Internet is SSH. Can't recall if this is a feature in RANCID or a patch previously given on this list though, sorry, but it sounds familar. regards, oliver. - -- Oliver Gorwits, Network and Telecommunications Group, Oxford University Computing Services -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkleLBoACgkQ2NPq7pwWBt5BmACeOWi674xOpjTxl/shbZkNAR/v WxwAnjRctdu8povFzHt164nVtz0+EX47 =4Zwi -----END PGP SIGNATURE----- From ryan at muppethouse.com Thu Jan 1 17:11:24 2009 From: ryan at muppethouse.com (Ryan Shea) Date: Thu, 1 Jan 2009 12:11:24 -0500 Subject: [rancid] Re: Erratic "e" and "x" characters with clogin and hlogin In-Reply-To: <200901010127.04519.rancid@ale.cx> References: <469e38160812310722r1adbc223n6ff026c93e0bece1@mail.gmail.com> <200901010127.04519.rancid@ale.cx> Message-ID: <469e38160901010911s7f13cdbaw38830b451446ea2@mail.gmail.com> That is really too bad. At least I have a platform where it flakes out reliably enough that debugging would probably be worthwhile. I can try pulling the clogin and hlogin from the bleeding edge version of Rancid to see if that helps. -Ryan On Wed, Dec 31, 2008 at 8:27 PM, alex wrote: > On Wednesday 31 December 2008 15:22:30 Ryan Shea wrote: > > > seemingly random spaces at the beginning of lines with Cisco ASAs > > You're not alone. This seems to be an undocumented feature of the ASA > series, > although it only happens when there's been a config change, not > spontaneously > on it's own. > > alexd > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090101/da12413b/attachment.html From oglumavd at gmail.com Sat Jan 3 09:20:26 2009 From: oglumavd at gmail.com (Oglum AVD) Date: Sat, 3 Jan 2009 01:20:26 -0800 Subject: [rancid] Re: Rancid with Cisco ACS 4.x Issue In-Reply-To: <45EB285310B55542A513F93230F0A53308AE4236@EXCHANGE0.orm.omniture.com> References: <45EB285310B55542A513F93230F0A53308AE4236@EXCHANGE0.orm.omniture.com> Message-ID: Hello Mike, *Thanks for you reply and suggestions!!!* /var/lib/rancid/bin/clogin -t30 -c'show clock' test-c3560-48-sw.mydomain -- worked /var/lib/rancid/bin/clogin -c'show clock' test-c3560-48-sw.mydomain -- worked Thank you, Oglumavd On Wed, Dec 31, 2008 at 10:29 AM, Mike Ashcraft wrote: > Your test command line needs some work. For example, clogin is trying > to connect to the routers 'show clock' and 'log'. > > > > Start by removing all spaces between the -c and the command string. You > also need to set a value for the timeout or remove the -t option. Your > output redirection needs some work as well, you can test without it. > > > > For example: > > > > /var/lib/rancid/bin/clogin -t30 -c'show clock' test-c3560-48-sw.mydomain > > > > Hope that helps, > > > > Mike > > > > > > > > > > *From:* rancid-discuss-bounces at shrubbery.net [mailto: > rancid-discuss-bounces at shrubbery.net] *On Behalf Of *Oglum AVD > *Sent:* Tuesday, December 30, 2008 11:14 PM > *To:* rancid-discuss at shrubbery.net > *Subject:* [rancid] Re: Rancid with Cisco ACS 4.x Issue > > > > Here's latest update on this; > > > > /var/lib/rancid/bin/clogin -t -c 'show clock' > test-c3560-48-sw.mydomain.com log 2>&1 > show clock > > *Error: no password for show clock in /root/.cloginrc.* > test-c3560-48-sw.mydomain.com > spawn ssh -c 3des -x -l ddnetman test-c3560-48-sw.mydomain.com > *Error: TIMEOUT reached log** > Error: no password for log in /root/.cloginrc* > > > > *Password Verification:* > nano .cloginrc > add autoenable *.mydomain.com 1 > add user *.mydomain.com testacc > add password *.mydomain.com password > add method *.mydomain.com {ssh} > > > > *Test ssh from this device to switch;* > root at 804:~# ssh -l testacc test-c3560-48-sw.mydomain.com > testacc at test-c3560-48-sw.mydomain.com's password: > test-c3560-48-sw.mydomain.com# *show > clock* > 22:07:13.168 PST Tue Dec 30 2008 > test-c3560-48-sw.mydomain.com# > it works OK. > > > > using Cisco ACS 4.x and ACS local account. > > Any suggestion? > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090103/f67bc25f/attachment.html From Steve at host-it.co.uk Mon Jan 5 09:59:39 2009 From: Steve at host-it.co.uk (Steve D. Ousley) Date: Mon, 5 Jan 2009 09:59:39 +0000 Subject: [rancid] Re: Tunneling Telnet connections In-Reply-To: <168F20A8-6506-423D-BE15-39CF9B8A1933@rootlike.com> References: <000001c96cd7$4edcee40$ec96cac0$@co.uk> <168F20A8-6506-423D-BE15-39CF9B8A1933@rootlike.com> Message-ID: Hi Guys An update to my predicament. This is all sorted. A colleague of mine suggested this method minutes before you Daniel. Once I had this idea, it was a simple case of re-setting the routers up to use the tunnel. Fortunately, I have a wrapper script for rancid, so that made things even easier for me, but all I did was the following: Add a new ssh line for each router to the top of my wrapper script such as: ssh -L 2024::23 @ -Nf where is the host that we are using in the remote location so that at least the part over the internet is done via ssh (The remote location is secured with VLAN?s etc, so that is not a problem). Then I edited my .cloginrc to set each router up as: add method {telnet:2024} and also I added to /etc/hosts a line: 127.0.0.1 With both the .cloginrc, and /etc/hosts file, this meant that the router?s name can still be the name of the router, but will use the SSH tunnel. Finally, editing the telnet access list on the switch, allowed this to all work. Many thanks for the suggestions, and fortunately, I didn?t need help setting the SSH tunnel method up :D Steve From: Daniel Epstein [mailto:dan at rootlike.com] Sent: 02 January 2009 13:14 To: Steve D. Ousley Cc: Subject: Re: [rancid] Tunneling Telnet connections An SSH tunnel would do it, but I'd imagine you have a firewall at each location. If both of these devices support IPSec VPNs, you could also setup a LAN to LAN VPN between sites. Daniel G. Epstein (mobile) On Jan 2, 2009, at 6:40, "Steve D. Ousley" > wrote: Hi All We manage 2 data centres, and have some switches in the second (unmanned) data centre that are being backed up from our Rancid box in the primary (manned) data centre. What we would like though is some secure way to get the configs from the remote data centre. At the moment, rancid logs in with Telnet, which is obviously unsecure, and could be sniffed to gain our password. Unfortunately due to these being Cisco 2960?s (without the K9 bundle) we cannot setup SSH to access these remotely, and for the 3 or 4 switches we have in the remote centre (at the moment) it is not worth setting up another rancid box for that. I would like to know the best way to secure this, either maybe through an SSH tunnel to a machine in the remote data centre or any other ideas anyone has? Regards Steve Ousley - SO620-RIPE Nuco Technologies Ltd steve at host-it.co.uk www.nucotechnologies.com Tel. 0870 165 1300 Nuco Technologies Ltd is a company registered in England and Wales with company number 04470751 _______________________________________________ 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/20090105/392397bd/attachment.html From hardenrm at illinois.edu Mon Jan 5 18:29:37 2009 From: hardenrm at illinois.edu (Ryan Harden) Date: Mon, 05 Jan 2009 12:29:37 -0600 Subject: [rancid] Foundry and SSH Message-ID: <49625191.7020106@illinois.edu> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, I have just set up rancid for the first time and I am having problems getting it to successfully pull configs from a Foundry device over SSH. This same device works properly over telnet but I get the following when switching to SSH. starting: Mon Jan 5 12:22:23 CST 2009 Trying to get all of the configs. x.x.x.x: missed cmd(s): show chassis,show module,show flash,write term x.x.x.x: End of run not found Running bin/flogin x.x.x.x works just fine and I'm able to run commands, but when run from the script it simply doesn't work. The device is an MLX running 3.9.00a code. Any ideas? Thanks. - -- Ryan M. Harden, BS, KC9IHX Office: 217-265-5192 CITES - Network Engineering Cell: 630-363-0365 2130 Digital Computer Lab Fax: 217-244-7089 1304 W. Springfield email: hardenrm at illinois.edu Urbana, IL 61801 University of Illinois at Urbana/Champaign University of Illinois - ICCN -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iEYEARECAAYFAkliUY4ACgkQtuPckBBbXbp6wQCfRqz/Dt8ixlOOafxlzLDGRJz9 inUAoILRCXyMwzsT9N30U74V4nsH91Gn =zg8B -----END PGP SIGNATURE----- From kevin_turner at syncglobal.net Mon Jan 5 15:24:31 2009 From: kevin_turner at syncglobal.net (Kevin Turner) Date: Mon, 5 Jan 2009 10:24:31 -0500 Subject: [rancid] Re: rancid and Alcatel-Lucent OmniSwitch 6850 In-Reply-To: <4961141E.8070106@networktest.com> References: <495E87EA.8000901@networktest.com> <4961141E.8070106@networktest.com> Message-ID: David, I have attached the two scripts that I use to backup our 6850's. Also, add the line below to rancid-fe elsif ($vendor =~ /^alcatel$/i) { exec('orancid', $router); } The attached scripts are slight settings modifications of scripts published by Alexander Bochmann (who deserves all the credit). I have also CC'd the discussion board since I have had other requests for this information. Let me know whether they work for you. Kevin -----Original Message----- From: David Newman [mailto:dnewman at networktest.com] Sent: Sunday, January 04, 2009 2:55 PM To: Kevin Turner Subject: Re: rancid and Alcatel-Lucent OmniSwitch 6850 On 1/4/09 6:43 AM, Kevin Turner wrote: > Hello David, > > I found scripts in the message archives that I had to modify slightly to > work with the 6850. I'll be glad to send these to you tomorrow morning > (Eastern time) when I am in the office again. Thanks very much! I appreciate it. dn > > Kevin Turner > > -----Original Message----- > From: David Newman [mailto:dnewman at networktest.com] > Sent: Friday, January 02, 2009 4:32 PM > To: kevin_turner at syncglobal.net > Subject: rancid and Alcatel-Lucent OmniSwitch 6850 > > Hi Kevin, > > Where did you find the rancid patches for Alcatel-Lucent OmniSwitch > 6850? Did these work for you? > > I've got a couple of these to look after as well. > > Many thanks, and happy 2009. > > dn > > > > > -------------- next part -------------- A non-text attachment was scrubbed... Name: orancid Type: application/octet-stream Size: 63340 bytes Desc: not available Url : http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090105/3342881a/attachment.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: ologin Type: application/octet-stream Size: 24913 bytes Desc: not available Url : http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090105/3342881a/attachment-0001.obj From barryo at inex.ie Mon Jan 5 21:10:57 2009 From: barryo at inex.ie (Barry O'Donovan) Date: Mon, 5 Jan 2009 21:10:57 +0000 Subject: [rancid] missed cmd(s): write term Message-ID: <200901052110.57322.barryo@inex.ie> Folks, I'm getting the above error for one of our routers which worked previously. It is most likely due to an IOS upgrade. However, I see from the archives that this question is asked a lot but no one seems to have an answer and I imagine it affects a lot of IOS versions based on this. When running: rancid -d router.domain.ie with: setenv NOPIPE YES I can see that the issue is because the 'write term' is not echoed to screen: router#show running-config Building configuration... Current configuration : 32864 bytes ... ntp server 10.2.2.3 ! end router#Building configuration... Current configuration : 32864 bytes ... and as such, rancid does not think the command executed. Now, I can do a local hack to work around this but I'd prefer a more universally acceptable and useful solution. I guess my question is does anyone have one or does anyone have an ideas? Thanks, Barry From smunzani at comcast.net Mon Jan 5 21:51:54 2009 From: smunzani at comcast.net (Sam Munzani) Date: Mon, 05 Jan 2009 15:51:54 -0600 Subject: [rancid] CSS backup "end of run not found" Message-ID: <496280FA.6050903@comcast.net> Team, I am using cssrancid of following version. ## $Id: cssrancid.in,v 1.4 2004/01/11 03:49:13 heas Exp $ I can successfully login to the css with clogin command and run both of the commands that fail when rancid-run executes. Getting missed routers: round 1. mycss01: found unexpected command - "term length 65000" mycss01: found unexpected command - "copy profile user-profile" mycss01: End of run not found The cssrancid has term length settings of 65535 but I changed it to 65000 just to see if the number makes a difference but no luck. Any pointers? Below is debug output. BTW, I set my TERM variable manually to ensure that's not the issue here. $echo $TERM vt100 $cssrancid -d mycss01 executing clogin -t 90 -c"term length 65000;copy profile user-profile;show version;show boot;show run" mycss01 HIT COMMAND:mycss01# term length 65000 HIT COMMAND:mycss01# term length 65000 mycss01: found unexpected command - "term length 65000" HIT COMMAND:mycss01# copy profile user-profile HIT COMMAND:mycss01# copy profile user-profile mycss01: found unexpected command - "copy profile user-profile" HIT COMMAND:mycss01# show version In ShowVersion: mycss01# show version HIT COMMAND:mycss01# show boot In ShowBoot: mycss01# show boot HIT COMMAND:mycss01# show run In ShowRun: mycss01# show run mycss01: End of run not found mycss01: End of run not found Thanks, sam From heas at shrubbery.net Tue Jan 6 00:06:23 2009 From: heas at shrubbery.net (john heasley) Date: Tue, 6 Jan 2009 00:06:23 +0000 Subject: [rancid] Re: missed cmd(s): write term In-Reply-To: <200901052110.57322.barryo@inex.ie> References: <200901052110.57322.barryo@inex.ie> Message-ID: <20090106000623.GW10157@shrubbery.net> Mon, Jan 05, 2009 at 09:10:57PM +0000, Barry O'Donovan: > > Folks, > > I'm getting the above error for one of our routers which worked previously. It > is most likely due to an IOS upgrade. > > However, I see from the archives that this question is asked a lot but no one > seems to have an answer and I imagine it affects a lot of IOS versions based > on this. > > When running: > > rancid -d router.domain.ie > > with: > > setenv NOPIPE YES > > I can see that the issue is because the 'write term' is not echoed to screen: > > router#show running-config > Building configuration... > > Current configuration : 32864 bytes > ... > ntp server 10.2.2.3 > ! > end > > router#Building configuration... given that output/last line, I presume that something caused clogin to send the write term command before the actual prompt appeared. This is what causes rancid to not see it. I believe this problem has since been fixed, so either you have an older version of clogin or one that has been hacked. > Current configuration : 32864 bytes > ... > > > and as such, rancid does not think the command executed. > > Now, I can do a local hack to work around this but I'd prefer a more > universally acceptable and useful solution. > > I guess my question is does anyone have one or does anyone have an ideas? > > > Thanks, > Barry > > > > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From heas at shrubbery.net Tue Jan 6 00:08:19 2009 From: heas at shrubbery.net (john heasley) Date: Tue, 6 Jan 2009 00:08:19 +0000 Subject: [rancid] Re: CSS backup "end of run not found" In-Reply-To: <496280FA.6050903@comcast.net> References: <496280FA.6050903@comcast.net> Message-ID: <20090106000819.GX10157@shrubbery.net> Mon, Jan 05, 2009 at 03:51:54PM -0600, Sam Munzani: > Team, > > I am using cssrancid of following version. > > ## $Id: cssrancid.in,v 1.4 2004/01/11 03:49:13 heas Exp $ 1.4 is ancient. please try a more recent version first. > I can successfully login to the css with clogin command and run both of > the commands that fail when rancid-run executes. > > Getting missed routers: round 1. > mycss01: found unexpected command - "term length 65000" > mycss01: found unexpected command - "copy profile user-profile" > mycss01: End of run not found > > The cssrancid has term length settings of 65535 but I changed it to > 65000 just to see if the number makes a difference but no luck. Any > pointers? > > Below is debug output. BTW, I set my TERM variable manually to ensure > that's not the issue here. > $echo $TERM > vt100 > > $cssrancid -d mycss01 > executing clogin -t 90 -c"term length 65000;copy profile > user-profile;show version;show boot;show run" mycss01 > HIT COMMAND:mycss01# term length 65000 > HIT COMMAND:mycss01# term length 65000 > mycss01: found unexpected command - "term length 65000" > HIT COMMAND:mycss01# copy profile user-profile > HIT COMMAND:mycss01# copy profile user-profile > mycss01: found unexpected command - "copy profile user-profile" > HIT COMMAND:mycss01# show version > In ShowVersion: mycss01# show version > HIT COMMAND:mycss01# show boot > In ShowBoot: mycss01# show boot > HIT COMMAND:mycss01# show run > In ShowRun: mycss01# show run > mycss01: End of run not found > mycss01: End of run not found > > > Thanks, > sam > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From barryo at inex.ie Tue Jan 6 08:51:28 2009 From: barryo at inex.ie (Barry O'Donovan) Date: Tue, 6 Jan 2009 08:51:28 +0000 Subject: [rancid] Re: missed cmd(s): write term In-Reply-To: <20090106000623.GW10157@shrubbery.net> References: <200901052110.57322.barryo@inex.ie> <20090106000623.GW10157@shrubbery.net> Message-ID: <200901060851.28768.barryo@inex.ie> Hi John, Thanks for your reply. On Tuesday 06 January 2009 00:06:23 john heasley wrote: > > router#Building configuration... > > given that output/last line, I presume that something caused clogin to > send the write term command before the actual prompt appeared. This > is what causes rancid to not see it. I believe this problem has since > been fixed, so either you have an older version of clogin or one that > has been hacked. I'm afraid not. I'm running the latest version (2.3.1) and a diff of my clogin against a fresh download matches exactly. - Barry From georg.naggies at r-it.at Tue Jan 6 11:58:39 2009 From: georg.naggies at r-it.at (georg.naggies at r-it.at) Date: Tue, 6 Jan 2009 12:58:39 +0100 Subject: [rancid] Re: CSS backup "end of run not found" In-Reply-To: <20090106000819.GX10157@shrubbery.net> Message-ID: When there are unsaved config changes on the CSS it asks "do you want to save the config" or something like that, and Rancid doesn't catch that. Therefore: try logging in manually and see what the CSS does on logout. Best, Georg heas at shrubbery.net Gesendet von: rancid-discuss-bounces at shrubbery.net 06.01.2009 01:08 An smunzani at comcast.net Kopie rancid-discuss at shrubbery.net Thema [rancid] Re: CSS backup "end of run not found" Mon, Jan 05, 2009 at 03:51:54PM -0600, Sam Munzani: > Team, > > I am using cssrancid of following version. > > ## $Id: cssrancid.in,v 1.4 2004/01/11 03:49:13 heas Exp $ 1.4 is ancient. please try a more recent version first. > I can successfully login to the css with clogin command and run both of > the commands that fail when rancid-run executes. > > Getting missed routers: round 1. > mycss01: found unexpected command - "term length 65000" > mycss01: found unexpected command - "copy profile user-profile" > mycss01: End of run not found > > The cssrancid has term length settings of 65535 but I changed it to > 65000 just to see if the number makes a difference but no luck. Any > pointers? > > Below is debug output. BTW, I set my TERM variable manually to ensure > that's not the issue here. > $echo $TERM > vt100 > > $cssrancid -d mycss01 > executing clogin -t 90 -c"term length 65000;copy profile > user-profile;show version;show boot;show run" mycss01 > HIT COMMAND:mycss01# term length 65000 > HIT COMMAND:mycss01# term length 65000 > mycss01: found unexpected command - "term length 65000" > HIT COMMAND:mycss01# copy profile user-profile > HIT COMMAND:mycss01# copy profile user-profile > mycss01: found unexpected command - "copy profile user-profile" > HIT COMMAND:mycss01# show version > In ShowVersion: mycss01# show version > HIT COMMAND:mycss01# show boot > In ShowBoot: mycss01# show boot > HIT COMMAND:mycss01# show run > In ShowRun: mycss01# show run > mycss01: End of run not found > mycss01: End of run not found > > > 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 ---------------------------------------- Raiffeisen Informatik GmbH, Firmenbuchnr. 88239p, Handelsgericht Wien, DVR 0486809, UID ATU 16351908 Der Austausch von Nachrichten mit oben angefuehrtem Absender via E-Mail dient ausschliesslich Informationszwecken. Rechtsgeschaeftliche Erklaerungen duerfen ueber dieses Medium nicht ausgetauscht werden. Correspondence with above mentioned sender via e-mail is only for information purposes. This medium may not be used for exchange of legally-binding communications. ---------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090106/a91f16cb/attachment.html From heas at shrubbery.net Tue Jan 6 18:55:16 2009 From: heas at shrubbery.net (john heasley) Date: Tue, 6 Jan 2009 18:55:16 +0000 Subject: [rancid] Re: CSS backup "end of run not found" In-Reply-To: References: <20090106000819.GX10157@shrubbery.net> Message-ID: <20090106185516.GM958@shrubbery.net> Tue, Jan 06, 2009 at 12:58:39PM +0100, georg.naggies at r-it.at: > When there are unsaved config changes on the CSS it asks "do you want to > save the config" or something like that, and Rancid doesn't catch that. > Therefore: try logging in manually and see what the CSS does on logout. > Best, Georg it looks for "(Profile|Configuration) changes have occurred.*" at logout. if cisco has made another gratuitous change, what is the new prompt? > > > heas at shrubbery.net > Gesendet von: rancid-discuss-bounces at shrubbery.net > 06.01.2009 01:08 > > An > smunzani at comcast.net > Kopie > rancid-discuss at shrubbery.net > Thema > [rancid] Re: CSS backup "end of run not found" > > > > > > > Mon, Jan 05, 2009 at 03:51:54PM -0600, Sam Munzani: > > Team, > > > > I am using cssrancid of following version. > > > > ## $Id: cssrancid.in,v 1.4 2004/01/11 03:49:13 heas Exp $ > > 1.4 is ancient. please try a more recent version first. > > > I can successfully login to the css with clogin command and run both of > > the commands that fail when rancid-run executes. > > > > Getting missed routers: round 1. > > mycss01: found unexpected command - "term length 65000" > > mycss01: found unexpected command - "copy profile user-profile" > > mycss01: End of run not found > > > > The cssrancid has term length settings of 65535 but I changed it to > > 65000 just to see if the number makes a difference but no luck. Any > > pointers? > > > > Below is debug output. BTW, I set my TERM variable manually to ensure > > that's not the issue here. > > $echo $TERM > > vt100 > > > > $cssrancid -d mycss01 > > executing clogin -t 90 -c"term length 65000;copy profile > > user-profile;show version;show boot;show run" mycss01 > > HIT COMMAND:mycss01# term length 65000 > > HIT COMMAND:mycss01# term length 65000 > > mycss01: found unexpected command - "term length 65000" > > HIT COMMAND:mycss01# copy profile user-profile > > HIT COMMAND:mycss01# copy profile user-profile > > mycss01: found unexpected command - "copy profile user-profile" > > HIT COMMAND:mycss01# show version > > In ShowVersion: mycss01# show version > > HIT COMMAND:mycss01# show boot > > In ShowBoot: mycss01# show boot > > HIT COMMAND:mycss01# show run > > In ShowRun: mycss01# show run > > mycss01: End of run not found > > mycss01: End of run not found > > > > > > 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 > > > > ---------------------------------------- > Raiffeisen Informatik GmbH, Firmenbuchnr. 88239p, Handelsgericht Wien, DVR 0486809, UID ATU 16351908 > > Der Austausch von Nachrichten mit oben angefuehrtem Absender via E-Mail dient ausschliesslich Informationszwecken. Rechtsgeschaeftliche Erklaerungen duerfen ueber dieses Medium nicht ausgetauscht werden. > Correspondence with above mentioned sender via e-mail is only for information purposes. This medium may not be used for exchange of legally-binding communications. > ---------------------------------------- > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From dnewman at networktest.com Tue Jan 6 22:49:14 2009 From: dnewman at networktest.com (David Newman) Date: Tue, 06 Jan 2009 14:49:14 -0800 Subject: [rancid] Re: rancid and Alcatel-Lucent OmniSwitch 6850 In-Reply-To: References: <495E87EA.8000901@networktest.com> <4961141E.8070106@networktest.com> Message-ID: <4963DFEA.5040406@networktest.com> On 1/5/09 7:24 AM, Kevin Turner wrote: > David, > > I have attached the two scripts that I use to backup our 6850's. Thanks, Kevin! > > Also, add the line below to rancid-fe > > elsif ($vendor =~ /^alcatel$/i) { exec('orancid', $router); } OK, I've added that. Would adding this to the vendortable section do the same thing?: 'alcatel' => 'orancid', > The attached scripts are slight settings modifications of scripts published > by Alexander Bochmann (who deserves all the credit). > > I have also CC'd the discussion board since I have had other requests for > this information. > > Let me know whether they work for you. orancid runs, but I think it executes "show configuration status" instead of "show configuration snapshot all". All I get for a device config is the following: !RANCID-CONTENT-TYPE: alcatel ! !Cfg: Running configuration and saved configuration are identical ! ! ! ! ! ! ! ! !! Stack Manager : That's it, all 137 bytes of it. That looks like the output from "show configuration status" rather than the device config. How to tweak orancid so that it uses "show configuration snapshot all"? thanks again dn > > Kevin > > -----Original Message----- > From: David Newman [mailto:dnewman at networktest.com] > Sent: Sunday, January 04, 2009 2:55 PM > To: Kevin Turner > Subject: Re: rancid and Alcatel-Lucent OmniSwitch 6850 > > On 1/4/09 6:43 AM, Kevin Turner wrote: >> Hello David, >> >> I found scripts in the message archives that I had to modify slightly to >> work with the 6850. I'll be glad to send these to you tomorrow morning >> (Eastern time) when I am in the office again. > > Thanks very much! I appreciate it. > > dn > > >> Kevin Turner >> >> -----Original Message----- >> From: David Newman [mailto:dnewman at networktest.com] >> Sent: Friday, January 02, 2009 4:32 PM >> To: kevin_turner at syncglobal.net >> Subject: rancid and Alcatel-Lucent OmniSwitch 6850 >> >> Hi Kevin, >> >> Where did you find the rancid patches for Alcatel-Lucent OmniSwitch >> 6850? Did these work for you? >> >> I've got a couple of these to look after as well. >> >> Many thanks, and happy 2009. >> >> dn >> >> >> >> >> > From kevin_turner at syncglobal.net Tue Jan 6 23:37:35 2009 From: kevin_turner at syncglobal.net (Kevin Turner) Date: Tue, 6 Jan 2009 18:37:35 -0500 Subject: [rancid] Re: rancid and Alcatel-Lucent OmniSwitch 6850 In-Reply-To: <4963DFEA.5040406@networktest.com> References: <495E87EA.8000901@networktest.com> <4961141E.8070106@networktest.com> <4963DFEA.5040406@networktest.com> Message-ID: <85F15BDA7EF045E0871959441BFECB22@hydrogen> David, Apparently, you are using one of the alpha versions of RANCID. Rancid-fe has changed in the alpha versions. So, yes add "'alcatel' => 'orancid'," instead of the line I gave you to rancid-fe. Also, indeed you are seeing the output for "show configuration status"; however, you should also see the output of more commands including "show configuration snapshot all". The script seems to be stopping for some reason. It may may due to a change in the alpha version of RANCID. I am using the current version 2.3.1 Try running the following debug command from the directory 'orancid' is located. env NOPIPE=y orancid -d This will produce devicename.raw and and devicename.new files in the current directory. The .raw file will have more output to examine for errors. Kevin -----Original Message----- From: David Newman [mailto:dnewman at networktest.com] Sent: Tuesday, January 06, 2009 5:49 PM To: Kevin Turner Cc: rancid-discuss at shrubbery.net Subject: Re: rancid and Alcatel-Lucent OmniSwitch 6850 On 1/5/09 7:24 AM, Kevin Turner wrote: > David, > > I have attached the two scripts that I use to backup our 6850's. Thanks, Kevin! > > Also, add the line below to rancid-fe > > elsif ($vendor =~ /^alcatel$/i) { exec('orancid', $router); } OK, I've added that. Would adding this to the vendortable section do the same thing?: 'alcatel' => 'orancid', > The attached scripts are slight settings modifications of scripts published > by Alexander Bochmann (who deserves all the credit). > > I have also CC'd the discussion board since I have had other requests for > this information. > > Let me know whether they work for you. orancid runs, but I think it executes "show configuration status" instead of "show configuration snapshot all". All I get for a device config is the following: !RANCID-CONTENT-TYPE: alcatel ! !Cfg: Running configuration and saved configuration are identical ! ! ! ! ! ! ! ! !! Stack Manager : That's it, all 137 bytes of it. That looks like the output from "show configuration status" rather than the device config. How to tweak orancid so that it uses "show configuration snapshot all"? thanks again dn > > Kevin > > -----Original Message----- > From: David Newman [mailto:dnewman at networktest.com] > Sent: Sunday, January 04, 2009 2:55 PM > To: Kevin Turner > Subject: Re: rancid and Alcatel-Lucent OmniSwitch 6850 > > On 1/4/09 6:43 AM, Kevin Turner wrote: >> Hello David, >> >> I found scripts in the message archives that I had to modify slightly to >> work with the 6850. I'll be glad to send these to you tomorrow morning >> (Eastern time) when I am in the office again. > > Thanks very much! I appreciate it. > > dn > > >> Kevin Turner >> >> -----Original Message----- >> From: David Newman [mailto:dnewman at networktest.com] >> Sent: Friday, January 02, 2009 4:32 PM >> To: kevin_turner at syncglobal.net >> Subject: rancid and Alcatel-Lucent OmniSwitch 6850 >> >> Hi Kevin, >> >> Where did you find the rancid patches for Alcatel-Lucent OmniSwitch >> 6850? Did these work for you? >> >> I've got a couple of these to look after as well. >> >> Many thanks, and happy 2009. >> >> dn >> >> >> >> >> > From dnewman at networktest.com Wed Jan 7 00:29:50 2009 From: dnewman at networktest.com (David Newman) Date: Tue, 06 Jan 2009 16:29:50 -0800 Subject: [rancid] Re: rancid and Alcatel-Lucent OmniSwitch 6850 In-Reply-To: <85F15BDA7EF045E0871959441BFECB22@hydrogen> References: <495E87EA.8000901@networktest.com> <4961141E.8070106@networktest.com> <4963DFEA.5040406@networktest.com> <85F15BDA7EF045E0871959441BFECB22@hydrogen> Message-ID: <4963F77E.1060606@networktest.com> On 1/6/09 3:37 PM, Kevin Turner wrote: > David, > > Apparently, you are using one of the alpha versions of RANCID. Yes. This is on 2.3.2a7, which is from the rancid-devel port on FreeBSD. > Rancid-fe has > changed in the alpha versions. So, yes add "'alcatel' => > 'orancid'," instead of the line I gave you to rancid-fe. ok, done > > Also, indeed you are seeing the output for "show configuration status"; > however, you should also see the output of more commands including "show > configuration snapshot all". The script seems to be stopping for some > reason. It may may due to a change in the alpha version of RANCID. I am > using the current version 2.3.1 > > Try running the following debug command from the directory 'orancid' is > located. > > env NOPIPE=y orancid -d > > This will produce devicename.raw and and devicename.new files in the > current directory. The .raw file will have more output to examine for > errors. orancid and ologin are in /usr/local/libexec/rancid, which the rancid user does not have write access to. Instead I ran this from the rancid user's home directory (on this box it's /usr/local/etc/rancid). (Also, I needed to add /usr/local/libexec/rancid to the rancid user's path, which I've done permanently.) The output of the .new file looks like the "show configuration status," as before. The output of the .raw file has all the output from all commands, including the switch config. So, unclear why rancid-run isn't picking up the config when manually running orancid does. I have not posted any log output because everything looks "normal" but if there's any other info I can provide for debugging please let me know. thanks again dn > Kevin > > -----Original Message----- > From: David Newman [mailto:dnewman at networktest.com] > Sent: Tuesday, January 06, 2009 5:49 PM > To: Kevin Turner > Cc: rancid-discuss at shrubbery.net > Subject: Re: rancid and Alcatel-Lucent OmniSwitch 6850 > > On 1/5/09 7:24 AM, Kevin Turner wrote: >> David, >> >> I have attached the two scripts that I use to backup our 6850's. > > Thanks, Kevin! > >> Also, add the line below to rancid-fe >> >> elsif ($vendor =~ /^alcatel$/i) { exec('orancid', $router); } > > OK, I've added that. > > Would adding this to the vendortable section do the same thing?: > > 'alcatel' => 'orancid', > > >> The attached scripts are slight settings modifications of scripts > published >> by Alexander Bochmann (who deserves all the credit). >> >> I have also CC'd the discussion board since I have had other requests for >> this information. >> >> Let me know whether they work for you. > > orancid runs, but I think it executes "show configuration status" > instead of "show configuration snapshot all". > > All I get for a device config is the following: > > !RANCID-CONTENT-TYPE: alcatel > ! > !Cfg: Running configuration and saved configuration are identical > ! > ! > ! > ! > ! > ! > ! > ! > !! Stack Manager : > > That's it, all 137 bytes of it. That looks like the output from "show > configuration status" rather than the device config. > > How to tweak orancid so that it uses "show configuration snapshot all"? > > thanks again > > dn > > > > >> Kevin >> >> -----Original Message----- >> From: David Newman [mailto:dnewman at networktest.com] >> Sent: Sunday, January 04, 2009 2:55 PM >> To: Kevin Turner >> Subject: Re: rancid and Alcatel-Lucent OmniSwitch 6850 >> >> On 1/4/09 6:43 AM, Kevin Turner wrote: >>> Hello David, >>> >>> I found scripts in the message archives that I had to modify slightly to >>> work with the 6850. I'll be glad to send these to you tomorrow morning >>> (Eastern time) when I am in the office again. >> Thanks very much! I appreciate it. >> >> dn >> >> >>> Kevin Turner >>> >>> -----Original Message----- >>> From: David Newman [mailto:dnewman at networktest.com] >>> Sent: Friday, January 02, 2009 4:32 PM >>> To: kevin_turner at syncglobal.net >>> Subject: rancid and Alcatel-Lucent OmniSwitch 6850 >>> >>> Hi Kevin, >>> >>> Where did you find the rancid patches for Alcatel-Lucent OmniSwitch >>> 6850? Did these work for you? >>> >>> I've got a couple of these to look after as well. >>> >>> Many thanks, and happy 2009. >>> >>> dn >>> >>> >>> >>> >>> > > > > From georg.naggies at r-it.at Wed Jan 7 13:20:22 2009 From: georg.naggies at r-it.at (georg.naggies at r-it.at) Date: Wed, 7 Jan 2009 14:20:22 +0100 Subject: [rancid] Re: CSS backup "end of run not found" In-Reply-To: <20090106185516.GM958@shrubbery.net> Message-ID: You are right, Rancid should catch this. The prompt of our last remaining CSS on logout with unsaved changes is exactly: "Configuration changes have occurred. Save changes before exiting, [y/n/q]:" Tried it out now with "exp_internal" debugging, expect: does "Configuration changes have occurred. Save changes before exiting, [y/n/q]:" (spawn_id exp4) match regular expression "^[^\n\r *]*EPP-CSS-01([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no "Do you wish to save your configuration changes"? no "[\n\r]+"? no expect: timed out Clogin still expects the prompt, so something seems amiss here. But probably not worth much worry, since CSSs are somewhat legacy equipemnt, aren't they? Since I happen to write to the Rancid creator: BIG thank you, we use Rancid big time, thousands of devices, best thing in configuration management ever. Georg heas at shrubbery.net@inet 06.01.2009 19:55 An georg.naggies at r-it.at Kopie smunzani at comcast.net, rancid-discuss at shrubbery.net Thema Re: [rancid] Re: CSS backup "end of run not found" Tue, Jan 06, 2009 at 12:58:39PM +0100, georg.naggies at r-it.at: > When there are unsaved config changes on the CSS it asks "do you want to > save the config" or something like that, and Rancid doesn't catch that. > Therefore: try logging in manually and see what the CSS does on logout. > Best, Georg it looks for "(Profile|Configuration) changes have occurred.*" at logout. if cisco has made another gratuitous change, what is the new prompt? > > > heas at shrubbery.net > Gesendet von: rancid-discuss-bounces at shrubbery.net > 06.01.2009 01:08 > > An > smunzani at comcast.net > Kopie > rancid-discuss at shrubbery.net > Thema > [rancid] Re: CSS backup "end of run not found" > > > > > > > Mon, Jan 05, 2009 at 03:51:54PM -0600, Sam Munzani: > > Team, > > > > I am using cssrancid of following version. > > > > ## $Id: cssrancid.in,v 1.4 2004/01/11 03:49:13 heas Exp $ > > 1.4 is ancient. please try a more recent version first. > > > I can successfully login to the css with clogin command and run both of > > the commands that fail when rancid-run executes. > > > > Getting missed routers: round 1. > > mycss01: found unexpected command - "term length 65000" > > mycss01: found unexpected command - "copy profile user-profile" > > mycss01: End of run not found > > > > The cssrancid has term length settings of 65535 but I changed it to > > 65000 just to see if the number makes a difference but no luck. Any > > pointers? > > > > Below is debug output. BTW, I set my TERM variable manually to ensure > > that's not the issue here. > > $echo $TERM > > vt100 > > > > $cssrancid -d mycss01 > > executing clogin -t 90 -c"term length 65000;copy profile > > user-profile;show version;show boot;show run" mycss01 > > HIT COMMAND:mycss01# term length 65000 > > HIT COMMAND:mycss01# term length 65000 > > mycss01: found unexpected command - "term length 65000" > > HIT COMMAND:mycss01# copy profile user-profile > > HIT COMMAND:mycss01# copy profile user-profile > > mycss01: found unexpected command - "copy profile user-profile" > > HIT COMMAND:mycss01# show version > > In ShowVersion: mycss01# show version > > HIT COMMAND:mycss01# show boot > > In ShowBoot: mycss01# show boot > > HIT COMMAND:mycss01# show run > > In ShowRun: mycss01# show run > > mycss01: End of run not found > > mycss01: End of run not found > > > > > > 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 > > > > ---------------------------------------- > Raiffeisen Informatik GmbH, Firmenbuchnr. 88239p, Handelsgericht Wien, DVR 0486809, UID ATU 16351908 > > Der Austausch von Nachrichten mit oben angefuehrtem Absender via E-Mail dient ausschliesslich Informationszwecken. Rechtsgeschaeftliche Erklaerungen duerfen ueber dieses Medium nicht ausgetauscht werden. > Correspondence with above mentioned sender via e-mail is only for information purposes. This medium may not be used for exchange of legally-binding communications. > ---------------------------------------- > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss ---------------------------------------- Raiffeisen Informatik GmbH, Firmenbuchnr. 88239p, Handelsgericht Wien, DVR 0486809, UID ATU 16351908 Der Austausch von Nachrichten mit oben angefuehrtem Absender via E-Mail dient ausschliesslich Informationszwecken. Rechtsgeschaeftliche Erklaerungen duerfen ueber dieses Medium nicht ausgetauscht werden. Correspondence with above mentioned sender via e-mail is only for information purposes. This medium may not be used for exchange of legally-binding communications. ---------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090107/b06e4444/attachment.html From kevin_turner at syncglobal.net Wed Jan 7 19:09:26 2009 From: kevin_turner at syncglobal.net (Kevin Turner) Date: Wed, 7 Jan 2009 14:09:26 -0500 Subject: [rancid] Re: rancid and Alcatel-Lucent OmniSwitch 6850 In-Reply-To: <4963F77E.1060606@networktest.com> References: <495E87EA.8000901@networktest.com> <4961141E.8070106@networktest.com> <4963DFEA.5040406@networktest.com> <85F15BDA7EF045E0871959441BFECB22@hydrogen> <4963F77E.1060606@networktest.com> Message-ID: David, If the .raw file is complete, but the .new file is not; apparently part of the needed output is getting erased when the .new file is created. It may be due to a difference in the alpha version of RANCID. You can try using the attached version of orancid that will only execute ' show configuration snapshot all' to see if it works. It won't give you the extra convenient information, but it will eliminate some commands to see if it makes a difference. Hopefully, someone more knowledgeable on the .new file creation vs .raw file process will add some input. Kevin -----Original Message----- From: David Newman [mailto:dnewman at networktest.com] Sent: Tuesday, January 06, 2009 7:30 PM To: Kevin Turner Cc: rancid-discuss at shrubbery.net Subject: Re: rancid and Alcatel-Lucent OmniSwitch 6850 On 1/6/09 3:37 PM, Kevin Turner wrote: > David, > > Apparently, you are using one of the alpha versions of RANCID. Yes. This is on 2.3.2a7, which is from the rancid-devel port on FreeBSD. > Rancid-fe has > changed in the alpha versions. So, yes add "'alcatel' => > 'orancid'," instead of the line I gave you to rancid-fe. ok, done > > Also, indeed you are seeing the output for "show configuration status"; > however, you should also see the output of more commands including "show > configuration snapshot all". The script seems to be stopping for some > reason. It may may due to a change in the alpha version of RANCID. I am > using the current version 2.3.1 > > Try running the following debug command from the directory 'orancid' is > located. > > env NOPIPE=y orancid -d > > This will produce devicename.raw and and devicename.new files in the > current directory. The .raw file will have more output to examine for > errors. orancid and ologin are in /usr/local/libexec/rancid, which the rancid user does not have write access to. Instead I ran this from the rancid user's home directory (on this box it's /usr/local/etc/rancid). (Also, I needed to add /usr/local/libexec/rancid to the rancid user's path, which I've done permanently.) The output of the .new file looks like the "show configuration status," as before. The output of the .raw file has all the output from all commands, including the switch config. So, unclear why rancid-run isn't picking up the config when manually running orancid does. I have not posted any log output because everything looks "normal" but if there's any other info I can provide for debugging please let me know. thanks again dn > Kevin > > -----Original Message----- > From: David Newman [mailto:dnewman at networktest.com] > Sent: Tuesday, January 06, 2009 5:49 PM > To: Kevin Turner > Cc: rancid-discuss at shrubbery.net > Subject: Re: rancid and Alcatel-Lucent OmniSwitch 6850 > > On 1/5/09 7:24 AM, Kevin Turner wrote: >> David, >> >> I have attached the two scripts that I use to backup our 6850's. > > Thanks, Kevin! > >> Also, add the line below to rancid-fe >> >> elsif ($vendor =~ /^alcatel$/i) { exec('orancid', $router); } > > OK, I've added that. > > Would adding this to the vendortable section do the same thing?: > > 'alcatel' => 'orancid', > > >> The attached scripts are slight settings modifications of scripts > published >> by Alexander Bochmann (who deserves all the credit). >> >> I have also CC'd the discussion board since I have had other requests for >> this information. >> >> Let me know whether they work for you. > > orancid runs, but I think it executes "show configuration status" > instead of "show configuration snapshot all". > > All I get for a device config is the following: > > !RANCID-CONTENT-TYPE: alcatel > ! > !Cfg: Running configuration and saved configuration are identical > ! > ! > ! > ! > ! > ! > ! > ! > !! Stack Manager : > > That's it, all 137 bytes of it. That looks like the output from "show > configuration status" rather than the device config. > > How to tweak orancid so that it uses "show configuration snapshot all"? > > thanks again > > dn > > > > >> Kevin >> >> -----Original Message----- >> From: David Newman [mailto:dnewman at networktest.com] >> Sent: Sunday, January 04, 2009 2:55 PM >> To: Kevin Turner >> Subject: Re: rancid and Alcatel-Lucent OmniSwitch 6850 >> >> On 1/4/09 6:43 AM, Kevin Turner wrote: >>> Hello David, >>> >>> I found scripts in the message archives that I had to modify slightly to >>> work with the 6850. I'll be glad to send these to you tomorrow morning >>> (Eastern time) when I am in the office again. >> Thanks very much! I appreciate it. >> >> dn >> >> >>> Kevin Turner >>> >>> -----Original Message----- >>> From: David Newman [mailto:dnewman at networktest.com] >>> Sent: Friday, January 02, 2009 4:32 PM >>> To: kevin_turner at syncglobal.net >>> Subject: rancid and Alcatel-Lucent OmniSwitch 6850 >>> >>> Hi Kevin, >>> >>> Where did you find the rancid patches for Alcatel-Lucent OmniSwitch >>> 6850? Did these work for you? >>> >>> I've got a couple of these to look after as well. >>> >>> Many thanks, and happy 2009. >>> >>> dn >>> >>> >>> >>> >>> > > > > -------------- next part -------------- A non-text attachment was scrubbed... Name: orancid Type: application/octet-stream Size: 63344 bytes Desc: not available Url : http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090107/77bf39de/attachment.obj From dnewman at networktest.com Wed Jan 7 19:36:25 2009 From: dnewman at networktest.com (David Newman) Date: Wed, 07 Jan 2009 11:36:25 -0800 Subject: [rancid] Re: rancid and Alcatel-Lucent OmniSwitch 6850 In-Reply-To: References: <495E87EA.8000901@networktest.com> <4961141E.8070106@networktest.com> <4963DFEA.5040406@networktest.com> <85F15BDA7EF045E0871959441BFECB22@hydrogen> <4963F77E.1060606@networktest.com> Message-ID: <49650439.8010108@networktest.com> On 1/7/09 11:09 AM, Kevin Turner wrote: > David, > > If the .raw file is complete, but the .new file is not; apparently part of > the needed output is getting erased when the .new file is created. It may be > due to a difference in the alpha version of RANCID. > > You can try using the attached version of orancid that will only execute ' > show configuration snapshot all' to see if it works. It won't give you the > extra convenient information, but it will eliminate some commands to see if > it makes a difference. > > Hopefully, someone more knowledgeable on the .new file creation vs .raw file > process will add some input. Thanks, Kevin. "rancid-run" produced an even more truncated version of the config file (pasted below). Running "env NOPIPE=y orancid -d 1.2.3.4" again produced a complete config file in the .raw file, and truncated output in the .new file (similar to that from rancid-run). Moving from 2.3.2a7 (from FreeBSD ports) to 2.3.2a9 might be worth trying but I have two concerns about that: 1. I don't know which version of 2.3.2 Alexander used to produce his scripts, so it might not make a difference; and 2. I also don't know whether installing from source would use the same file locations as the FreeBSD port. Presumably there are compile-time options to set this, but I haven't looked yet. Thanks in advance for any suggested next steps. dn from rancid-run: Index: configs/1.2.3.4 =================================================================== retrieving revision 1.2 diff -u -4 -r1.2 1.2.3.4 @@ -1,12 +1,7 @@ !RANCID-CONTENT-TYPE: alcatel ! - !Cfg: Running configuration and saved configuration are identical - ! ! ! ! - ! - ! - ! ! !! Stack Manager : > > > Kevin > > -----Original Message----- > From: David Newman [mailto:dnewman at networktest.com] > Sent: Tuesday, January 06, 2009 7:30 PM > To: Kevin Turner > Cc: rancid-discuss at shrubbery.net > Subject: Re: rancid and Alcatel-Lucent OmniSwitch 6850 > > On 1/6/09 3:37 PM, Kevin Turner wrote: >> David, >> >> Apparently, you are using one of the alpha versions of RANCID. > > Yes. This is on 2.3.2a7, which is from the rancid-devel port on FreeBSD. > >> Rancid-fe has >> changed in the alpha versions. So, yes add "'alcatel' => >> 'orancid'," instead of the line I gave you to rancid-fe. > > ok, done > >> Also, indeed you are seeing the output for "show configuration status"; >> however, you should also see the output of more commands including "show >> configuration snapshot all". The script seems to be stopping for some >> reason. It may may due to a change in the alpha version of RANCID. I am >> using the current version 2.3.1 >> >> Try running the following debug command from the directory 'orancid' is >> located. >> >> env NOPIPE=y orancid -d >> >> This will produce devicename.raw and and devicename.new files in the >> current directory. The .raw file will have more output to examine for >> errors. > > orancid and ologin are in /usr/local/libexec/rancid, which the rancid > user does not have write access to. > > Instead I ran this from the rancid user's home directory (on this box > it's /usr/local/etc/rancid). (Also, I needed to add > /usr/local/libexec/rancid to the rancid user's path, which I've done > permanently.) > > The output of the .new file looks like the "show configuration status," > as before. The output of the .raw file has all the output from all > commands, including the switch config. > > So, unclear why rancid-run isn't picking up the config when manually > running orancid does. > > I have not posted any log output because everything looks "normal" but > if there's any other info I can provide for debugging please let me know. > > thanks again > > dn > > > > > >> Kevin >> >> -----Original Message----- >> From: David Newman [mailto:dnewman at networktest.com] >> Sent: Tuesday, January 06, 2009 5:49 PM >> To: Kevin Turner >> Cc: rancid-discuss at shrubbery.net >> Subject: Re: rancid and Alcatel-Lucent OmniSwitch 6850 >> >> On 1/5/09 7:24 AM, Kevin Turner wrote: >>> David, >>> >>> I have attached the two scripts that I use to backup our 6850's. >> Thanks, Kevin! >> >>> Also, add the line below to rancid-fe >>> >>> elsif ($vendor =~ /^alcatel$/i) { exec('orancid', $router); } >> OK, I've added that. >> >> Would adding this to the vendortable section do the same thing?: >> >> 'alcatel' => 'orancid', >> >> >>> The attached scripts are slight settings modifications of scripts >> published >>> by Alexander Bochmann (who deserves all the credit). >>> >>> I have also CC'd the discussion board since I have had other requests for >>> this information. >>> >>> Let me know whether they work for you. >> orancid runs, but I think it executes "show configuration status" >> instead of "show configuration snapshot all". >> >> All I get for a device config is the following: >> >> !RANCID-CONTENT-TYPE: alcatel >> ! >> !Cfg: Running configuration and saved configuration are identical >> ! >> ! >> ! >> ! >> ! >> ! >> ! >> ! >> !! Stack Manager : >> >> That's it, all 137 bytes of it. That looks like the output from "show >> configuration status" rather than the device config. >> >> How to tweak orancid so that it uses "show configuration snapshot all"? >> >> thanks again >> >> dn >> >> >> >> >>> Kevin >>> >>> -----Original Message----- >>> From: David Newman [mailto:dnewman at networktest.com] >>> Sent: Sunday, January 04, 2009 2:55 PM >>> To: Kevin Turner >>> Subject: Re: rancid and Alcatel-Lucent OmniSwitch 6850 >>> >>> On 1/4/09 6:43 AM, Kevin Turner wrote: >>>> Hello David, >>>> >>>> I found scripts in the message archives that I had to modify slightly to >>>> work with the 6850. I'll be glad to send these to you tomorrow morning >>>> (Eastern time) when I am in the office again. >>> Thanks very much! I appreciate it. >>> >>> dn >>> >>> >>>> Kevin Turner >>>> >>>> -----Original Message----- >>>> From: David Newman [mailto:dnewman at networktest.com] >>>> Sent: Friday, January 02, 2009 4:32 PM >>>> To: kevin_turner at syncglobal.net >>>> Subject: rancid and Alcatel-Lucent OmniSwitch 6850 >>>> >>>> Hi Kevin, >>>> >>>> Where did you find the rancid patches for Alcatel-Lucent OmniSwitch >>>> 6850? Did these work for you? >>>> >>>> I've got a couple of these to look after as well. >>>> >>>> Many thanks, and happy 2009. >>>> >>>> dn >>>> >>>> >>>> >>>> >>>> >> >> >> > From heas at shrubbery.net Wed Jan 7 22:39:03 2009 From: heas at shrubbery.net (john heasley) Date: Wed, 7 Jan 2009 22:39:03 +0000 Subject: [rancid] Re: CSS backup "end of run not found" In-Reply-To: References: <20090106185516.GM958@shrubbery.net> Message-ID: <20090107223903.GI22240@shrubbery.net> Wed, Jan 07, 2009 at 02:20:22PM +0100, georg.naggies at r-it.at: > > You are right, Rancid should catch this. The prompt of our last remaining > CSS on logout with unsaved changes is exactly: > "Configuration changes have occurred. Save changes before exiting, > [y/n/q]:" > > Tried it out now with "exp_internal" debugging, > > expect: does "Configuration changes have occurred. Save changes before > exiting, [y/n/q]:" (spawn_id exp4) match regular expression > "^[^\n\r *]*EPP-CSS-01([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "Do you wish to save your configuration changes"? no > "[\n\r]+"? no > expect: timed out why doesn't the "(Profile|Configuration) changes have occurred.*" match appear in that output? do you have two versions of clogin? From georg.naggies at r-it.at Thu Jan 8 08:54:31 2009 From: georg.naggies at r-it.at (georg.naggies at r-it.at) Date: Thu, 8 Jan 2009 09:54:31 +0100 Subject: [rancid] Re: CSS backup "end of run not found" In-Reply-To: <20090107223903.GI22240@shrubbery.net> Message-ID: not there in rancid-2.3.2a3 neither in rancid-2.3.1, in rancid-2.3.2a7 it is. Georg heas at shrubbery.net@inet 07.01.2009 23:39 An georg.naggies at r-it.at Kopie heas at shrubbery.net, rancid-discuss at shrubbery.net, smunzani at comcast.net Thema Re: [rancid] Re: CSS backup "end of run not found" Wed, Jan 07, 2009 at 02:20:22PM +0100, georg.naggies at r-it.at: > > You are right, Rancid should catch this. The prompt of our last remaining > CSS on logout with unsaved changes is exactly: > "Configuration changes have occurred. Save changes before exiting, > [y/n/q]:" > > Tried it out now with "exp_internal" debugging, > > expect: does "Configuration changes have occurred. Save changes before > exiting, [y/n/q]:" (spawn_id exp4) match regular expression > "^[^\n\r *]*EPP-CSS-01([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "Do you wish to save your configuration changes"? no > "[\n\r]+"? no > expect: timed out why doesn't the "(Profile|Configuration) changes have occurred.*" match appear in that output? do you have two versions of clogin? ---------------------------------------- Raiffeisen Informatik GmbH, Firmenbuchnr. 88239p, Handelsgericht Wien, DVR 0486809, UID ATU 16351908 Der Austausch von Nachrichten mit oben angefuehrtem Absender via E-Mail dient ausschliesslich Informationszwecken. Rechtsgeschaeftliche Erklaerungen duerfen ueber dieses Medium nicht ausgetauscht werden. Correspondence with above mentioned sender via e-mail is only for information purposes. This medium may not be used for exchange of legally-binding communications. ---------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090108/818bada2/attachment.html From kosykh at rialcom.ru Thu Jan 8 11:32:03 2009 From: kosykh at rialcom.ru (=?koi8-r?B?4czFy9PBzsTSIOvP09nI?=) Date: Thu, 08 Jan 2009 14:32:03 +0300 Subject: [rancid] dlink devices Message-ID: have any on an experience of using rancid to monitor dlink devices? thnx From heas at shrubbery.net Fri Jan 9 22:45:32 2009 From: heas at shrubbery.net (john heasley) Date: Fri, 9 Jan 2009 22:45:32 +0000 Subject: [rancid] Re: Erratic "e" and "x" characters with clogin and hlogin In-Reply-To: <469e38160901010911s7f13cdbaw38830b451446ea2@mail.gmail.com> References: <469e38160812310722r1adbc223n6ff026c93e0bece1@mail.gmail.com> <200901010127.04519.rancid@ale.cx> <469e38160901010911s7f13cdbaw38830b451446ea2@mail.gmail.com> Message-ID: <20090109224532.GY7731@shrubbery.net> Thu, Jan 01, 2009 at 12:11:24PM -0500, Ryan Shea: > That is really too bad. At least I have a platform where it flakes out > reliably enough that debugging would probably be worthwhile. I can try > pulling the clogin and hlogin from the bleeding edge version of Rancid to > see if that helps. > > -Ryan > > On Wed, Dec 31, 2008 at 8:27 PM, alex wrote: > > > On Wednesday 31 December 2008 15:22:30 Ryan Shea wrote: > > > > > seemingly random spaces at the beginning of lines with Cisco ASAs This is caused by the pager on the PIX/ASA. I've not been able to come-up with a fix for this. > > You're not alone. This seems to be an undocumented feature of the ASA > > series, > > although it only happens when there's been a config change, not > > spontaneously > > on it's own. > > > > alexd > > > > _______________________________________________ > > 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 hvgeekwtrvl at gmail.com Mon Jan 12 21:14:20 2009 From: hvgeekwtrvl at gmail.com (james machado) Date: Mon, 12 Jan 2009 13:14:20 -0800 Subject: [rancid] Has anybody gotten a McData Sphereon 4500 to import into rancid? Message-ID: Hi all, Well I've had rancid working on my Cisco stuff quite nicely for a while. I've decided to screw up whats working and see if I can get my McData 4500 to import into rancid as well. I've looked on the list and poked around in rancid but I don't see an interface file that appears that it will work with the 4500. I was wondering if anybody has gotten it to work by either rolling your own script you might be willing to share or point me to what I'm overlooking in what I already have. I'm running rancid 2.3.2a7 on debian etch. Thanks for your help, James -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090112/99c50170/attachment.html From ab at lists.gxis.de Mon Jan 12 22:53:56 2009 From: ab at lists.gxis.de (Alexander Bochmann) Date: Mon, 12 Jan 2009 23:53:56 +0100 Subject: [rancid] Re: rancid and Alcatel-Lucent OmniSwitch 6850 In-Reply-To: <4963DFEA.5040406@networktest.com> References: <495E87EA.8000901@networktest.com> <4961141E.8070106@networktest.com> <4963DFEA.5040406@networktest.com> Message-ID: <20090112225356.GF4086@gxis.de> Hi, ...on Tue, Jan 06, 2009 at 02:49:14PM -0800, David Newman wrote: > orancid runs, but I think it executes "show configuration status" > instead of "show configuration snapshot all". Sorry, I've not been monitoring the list recently. orancid runs several commands to collect some more information than just the config. >From your mail it seems to run only the commands that produce commented output for some reason. I fear I don't have a 6850 to test it though. Could you try running ologin -c"show configuration snapshot" to see if that part works at all? Alex. From dnewman at networktest.com Mon Jan 12 23:03:23 2009 From: dnewman at networktest.com (David Newman) Date: Mon, 12 Jan 2009 15:03:23 -0800 Subject: [rancid] Re: rancid and Alcatel-Lucent OmniSwitch 6850 In-Reply-To: <20090112225356.GF4086@gxis.de> References: <495E87EA.8000901@networktest.com> <4961141E.8070106@networktest.com> <4963DFEA.5040406@networktest.com> <20090112225356.GF4086@gxis.de> Message-ID: <496BCC3B.1070800@networktest.com> On 1/12/09 2:53 PM, Alexander Bochmann wrote: > Hi, > > ...on Tue, Jan 06, 2009 at 02:49:14PM -0800, David Newman wrote: > > > orancid runs, but I think it executes "show configuration status" > > instead of "show configuration snapshot all". > > Sorry, I've not been monitoring the list recently. > > orancid runs several commands to collect some more > information than just the config. > > From your mail it seems to run only the commands > that produce commented output for some reason. > I fear I don't have a 6850 to test it though. > > Could you try running > > ologin -c"show configuration snapshot" > > to see if that part works at all? > Yes, that logs in via ssh, sets "no more" and then returns the entire config. thanks dn From ab at lists.gxis.de Mon Jan 12 23:20:51 2009 From: ab at lists.gxis.de (Alexander Bochmann) Date: Tue, 13 Jan 2009 00:20:51 +0100 Subject: [rancid] Re: rancid and Alcatel-Lucent OmniSwitch 6850 In-Reply-To: <496BCC3B.1070800@networktest.com> References: <495E87EA.8000901@networktest.com> <4961141E.8070106@networktest.com> <4963DFEA.5040406@networktest.com> <20090112225356.GF4086@gxis.de> <496BCC3B.1070800@networktest.com> Message-ID: <20090112232051.GE3970@gxis.de> Hi, ...on Mon, Jan 12, 2009 at 03:03:23PM -0800, David Newman wrote: > On 1/12/09 2:53 PM, Alexander Bochmann wrote: > > Could you try running > > ologin -c"show configuration snapshot" > > to see if that part works at all? > Yes, that logs in via ssh, sets "no more" and then returns the entire > config. Hmmm... Perhaps one of the other commands that are run is the problem then. Maybe try to edit orancid and comment out everything besides the {'show configuration snapshot all' => 'ShowConfig'}, line in @commandtable. If that works, you could single out the command that breaks on your switch by commenting the other commands back in one by one (warning: all the cisco stuff is still in there too, so don't get that mixed up). I cleaned up the orancid code somewhat a couple of weeks ago, should probably repost that version. Alex. From dnewman at networktest.com Mon Jan 12 23:40:29 2009 From: dnewman at networktest.com (David Newman) Date: Mon, 12 Jan 2009 15:40:29 -0800 Subject: [rancid] Re: rancid and Alcatel-Lucent OmniSwitch 6850 In-Reply-To: <20090112232051.GE3970@gxis.de> References: <495E87EA.8000901@networktest.com> <4961141E.8070106@networktest.com> <4963DFEA.5040406@networktest.com> <20090112225356.GF4086@gxis.de> <496BCC3B.1070800@networktest.com> <20090112232051.GE3970@gxis.de> Message-ID: <496BD4ED.3040902@networktest.com> On 1/12/09 3:20 PM, Alexander Bochmann wrote: > Hi, > > ...on Mon, Jan 12, 2009 at 03:03:23PM -0800, David Newman wrote: > > > On 1/12/09 2:53 PM, Alexander Bochmann wrote: > > > Could you try running > > > ologin -c"show configuration snapshot" > > > to see if that part works at all? > > Yes, that logs in via ssh, sets "no more" and then returns the entire > > config. > > Hmmm... Perhaps one of the other commands that are run is > the problem then. > > Maybe try to edit orancid and comment out everything besides > the {'show configuration snapshot all' => 'ShowConfig'}, > line in @commandtable. Kevin Turner also suggested that, and that's actually what my orancid looks like at the moment: The only line in commandtable *not* commented out is the one with 'show configuration snapshot all'. > > If that works, you could single out the command that breaks > on your switch by commenting the other commands back in one > by one (warning: all the cisco stuff is still in there too, > so don't get that mixed up). > > I cleaned up the orancid code somewhat a couple of weeks ago, > should probably repost that version. Sure, I'd be glad to try the latest version. Also, I'm on 2.3.2a7 from FreeBSD-ports. Any chance the OmniSwitch stuff requires 2.3.2a8 or a9? I tend to think not, since Kevin Turner is using 2.3.1, but just asking. Thanks again. dn > > Alex. > > From Atif.SIDDIQUI at HydroOne.com Fri Jan 16 13:34:37 2009 From: Atif.SIDDIQUI at HydroOne.com (Atif.SIDDIQUI at HydroOne.com) Date: Fri, 16 Jan 2009 08:34:37 -0500 Subject: [rancid] Netscreen SSG140 serial #s cannot be retrieved ! In-Reply-To: <496BD4ED.3040902@networktest.com> References: <495E87EA.8000901@networktest.com><4961141E.8070106@networktest.com><4963DFEA.5040406@networktest.com> <20090112225356.GF4086@gxis.de><496BCC3B.1070800@networktest.com> <20090112232051.GE3970@gxis.de> <496BD4ED.3040902@networktest.com> Message-ID: <41BBAE5132ABA54BB2BA8716254F03D6013A4324@1104MILPEV.corp.hydroone.com> Hi, RANCID is unable to retrieve serial number for SSG-140's; while it can do for SSg520. anyone can help RANCID output: #RANCID-CONTENT-TYPE: netscreen # #Product: SSG-140 #HW: 1010(0)-(00) #Netscreen Type: Firewall+VPN #Software Version: 5.4.0r5.0 #Feature: AV-K #File Name: screenos/ssg140.5.4.0r5.0, Checksum: 638d67af # Product: SSG-520 #SN: 0156082007000054 #HW: 0000(0)-(00) #Netscreen Type: Firewall+VPN #Software Version: 5.4.0r5.0 #Feature: AV-K #File Name screenos_image, Checksum: daef22a5 NS output (get system): 01W-> get system Product Name: SSG-140 Serial Number: 0185072007000775, Control Number: ffffffff Hardware Version: 1010(0)-(00), FPGA checksum: 00000000, VLAN1 IP (0.0.0.0) Software Version: 5.4.0r5.0, Type: Firewall+VPN Feature: AV-K 03W-> get system Product Name: SSG-520 Serial Number: 0156082007000054, Control Number: 00000000 Hardware Version: 0000(0)-(00), FPGA checksum: 00000000, VLAN1 IP (0.0.0.0) Software Version: 5.4.0r5.0, Type: Firewall+VPN Feature: AV-K -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090116/ce67fd5e/attachment.html From Atif.SIDDIQUI at HydroOne.com Fri Jan 16 17:10:37 2009 From: Atif.SIDDIQUI at HydroOne.com (Atif.SIDDIQUI at HydroOne.com) Date: Fri, 16 Jan 2009 12:10:37 -0500 Subject: [rancid] inventory mgmt script from rancid output Message-ID: <41BBAE5132ABA54BB2BA8716254F03D6013A44A4@1104MILPEV.corp.hydroone.com> Anyone can send me this script. Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090116/159bc1d8/attachment.html From rancid at gheek.net Fri Jan 16 17:18:49 2009 From: rancid at gheek.net (Lance Vermilion) Date: Fri, 16 Jan 2009 10:18:49 -0700 Subject: [rancid] Re: inventory mgmt script from rancid output In-Reply-To: <41BBAE5132ABA54BB2BA8716254F03D6013A44A4@1104MILPEV.corp.hydroone.com> References: <41BBAE5132ABA54BB2BA8716254F03D6013A44A4@1104MILPEV.corp.hydroone.com> Message-ID: <8423e7bb0901160918s4c5aadb7u83879b779ab51cbf@mail.gmail.com> What script are you referring too? On Fri, Jan 16, 2009 at 10:10 AM, wrote: > Anyone can send me this script. > > > > Thanks in advance. > > > > > > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > From Atif.SIDDIQUI at HydroOne.com Fri Jan 16 19:05:52 2009 From: Atif.SIDDIQUI at HydroOne.com (Atif.SIDDIQUI at HydroOne.com) Date: Fri, 16 Jan 2009 14:05:52 -0500 Subject: [rancid] Re: inventory mgmt script from rancid output In-Reply-To: <8423e7bb0901160918s4c5aadb7u83879b779ab51cbf@mail.gmail.com> References: <41BBAE5132ABA54BB2BA8716254F03D6013A44A4@1104MILPEV.corp.hydroone.com> <8423e7bb0901160918s4c5aadb7u83879b779ab51cbf@mail.gmail.com> Message-ID: <41BBAE5132ABA54BB2BA8716254F03D6013A450C@1104MILPEV.corp.hydroone.com> There was discussion in the archives, I am also interested in this script. Mohacsi Janos mohacsi at niif.hu Thu Jul 20 07:57:18 UTC 2006 Previous message: [rancid] Re: Monitoring Route Table with RANCID. Next message: [rancid] Re: inventory mgmt script from rancid output Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] ------------------------------------------------------------------------ -------- Dear All, Did anybody already write a post-processing script to extract inventory only (CPU, memory, interfaces wit their serials) from rancid output files and presents in a more easy to view format? Thanks. Regards, Janos Mohacsi Network Engineer, Research Associate, Head of Network Planning -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Lance Vermilion Sent: Friday, January 16, 2009 12:19 PM To: rancid-discuss at shrubbery.net Subject: [rancid] Re: inventory mgmt script from rancid output What script are you referring too? On Fri, Jan 16, 2009 at 10:10 AM, wrote: > Anyone can send me this script. > > > > Thanks in advance. > > > > > > > > _______________________________________________ > 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/20090116/f88d3beb/attachment.html From kristian at spritelink.net Tue Jan 20 17:33:01 2009 From: kristian at spritelink.net (Kristian Larsson) Date: Tue, 20 Jan 2009 18:33:01 +0100 Subject: [rancid] clogin bug in $prompt matching, does not work well IOS XR Message-ID: <20090120173300.GB86212@spritelink.se> Hello! I have found what I believe is a bug in clogin. When using clogin to automatically send commands and retrieve its output from an IOS XR device the prompt is not correctly parsed. When clogin first logs in, it sends a simple carriage return (\n) to the router to be able to determine the prompt. Here's an strace of that.. recvfrom(3, "RP/0/RP1/CPU0:AMS-CORE-1#", 6938, 0, NULL, NULL) = 25 write(1, "RP/0/RP1/CPU0:AMS-CORE-1#", 25) = 25 read(0, "\r", 8177) = 1 sendto(3, "\r\0", 2, 0, NULL, 0) = 2 recvfrom(3, "\r\n\rRP/0/RP1/CPU0:AMS-CORE-1#", 6913, 0, NULL, NULL) = 28 write(1, "\r\n\rRP/0/RP1/CPU0:AMS-CORE-1#", 28) = 28 So far, everything is fine and dandy. The router is obviously called ams-core-1 and it has the prompt RP/0/RP1/CPU0:AMS-CORE-1# which clogin correctly identifies. Here comes the next part, clogin sends 'terminal length 0'... read(0, "terminal length 0\r", 8176) = 18 sendto(3, "terminal length 0\r\0", 19, 0, NULL, 0) = 19 recvfrom(3, "terminal\rRP/0/RP1/CPU0:AMS-CORE-1#terminal length\rRP/0/RP1/CPU0:AMS-CORE-1#terminal length 0\r\n\r", 6885, 0, NULL, NULL) = 95 So it reads 'terminal length 0' from clogin, sends it to the CRS and then receives the output. Now, IOS XR does one thing a tad differently than IOS, it has command completion on the space key as well as on the tab key. My guess is that this mechanism forces the IOS XR CLI to redraw the line each and every time a space is entered. If we examine the recvfrom line recvfrom(3, "terminal\rRP/0/RP1/CPU0:AMS-CORE-1#terminal length\rRP/0/RP1/CPU0:AMS-CORE-1#terminal length 0\r\n\r", 6885, 0, NULL, NULL) = 95 we see that "terminal" is first echoed back to the client. Then, as a space was entered, IOS XR does a carriage return and redraws the entire line starting with the prompt and filling up with "terminal length" and the same thing over again to "terminal length 0". As clogin merely looks for $prompt which is 'RP/0/RP1/CPU0:AMS-CORE-1#', it will get a match several times over and is thus unable to interpret the situation correctly. I've tried modifying clogin in several ways - adding \n to prompt or several of the places where $prompt is used and so forth but so far without much luck. My TCL-fu is not strong enough. Could some TCL guru have a look at this? I could probably arrange access to an IOS XR device for testing. Oh, I'm running clogin version 2.3.2a9 Kind regards, Kristian. -- Kristian Larsson KLL-RIPE Network Engineer / Internet Core Tele2 / SWIPnet [AS1257] +46 704 910401 kll at spritelink.net From rancid at gheek.net Tue Jan 20 17:43:33 2009 From: rancid at gheek.net (Lance Vermilion) Date: Tue, 20 Jan 2009 10:43:33 -0700 Subject: [rancid] Re: clogin bug in $prompt matching, does not work well IOS XR In-Reply-To: <20090120173300.GB86212@spritelink.se> References: <20090120173300.GB86212@spritelink.se> Message-ID: <8423e7bb0901200943nd629ce0n804741abf02eb0a@mail.gmail.com> Have you tried adding something like the following to you .cloginrc? add userprompt AMS-CORE-1 "RP/0/RP1/CPU0:AMS-CORE-1" On Tue, Jan 20, 2009 at 10:33 AM, Kristian Larsson wrote: > Hello! > > I have found what I believe is a bug in clogin. > > When using clogin to automatically send commands > and retrieve its output from an IOS XR device the > prompt is not correctly parsed. > > When clogin first logs in, it sends a simple > carriage return (\n) to the router to be able to > determine the prompt. Here's an strace of that.. > > recvfrom(3, "RP/0/RP1/CPU0:AMS-CORE-1#", 6938, 0, NULL, NULL) = 25 > write(1, "RP/0/RP1/CPU0:AMS-CORE-1#", 25) = 25 > read(0, "\r", 8177) = 1 > sendto(3, "\r\0", 2, 0, NULL, 0) = 2 > recvfrom(3, "\r\n\rRP/0/RP1/CPU0:AMS-CORE-1#", 6913, 0, NULL, NULL) = 28 > write(1, "\r\n\rRP/0/RP1/CPU0:AMS-CORE-1#", 28) = 28 > > So far, everything is fine and dandy. The router > is obviously called ams-core-1 and it has the > prompt RP/0/RP1/CPU0:AMS-CORE-1# which clogin > correctly identifies. > Here comes the next part, clogin sends 'terminal > length 0'... > > read(0, "terminal length 0\r", 8176) = 18 > sendto(3, "terminal length 0\r\0", 19, 0, NULL, 0) = 19 > recvfrom(3, "terminal\rRP/0/RP1/CPU0:AMS-CORE-1#terminal length\rRP/0/RP1/CPU0:AMS-CORE-1#terminal length 0\r\n\r", 6885, 0, NULL, NULL) = 95 > > So it reads 'terminal length 0' from clogin, sends > it to the CRS and then receives the output. > > Now, IOS XR does one thing a tad differently than > IOS, it has command completion on the space key > as well as on the tab key. My guess is that this > mechanism forces the IOS XR CLI to redraw the line > each and every time a space is entered. > If we examine the recvfrom line > > recvfrom(3, "terminal\rRP/0/RP1/CPU0:AMS-CORE-1#terminal length\rRP/0/RP1/CPU0:AMS-CORE-1#terminal length 0\r\n\r", 6885, 0, NULL, NULL) = 95 > > we see that "terminal" is first echoed back to > the client. Then, as a space was entered, IOS XR > does a carriage return and redraws the entire line > starting with the prompt and filling up with > "terminal length" and the same thing over again to > "terminal length 0". > > As clogin merely looks for $prompt which is > 'RP/0/RP1/CPU0:AMS-CORE-1#', it will get a match > several times over and is thus unable to interpret > the situation correctly. > > I've tried modifying clogin in several ways > - adding \n to prompt or several of the places > where $prompt is used and so forth but so far > without much luck. My TCL-fu is not strong enough. > > Could some TCL guru have a look at this? I could > probably arrange access to an IOS XR device for > testing. > > Oh, I'm running clogin version 2.3.2a9 > > Kind regards, > Kristian. > > -- > Kristian Larsson KLL-RIPE > Network Engineer / Internet Core Tele2 / SWIPnet [AS1257] > +46 704 910401 kll at spritelink.net > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > From kristian at spritelink.net Tue Jan 20 21:10:21 2009 From: kristian at spritelink.net (Kristian Larsson) Date: Tue, 20 Jan 2009 22:10:21 +0100 Subject: [rancid] Re: clogin bug in $prompt matching, does not work well IOS XR In-Reply-To: <8423e7bb0901200943nd629ce0n804741abf02eb0a@mail.gmail.com> References: <20090120173300.GB86212@spritelink.se> <8423e7bb0901200943nd629ce0n804741abf02eb0a@mail.gmail.com> Message-ID: <20090120211021.GC86212@spritelink.se> On Tue, Jan 20, 2009 at 10:43:33AM -0700, Lance Vermilion wrote: > Have you tried adding something like the following to you .cloginrc? No. > add userprompt AMS-CORE-1 "RP/0/RP1/CPU0:AMS-CORE-1" This looks just like the prompt on the router, which clogin already detects correctly. Anyway, I just tried now adding it to my .cloginrc and I'm running into the same problem. The problem is _not_ with how clogin identifies the prompt, it does this correctly so the value stored in $prompt is correct. The problem is when clogin matches $prompt towards the lines received thereafter. Due to the way IOS XR behaves the $prompt variable could appear several times though not a complete line (with a new line at the end) and this confuses clogin. Please look at the strace output and you will see how you receive parts of the line several times before it is finally sent with an ending \n. That is where the problem lies. Or so I believe ;-) Kind regards, Kristian. > On Tue, Jan 20, 2009 at 10:33 AM, Kristian Larsson > wrote: > > Hello! > > > > I have found what I believe is a bug in clogin. > > > > When using clogin to automatically send commands > > and retrieve its output from an IOS XR device the > > prompt is not correctly parsed. > > > > When clogin first logs in, it sends a simple > > carriage return (\n) to the router to be able to > > determine the prompt. Here's an strace of that.. > > > > recvfrom(3, "RP/0/RP1/CPU0:AMS-CORE-1#", 6938, 0, NULL, NULL) = 25 > > write(1, "RP/0/RP1/CPU0:AMS-CORE-1#", 25) = 25 > > read(0, "\r", 8177) = 1 > > sendto(3, "\r\0", 2, 0, NULL, 0) = 2 > > recvfrom(3, "\r\n\rRP/0/RP1/CPU0:AMS-CORE-1#", 6913, 0, NULL, NULL) = 28 > > write(1, "\r\n\rRP/0/RP1/CPU0:AMS-CORE-1#", 28) = 28 > > > > So far, everything is fine and dandy. The router > > is obviously called ams-core-1 and it has the > > prompt RP/0/RP1/CPU0:AMS-CORE-1# which clogin > > correctly identifies. > > Here comes the next part, clogin sends 'terminal > > length 0'... > > > > read(0, "terminal length 0\r", 8176) = 18 > > sendto(3, "terminal length 0\r\0", 19, 0, NULL, 0) = 19 > > recvfrom(3, "terminal\rRP/0/RP1/CPU0:AMS-CORE-1#terminal length\rRP/0/RP1/CPU0:AMS-CORE-1#terminal length 0\r\n\r", 6885, 0, NULL, NULL) = 95 > > > > So it reads 'terminal length 0' from clogin, sends > > it to the CRS and then receives the output. > > > > Now, IOS XR does one thing a tad differently than > > IOS, it has command completion on the space key > > as well as on the tab key. My guess is that this > > mechanism forces the IOS XR CLI to redraw the line > > each and every time a space is entered. > > If we examine the recvfrom line > > > > recvfrom(3, "terminal\rRP/0/RP1/CPU0:AMS-CORE-1#terminal length\rRP/0/RP1/CPU0:AMS-CORE-1#terminal length 0\r\n\r", 6885, 0, NULL, NULL) = 95 > > > > we see that "terminal" is first echoed back to > > the client. Then, as a space was entered, IOS XR > > does a carriage return and redraws the entire line > > starting with the prompt and filling up with > > "terminal length" and the same thing over again to > > "terminal length 0". > > > > As clogin merely looks for $prompt which is > > 'RP/0/RP1/CPU0:AMS-CORE-1#', it will get a match > > several times over and is thus unable to interpret > > the situation correctly. > > > > I've tried modifying clogin in several ways > > - adding \n to prompt or several of the places > > where $prompt is used and so forth but so far > > without much luck. My TCL-fu is not strong enough. > > > > Could some TCL guru have a look at this? I could > > probably arrange access to an IOS XR device for > > testing. > > > > Oh, I'm running clogin version 2.3.2a9 > > > > Kind regards, > > Kristian. > > > > -- > > Kristian Larsson KLL-RIPE > > Network Engineer / Internet Core Tele2 / SWIPnet [AS1257] > > +46 704 910401 kll at spritelink.net > > _______________________________________________ > > 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 -- Kristian Larsson KLL-RIPE Network Engineer / Internet Core Tele2 / SWIPnet [AS1257] +46 704 910401 kll at spritelink.net From publicdropbox at gmail.com Wed Jan 21 18:47:19 2009 From: publicdropbox at gmail.com (Drop Box) Date: Wed, 21 Jan 2009 10:47:19 -0800 Subject: [rancid] Re: control characters appearing and disappearing from saved configs In-Reply-To: <20081203204353.GT8640@shrubbery.net> References: <20081122191958.GB474@shrubbery.net> <20081203204353.GT8640@shrubbery.net> Message-ID: I apologize for the delayed response. The reported problem does not show up in 2.3.2a9. Thank you! On Wed, Dec 3, 2008 at 12:43 PM, john heasley wrote: > Please try ftp://ftp.shrubbery.net/pub/rancid/rancid-2.3.2a9.tar.gz. > There > are a few new things in there that still need some work (and other not yet > committed), but it should fix this problem. > > Sat, Nov 22, 2008 at 11:19:58AM -0800, john heasley: > > I think I've fixed this problem already; I'll give you an image in a > later > > email. > > > > Sat, Nov 22, 2008 at 09:20:49AM -0800, Drop Box: > > > Hi, > > > > > > After adding a lot of lines to our HP switch configurations, I'm now > seeing > > > rancid diffs like the one below one or two dozen times a day, on > various > > > switches: > > > > > > > ----------------------------------------------------------------------------------------- > > > > > > - -- configs/switch.example.com. (revision 103454) > > > @@ -47,7 +47,7 @@ > > > ip address dhcp-bootp > > > exit > > > ip authorized-managers a.b.c.d 255.0.0.0 > > > - ip authorized-managers w.x.y.z 255.255.248.0 > > > + [24;1Hip authorized-managers w.x.y.z 255.255.248.0 > > > [...] > > > > > > > ----------------------------------------------------------------------------------------- > > > > > > - -- configs/switchexample.com. (revision 103525) > > > @@ -47,7 +47,7 @@ > > > ip address dhcp-bootp > > > exit > > > ip authorized-managers a.b.c.d 255.0.0.0 > > > - [24;1Hip authorized-managers w.x.y.z 255.255.248.0 > > > + ip authorized-managers w.x.y.z 255.255.248.0 > > > [...] > > > > > > > ----------------------------------------------------------------------------------------- > > > > > > The various configs I see this for have slight variations in length, > but the > > > control character appears and disappears on the same line ("ip > > > authorized-managers w.x.y.z 255.255.248.0"), so it's not that the > problem > > > always appears at line N. I've checked out an "offending" revision and > > > verified that the control character is there. I ran hrancid by hand > maybe > > > 20 times, and the control character showed up twice. > > > > > > Does anyone have any ideas why this might be happening? I'm using > rancid > > > 2.3.2a6 with expect 5.42.1. > > > > > > Thanks. > > > > > _______________________________________________ > > > 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/20090121/7af6bb45/attachment.html From shahues at fgcu.edu Fri Jan 23 14:27:53 2009 From: shahues at fgcu.edu (Hahues, Sven) Date: Fri, 23 Jan 2009 09:27:53 -0500 Subject: [rancid] Extreme Switches with Unsaved Configs Message-ID: Hi everyone, I'm running rancid-2.3.2a9 and I'm having a problem with our Extreme switches. Whenever the config is not saved on an Extreme switch and I run rancid-run I only get a bunch of errors in the log and no config is retrieved and diffed. (It appears as if the * that gets put in front of the cli prompt causes this, since that seems to be the only difference between a saved and an unsaved config.) I searched through this archive and found a patch for 2.3.2a6 by Tore Anderson (thank you for this) (link: http://www.shrubbery.net/pipermail/rancid-discuss/2007-May/002218.html) but even reverting back to the older version and patching it, I still encountered the same problem. I am just wondering if anyone has a solution for this, for either 2a9 or 2a6. Any help would be greatly appreciated. The output is as follows: ------------------------------------------------------------------------------------- Trying to get all of the configs. couldn't compile regular expression pattern: quantifier operand invalid while executing "expect -nobrace -re {* 300e48-x.([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[ ^M]+} { exp_continue }" invoked from within "expect { -re $reprompt {} -re "\[\n\r]+" { exp_continue } }" (procedure "run_commands" line 23) invoked from within "run_commands $prompt $command" ("foreach" body line 152) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] # attempt at platform switching. set platform "" send_user ..." (file "/home/rancid/bin/clogin" line 715)^M 172.x.x.x: missed cmd(s): show configuration detail,show slot,show configuration,show version,show diag,show memory,show switch 172.x.x.x: End of run not found ----------------------------------------------------------------------------------------- This repeats a few times. Thanks in advance, I really appreciate your assistance. Sven Hahues FGCU Computing Services E-Mail: shahues at fgcu.edu From llc at dansketelecom.com Sun Jan 25 23:44:13 2009 From: llc at dansketelecom.com (Lars Lystrup Christensen) Date: Mon, 26 Jan 2009 00:44:13 +0100 Subject: [rancid] Cisco L2TP passwords changes Message-ID: <44417CD2F19FEA4F885088340A71D33201ADE14B@mail.office.dansketelecom.com> Hi list I've noticed that RANCID keeps seeing new passwords on our L2TP configs. Anyone got an idea why? ______________________________________ Med venlig hilsen / Kind regards Lars Lystrup Christensen Director of Engineering, CCIE(tm) #20292 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090126/1af3c536/attachment.html From rtw at zcorum.com Mon Jan 26 14:38:43 2009 From: rtw at zcorum.com (Rob Wynne) Date: Mon, 26 Jan 2009 09:38:43 -0500 Subject: [rancid] SSH and Alternate Ports? Message-ID: <1232980723.22826.12.camel@zen> I've looked around for this, and can't find any solutions, so I figured I'd just ask the experts. I have a variety of boxes that are running SSH on non-standard ports. Is there a way to have rancid respect alternate ports on a case by case basis? I tried the ~.ssh/config trick, but clogin does not appear to be respecting it for some reason. Rob Wynne Senior Systems Administrator ISP Alliance, Inc. From rtw at zcorum.com Mon Jan 26 14:54:31 2009 From: rtw at zcorum.com (Rob Wynne) Date: Mon, 26 Jan 2009 09:54:31 -0500 Subject: [rancid] Re: SSH and Alternate Ports? In-Reply-To: <200901261445.02269.barry@opensolutions.ie> References: <1232980723.22826.12.camel@zen> <200901261445.02269.barry@opensolutions.ie> Message-ID: <1232981671.22826.17.camel@zen> On Mon, 2009-01-26 at 14:45 +0000, Barry O'Donovan wrote: > On Monday 26 January 2009 14:38:43 Rob Wynne wrote: > > I have a variety of boxes that are running SSH on non-standard ports. > > Is there a way to have rancid respect alternate ports on a case by case > > basis? > > > > I tried the ~.ssh/config trick, but clogin does not appear to be > > respecting it for some reason. > > If you don't tell us what the 'trick' was, we won't know if we're telling you > the same thing ;) > > The following works for me: > > > add method host1.domain.ie {ssh:-2222} > > > - Barry > Huh. Apparently the braces were the important missing bit! Thanks! The .ssh/config trick was just trying to use OpenSSH's internal config ruleset to define the port: Host somebox.domain.net Hostname somebox.domain.net Port 5555 Which works from the command line, but not when invoked by clogin. Anyway, sorted. Thanks for the assist. Rob From barry at opensolutions.ie Mon Jan 26 14:45:01 2009 From: barry at opensolutions.ie (Barry O'Donovan) Date: Mon, 26 Jan 2009 14:45:01 +0000 Subject: [rancid] Re: SSH and Alternate Ports? In-Reply-To: <1232980723.22826.12.camel@zen> References: <1232980723.22826.12.camel@zen> Message-ID: <200901261445.02269.barry@opensolutions.ie> On Monday 26 January 2009 14:38:43 Rob Wynne wrote: > I have a variety of boxes that are running SSH on non-standard ports. > Is there a way to have rancid respect alternate ports on a case by case > basis? > > I tried the ~.ssh/config trick, but clogin does not appear to be > respecting it for some reason. If you don't tell us what the 'trick' was, we won't know if we're telling you the same thing ;) The following works for me: add method host1.domain.ie {ssh:-2222} - Barry -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part. Url : http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090126/edf9efae/attachment.bin From heas at shrubbery.net Tue Jan 27 05:41:14 2009 From: heas at shrubbery.net (john heasley) Date: Tue, 27 Jan 2009 05:41:14 +0000 Subject: [rancid] Re: Extreme Switches with Unsaved Configs In-Reply-To: References: Message-ID: <20090127054114.GJ28039@shrubbery.net> Fri, Jan 23, 2009 at 09:27:53AM -0500, Hahues, Sven: > Hi everyone, > > I'm running rancid-2.3.2a9 and I'm having a problem with our Extreme switches. Whenever the config is not saved on an Extreme switch and I run rancid-run I only get a bunch of errors in the log and no config is retrieved and diffed. (It appears as if the * that gets put in front of the cli prompt causes this, since that seems to be the only difference between a saved and an unsaved config.) what is the complete prompt? > I searched through this archive and found a patch for 2.3.2a6 by Tore Anderson (thank you for this) (link: http://www.shrubbery.net/pipermail/rancid-discuss/2007-May/002218.html) but even reverting back to the older version and patching it, I still encountered the same problem. > > I am just wondering if anyone has a solution for this, for either 2a9 or 2a6. Any help would be greatly appreciated. > > The output is as follows: > ------------------------------------------------------------------------------------- > Trying to get all of the configs. > couldn't compile regular expression pattern: quantifier operand invalid > while executing > "expect -nobrace -re {* 300e48-x.([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[ > ^M]+} { exp_continue }" > invoked from within > "expect { > -re $reprompt {} > -re "\[\n\r]+" { exp_continue } > }" > (procedure "run_commands" line 23) > invoked from within > "run_commands $prompt $command" > ("foreach" body line 152) > invoked from within > "foreach router [lrange $argv $i end] { > set router [string tolower $router] > # attempt at platform switching. > set platform "" > send_user ..." > (file "/home/rancid/bin/clogin" line 715)^M > 172.x.x.x: missed cmd(s): show configuration detail,show slot,show configuration,show version,show diag,show memory,show switch > 172.x.x.x: End of run not found > > ----------------------------------------------------------------------------------------- > > This repeats a few times. > > Thanks in advance, I really appreciate your assistance. > > > Sven Hahues > FGCU Computing Services > E-Mail: shahues at fgcu.edu > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From mstefani at redhat.com Tue Jan 27 10:18:14 2009 From: mstefani at redhat.com (Michael Stefaniuc) Date: Tue, 27 Jan 2009 11:18:14 +0100 Subject: [rancid] Pinning Moving Config Lines Message-ID: <497EDF66.8070100@redhat.com> Hello guys, is there an easy way to assign a fixed position to config lines that move around during two invocations of "write term"? In the Cisco SAN-OS devices the "callhome" config line moves between the front and end of the "fcalias name" sections producing bogus change reports. The solutions I see on a quick glance (none satisfactory): - The absolute easiest way would be to just drop the line but for this config line it doesn't seem like a wise idea. - In the WriteTerm function create a separate ProcessHistory "fcalias name" section with sorting and add "callhome" to that section too. Drawback is that I would have to parse the "fcalias name" sections correctly too. Does anybody know a nicer way to pin the moving config line down? thanks bye michael -- Michael Stefaniuc Tel.: +49-711-96437-199 Consulting Communications Engineer Fax.: +49-711-96437-111 -------------------------------------------------------------------- Reg. Adresse: Red Hat GmbH, Otto-Hahn-Strasse 20, 85609 Dornach bei Muenchen Handelsregister: Amtsgericht Muenchen HRB 153243 Gesch?ftsf?hrer: Brendan Lane, Charlie Peters, Michael Cunningham, Werner Knoblich From shahues at fgcu.edu Tue Jan 27 13:19:16 2009 From: shahues at fgcu.edu (Hahues, Sven) Date: Tue, 27 Jan 2009 08:19:16 -0500 Subject: [rancid] Re: Extreme Switches with Unsaved Configs In-Reply-To: <20090127054114.GJ28039@shrubbery.net> References: <20090127054114.GJ28039@shrubbery.net> Message-ID: Mr. Heasley, Thanks for your reply. The complete prompt upon logging in is this: Extremeware Copyright (C) 1996-2006 Extreme Networks. All rights reserved. Protected by U.S Patent Nos 6,678,248; 6,104,700; 6,766,482; 6,618,388; 6,034,957; 6,859,438; 6,912,592; 6,914,905; 5,694,436 ============================================================================================================================= Press the key at any time for completions. Remember to save your configuration changes. * 300e48-0.45-HH-IDF:1 # The * signifies that the config has changed, and if I save the config Rancid is able to go through and grab the config and diff it without any problems. Thanks in advance for your assistance. Regards, Sven -----Original Message----- From: john heasley [mailto:heas at shrubbery.net] Sent: Tuesday, January 27, 2009 12:41 AM To: Hahues, Sven Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] Extreme Switches with Unsaved Configs Fri, Jan 23, 2009 at 09:27:53AM -0500, Hahues, Sven: > Hi everyone, > > I'm running rancid-2.3.2a9 and I'm having a problem with our Extreme switches. Whenever the config is not saved on an Extreme switch and I run rancid-run I only get a bunch of errors in the log and no config is retrieved and diffed. (It appears as if the * that gets put in front of the cli prompt causes this, since that seems to be the only difference between a saved and an unsaved config.) what is the complete prompt? > I searched through this archive and found a patch for 2.3.2a6 by Tore Anderson (thank you for this) (link: http://www.shrubbery.net/pipermail/rancid-discuss/2007-May/002218.html) but even reverting back to the older version and patching it, I still encountered the same problem. > > I am just wondering if anyone has a solution for this, for either 2a9 or 2a6. Any help would be greatly appreciated. > > The output is as follows: > ------------------------------------------------------------------------------------- > Trying to get all of the configs. > couldn't compile regular expression pattern: quantifier operand invalid > while executing > "expect -nobrace -re {* 300e48-x.([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[ > ^M]+} { exp_continue }" > invoked from within > "expect { > -re $reprompt {} > -re "\[\n\r]+" { exp_continue } > }" > (procedure "run_commands" line 23) > invoked from within > "run_commands $prompt $command" > ("foreach" body line 152) > invoked from within > "foreach router [lrange $argv $i end] { > set router [string tolower $router] > # attempt at platform switching. > set platform "" > send_user ..." > (file "/home/rancid/bin/clogin" line 715)^M > 172.x.x.x: missed cmd(s): show configuration detail,show slot,show configuration,show version,show diag,show memory,show switch > 172.x.x.x: End of run not found > > ----------------------------------------------------------------------------------------- > > This repeats a few times. > > Thanks in advance, I really appreciate your assistance. > > > Sven Hahues > FGCU Computing Services > E-Mail: shahues at fgcu.edu > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From eravin at panix.com Tue Jan 27 14:40:52 2009 From: eravin at panix.com (Ed Ravin) Date: Tue, 27 Jan 2009 09:40:52 -0500 Subject: [rancid] RANCID and Vyatta? Message-ID: <20090127144052.GA17300@panix.com> Is anyone using RANCID with Vyatta routers? From heas at shrubbery.net Tue Jan 27 17:50:48 2009 From: heas at shrubbery.net (john heasley) Date: Tue, 27 Jan 2009 09:50:48 -0800 Subject: [rancid] Re: Pinning Moving Config Lines In-Reply-To: <497EDF66.8070100@redhat.com> References: <497EDF66.8070100@redhat.com> Message-ID: <20090127175048.GA3030@shrubbery.net> Tue, Jan 27, 2009 at 11:18:14AM +0100, Michael Stefaniuc: > Hello guys, > > is there an easy way to assign a fixed position to config lines that > move around during two invocations of "write term"? > > In the Cisco SAN-OS devices the "callhome" config line moves between the > front and end of the "fcalias name" sections producing bogus change reports. how so? please show an example of the moving. > The solutions I see on a quick glance (none satisfactory): > - The absolute easiest way would be to just drop the line but for this > config line it doesn't seem like a wise idea. > - In the WriteTerm function create a separate ProcessHistory > "fcalias name" section with sorting and add "callhome" to that section > too. Drawback is that I would have to parse the "fcalias name" > sections correctly too. > > Does anybody know a nicer way to pin the moving config line down? We'd normally just sort it. From jledford at biltmore.com Tue Jan 27 18:58:27 2009 From: jledford at biltmore.com (Jason Ledford) Date: Tue, 27 Jan 2009 13:58:27 -0500 Subject: [rancid] Cisco Commands Message-ID: <435CB3214F92FD4E8E5CEEB86A20440240D102E53A@MAILBOX.tbcnet.biltmore.com> I am a new user and really like rancid so far. Many thanks. Anyway, I have looked and can't seem to find this. How does rancid get the cisco config? I know logging into a cisco switch I can run '#sh run' and I will get the config. In an example I looked at for setting it up, the test it had me run was to use the 'write term' command. I am not the cisco person here (not even close) but I have been told write term is an IOS command and while it works, it will not work in future updates. I am using debian etch and rancid 2.3.1-4. Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090127/8efc1f32/attachment.html From heas at shrubbery.net Tue Jan 27 21:39:10 2009 From: heas at shrubbery.net (john heasley) Date: Tue, 27 Jan 2009 13:39:10 -0800 Subject: [rancid] Re: Extreme Switches with Unsaved Configs In-Reply-To: References: <20090127054114.GJ28039@shrubbery.net> Message-ID: <20090127213910.GC950@shrubbery.net> Tue, Jan 27, 2009 at 08:19:16AM -0500, Hahues, Sven: > Mr. Heasley, > > Thanks for your reply. The complete prompt upon logging in is this: > > > Extremeware > Copyright (C) 1996-2006 Extreme Networks. All rights reserved. > Protected by U.S Patent Nos 6,678,248; 6,104,700; 6,766,482; 6,618,388; 6,034,957; 6,859,438; 6,912,592; 6,914,905; 5,694,436 > ============================================================================================================================= > > Press the key at any time for completions. > Remember to save your configuration changes. > * 300e48-0.45-HH-IDF:1 # Does it clogin login (interactive) successfully? Please send the output of clogin -d hostname. > The * signifies that the config has changed, and if I save the config Rancid is able to go through and grab the config and diff it without any problems. > > Thanks in advance for your assistance. > > Regards, > > Sven > > -----Original Message----- > From: john heasley [mailto:heas at shrubbery.net] > Sent: Tuesday, January 27, 2009 12:41 AM > To: Hahues, Sven > Cc: rancid-discuss at shrubbery.net > Subject: Re: [rancid] Extreme Switches with Unsaved Configs > > Fri, Jan 23, 2009 at 09:27:53AM -0500, Hahues, Sven: > > Hi everyone, > > > > I'm running rancid-2.3.2a9 and I'm having a problem with our Extreme switches. Whenever the config is not saved on an Extreme switch and I run rancid-run I only get a bunch of errors in the log and no config is retrieved and diffed. (It appears as if the * that gets put in front of the cli prompt causes this, since that seems to be the only difference between a saved and an unsaved config.) > > what is the complete prompt? > > > I searched through this archive and found a patch for 2.3.2a6 by Tore Anderson (thank you for this) (link: http://www.shrubbery.net/pipermail/rancid-discuss/2007-May/002218.html) but even reverting back to the older version and patching it, I still encountered the same problem. > > > > I am just wondering if anyone has a solution for this, for either 2a9 or 2a6. Any help would be greatly appreciated. > > > > The output is as follows: > > ------------------------------------------------------------------------------------- > > Trying to get all of the configs. > > couldn't compile regular expression pattern: quantifier operand invalid > > while executing > > "expect -nobrace -re {* 300e48-x.([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[ > > ^M]+} { exp_continue }" > > invoked from within > > "expect { > > -re $reprompt {} > > -re "\[\n\r]+" { exp_continue } > > }" > > (procedure "run_commands" line 23) > > invoked from within > > "run_commands $prompt $command" > > ("foreach" body line 152) > > invoked from within > > "foreach router [lrange $argv $i end] { > > set router [string tolower $router] > > # attempt at platform switching. > > set platform "" > > send_user ..." > > (file "/home/rancid/bin/clogin" line 715)^M > > 172.x.x.x: missed cmd(s): show configuration detail,show slot,show configuration,show version,show diag,show memory,show switch > > 172.x.x.x: End of run not found > > > > ----------------------------------------------------------------------------------------- > > > > This repeats a few times. > > > > Thanks in advance, I really appreciate your assistance. > > > > > > Sven Hahues > > FGCU Computing Services > > E-Mail: shahues at fgcu.edu > > _______________________________________________ > > Rancid-discuss mailing list > > Rancid-discuss at shrubbery.net > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From mstefani at redhat.com Wed Jan 28 11:14:06 2009 From: mstefani at redhat.com (Michael Stefaniuc) Date: Wed, 28 Jan 2009 12:14:06 +0100 Subject: [rancid] Re: Pinning Moving Config Lines In-Reply-To: <20090127175048.GA3030@shrubbery.net> References: <497EDF66.8070100@redhat.com> <20090127175048.GA3030@shrubbery.net> Message-ID: <49803DFE.2030701@redhat.com> john heasley wrote: > Tue, Jan 27, 2009 at 11:18:14AM +0100, Michael Stefaniuc: >> is there an easy way to assign a fixed position to config lines that >> move around during two invocations of "write term"? >> >> In the Cisco SAN-OS devices the "callhome" config line moves between the >> front and end of the "fcalias name" sections producing bogus change reports. > > how so? please show an example of the moving. Sure: @@ -104,8 +104,9 @@ snmp-server user ... no snmp-server enable traps vrrp snmp-server enable traps license + callhome fcalias name santest1_util vsan 10 member pwwn 11:22:33:44:55:66:77:88 fcalias name n0a-f0a vsan 10 @@ -345,9 +346,8 @@ fcalias name n1b-f0c vsan 30 member pwwn 22:33:44:55:66:77:88:99 - callhome zone name santest1_util_10 vsan 10 member fcalias santest1_util member fcalias n0a-f0a member fcalias n0b-f0a The next rancid run the above diff would be reversed. >> The solutions I see on a quick glance (none satisfactory): >> - The absolute easiest way would be to just drop the line but for this >> config line it doesn't seem like a wise idea. >> - In the WriteTerm function create a separate ProcessHistory >> "fcalias name" section with sorting and add "callhome" to that section >> too. Drawback is that I would have to parse the "fcalias name" >> sections correctly too. >> >> Does anybody know a nicer way to pin the moving config line down? > > We'd normally just sort it. Yeah, will be a pita in this case. bye michael -- Michael Stefaniuc Tel.: +49-711-96437-199 Consulting Communications Engineer Fax.: +49-711-96437-111 -------------------------------------------------------------------- Reg. Adresse: Red Hat GmbH, Otto-Hahn-Strasse 20, 85609 Dornach bei Muenchen Handelsregister: Amtsgericht Muenchen HRB 153243 Gesch?ftsf?hrer: Brendan Lane, Charlie Peters, Michael Cunningham, Werner Knoblich From shahues at fgcu.edu Wed Jan 28 14:41:36 2009 From: shahues at fgcu.edu (Hahues, Sven) Date: Wed, 28 Jan 2009 09:41:36 -0500 Subject: [rancid] Re: Extreme Switches with Unsaved Configs In-Reply-To: <20090127213910.GC950@shrubbery.net> References: <20090127054114.GJ28039@shrubbery.net> <20090127213910.GC950@shrubbery.net> Message-ID: Mr. Heasley, Attached, please find the output of clogin -d I noticed that the script seems to stall out on the last line and never times our or finishes. If I hit enter a few times I see these lines scroll by afterwards: spawn id exp0 sent <\r> spawn id exp4 sent <\r\n* 300e48-0.45-HH-IDF:2 # > * 300e48-0.45-HH-IDF:2 # spawn id exp0 sent <\r> spawn id exp4 sent <\r\n* 300e48-0.45-HH-IDF:2 # > Thanks for your help, I really appreciate it. Sven -----Original Message----- From: john heasley [mailto:heas at shrubbery.net] Sent: Tuesday, January 27, 2009 4:39 PM To: Hahues, Sven Cc: john heasley; rancid-discuss at shrubbery.net Subject: Re: [rancid] Extreme Switches with Unsaved Configs Tue, Jan 27, 2009 at 08:19:16AM -0500, Hahues, Sven: > Mr. Heasley, > > Thanks for your reply. The complete prompt upon logging in is this: > > > Extremeware > Copyright (C) 1996-2006 Extreme Networks. All rights reserved. > Protected by U.S Patent Nos 6,678,248; 6,104,700; 6,766,482; 6,618,388; 6,034,957; 6,859,438; 6,912,592; 6,914,905; 5,694,436 > ============================================================================================================================= > > Press the key at any time for completions. > Remember to save your configuration changes. > * 300e48-0.45-HH-IDF:1 # Does it clogin login (interactive) successfully? Please send the output of clogin -d hostname. > The * signifies that the config has changed, and if I save the config Rancid is able to go through and grab the config and diff it without any problems. > > Thanks in advance for your assistance. > > Regards, > > Sven > > -----Original Message----- > From: john heasley [mailto:heas at shrubbery.net] > Sent: Tuesday, January 27, 2009 12:41 AM > To: Hahues, Sven > Cc: rancid-discuss at shrubbery.net > Subject: Re: [rancid] Extreme Switches with Unsaved Configs > > Fri, Jan 23, 2009 at 09:27:53AM -0500, Hahues, Sven: > > Hi everyone, > > > > I'm running rancid-2.3.2a9 and I'm having a problem with our Extreme switches. Whenever the config is not saved on an Extreme switch and I run rancid-run I only get a bunch of errors in the log and no config is retrieved and diffed. (It appears as if the * that gets put in front of the cli prompt causes this, since that seems to be the only difference between a saved and an unsaved config.) > > what is the complete prompt? > > > I searched through this archive and found a patch for 2.3.2a6 by Tore Anderson (thank you for this) (link: http://www.shrubbery.net/pipermail/rancid-discuss/2007-May/002218.html) but even reverting back to the older version and patching it, I still encountered the same problem. > > > > I am just wondering if anyone has a solution for this, for either 2a9 or 2a6. Any help would be greatly appreciated. > > > > The output is as follows: > > ------------------------------------------------------------------------------------- > > Trying to get all of the configs. > > couldn't compile regular expression pattern: quantifier operand invalid > > while executing > > "expect -nobrace -re {* 300e48-x.([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[ > > ^M]+} { exp_continue }" > > invoked from within > > "expect { > > -re $reprompt {} > > -re "\[\n\r]+" { exp_continue } > > }" > > (procedure "run_commands" line 23) > > invoked from within > > "run_commands $prompt $command" > > ("foreach" body line 152) > > invoked from within > > "foreach router [lrange $argv $i end] { > > set router [string tolower $router] > > # attempt at platform switching. > > set platform "" > > send_user ..." > > (file "/home/rancid/bin/clogin" line 715)^M > > 172.x.x.x: missed cmd(s): show configuration detail,show slot,show configuration,show version,show diag,show memory,show switch > > 172.x.x.x: End of run not found > > > > ----------------------------------------------------------------------------------------- > > > > This repeats a few times. > > > > Thanks in advance, I really appreciate your assistance. > > > > > > Sven Hahues > > FGCU Computing Services > > E-Mail: shahues at fgcu.edu > > _______________________________________________ > > Rancid-discuss mailing list > > Rancid-discuss at shrubbery.net > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: clogin-output.txt Url: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090128/784a2c57/attachment.txt From scott.wolfe at cybera.net Wed Jan 28 15:52:34 2009 From: scott.wolfe at cybera.net (Scott Wolfe) Date: Wed, 28 Jan 2009 09:52:34 -0600 Subject: [rancid] Re: RANCID and Vyatta? In-Reply-To: <20090127144052.GA17300@panix.com> References: <20090127144052.GA17300@panix.com> Message-ID: <48FAC036AD7B7642BB2944FB9AE674A304299A44@EXCHANGE.nashville.cybera.net> Since Vyatta is really a Debian box, we just do an rsync of /opt/vyatta and /etc. But I guess you could also do a write a script to do a show configuration and a handful of other things if you wanted to. Scott Wolfe Cybera, Inc 615-301-2346 -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Ed Ravin Sent: Tuesday, January 27, 2009 8:41 AM To: rancid-discuss at shrubbery.net Subject: [rancid] RANCID and Vyatta? Is anyone using RANCID with Vyatta routers? _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From kenneth.w.sain at accenture.com Wed Jan 28 18:19:58 2009 From: kenneth.w.sain at accenture.com (kenneth.w.sain at accenture.com) Date: Wed, 28 Jan 2009 12:19:58 -0600 Subject: [rancid] rancid 2.3.2a9 on Soalris9 Message-ID: <4CA41E6E02F664448C893BB678E2C763568EA9@AMRXM2122.dir.svc.accenture.com> I'm getting an error when running rancid-run, I've pasted it below. It appears that the config is copied from the device into the repository, but no diffs are generated or emailed. Any help would be appreciated, I'm pretty sure it's a Solaris9 issue. starting: Wed Jan 28 13:00:00 EST 2009 Trying to get all of the configs. All routers sucessfully completed. awk: syntax error near line 1 awk: illegal statement near line 1 awk: illegal statement near line 1 /local1/USERS/rancid/bin/control_rancid: test: argument expected ending: Wed Jan 28 13:00:26 EST 2009 This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090128/eb128c4d/attachment.html From heas at shrubbery.net Wed Jan 28 19:43:26 2009 From: heas at shrubbery.net (john heasley) Date: Wed, 28 Jan 2009 11:43:26 -0800 Subject: [rancid] Re: Pinning Moving Config Lines In-Reply-To: <49803DFE.2030701@redhat.com> References: <497EDF66.8070100@redhat.com> <20090127175048.GA3030@shrubbery.net> <49803DFE.2030701@redhat.com> Message-ID: <20090128194326.GG23935@shrubbery.net> Wed, Jan 28, 2009 at 12:14:06PM +0100, Michael Stefaniuc: > john heasley wrote: > > Tue, Jan 27, 2009 at 11:18:14AM +0100, Michael Stefaniuc: > >> is there an easy way to assign a fixed position to config lines that > >> move around during two invocations of "write term"? > >> > >> In the Cisco SAN-OS devices the "callhome" config line moves between the > >> front and end of the "fcalias name" sections producing bogus change reports. > > > > how so? please show an example of the moving. > Sure: > @@ -104,8 +104,9 @@ > > snmp-server user ... > no snmp-server enable traps vrrp > snmp-server enable traps license > + callhome > fcalias name santest1_util vsan 10 > member pwwn 11:22:33:44:55:66:77:88 > > fcalias name n0a-f0a vsan 10 > @@ -345,9 +346,8 @@ > > fcalias name n1b-f0c vsan 30 > member pwwn 22:33:44:55:66:77:88:99 > > - callhome > zone name santest1_util_10 vsan 10 > member fcalias santest1_util > member fcalias n0a-f0a > member fcalias n0b-f0a > > The next rancid run the above diff would be reversed. > > >> The solutions I see on a quick glance (none satisfactory): > >> - The absolute easiest way would be to just drop the line but for this > >> config line it doesn't seem like a wise idea. > >> - In the WriteTerm function create a separate ProcessHistory > >> "fcalias name" section with sorting and add "callhome" to that section > >> too. Drawback is that I would have to parse the "fcalias name" > >> sections correctly too. > >> > >> Does anybody know a nicer way to pin the moving config line down? > > > > We'd normally just sort it. > Yeah, will be a pita in this case. i really dislike ciscos for stuff like this. try adding a match for it like /^callhome/ && ProcessHistory("COMMENTS","keysort","Z0","$_") && next; From heas at shrubbery.net Wed Jan 28 19:45:33 2009 From: heas at shrubbery.net (john heasley) Date: Wed, 28 Jan 2009 11:45:33 -0800 Subject: [rancid] Re: rancid 2.3.2a9 on Soalris9 In-Reply-To: <4CA41E6E02F664448C893BB678E2C763568EA9@AMRXM2122.dir.svc.accenture.com> References: <4CA41E6E02F664448C893BB678E2C763568EA9@AMRXM2122.dir.svc.accenture.com> Message-ID: <20090128194532.GH23935@shrubbery.net> Wed, Jan 28, 2009 at 12:19:58PM -0600, kenneth.w.sain at accenture.com: > I'm getting an error when running rancid-run, I've pasted it below. It > appears that the config is copied from the device into the repository, > but no diffs are generated or emailed. Any help would be appreciated, > I'm pretty sure it's a Solaris9 issue. > > > > starting: Wed Jan 28 13:00:00 EST 2009 > > > > Trying to get all of the configs. > > All routers sucessfully completed. > > > > awk: syntax error near line 1 > > awk: illegal statement near line 1 > > awk: illegal statement near line 1 > > /local1/USERS/rancid/bin/control_rancid: test: argument expected > I haven't had this problem, which is probably due to something in my environment. could you send the o/p to me of sh -x control_rancid > output From peter.serwe at gmail.com Wed Jan 28 19:55:04 2009 From: peter.serwe at gmail.com (Peter Serwe) Date: Wed, 28 Jan 2009 11:55:04 -0800 Subject: [rancid] Re: rancid 2.3.2a9 on Soalris9 In-Reply-To: References: <4CA41E6E02F664448C893BB678E2C763568EA9@AMRXM2122.dir.svc.accenture.com> <20090128194532.GH23935@shrubbery.net> Message-ID: I'm guessing Solaris' awk doesn't like something and installing gawk might help. Disclaimer: The above statement is just a WAG. Peter > On Wed, Jan 28, 2009 at 11:45 AM, john heasley wrote: >> Wed, Jan 28, 2009 at 12:19:58PM -0600, kenneth.w.sain at accenture.com: >>> I'm getting an error when running rancid-run, I've pasted it below. It >>> appears that the config is copied from the device into the repository, >>> but no diffs are generated or emailed. Any help would be appreciated, >>> I'm pretty sure it's a Solaris9 issue. >>> >>> >>> >>> starting: Wed Jan 28 13:00:00 EST 2009 >>> >>> >>> >>> Trying to get all of the configs. >>> >>> All routers sucessfully completed. >>> >>> >>> >>> awk: syntax error near line 1 >>> >>> awk: illegal statement near line 1 >>> >>> awk: illegal statement near line 1 >>> >>> /local1/USERS/rancid/bin/control_rancid: test: argument expected >>> >> >> I haven't had this problem, which is probably due to something in >> my environment. could you send the o/p to me of >> sh -x control_rancid > output >> _______________________________________________ >> Rancid-discuss mailing list >> Rancid-discuss at shrubbery.net >> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss >> > > > > -- > ???? > -- ???? From rdeberry at gmail.com Wed Jan 28 23:15:15 2009 From: rdeberry at gmail.com (Ryan DeBerry) Date: Wed, 28 Jan 2009 18:15:15 -0500 Subject: [rancid] CVS changes with ASA Message-ID: <4920e0b40901281515m6735f621p978e071d2f2e23da@mail.gmail.com> I am able to backup ASA config but the config changes on every rancid-run. The only change is the timestamp when the config was written on the rancid-run. Is there a way to prevent this behavior? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090128/2a4e6759/attachment.html From rdeberry at gmail.com Wed Jan 28 23:12:53 2009 From: rdeberry at gmail.com (Ryan DeBerry) Date: Wed, 28 Jan 2009 18:12:53 -0500 Subject: [rancid] Issues with cat5 Message-ID: <4920e0b40901281512p3fc77b75xf2d3ea109bb0c231@mail.gmail.com> I have seen many posts in the archives with the same issue but I have not seen a resolution. clogin works just fine but rancid-run spits out error timeout reached -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090128/fa906c06/attachment.html From s.juergensen at kielnet.de Thu Jan 29 09:16:49 2009 From: s.juergensen at kielnet.de (Sven Juergensen (KielNET)) Date: Thu, 29 Jan 2009 10:16:49 +0100 Subject: [rancid] Rancid keeps diffing... Message-ID: <49817401.8080405@kielnet.de> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi list, for what reason is Rancid doing the same diffs over and over even when the hosts in question have been dis- abled in the router.db? - - 1.2.0.1:juniper:up - - 1.2.0.3:juniper:up + 1.2.0.1:juniper:down + 1.2.0.3:juniper:down Still, I'm getting identical diffs every hour. Any clue? Thanks in advance and best regards, Mit freundlichen Gruessen, i. A. Sven Juergensen - -- Fachbereich Netze/Projekte KielNET GmbH Gesellschaft fuer Kommunikation Preusserstr. 1-9, 24105 Kiel Telefon : 0431 2219-053 Mobil : 0170 403 5600 Telefax : 0431 2219-005 E-Mail : s.juergensen at kielnet.de Internet: http://www.kielnet.de Geschaeftsfuehrer Eberhard Schmidt HRB 4499 (Amtsgericht Kiel) PGP at http://pgp.kielnet.de/sjuergensen/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkmBdAEACgkQnEU7erAt4TKlQQCeIbFyhUyRnflOn6NyaHH0daIT 5x4AoLaDWcU2V/oBhRIImcxLFF68VNNO =2x8h -----END PGP SIGNATURE----- From mstefani at redhat.com Thu Jan 29 13:05:22 2009 From: mstefani at redhat.com (Michael Stefaniuc) Date: Thu, 29 Jan 2009 14:05:22 +0100 Subject: [rancid] Re: Issues with cat5 In-Reply-To: <4920e0b40901281512p3fc77b75xf2d3ea109bb0c231@mail.gmail.com> References: <4920e0b40901281512p3fc77b75xf2d3ea109bb0c231@mail.gmail.com> Message-ID: <4981A992.1050407@redhat.com> Ryan DeBerry wrote: > I have seen many posts in the archives with the same issue but I have not > seen a resolution. Which rancid version are you using? I have submitted patches to fix the problem and those were accepted (in a modified) form upstream. I use rancid-2.3.2a8 and the only CatOS specific patch I have is to kill the bogus "set portcost" config lines. > clogin works just fine but rancid-run spits out error timeout reached Btw. what device type are you using for the CatOS devices: "cisco" or "cat5"? "cat5" is the correct type. bye michael -- Michael Stefaniuc Tel.: +49-711-96437-199 Consulting Communications Engineer Fax.: +49-711-96437-111 -------------------------------------------------------------------- Reg. Adresse: Red Hat GmbH, Otto-Hahn-Strasse 20, 85609 Dornach bei Muenchen Handelsregister: Amtsgericht Muenchen HRB 153243 Gesch?ftsf?hrer: Brendan Lane, Charlie Peters, Michael Cunningham, Werner Knoblich From rdeberry at gmail.com Thu Jan 29 14:12:09 2009 From: rdeberry at gmail.com (Ryan DeBerry) Date: Thu, 29 Jan 2009 14:12:09 +0000 Subject: [rancid] Re: Issues with cat5 In-Reply-To: <4981A992.1050407@redhat.com> References: <4920e0b40901281512p3fc77b75xf2d3ea109bb0c231@mail.gmail.com> <4981A992.1050407@redhat.com> Message-ID: <4920e0b40901290612v6f87f92awd2a3197a544933a9@mail.gmail.com> Yes, I am using cat5 as the device type. I can run clogin and it works fine. rancid-run produces the following log. missed cmd(s): write term all,show port ifindex,show module,dir sup-microcode:,dir sup-bootflash:,dir bootflash:,dir slot0:,show version,show flash,show running-config,write term,show boot,dir slot1:,show inventory raw : End of run not found Below is a link to old thread. http://osdir.com/ml/network.rancid/2008-06/msg00018.html On Thu, Jan 29, 2009 at 1:05 PM, Michael Stefaniuc wrote: > Ryan DeBerry wrote: > > I have seen many posts in the archives with the same issue but I have not > > seen a resolution. > Which rancid version are you using? I have submitted patches to fix the > problem and those were accepted (in a modified) form upstream. I use > rancid-2.3.2a8 and the only CatOS specific patch I have is to kill the > bogus "set portcost" config lines. > > > clogin works just fine but rancid-run spits out error timeout reached > Btw. what device type are you using for the CatOS devices: "cisco" or > "cat5"? "cat5" is the correct type. > > bye > michael > -- > Michael Stefaniuc Tel.: +49-711-96437-199 > Consulting Communications Engineer Fax.: +49-711-96437-111 > -------------------------------------------------------------------- > Reg. Adresse: Red Hat GmbH, Otto-Hahn-Strasse 20, 85609 Dornach bei > Muenchen > Handelsregister: Amtsgericht Muenchen HRB 153243 > Gesch?ftsf?hrer: Brendan Lane, Charlie Peters, Michael Cunningham, > Werner Knoblich > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090129/dcd81029/attachment.html From rancid at ale.cx Thu Jan 29 19:27:49 2009 From: rancid at ale.cx (alex) Date: Thu, 29 Jan 2009 19:27:49 +0000 Subject: [rancid] Re: CVS changes with ASA In-Reply-To: <4920e0b40901281515m6735f621p978e071d2f2e23da@mail.gmail.com> References: <4920e0b40901281515m6735f621p978e071d2f2e23da@mail.gmail.com> Message-ID: <200901291927.49233.rancid@ale.cx> On Wednesday 28 January 2009 23:15:15 Ryan DeBerry wrote: > I am able to backup ASA config but the config changes on every rancid-run. > The only change is the timestamp when the config was written on the > rancid-run. Is there a way to prevent this behavior? Interesting. I am backing up several ASAs and don't see this. What release are you running? Most of mine are on 8.x. alexd From rdeberry at gmail.com Thu Jan 29 19:33:08 2009 From: rdeberry at gmail.com (Ryan DeBerry) Date: Thu, 29 Jan 2009 19:33:08 +0000 Subject: [rancid] Re: CVS changes with ASA In-Reply-To: <200901291927.49233.rancid@ale.cx> References: <4920e0b40901281515m6735f621p978e071d2f2e23da@mail.gmail.com> <200901291927.49233.rancid@ale.cx> Message-ID: <4920e0b40901291133y41f66234w573f162fa0574b87@mail.gmail.com> 7.2(4) On Thu, Jan 29, 2009 at 7:27 PM, alex wrote: > On Wednesday 28 January 2009 23:15:15 Ryan DeBerry wrote: > > I am able to backup ASA config but the config changes on every > rancid-run. > > The only change is the timestamp when the config was written on the > > rancid-run. Is there a way to prevent this behavior? > > Interesting. I am backing up several ASAs and don't see this. What release > are > you running? Most of mine are on 8.x. > > alexd > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090129/b6967c62/attachment.html From peter.serwe at gmail.com Thu Jan 29 19:54:51 2009 From: peter.serwe at gmail.com (Peter Serwe) Date: Thu, 29 Jan 2009 11:54:51 -0800 Subject: [rancid] Re: CVS changes with ASA In-Reply-To: <200901291927.49233.rancid@ale.cx> References: <4920e0b40901281515m6735f621p978e071d2f2e23da@mail.gmail.com> <200901291927.49233.rancid@ale.cx> Message-ID: I'm running 7.2(4) and I don't see this behavior either. Peter On Thu, Jan 29, 2009 at 11:27 AM, alex wrote: > On Wednesday 28 January 2009 23:15:15 Ryan DeBerry wrote: >> I am able to backup ASA config but the config changes on every rancid-run. >> The only change is the timestamp when the config was written on the >> rancid-run. Is there a way to prevent this behavior? > > Interesting. I am backing up several ASAs and don't see this. What release are > you running? Most of mine are on 8.x. > > alexd > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > -- ???? From peter.serwe at gmail.com Thu Jan 29 19:56:28 2009 From: peter.serwe at gmail.com (Peter Serwe) Date: Thu, 29 Jan 2009 11:56:28 -0800 Subject: [rancid] Re: CVS changes with ASA In-Reply-To: References: <4920e0b40901281515m6735f621p978e071d2f2e23da@mail.gmail.com> <200901291927.49233.rancid@ale.cx> Message-ID: Correction. Occasionally I see this behavior. I have an email from Rancid as of 53 minutes ago with this change. I'm currently running 2.3.2a8 against 7.2(4). Peter On Thu, Jan 29, 2009 at 11:54 AM, Peter Serwe wrote: > I'm running 7.2(4) and I don't see this behavior either. > > Peter > > On Thu, Jan 29, 2009 at 11:27 AM, alex wrote: >> On Wednesday 28 January 2009 23:15:15 Ryan DeBerry wrote: >>> I am able to backup ASA config but the config changes on every rancid-run. >>> The only change is the timestamp when the config was written on the >>> rancid-run. Is there a way to prevent this behavior? >> >> Interesting. I am backing up several ASAs and don't see this. What release are >> you running? Most of mine are on 8.x. >> >> alexd >> _______________________________________________ >> Rancid-discuss mailing list >> Rancid-discuss at shrubbery.net >> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss >> > > > > -- > ???? > -- ???? From rdeberry at gmail.com Fri Jan 30 14:52:22 2009 From: rdeberry at gmail.com (Ryan DeBerry) Date: Fri, 30 Jan 2009 14:52:22 +0000 Subject: [rancid] Re: CVS changes with ASA In-Reply-To: References: <4920e0b40901281515m6735f621p978e071d2f2e23da@mail.gmail.com> <200901291927.49233.rancid@ale.cx> Message-ID: <4920e0b40901300652j24a27da2w2082c23ae69e1941@mail.gmail.com> Can this be avoided by setting something in the rancid.conf? I just added 2 more ASA's and they exhibit the same behavior. On Thu, Jan 29, 2009 at 7:56 PM, Peter Serwe wrote: > Correction. Occasionally I see this behavior. > > I have an email from Rancid as of 53 minutes ago with this change. > > I'm currently running 2.3.2a8 against 7.2(4). > > Peter > > On Thu, Jan 29, 2009 at 11:54 AM, Peter Serwe > wrote: > > I'm running 7.2(4) and I don't see this behavior either. > > > > Peter > > > > On Thu, Jan 29, 2009 at 11:27 AM, alex wrote: > >> On Wednesday 28 January 2009 23:15:15 Ryan DeBerry wrote: > >>> I am able to backup ASA config but the config changes on every > rancid-run. > >>> The only change is the timestamp when the config was written on the > >>> rancid-run. Is there a way to prevent this behavior? > >> > >> Interesting. I am backing up several ASAs and don't see this. What > release are > >> you running? Most of mine are on 8.x. > >> > >> alexd > >> _______________________________________________ > >> 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/20090130/0ba8d356/attachment.html From sreekanth.krishna at gmail.com Fri Jan 30 16:45:46 2009 From: sreekanth.krishna at gmail.com (Sreekanth K) Date: Fri, 30 Jan 2009 22:15:46 +0530 Subject: [rancid] Re: Issues with cat5 In-Reply-To: <4920e0b40901290612v6f87f92awd2a3197a544933a9@mail.gmail.com> References: <4920e0b40901281512p3fc77b75xf2d3ea109bb0c231@mail.gmail.com> <4981A992.1050407@redhat.com> <4920e0b40901290612v6f87f92awd2a3197a544933a9@mail.gmail.com> Message-ID: <32c3e1da0901300845g2d276a6bk37000fb1af936211@mail.gmail.com> Me too have the same problem... I am on 2.3.2a9... Can someone help!!! On Thu, Jan 29, 2009 at 7:42 PM, Ryan DeBerry wrote: > Yes, I am using cat5 as the device type. I can run clogin and it works > fine. rancid-run produces the following log. > > missed cmd(s): write term all,show port ifindex,show module,dir > sup-microcode:,dir sup-bootflash:,dir bootflash:,dir slot0:,show > version,show flash,show running-config,write term,show boot,dir slot1:,show > inventory raw > : End of run not found > > > Below is a link to old thread. > > http://osdir.com/ml/network.rancid/2008-06/msg00018.html > > > On Thu, Jan 29, 2009 at 1:05 PM, Michael Stefaniuc wrote: > >> Ryan DeBerry wrote: >> > I have seen many posts in the archives with the same issue but I have >> not >> > seen a resolution. >> Which rancid version are you using? I have submitted patches to fix the >> problem and those were accepted (in a modified) form upstream. I use >> rancid-2.3.2a8 and the only CatOS specific patch I have is to kill the >> bogus "set portcost" config lines. >> >> > clogin works just fine but rancid-run spits out error timeout reached >> Btw. what device type are you using for the CatOS devices: "cisco" or >> "cat5"? "cat5" is the correct type. >> >> bye >> michael >> -- >> Michael Stefaniuc Tel.: +49-711-96437-199 >> Consulting Communications Engineer Fax.: +49-711-96437-111 >> -------------------------------------------------------------------- >> Reg. Adresse: Red Hat GmbH, Otto-Hahn-Strasse 20, 85609 Dornach bei >> Muenchen >> Handelsregister: Amtsgericht Muenchen HRB 153243 >> Gesch?ftsf?hrer: Brendan Lane, Charlie Peters, Michael Cunningham, >> Werner Knoblich >> > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > -- Best Regards K Sreekanth 09941914363 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090130/0a8c8ebc/attachment.html From mstefani at redhat.com Fri Jan 30 17:06:59 2009 From: mstefani at redhat.com (Michael Stefaniuc) Date: Fri, 30 Jan 2009 18:06:59 +0100 Subject: [rancid] Re: Issues with cat5 In-Reply-To: <32c3e1da0901300845g2d276a6bk37000fb1af936211@mail.gmail.com> References: <4920e0b40901281512p3fc77b75xf2d3ea109bb0c231@mail.gmail.com> <4981A992.1050407@redhat.com> <4920e0b40901290612v6f87f92awd2a3197a544933a9@mail.gmail.com> <32c3e1da0901300845g2d276a6bk37000fb1af936211@mail.gmail.com> Message-ID: <498333B3.30202@redhat.com> Sreekanth K wrote: > Me too have the same problem... I am on 2.3.2a9... Can someone help!!! I'm still on a8 and it works there. It was fixed in a5 or a6 time frame when the two patches went in. I might upgrade to a9 but I'm pretty busy at the moment and don't have time for that. bye michael > On Thu, Jan 29, 2009 at 7:42 PM, Ryan DeBerry wrote: > >> Yes, I am using cat5 as the device type. I can run clogin and it works >> fine. rancid-run produces the following log. >> >> missed cmd(s): write term all,show port ifindex,show module,dir >> sup-microcode:,dir sup-bootflash:,dir bootflash:,dir slot0:,show >> version,show flash,show running-config,write term,show boot,dir slot1:,show >> inventory raw >> : End of run not found >> >> >> Below is a link to old thread. >> >> http://osdir.com/ml/network.rancid/2008-06/msg00018.html >> >> >> On Thu, Jan 29, 2009 at 1:05 PM, Michael Stefaniuc wrote: >> >>> Ryan DeBerry wrote: >>>> I have seen many posts in the archives with the same issue but I have >>> not >>>> seen a resolution. >>> Which rancid version are you using? I have submitted patches to fix the >>> problem and those were accepted (in a modified) form upstream. I use >>> rancid-2.3.2a8 and the only CatOS specific patch I have is to kill the >>> bogus "set portcost" config lines. >>> >>>> clogin works just fine but rancid-run spits out error timeout reached >>> Btw. what device type are you using for the CatOS devices: "cisco" or >>> "cat5"? "cat5" is the correct type. -- Michael Stefaniuc Tel.: +49-711-96437-199 Consulting Communications Engineer Fax.: +49-711-96437-111 -------------------------------------------------------------------- Reg. Adresse: Red Hat GmbH, Otto-Hahn-Strasse 20, 85609 Dornach bei Muenchen Handelsregister: Amtsgericht Muenchen HRB 153243 Gesch?ftsf?hrer: Brendan Lane, Charlie Peters, Michael Cunningham, Werner Knoblich From rdeberry at gmail.com Fri Jan 30 18:13:26 2009 From: rdeberry at gmail.com (Ryan DeBerry) Date: Fri, 30 Jan 2009 18:13:26 +0000 Subject: [rancid] Re: Issues with cat5 In-Reply-To: <498333B3.30202@redhat.com> References: <4920e0b40901281512p3fc77b75xf2d3ea109bb0c231@mail.gmail.com> <4981A992.1050407@redhat.com> <4920e0b40901290612v6f87f92awd2a3197a544933a9@mail.gmail.com> <32c3e1da0901300845g2d276a6bk37000fb1af936211@mail.gmail.com> <498333B3.30202@redhat.com> Message-ID: <4920e0b40901301013t2b21a28ak964cd425c0d7b32e@mail.gmail.com> Yep, it works on a8. I just downgraded and all is good. On Fri, Jan 30, 2009 at 5:06 PM, Michael Stefaniuc wrote: > Sreekanth K wrote: > > Me too have the same problem... I am on 2.3.2a9... Can someone help!!! > I'm still on a8 and it works there. It was fixed in a5 or a6 time frame > when the two patches went in. I might upgrade to a9 but I'm pretty busy > at the moment and don't have time for that. > > bye > michael > > > On Thu, Jan 29, 2009 at 7:42 PM, Ryan DeBerry > wrote: > > > >> Yes, I am using cat5 as the device type. I can run clogin and it works > >> fine. rancid-run produces the following log. > >> > >> missed cmd(s): write term all,show port ifindex,show module,dir > >> sup-microcode:,dir sup-bootflash:,dir bootflash:,dir slot0:,show > >> version,show flash,show running-config,write term,show boot,dir > slot1:,show > >> inventory raw > >> : End of run not found > >> > >> > >> Below is a link to old thread. > >> > >> http://osdir.com/ml/network.rancid/2008-06/msg00018.html > >> > >> > >> On Thu, Jan 29, 2009 at 1:05 PM, Michael Stefaniuc >wrote: > >> > >>> Ryan DeBerry wrote: > >>>> I have seen many posts in the archives with the same issue but I have > >>> not > >>>> seen a resolution. > >>> Which rancid version are you using? I have submitted patches to fix the > >>> problem and those were accepted (in a modified) form upstream. I use > >>> rancid-2.3.2a8 and the only CatOS specific patch I have is to kill the > >>> bogus "set portcost" config lines. > >>> > >>>> clogin works just fine but rancid-run spits out error timeout reached > >>> Btw. what device type are you using for the CatOS devices: "cisco" or > >>> "cat5"? "cat5" is the correct type. > > > > -- > Michael Stefaniuc Tel.: +49-711-96437-199 > Consulting Communications Engineer Fax.: +49-711-96437-111 > -------------------------------------------------------------------- > Reg. Adresse: Red Hat GmbH, Otto-Hahn-Strasse 20, 85609 Dornach bei > Muenchen > Handelsregister: Amtsgericht Muenchen HRB 153243 > Gesch?ftsf?hrer: Brendan Lane, Charlie Peters, Michael Cunningham, > Werner Knoblich > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090130/05941d38/attachment.html From arjanoosting at home.nl Fri Jan 30 07:41:06 2009 From: arjanoosting at home.nl (Arjan Oosting) Date: Fri, 30 Jan 2009 08:41:06 +0100 Subject: [rancid] Re: Rancid keeps diffing... In-Reply-To: <49817401.8080405@kielnet.de> References: <49817401.8080405@kielnet.de> Message-ID: <1233301266.10472.12.camel@reddwarf.helix-nebula.org> Op donderdag 29-01-2009 om 10:16 uur [tijdzone +0100], schreef Sven Juergensen (KielNET): > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi list, > > for what reason is Rancid doing the > same diffs over and over even when > the hosts in question have been dis- > abled in the router.db? > > - - 1.2.0.1:juniper:up > - - 1.2.0.3:juniper:up > + 1.2.0.1:juniper:down > + 1.2.0.3:juniper:down > > Still, I'm getting identical diffs > every hour. > > Any clue? Most likely it can not commit the changes to CVS/SVN, so it sees it as new changes everytime, see the FAQ: http://www.shrubbery.net/rancid/FAQ Greetings Arjan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: Dit berichtdeel is digitaal ondertekend Url : http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090130/0e4302d3/attachment.bin From jledford at biltmore.com Sat Jan 31 20:21:34 2009 From: jledford at biltmore.com (Jason Ledford) Date: Sat, 31 Jan 2009 15:21:34 -0500 Subject: [rancid] Enable Problem Message-ID: <435CB3214F92FD4E8E5CEEB86A20440240D102EA2A@MAILBOX.tbcnet.biltmore.com> I am currently trying to setup rancid to backup my cisco configs and running into a problem. I am not the cisco person here so I can't vouch for this setup. We are slooooowly migrating to acs and have some routers on acs and some not. I can grab the routers configs that are on acs with no problem, the others I can get the configs. I have been trying to narrow down and figure out what the problem is and when I test clogin and login to the problem routers I get logged in and get a double prompt. I am assuming from what I have read that means it enabled and I can now type what I need, but that's not the case. Commands do not work at this point, BUT, after logging in with clogin if I do #en and give the password I can then run #sh run. I 'think' I may know why but need to confirm this. On the problem routers the motd is surrounded by # symbols and I saw something in the mailing list that said that could confuse rancid since it expects a # to enable. The routers that just happen to be on the acs also do not have #'s in the motd. So am I on the right track in thinking my network admin borked this up trying to be fancy with the motd? Or could my problem lie elsewhere? Thanks for your help. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090131/d9e91fa5/attachment.html