From iannai29 at gmail.com Wed Jan 5 16:35:08 2011 From: iannai29 at gmail.com (Ian Narcisi) Date: Wed, 5 Jan 2011 10:35:08 -0600 Subject: [rancid] Pointing existing rancid from local svn repo to remote svn Message-ID: Hello, Is this simply altering the BASEDIR=/"local repo" to BASEDIR="/ https://x.x.x.x/repo, or Is there more to this? Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: From iannai29 at gmail.com Thu Jan 6 16:47:55 2011 From: iannai29 at gmail.com (Ian Narcisi) Date: Thu, 6 Jan 2011 10:47:55 -0600 Subject: [rancid] Pointing existing rancid from local svn repo to remote svn In-Reply-To: References: Message-ID: When attempting to install rancid svn to a remote server, I get the following message: [root at rancid-dev bin]# ./rancid-cvs *svnadmin: 'https://secure2.test.com/svn/repo/server/network-configs/CVS' is an URL when it should be a path* # BASEDIR=/usr/local/rancid/var/rancid; export BASEDIR PATH=/usr/local/rancid/bin:/usr/bin:/usr/sbin:/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin; export PATH # Location of the CVS/SVN repository. Be careful changing this. # CVSROOT=$BASEDIR/CVS; export CVSROOT * CVSROOT=https://secure2.test.com/svn/repo/server/network-configs/CVS; export CVSROOT* # Location of log files produced by rancid-run(1). # LOGDIR=$BASEDIR/logs; export LOGDIR * LOGDIR=https://secure2.test.com/svn/repo/server/network-configs/logs; export LOGDIR* # Select which RCS system to use, "cvs" (default) or "svn". Do not change # this after CVSROOT has been created with rancid-cvs. Changing between these # requires manual conversions. *RCSSYS=svn; export RCSSYS* Any ideas/solutions would be most welcome! On Wed, Jan 5, 2011 at 10:35 AM, Ian Narcisi wrote: > Hello, > > Is this simply altering the BASEDIR=/"local repo" to BASEDIR="/ > https://x.x.x.x/repo, or Is there more to this? > > Thank you > > > -- Ian Narcisi Progressive Rock indie musician Singer/songwriter, drummer, keyboardist www.ianmusic.com http://iannarcisi.blogspot.com/ www.myspace.com/ianmuzic http://www.facebook.com/ian.narcisi?v=info&viewas=703476662 http://twitter.com/IanNarcisi www.last.fm/music/Ian+Narcisi/Weight+Of+The+Words www.last.fm/music/Ian+Narcisi/Feel+No+Evil http://iannarcisi.posterous.com http://www.sonicbids.com/IanNarcisi http://www.networkingmusician.com/profile/IanNarcisi http://www.coloredpeople.net/profile/IanNarcisi http://www.artition.com/profil.php?user=iannai29 http://cyberprmastermind.ning.com/profile/IanNarcisi Reviews: http://www.reviewyou.com/cdreviewblog/ian-narcisi-weight-of-the-words/ http://www.progarchives.com/artist.asp?id=4918#discography http://www.reviewyou.com/cdreviewblog/ian-narcisi-feel-no-evil/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Clarke.Wardle at synetrix.co.uk Fri Jan 7 10:02:02 2011 From: Clarke.Wardle at synetrix.co.uk (Clarke.Wardle at synetrix.co.uk) Date: Fri, 7 Jan 2011 10:02:02 +0000 Subject: [rancid] Problems collecting configs Message-ID: <4B8F703AAAD8294EB73E10DFCBBDF15980E3A9@FMAIL-CCR.synetrixhl.local> Hi All, Has anyone come across this please as I have no clue where to start. We have 2 system which have just started to play up they used to collect configs now only the following for each device and no config info. Currently collected config: !RANCID-CONTENT-TYPE: cisco ! !Chassis type: 7206VXR - a 7200 router !CPU: NPE-G1, SB-1 CPU at 700Mhz, impl 1025, Rev 0.2, 512KB L2 Cache ! !Memory: main 983040K/65536K !Memory: nvram 509K !Memory: bootflash 16384K !Memory: pcmcia ATA slot2 125952K ! !Processor ID: 33288040 ! !Power: Power Supply 1 is Zytek AC Power Supply. Unit is on. !Power: Power Supply 2 is Zytek AC Power Supply. Unit is on. ! !Image: Software: C7200-K91P-M, 12.2(25)S5, RELEASE SOFTWARE (fc1) !Image: Compiled: Thu 23-Jun-05 03:38 by ccai !Image: disk2:c7200-k91p-mz.122-25.S5.bin ! !ROM Bootstrap: Version 12.3(4r)T1, RELEASE SOFTWARE (fc1) !BOOTLDR: Version 12.3(9), RELEASE SOFTWARE (fc2) ! ! ! !Variable: BOOT variable = disk2:c7200-k91p-mz.122-25.S5.bin,1; !Variable: CONFIG_FILE variable does not exist !Variable: BOOTLDR variable does not exist When I do a clogin to the device it works perfectly and I can then do a showrun and it lists the config perfectly Checking the logs for the automated run I can see I keep getting stuff like ! write(spawn_id=1): broken pipe while executing "send_user -- "$expect_out(buffer)"" invoked from within "expect -nobrace -re+ { exp_continue } -re {^[^ *]*DSI069([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} { send_user -- "$expect_out(buffer)" } -re {^[^ ..." invoked from within "expect { -re "\b+" { exp_continue } -re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)" } -re "^\[^\n\r]*$reprom..." (procedure "run_commands" line 39) invoked from within "run_commands $prompt $command" ("foreach" body line 155) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] # attempt at platform switching. set platform "" send_user ..." (file "/data/rancid/bin/clogin" line 722) Device_name.local: missed cmd(s): dir /all slavedisk2:,dir /all sec-slot2:,show diag,dir /all disk1:,dir /all sec-nvram:,dir /all disk2:,dir /all sec-bootflash:,show spe v ersion,dir /all slaveslot2:,dir /all disk0:,dir /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all slavenvram:,dir /all sec-disk2:,dir /all slavesup-bootflash:,dir /all sec-di sk0:,dir /all harddiskb:,show inventory raw,dir /all slavedisk1:,show module,show controllers,show diagbus,more system:running-config,dir /all slavedisk0:,show debug,dir /all bootflash:,dir /all sec-slot0:,dir /all sec-disk1:,write term,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all slot0:,dir /all sup-microcode:,show vlan,dir /all slaveboot flash:,show controllers cbus,dir /all slaveslot1:,show vlan-switch,show running-config,show c7200,dir /all slot1: Device_name.local: End of run not found Can anyone help with this please? Thanks Clarke ---------------------------------------------------------------------------------------------------------- Synetrix Holdings Limited Tel: +44 (0)1252 405 600 www.synetrix.co.uk Synetrix (Holdings) Limited is a limited company registered in England and Wales. Registered number: 0349 1956. VAT number: GB776 1259 07. Registered office: Synetrix (Holdings) Ltd, 17-19 Rochester Row, London, SW1P 1QT. IMPORTANT NOTICE: This message is intended solely for the use of the Individual or organisation to whom it is addressed. It may contain privileged or confidential information. If you have received this message in error, please notify the originator immediately. If you are not the intended recipient, you should not use, copy, alter, or disclose the contents of this message. All information or opinions expressed in this message and/or any attachments are those of the author and are not necessarily those of Synetrix Holdings Limited. Synetrix Holdings Limited accepts no responsibility for loss or damage arising from its use, including damage from virus. -------------- next part -------------- An HTML attachment was scrubbed... URL: From denyipanyany at gmail.com Mon Jan 10 15:52:25 2011 From: denyipanyany at gmail.com (Deny IP Any Any) Date: Mon, 10 Jan 2011 10:52:25 -0500 Subject: [rancid] custom command, need help with pipe Message-ID: Hello. I'm trying to write a custom command to store the output of 'show int status | inc trunk'. It seems to work OK without the pipe and "inc trunk", so I assume something is eating the pipe (|) character. How should I escape it properly? This is what I have, and it isn't working (missed cmd(s)).. can somebody point me in the right direction? {'show int status | inc trunk' => 'ShowIntTrunk'}, sub ShowIntTrunk { print STDERR " In ShowIntTrunk: $_" if ($debug); my($lines) = 0; while () { tr/\015//d; last if (/^$prompt/); next if (/^(\s*|\s*$cmd\s*)$/); return(1) if /Line has invalid autocommand /; return(1) if /(Invalid input detected|Type help or )/; return(-1) if (/command authorization failed/i); # the pager can not be disabled per-session on the PIX if (/^(<-+ More -+>)/) { my($len) = length($1); s/^$1\s{$len}//; } /^No matching debug flags set$/ && next; ProcessHistory("COMMENTS","keysort","J1","!TRUNK: $_"); $lines++; } if ($lines) { ProcessHistory("COMMENTS","keysort","J0","!\n"); } return(0); } -- deny ip any any (4393649193 matches) From heas at shrubbery.net Mon Jan 10 17:49:50 2011 From: heas at shrubbery.net (john heasley) Date: Mon, 10 Jan 2011 09:49:50 -0800 Subject: [rancid] custom command, need help with pipe In-Reply-To: References: Message-ID: <20110110174950.GD24398@shrubbery.net> Mon, Jan 10, 2011 at 10:52:25AM -0500, Deny IP Any Any: > Hello. I'm trying to write a custom command to store the output of > 'show int status | inc trunk'. It seems to work OK without the pipe > and "inc trunk", so I assume something is eating the pipe (|) > character. How should I escape it properly? > > This is what I have, and it isn't working (missed cmd(s)).. can > somebody point me in the right direction? my guess is that maybe this botched in the main loop regex. I'd just remove it and do the filtering inside the ShowIntTrunk() func. > > {'show int status | inc trunk' => 'ShowIntTrunk'}, > > > sub ShowIntTrunk { > print STDERR " In ShowIntTrunk: $_" if ($debug); > my($lines) = 0; > > while () { > tr/\015//d; > last if (/^$prompt/); > next if (/^(\s*|\s*$cmd\s*)$/); > return(1) if /Line has invalid autocommand /; > return(1) if /(Invalid input detected|Type help or )/; > return(-1) if (/command authorization failed/i); > # the pager can not be disabled per-session on the PIX > if (/^(<-+ More -+>)/) { > my($len) = length($1); > s/^$1\s{$len}//; > } > > /^No matching debug flags set$/ && next; > ProcessHistory("COMMENTS","keysort","J1","!TRUNK: $_"); > $lines++; > } > if ($lines) { > ProcessHistory("COMMENTS","keysort","J0","!\n"); > } > return(0); > } > > > -- > deny ip any any (4393649193 matches) > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From stony at stony.com Tue Jan 11 08:33:06 2011 From: stony at stony.com (Viktor Steinmann) Date: Tue, 11 Jan 2011 09:33:06 +0100 Subject: [rancid] h3clogin Message-ID: <4D2C15C2.6080305@stony.com> Hi all I've seen some older posts when grepping though the history of this mailing-list about login timeouts when using the custom h3clogin, as described on http://sites.google.com/site/jrbinks/code/rancid/h3c It seems I'm experiencing the same timeout problem like Ugo described in his mail to the list (Oct 22). Is there any solution to this? I'm trying to suck the configuration from HP A5500 Switches (altough in the CLI they're still called H3C S5500-52C-PWR-SI). The Switches are running "Comware Software, Version 5.20, Release 2202P19" Thanks, Viktor -------------- next part -------------- An HTML attachment was scrubbed... URL: From jethro.binks at strath.ac.uk Tue Jan 11 08:57:38 2011 From: jethro.binks at strath.ac.uk (Jethro R Binks) Date: Tue, 11 Jan 2011 08:57:38 +0000 (GMT) Subject: [rancid] h3clogin In-Reply-To: <4D2C15C2.6080305@stony.com> References: <4D2C15C2.6080305@stony.com> Message-ID: On Tue, 11 Jan 2011, Viktor Steinmann wrote: > I've seen some older posts when grepping though the history of this > mailing-list about login timeouts when using the custom h3clogin, as > described on http://sites.google.com/site/jrbinks/code/rancid/h3c > > It seems I'm experiencing the same timeout problem like Ugo described in > his mail to the list (Oct 22). Is there any solution to this? I'm trying > to suck the configuration from HP A5500 Switches (altough in the CLI > they're still called H3C S5500-52C-PWR-SI). Ugo and I worked on it for a bit, then Christmas got in the way. Lately someone else got in touch about the same issue, so I hope to take another look at it again shortly and try and get to the bottom of it. What puzzles me is that I don't have this problem, and haven't been able to reproduce it to effectively test! Which makes me worry that it is an expect bug or something obscure like that ... Viktor, please send me privately the output from the following: perl -v expect -v and I might be in touch with more questions. Jethro. . . . . . . . . . . . . . . . . . . . . . . . . . Jethro R Binks, Network Manager, Information Services Directorate, University Of Strathclyde, Glasgow, UK The University of Strathclyde is a charitable body, registered in Scotland, number SC015263. From papoyan at msn.com Tue Jan 11 20:37:01 2011 From: papoyan at msn.com (Nerses Papoyan) Date: Tue, 11 Jan 2011 14:37:01 -0600 Subject: [rancid] HP procurve 2910 stacked Message-ID: Hi, I'm having trouble with HP pro curve 2910 stacked switch. I have several other HP switches and don't have a problem, however only this "commander" switch is giving me problems. I need to pass the stack member number, but I'm unable doing so. After I run "root at myrancid-host:/usr/var/logs# clogin 10.10.0.1", it gets stalled, and even manually I can't choose any of the members. (see the log below) root at rancid01:/usr/var/logs# clogin 10.10.0.110.10.0.1spawn ssh -c 3des -x -l manager 10.10.0.1We'd like to keep you up to date about: * Software feature updates * New product announcements * Special events Please register your products now at: www.ProCurve.com manager at 10.10.0.1's password: ProCurve J9145A 2910al-24G SwitchSoftware revision W.14.38 Copyright (C) 1991-2009 Hewlett-Packard Co. All Rights Reserved. RESTRICTED RIGHTS LEGEND Use, duplication, or disclosure by the Government is subject to restrictions as set forth in subdivision (b) (3) (ii) of the Rights in Technical Data and Computer Software clause at 52.227-7013. HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303 Press any key to continue Stack Members SN MAC Address System Name Device Type Status -- ------------- ---------------- --------------------- ------------------------- 0 c09***** 2910-**** ProCurve Switch Commander Up 1 c***** 2910-**** ProCurve Switch Member Up 2 ************* 2510g **** ProCurve 2510G-48 Member Up 3 c***** 2910-**** ProCurve Switch Member Up 4 ************* 2510g **** ProCurve 2510G-48 Member Up 5 c***** 2910-**** ProCurve Switch Member Up 6 ************* 2510g **** ProCurve 2510G-48 Member Up Enter switch number to connect to or : Does anyone know how to correct the problem, so when I run "rancid-run" and having 10.10.0.1:hp:up in my router.db, to collect and save the configuration of the member "0" (commander) Thank you in advance ! Nerses -------------- next part -------------- An HTML attachment was scrubbed... URL: From chris.kilian at seccomglobal.com Tue Jan 11 22:33:40 2011 From: chris.kilian at seccomglobal.com (Chris Kilian) Date: Tue, 11 Jan 2011 22:33:40 +0000 Subject: [rancid] Extreme Issues Message-ID: <7E954E0B2F4C5B409194643A738074087FCDE2@SG-Exchange.seccom.local> Hi guys Got Rancid working for all Cisco etc devices but when trying to get the same working for Extreme I am seeing some strange things in the log file. It looks as if Rancid is not seeing the whole config past one page. And then fails on end of run not found, the below shows what I mean .16.192.246: End of run not found Press to continue or to quit That line above is what you get when you ssh/telnet to the box and need to press space bar etc to continue seeing the config. Anyone got any ideas at all? Kind Regards Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From zeusdadog at gmail.com Wed Jan 12 00:40:44 2011 From: zeusdadog at gmail.com (Jay Nakamura) Date: Tue, 11 Jan 2011 19:40:44 -0500 Subject: [rancid] Extreme Issues In-Reply-To: <7E954E0B2F4C5B409194643A738074087FCDE2@SG-Exchange.seccom.local> References: <7E954E0B2F4C5B409194643A738074087FCDE2@SG-Exchange.seccom.local> Message-ID: It's been a while since I configured RANCID for our Extreme but I think I had to put the patch on Expect on before it worked. The Expect version was different than the patch came from so I had to manually find where to change the code. The patch is on the main page for RANCID. 2011/1/11 Chris Kilian : > Hi guys > > > > Got Rancid working for all Cisco etc devices but when trying to get the same > working for Extreme I am seeing some strange things in the log file. It > looks as if Rancid is not seeing the whole config past one page. And then > fails on end of run not found, the below shows what I mean > > > > .16.192.246: End of run not found > > Press to continue or to quit > > > > That line above is what you get when you ssh/telnet to the box and need to > press space bar etc to continue seeing the config. > > > > Anyone got any ideas at all? > > > > > > Kind Regards > > > > Chris > > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > From jrobinson at bluelock.com Wed Jan 12 15:49:48 2011 From: jrobinson at bluelock.com (Jake Robinson) Date: Wed, 12 Jan 2011 10:49:48 -0500 Subject: [rancid] Rancid SAN Switch (Brocade) Script Message-ID: <1ACBC8405CD6E64792FC497D33313B010C58926F@mse10be2.mse10.exchange.ms> I'd be interested in the brocade script. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cgauthier at mapscu.com Wed Jan 12 23:58:13 2011 From: cgauthier at mapscu.com (Chris Gauthier) Date: Wed, 12 Jan 2011 15:58:13 -0800 Subject: [rancid] Rancid SAN Switch (Brocade) Script In-Reply-To: <1ACBC8405CD6E64792FC497D33313B010C58926F@mse10be2.mse10.exchange.ms> References: <1ACBC8405CD6E64792FC497D33313B010C58926F@mse10be2.mse10.exchange.ms> Message-ID: >From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Jake Robinson >Sent: Wednesday, January 12, 2011 7:50 AM >To: rancid-discuss at shrubbery.net >Subject: [rancid] Rancid SAN Switch (Brocade) Script > >I'd be interested in the brocade script. > A lot of Brocade used to be Froundry. I would suggest trying francid on them. --Chris ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ CONFIDENTIALITY NOTICE Attention: The information contained in this email and/or attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any system and destroy any copies. From rhys.evans at Redblade.co.uk Thu Jan 13 08:34:52 2011 From: rhys.evans at Redblade.co.uk (Rhys Evans) Date: Thu, 13 Jan 2011 08:34:52 +0000 Subject: [rancid] Rancid SAN Switch (Brocade) Script In-Reply-To: References: <1ACBC8405CD6E64792FC497D33313B010C58926F@mse10be2.mse10.exchange.ms> Message-ID: Hi The attached works for me, not the full config but enough for us to recover if required. We are running FOS v6.2.2c Usual disclaimer applies, use at your own risk etc etc etc Hope it helps Thanks Rhys Evans Technical Consultant | Redblade Ltd | Tel: +44 (0)845 094 2389 | Fax: +44 (0)20 7735 1555 | Southbank House, Vauxhall | www.redblade.co.uk | -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Chris Gauthier Sent: 12 January 2011 23:58 To: rancid-discuss at shrubbery.net Subject: Re: [rancid] Rancid SAN Switch (Brocade) Script >From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Jake Robinson >Sent: Wednesday, January 12, 2011 7:50 AM >To: rancid-discuss at shrubbery.net >Subject: [rancid] Rancid SAN Switch (Brocade) Script > >I'd be interested in the brocade script. > A lot of Brocade used to be Froundry. I would suggest trying francid on them. --Chris ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ CONFIDENTIALITY NOTICE Attention: The information contained in this email and/or attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any system and destroy any copies. _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss Redblade Ltd is a Company Limited by Guarantee, registered in England, no: 5821834 Registered Office: Southbank House, Black Prince Road, Vauxhall, London, SE1 7SJ This email and its content are subject to the disclaimer as displayed at the following link http://www.redblade.co.uk/disclaimer.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: brocadelogin Type: application/octet-stream Size: 26079 bytes Desc: brocadelogin URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: brocaderancid Type: application/octet-stream Size: 16197 bytes Desc: brocaderancid URL: From chris.kilian at seccomglobal.com Fri Jan 14 03:18:26 2011 From: chris.kilian at seccomglobal.com (Chris Kilian) Date: Fri, 14 Jan 2011 03:18:26 +0000 Subject: [rancid] clogin query Message-ID: <7E954E0B2F4C5B409194643A7380740880B057@SG-Exchange.seccom.local> Hi all I have my rancid working almost totally correctly now with the exception of a few things. I have some devices that although they answer to ssh they are using a different port to 22, in the .clogin.rc file I have all the devices listed as Add methos x.x.x.x {ssh} Looking at the documentation it seems to say that you can use {ssh:-port} to specify a different port however when I do that I am getting the below in the log files. Hostname fnlogin error: Error: unknown connection method: ssh:-822 Anyone got any ideas? Kind Regards Chris Kilian -------------- next part -------------- An HTML attachment was scrubbed... URL: From ler762 at gmail.com Fri Jan 14 15:20:12 2011 From: ler762 at gmail.com (Lee) Date: Fri, 14 Jan 2011 07:20:12 -0800 Subject: [rancid] clogin query In-Reply-To: <7E954E0B2F4C5B409194643A7380740880B057@SG-Exchange.seccom.local> References: <7E954E0B2F4C5B409194643A7380740880B057@SG-Exchange.seccom.local> Message-ID: On 1/13/11, Chris Kilian wrote: > Hi all > > I have my rancid working almost totally correctly now with the exception of > a few things. I have some devices that although they answer to ssh they are > using a different port to 22, in the .clogin.rc file I have all the devices > listed as > > Add methos x.x.x.x {ssh} > > Looking at the documentation it seems to say that you can use {ssh:-port} to > specify a different port however when I do that I am getting the below in > the log files. > > Hostname fnlogin error: Error: unknown connection method: ssh:-822 > > Anyone got any ideas? try it without the dash - ie. {ssh:822} Lee From andy at benthamroad.co.uk Fri Jan 14 16:55:15 2011 From: andy at benthamroad.co.uk (Andy) Date: Fri, 14 Jan 2011 16:55:15 -0000 Subject: [rancid] clogin query In-Reply-To: <7E954E0B2F4C5B409194643A7380740880B057@SG-Exchange.seccom.local> References: <7E954E0B2F4C5B409194643A7380740880B057@SG-Exchange.seccom.local> Message-ID: <002901cbb40b$d1b8cbe0$752a63a0$@co.uk> Hi, I think this should work; add sshcmd x.x.x.x {ssh -p 822} Andy From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Chris Kilian Sent: 14 January 2011 03:18 To: rancid-discuss at shrubbery.net Subject: [rancid] clogin query Hi all I have my rancid working almost totally correctly now with the exception of a few things. I have some devices that although they answer to ssh they are using a different port to 22, in the .clogin.rc file I have all the devices listed as Add methos x.x.x.x {ssh} Looking at the documentation it seems to say that you can use {ssh:-port} to specify a different port however when I do that I am getting the below in the log files. Hostname fnlogin error: Error: unknown connection method: ssh:-822 Anyone got any ideas? Kind Regards Chris Kilian -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Fri Jan 14 18:35:04 2011 From: heas at shrubbery.net (john heasley) Date: Fri, 14 Jan 2011 18:35:04 +0000 Subject: [rancid] clogin query In-Reply-To: <7E954E0B2F4C5B409194643A7380740880B057@SG-Exchange.seccom.local> References: <7E954E0B2F4C5B409194643A7380740880B057@SG-Exchange.seccom.local> Message-ID: <20110114183504.GE320@shrubbery.net> Fri, Jan 14, 2011 at 03:18:26AM +0000, Chris Kilian: > Hi all > > I have my rancid working almost totally correctly now with the exception of a few things. I have some devices that although they answer to ssh they are using a different port to 22, in the .clogin.rc file I have all the devices listed as > > Add methos x.x.x.x {ssh} > > Looking at the documentation it seems to say that you can use {ssh:-port} to specify a different port however when I do that I am getting the below in the log files. > > Hostname fnlogin error: Error: unknown connection method: ssh:-822 > > Anyone got any ideas? assuming that your rancid is recent enough, I dont recall off the top of my head when this was added, this should work if your ssh uses - for the port. the - is usually only for some variations of BSD's telnet client. From Peter.Jevos at oriflame.com Tue Jan 18 08:52:53 2011 From: Peter.Jevos at oriflame.com (Jevos, Peter) Date: Tue, 18 Jan 2011 09:52:53 +0100 Subject: [rancid] Can't get any config from ASA Message-ID: <6639BA20B265594590E97DD72A8EE03507E4C674@exosw.osw.ori.local> Hi all I can't get any config from ASA firewalls. I can tget it from the clogin when I use : Clogin -c"command" hostname But when I run rancid-run I get: Trying to get all of the configs. Asa-1: missed cmd(s): write term ===================================== Getting missed routers: round 1. Asa-1: missed cmd(s): write term ===================================== Getting missed routers: round 2. Asa-1: missed cmd(s): write term Or when i run : # env NOPIPE=y PATH=${PATH}:/usr/local/rancid/bin rancid -d asa-1 executing clogin -t 90 -c"more system:running-config;show configuration;write term" asa-1 PROMPT MATCH: ASA-1# HIT COMMAND:ASA-1# more system:running-config In WriteTerm: ASA-1 more system:running-config HIT COMMAND:ASA-1# show configuration In WriteTerm: ASA-1# show configuration asa-1: missed cmd(s): write term asa-1: missed cmd(s): write term Any advices please ? Thanks pet -------------- next part -------------- An HTML attachment was scrubbed... URL: From Leo.Nelson at chw.edu Tue Jan 18 16:39:33 2011 From: Leo.Nelson at chw.edu (Nelson, Leo - Dell) Date: Tue, 18 Jan 2011 09:39:33 -0700 Subject: [rancid] Rancid 2.3.4 issue Message-ID: <8645902FA277E04AB0F32BC9413F64D2043EAFBEE1@CHW-MSG-821.chw.edu> It appears I have two issues. Cisco NX devices never back up. New Cisco 2960G not working either. Any help would be greatly appreciated. Here is the output from the Rancid log the AS1 is a Nexus 5020 and the IS1 is a 2960. !Env: ^ write(spawn_id=1): broken pipe while executing "send_user -- "$expect_out(buffer)"" invoked from within "expect -nobrace -re+ { exp_continue } -re {^[^ *]*as1-0408-co([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} { send_user -- "$expect_out(buffer)" } -re {..." invoked from within "expect { -re "\b+" { exp_continue } -re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)" } -re "^\[^\n\r]*$reprom..." (procedure "run_commands" line 39) invoked from within "run_commands $prompt $command" ("foreach" body line 155) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] # attempt at platform switching. set platform "" send_user ..." (file "/usr/bin/clogin" line 722) as1-0408-colo3-edc: missed cmd(s): show module,dir usb1:,dir debug:,show debug,show cores vdc-all,show vtp st atus,show environment fan,show module xbar,show environment power,show inventory,dir usb2:,show vlan,dir vola tile:,dir bootflash:,dir slot0:,show processes log vdc-all,dir logflash:,show running-config,show environment temperature,show boot as1-0408-colo3-edc: End of run not found ! write(spawn_id=1): broken pipe while executing "send_user -- "$expect_out(buffer)"" invoked from within "expect -nobrace -re+ { exp_continue } -re {^[^ *]*is1-0102-co([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} { send_user -- "$expect_out(buffer)" } -re {..." invoked from within "expect { -re "\b+" { exp_continue } -re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)" } -re "^\[^\n\r]*$reprom..." (procedure "run_commands" line 39) invoked from within "run_commands $prompt $command" ("foreach" body line 155) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] # attempt at platform switching. set platform "" send_user ..." (file "/usr/bin/clogin" line 722) is1-0102-colo3-edc: missed cmd(s): dir /all slavedisk2:,dir /all sec-slot2:,show diag,dir /all disk1:,dir /al l sec-nvram:,dir /all disk2:,dir /all sec-bootflash:,show spe version,dir /all slaveslot2:,dir /all disk0:,di r /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all slavenvram:,dir /all sec-disk2:,dir /all slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show inventory raw,dir /all slavedisk1:,show modu le,show controllers,show diagbus,more system:running-config,dir /all slavedisk0:,show debug,dir /all bootflas h:,dir /all sec-slot0:,dir /all sec-disk1:,write term,show vtp status,dir /all sup-bootflash:,dir /all slot2: ,dir /all harddisk:,dir /all slot0:,dir /all sup-microcode:,show vlan,dir /all slavebootflash:,show controlle rs cbus,dir /all slaveslot1:,show vlan-switch,show running-config,show c7200,dir /all slot1: is1-0102-colo3-edc: End of run not found Leo Nelson Network Design Sr. Advisor Information Technology Catholic Healthcare West Ph: 480-263-2880 leo.nelson at chw.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: From Leo.Nelson at chw.edu Tue Jan 18 16:49:55 2011 From: Leo.Nelson at chw.edu (Nelson, Leo - Dell) Date: Tue, 18 Jan 2011 09:49:55 -0700 Subject: [rancid] Rancid 2.3.4 issue In-Reply-To: <8645902FA277E04AB0F32BC9413F64D2043EAFBEE1@CHW-MSG-821.chw.edu> References: <8645902FA277E04AB0F32BC9413F64D2043EAFBEE1@CHW-MSG-821.chw.edu> Message-ID: <8645902FA277E04AB0F32BC9413F64D2043EAFBEE4@CHW-MSG-821.chw.edu> More info. If I run rancid independent of the cron it pulls a config down just fine for both devices. Leo Nelson Network Design Sr. Advisor Information Technology Catholic Healthcare West Main: 602-407-3570 leo.nelson at chw.edu From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Nelson, Leo - Dell Sent: Tuesday, January 18, 2011 9:40 AM To: rancid-discuss at shrubbery.net Subject: [rancid] Rancid 2.3.4 issue It appears I have two issues. Cisco NX devices never back up. New Cisco 2960G not working either. Any help would be greatly appreciated. Here is the output from the Rancid log the AS1 is a Nexus 5020 and the IS1 is a 2960. !Env: ^ write(spawn_id=1): broken pipe while executing "send_user -- "$expect_out(buffer)"" invoked from within "expect -nobrace -re+ { exp_continue } -re {^[^ *]*as1-0408-co([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} { send_user -- "$expect_out(buffer)" } -re {..." invoked from within "expect { -re "\b+" { exp_continue } -re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)" } -re "^\[^\n\r]*$reprom..." (procedure "run_commands" line 39) invoked from within "run_commands $prompt $command" ("foreach" body line 155) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] # attempt at platform switching. set platform "" send_user ..." (file "/usr/bin/clogin" line 722) as1-0408-colo3-edc: missed cmd(s): show module,dir usb1:,dir debug:,show debug,show cores vdc-all,show vtp st atus,show environment fan,show module xbar,show environment power,show inventory,dir usb2:,show vlan,dir vola tile:,dir bootflash:,dir slot0:,show processes log vdc-all,dir logflash:,show running-config,show environment temperature,show boot as1-0408-colo3-edc: End of run not found ! write(spawn_id=1): broken pipe while executing "send_user -- "$expect_out(buffer)"" invoked from within "expect -nobrace -re+ { exp_continue } -re {^[^ *]*is1-0102-co([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} { send_user -- "$expect_out(buffer)" } -re {..." invoked from within "expect { -re "\b+" { exp_continue } -re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)" } -re "^\[^\n\r]*$reprom..." (procedure "run_commands" line 39) invoked from within "run_commands $prompt $command" ("foreach" body line 155) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] # attempt at platform switching. set platform "" send_user ..." (file "/usr/bin/clogin" line 722) is1-0102-colo3-edc: missed cmd(s): dir /all slavedisk2:,dir /all sec-slot2:,show diag,dir /all disk1:,dir /al l sec-nvram:,dir /all disk2:,dir /all sec-bootflash:,show spe version,dir /all slaveslot2:,dir /all disk0:,di r /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all slavenvram:,dir /all sec-disk2:,dir /all slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show inventory raw,dir /all slavedisk1:,show modu le,show controllers,show diagbus,more system:running-config,dir /all slavedisk0:,show debug,dir /all bootflas h:,dir /all sec-slot0:,dir /all sec-disk1:,write term,show vtp status,dir /all sup-bootflash:,dir /all slot2: ,dir /all harddisk:,dir /all slot0:,dir /all sup-microcode:,show vlan,dir /all slavebootflash:,show controlle rs cbus,dir /all slaveslot1:,show vlan-switch,show running-config,show c7200,dir /all slot1: is1-0102-colo3-edc: End of run not found Leo Nelson Network Design Sr. Advisor Information Technology Catholic Healthcare West Ph: 480-263-2880 leo.nelson at chw.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: From wpereira at pop-sp.rnp.br Tue Jan 18 17:01:39 2011 From: wpereira at pop-sp.rnp.br (Wagner Pereira) Date: Tue, 18 Jan 2011 15:01:39 -0200 Subject: [rancid] Rancid log - timeout reached Message-ID: <4D35C773.8090501@pop-sp.rnp.br> Hi, folks. I need some help to set up definitely my Rancid. I have two Extreme devices and I set up as follows: --------------- add user 10.0.0.1 user add user 10.0.0.2 user add password 10.0.0.1 {password_with_special_characters} "" add password 10.0.0.2 {password_with_special_characters} "" add method 10.0.0.1 telnet add method 10.0.0.2 ssh add cyphertype * {3des} --------------- My log says to me: 10.0.0.1 clogin error: Error: TIMEOUT reached 10.0.0.2 clogin error: Error: TIMEOUT reached --------------- I did the test, by hand: /home/rancid/bin/clogin 10.0.0.1 - RESULT: log in OK /home/rancid/bin/clogin 10.0.0.2 - RESULT: Error: TIMEOUT reached Question: An enable password is needed? Or quotes solve that? Because if the device is not a Cisco, there is no enable password, right? Regards, -- Wagner Pereira PoP-SP/RNP - Ponto de Presen?a da RNP em S?o Paulo CCE/USP - Centro de Computa??o Eletr?nica da Universidade de S?o Paulo http://www.pop-sp.rnp.br Tel. (11) 3091-8901 fone at RNP: 10158902 From pluxton at antracnetworks.com Wed Jan 19 20:42:33 2011 From: pluxton at antracnetworks.com (Patty Luxton) Date: Wed, 19 Jan 2011 12:42:33 -0800 Subject: [rancid] Extreme Issues In-Reply-To: References: <7E954E0B2F4C5B409194643A738074087FCDE2@SG-Exchange.seccom.local> Message-ID: <001001cbb819$66b0ff40$3412fdc0$@antracnetworks.com> Hey there Chris, I've been having some issues with this the past few days as well. I tried the expect version (and tcl) that rancid has posted to the ftp site, but ran into more errors that without it. I did have my 48si's running ExtremeWare working just fine, but the expect hack broke the 48si's and did not resolve the issue for the 8810s running XOS. So I did some more digging and found this post from back in 2007. http://www.shrubbery.net/pipermail/rancid-discuss/2007-May/002219.html I used the patches for clogin and xrancid as described in the attachment.bin listed on this post, and it worked well. However, it will break any cisco devices that use the clogin, so I actually made another copy of clogin and called it xoslogin, then edited xrancid to use xoslogin rather than clogin. All works fine now for both the xos and extremeware devices. Hope this helps, Patty -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Jay Nakamura Sent: Tuesday, January 11, 2011 4:41 PM To: Chris Kilian Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] Extreme Issues It's been a while since I configured RANCID for our Extreme but I think I had to put the patch on Expect on before it worked. The Expect version was different than the patch came from so I had to manually find where to change the code. The patch is on the main page for RANCID. 2011/1/11 Chris Kilian : > Hi guys > > > > Got Rancid working for all Cisco etc devices but when trying to get > the same working for Extreme I am seeing some strange things in the > log file. It looks as if Rancid is not seeing the whole config past > one page. And then fails on end of run not found, the below shows what > I mean > > > > .16.192.246: End of run not found > > Press to continue or to quit > > > > That line above is what you get when you ssh/telnet to the box and > need to press space bar etc to continue seeing the config. > > > > Anyone got any ideas at all? > > > > > > Kind Regards > > > > Chris > > > > _______________________________________________ > 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 joseph.e.mcdonagh at gmail.com Thu Jan 20 01:06:25 2011 From: joseph.e.mcdonagh at gmail.com (Joe McDonagh) Date: Wed, 19 Jan 2011 20:06:25 -0500 Subject: [rancid] clogin cannot send commands after logging in to cisco 4900m Message-ID: <4D378A91.10109@gmail.com> Hi all, I can run clogin and get into the router but if I try to hit enter even the prompt never returns. Commands exhibit the same behavior. It's rancid 2.3.2~a7-2, the packaged version for Ubuntu 8.04 LTS. Any ideas? -- Joe McDonagh Operations Engineer AIM: YoosingYoonickz IRC: joe-mac on freenode "When the going gets weird, the weird turn pro." From peo at chalmers.se Thu Jan 20 09:35:42 2011 From: peo at chalmers.se (Per-Olof Olsson) Date: Thu, 20 Jan 2011 10:35:42 +0100 Subject: [rancid] HP procurve 2910 stacked In-Reply-To: References: Message-ID: <4D3801EE.4040204@chalmers.se> Hi There is no way to backup config from other then stack commander from rancid what i know. If you don't lite to turn of stack function there is some lines to add in hlogin for answer the switch number promp. *** hlogin.pre_fix Thu Jan 20 10:21:17 2011 --- hlogin Thu Jan 20 10:13:00 2011 *************** *** 389,408 **** --- 389,412 ---- # talk to the TACACS server to authenticate you, or if the # TACACS server is not working, then it will use the enable # passwd. Or, the router might not have TACACS turned on, # then it will just send the passwd. # if telnet fails with connection refused, try ssh expect { "Press any key to continue" { send " " exp_continue } + "Enter switch number to connect to or :" { + send "\r" + exp_continue + } -re "(Connection refused|Secure connection \[^\n\r]+ refused|Connection closed by)" { catch {close}; catch {wait}; if !$progs { send_user "\nError: Connection Refused ($prog)\n"; return 1 } } "Host is unreachable" { catch {close}; catch {wait}; send_user "\nError: Host Unreachable!\n"; wait; return 1 } /Peo ---------------------------------------------------------- Per-Olof Olsson Email: peo at chalmers.se Chalmers tekniska h?gskola IT-service H?rsalsv?gen 5 412 96 G?teborg Tel: 031/772 6738 Fax: 031/772 8660 ---------------------------------------------------------- Nerses Papoyan wrote: > Hi, > > I'm having trouble with HP pro curve 2910 stacked switch. I have several > other HP switches and don't have a problem, however only this > "commander" switch is giving me problems. I need to pass the stack > member number, but I'm unable doing so. > > After I run "root at myrancid-host:/usr/var/logs# clogin 10.10.0.1", it > gets stalled, and even manually I can't choose any of the members. (see > the log below) > > > root at rancid01:/usr/var/logs# clogin 10.10.0.1 > 10.10.0.1 > spawn ssh -c 3des -x -l manager 10.10.0.1 > We'd like to keep you up to date about: > * Software feature updates > * New product announcements > * Special events > > Please register your products now at: www.ProCurve.com > > manager at 10.10.0.1's password: > > ProCurve J9145A 2910al-24G Switch > Software revision W.14.38 > > Copyright (C) 1991-2009 Hewlett-Packard Co. All Rights Reserved. > > RESTRICTED RIGHTS LEGEND > > Use, duplication, or disclosure by the Government is subject to > restrictions > as set forth in subdivision (b) (3) (ii) of the Rights in Technical > Data and > Computer Software clause at 52.227-7013. > > HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303 > > > Press any key to continue > > > Stack Members > > SN MAC Address System Name Device Type Status > > -- ------------- ---------------- --------------------- > ------------------------- > 0 c09***** 2910-**** ProCurve Switch Commander Up > > 1 c***** 2910-**** ProCurve Switch Member Up > > 2 ************* 2510g **** ProCurve 2510G-48 Member Up > 3 c***** 2910-**** ProCurve Switch Member Up > > 4 ************* 2510g **** ProCurve 2510G-48 Member Up > > 5 c***** 2910-**** ProCurve Switch Member Up > > 6 ************* 2510g **** ProCurve 2510G-48 Member Up > > > Enter switch number to connect to or : > > Does anyone know how to correct the problem, so when I run "rancid-run" > and having 10.10.0.1:hp:up in my router.db, to collect and save the > configuration of the member "0" (commander) > > > Thank you in advance ! > > Nerses > > From bjorkman.martin at gmail.com Fri Jan 21 16:53:34 2011 From: bjorkman.martin at gmail.com (=?UTF-8?Q?Martin_Bj=C3=B6rkman?=) Date: Fri, 21 Jan 2011 17:53:34 +0100 Subject: [rancid] problem with CSS order Message-ID: Hi! I'm having a very interesting problem with my rancid installation. It works really well for the other models but this one Cisco CSS11501 is giving me a headache :) Basically, the problem being is that it doesn't take much care in regards to the order in which it presents the information within a VIP for example, which means I will get a rancid mail every time looking much like this: -- content XXX_S_CMS vip address xx.xx.xx.xx - protocol tcp port 80 + protocol tcp add service XXX-SI-CMS01 active -- same thing happens with the routes where they get presented in different order every time.. I've really tried googling the issue but came up empty. Is this a known problem and if so how do I solve it? Is there a setting in the CSS to remedy this or is it possible to "sort" the text before comitting to CVS? Thanks for all suggestions Martin -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Fri Jan 21 18:26:45 2011 From: heas at shrubbery.net (john heasley) Date: Fri, 21 Jan 2011 18:26:45 +0000 Subject: [rancid] problem with CSS order In-Reply-To: References: Message-ID: <20110121182645.GI29943@shrubbery.net> Fri, Jan 21, 2011 at 05:53:34PM +0100, Martin Bj?rkman: > Hi! > > I'm having a very interesting problem with my rancid installation. It works > really well for the other models but this one Cisco CSS11501 is giving me a > headache :) > > Basically, the problem being is that it doesn't take much care in regards to > the order in which it presents the information within a VIP for example, > which means I will get a rancid mail every time looking much like this: > > -- > content XXX_S_CMS > vip address xx.xx.xx.xx > - protocol tcp > port 80 > + protocol tcp > add service XXX-SI-CMS01 > active > -- > > same thing happens with the routes where they get presented in different > order every time.. > I've really tried googling the issue but came up empty. Is this a known > problem and if so how do I solve it? > Is there a setting in the CSS to remedy this or is it possible to "sort" the > text before comitting to CVS? its occured a few times with specific IOS versions. its an error in the nv generator and is often corrected when reported to the Cisco TAC. It may already be corrected in a more recent version of the IOS for this device. please check on that. the alternative is adding code to parse configuration related to this "sub-config mode" and sort the contents. From Leo.Nelson at chw.edu Fri Jan 21 19:07:59 2011 From: Leo.Nelson at chw.edu (Nelson, Leo - Dell) Date: Fri, 21 Jan 2011 12:07:59 -0700 Subject: [rancid] Rancid 2.3.4 issue In-Reply-To: <20110118195618.GH11726@shrubbery.net> References: <8645902FA277E04AB0F32BC9413F64D2043EAFBEE1@CHW-MSG-821.chw.edu> <8645902FA277E04AB0F32BC9413F64D2043EAFBEE4@CHW-MSG-821.chw.edu> <20110118195618.GH11726@shrubbery.net> Message-ID: <8645902FA277E04AB0F32BC9413F64D2043EAFC0D2@CHW-MSG-821.chw.edu> Hi John, I have done this and I only find a single instance of Rancid installed. Here is a snippet from the log file when I run rancid-run. I really can't identify the reason why Rancid work on some devices and not others. I have check the router.db file and dns etc. The first device is IOS, second is NxOS. Anymore help would be appreciated. more EDC.20110121.115832 starting: Fri Jan 21 11:58:32 MST 2011 /storage/rancid/dead.letter... Saved message in /storage/rancid/dead.letter cvs add: is1-0204-colo3-edc already exists, with version number 1.1 Added is1-0204-colo3-edc cvs add: s1-pscchw already exists, with version number 1.1 Added s1-pscchw cvs add: s1-sjhmc-edc already exists, with version number 1.89 Added s1-sjhmc-edc cvs add: s2-sjhmc-edc already exists, with version number 1.107 Added s2-sjhmc-edc Trying to get all of the configs. write(spawn_id=1): broken pipe while executing "send_user -- "$expect_out(buffer)"" invoked from within "expect -nobrace -re+ { exp_continue } -re {^[^ *]*as1-0102-co([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} { send_user -- "$expect_out(buffer)" } -re {..." invoked from within "expect { -re "\b+" { exp_continue } -re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)" } -re "^\[^\n\r]*$reprom..." (procedure "run_commands" line 39) invoked from within "run_commands $prompt $command" ("foreach" body line 155) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] # attempt at platform switching. set platform "" send_user ..." (file "/usr/bin/clogin" line 722) as1-0102-colo3-edc: missed cmd(s): dir /all slavedisk2:,dir /all sec-slot2:,show diag,dir /all disk1:,dir /al l sec-nvram:,dir /all disk2:,dir /all sec-bootflash:,show spe version,dir /all slaveslot2:,dir /all disk0:,di r /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all slavenvram:,dir /all sec-disk2:,dir /all slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show inventory raw,dir /all slavedisk1:,show modu le,show controllers,show diagbus,more system:running-config,dir /all slavedisk0:,show debug,dir /all bootflas h:,dir /all sec-slot0:,dir /all sec-disk1:,write term,show vtp status,dir /all sup-bootflash:,dir /all slot2: ,dir /all harddisk:,dir /all slot0:,dir /all sup-microcode:,show vlan,dir /all slavebootflash:,show controlle rs cbus,dir /all slaveslot1:,show vlan-switch,show running-config,show c7200,dir /all slot1: as1-0102-colo3-edc: End of run not found ! write(spawn_id=1): broken pipe while executing "send_user -- "$expect_out(buffer)"" invoked from within "expect -nobrace -re+ { exp_continue } -re {^[^ *]*as1-0108-co([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} { send_user -- "$expect_out(buffer)" } -re {..." invoked from within "expect { -re "\b+" { exp_continue } -re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)" } -re "^\[^\n\r]*$reprom..." (procedure "run_commands" line 39) invoked from within "run_commands $prompt $command" ("foreach" body line 155) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] # attempt at platform switching. set platform "" send_user ..." (file "/usr/bin/clogin" line 722) as1-0108-colo3-edc: missed cmd(s): show module,dir usb1:,dir debug:,show debug,show cores vdc-all,show vtp st atus,show environment fan,show module xbar,show environment power,show inventory,dir usb2:,show vlan,dir vola tile:,dir bootflash:,dir slot0:,show processes log vdc-all,dir logflash:,show running-config,show environment temperature,show boot as1-0108-colo3-edc: End of run not found !Env: ^ Leo Nelson Network Design Sr. Advisor ? Information Technology Catholic Healthcare West ? Main: 602-407-3570 leo.nelson at chw.edu -----Original Message----- From: john heasley [mailto:heas at shrubbery.net] Sent: Tuesday, January 18, 2011 12:56 PM To: Nelson, Leo - Dell Subject: Re: [rancid] Rancid 2.3.4 issue Tue, Jan 18, 2011 at 09:49:55AM -0700, Nelson, Leo - Dell: > More info. If I run rancid independent of the cron it pulls a config down just fine for both devices. > please make sure that you do not have multiple installations of rancid, esp clogin, on your machine. From heas at shrubbery.net Fri Jan 21 20:19:44 2011 From: heas at shrubbery.net (john heasley) Date: Fri, 21 Jan 2011 20:19:44 +0000 Subject: [rancid] HP procurve 2910 stacked In-Reply-To: <4D3801EE.4040204@chalmers.se> References: <4D3801EE.4040204@chalmers.se> Message-ID: <20110121201944.GG4209@shrubbery.net> Thu, Jan 20, 2011 at 10:35:42AM +0100, Per-Olof Olsson: > Hi > > > There is no way to backup config from other then stack commander > from rancid what i know. If you don't lite to turn of stack function > there is some lines to add in hlogin for answer the switch number promp. no, not yet. but, thanks for the patch. > *** hlogin.pre_fix Thu Jan 20 10:21:17 2011 > --- hlogin Thu Jan 20 10:13:00 2011 > *************** > *** 389,408 **** > --- 389,412 ---- > # talk to the TACACS server to authenticate you, or if the > # TACACS server is not working, then it will use the enable > # passwd. Or, the router might not have TACACS turned on, > # then it will just send the passwd. > # if telnet fails with connection refused, try ssh > expect { > "Press any key to continue" { > send " " > exp_continue > } > + "Enter switch number to connect to or :" { > + send "\r" > + exp_continue > + } > -re "(Connection refused|Secure connection \[^\n\r]+ > refused|Connection closed by)" { > catch {close}; catch {wait}; > if !$progs { > send_user "\nError: Connection Refused ($prog)\n"; return 1 > } > } > "Host is unreachable" { > catch {close}; catch {wait}; > send_user "\nError: Host Unreachable!\n"; wait; return 1 > } > > > /Peo > ---------------------------------------------------------- > Per-Olof Olsson Email: peo at chalmers.se > Chalmers tekniska h?gskola IT-service > H?rsalsv?gen 5 412 96 G?teborg > Tel: 031/772 6738 Fax: 031/772 8660 > ---------------------------------------------------------- > > > Nerses Papoyan wrote: > >Hi, > > > >I'm having trouble with HP pro curve 2910 stacked switch. I have > >several other HP switches and don't have a problem, however only > >this "commander" switch is giving me problems. I need to pass the > >stack member number, but I'm unable doing so. > > > >After I run "root at myrancid-host:/usr/var/logs# clogin 10.10.0.1", > >it gets stalled, and even manually I can't choose any of the > >members. (see the log below) > > > > > >root at rancid01:/usr/var/logs# clogin 10.10.0.1 > >10.10.0.1 > >spawn ssh -c 3des -x -l manager 10.10.0.1 > >We'd like to keep you up to date about: > > * Software feature updates > > * New product announcements > > * Special events > > > >Please register your products now at: www.ProCurve.com > > > >manager at 10.10.0.1's password: > > > >ProCurve J9145A 2910al-24G Switch > >Software revision W.14.38 > > > >Copyright (C) 1991-2009 Hewlett-Packard Co. All Rights Reserved. > > > > RESTRICTED RIGHTS LEGEND > > > > Use, duplication, or disclosure by the Government is subject to > >restrictions > > as set forth in subdivision (b) (3) (ii) of the Rights in > >Technical Data and > > Computer Software clause at 52.227-7013. > > > > HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303 > > > > > >Press any key to continue > > > > > > Stack Members > > > > SN MAC Address System Name Device Type Status > >-- ------------- ---------------- --------------------- > >------------------------- > > 0 c09***** 2910-**** ProCurve Switch Commander > >Up 1 c***** 2910-**** ProCurve Switch > >Member Up 2 ************* 2510g **** > >ProCurve 2510G-48 Member Up > > 3 c***** 2910-**** ProCurve Switch Member Up > >4 ************* 2510g **** ProCurve 2510G-48 Member Up > >5 c***** 2910-**** ProCurve Switch Member Up > >6 ************* 2510g **** ProCurve 2510G-48 Member Up > > > >Enter switch number to connect to or : > > > >Does anyone know how to correct the problem, so when I run > >"rancid-run" and having 10.10.0.1:hp:up in my router.db, to > >collect and save the configuration of the member "0" (commander) > > > > > >Thank you in advance ! > > > >Nerses > > > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From heas at shrubbery.net Fri Jan 21 20:36:00 2011 From: heas at shrubbery.net (john heasley) Date: Fri, 21 Jan 2011 20:36:00 +0000 Subject: [rancid] Rancid 2.3.4 issue In-Reply-To: <8645902FA277E04AB0F32BC9413F64D2043EAFC0D2@CHW-MSG-821.chw.edu> References: <8645902FA277E04AB0F32BC9413F64D2043EAFBEE1@CHW-MSG-821.chw.edu> <8645902FA277E04AB0F32BC9413F64D2043EAFBEE4@CHW-MSG-821.chw.edu> <20110118195618.GH11726@shrubbery.net> <8645902FA277E04AB0F32BC9413F64D2043EAFC0D2@CHW-MSG-821.chw.edu> Message-ID: <20110121203600.GH4209@shrubbery.net> Fri, Jan 21, 2011 at 12:07:59PM -0700, Nelson, Leo - Dell: > Hi John, > I have done this and I only find a single instance of Rancid installed. Here is a snippet from the log file when I run rancid-run. I really can't identify the reason why Rancid work on some devices and not others. I have check the router.db file and dns etc. The first device is IOS, second is NxOS. > > Anymore help would be appreciated. > > more EDC.20110121.115832 > starting: Fri Jan 21 11:58:32 MST 2011 > > /storage/rancid/dead.letter... Saved message in /storage/rancid/dead.letter > cvs add: is1-0204-colo3-edc already exists, with version number 1.1 > Added is1-0204-colo3-edc > cvs add: s1-pscchw already exists, with version number 1.1 > Added s1-pscchw > cvs add: s1-sjhmc-edc already exists, with version number 1.89 > Added s1-sjhmc-edc > cvs add: s2-sjhmc-edc already exists, with version number 1.107 > Added s2-sjhmc-edc unrelated, but i think you need to fix these two errors first. first, why is the mail going to dead.letter? are you not able to use sendmail (the program, whether it be postfix, sendmail, or something else) from this machine? second, why is rancid trying to cvs add files that apparently already exist. this is usually because the configure script made an error determining the proper argument for diff(1) on what i presume is a linux box or there are two diffs on the machine with differing option syntax and its finding another due to the PATH that configure constructed for/in rancid.conf. see routers.all for this group. its should look similar to is1-0204-colo3-edc:cisco s1-pscchw:cisco .... > Trying to get all of the configs. > write(spawn_id=1): broken pipe > while executing > "send_user -- "$expect_out(buffer)"" this means that either the rancid script (assuming cisco ios) or the network client program (ssh, telnet, rsh) exited prematurely. given its apprently from send_user, i suspect its the script that exited, but i have not inclination why that might be. telnet/ssh is far more likely to exit prematurely due to the network device closing the connection, etc. you could try setting NOPIPE to YES in rancid.conf. or try strace'ing cron to figure out positively whats exiting and possibly why. > invoked from within > "expect -nobrace -re+ { exp_continue } -re {^[^ > *]*as1-0102-co([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} { send_user -- "$expect_out(buffer)" > } -re {..." > invoked from within > "expect { > -re "\b+" { exp_continue } > -re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)" > } > -re "^\[^\n\r]*$reprom..." > (procedure "run_commands" line 39) > invoked from within > "run_commands $prompt $command" > ("foreach" body line 155) > invoked from within > "foreach router [lrange $argv $i end] { > set router [string tolower $router] > # attempt at platform switching. > set platform "" > send_user ..." > (file "/usr/bin/clogin" line 722) > as1-0102-colo3-edc: missed cmd(s): dir /all slavedisk2:,dir /all sec-slot2:,show diag,dir /all disk1:,dir /al > l sec-nvram:,dir /all disk2:,dir /all sec-bootflash:,show spe version,dir /all slaveslot2:,dir /all disk0:,di > r /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all slavenvram:,dir /all sec-disk2:,dir /all > slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show inventory raw,dir /all slavedisk1:,show modu > le,show controllers,show diagbus,more system:running-config,dir /all slavedisk0:,show debug,dir /all bootflas > h:,dir /all sec-slot0:,dir /all sec-disk1:,write term,show vtp status,dir /all sup-bootflash:,dir /all slot2: > ,dir /all harddisk:,dir /all slot0:,dir /all sup-microcode:,show vlan,dir /all slavebootflash:,show controlle > rs cbus,dir /all slaveslot1:,show vlan-switch,show running-config,show c7200,dir /all slot1: > as1-0102-colo3-edc: End of run not found > ! > write(spawn_id=1): broken pipe > while executing > "send_user -- "$expect_out(buffer)"" > invoked from within > "expect -nobrace -re+ { exp_continue } -re {^[^ > *]*as1-0108-co([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} { send_user -- "$expect_out(buffer)" > } -re {..." > invoked from within > "expect { > -re "\b+" { exp_continue } > -re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)" > } > -re "^\[^\n\r]*$reprom..." > (procedure "run_commands" line 39) > invoked from within > "run_commands $prompt $command" > ("foreach" body line 155) > invoked from within > "foreach router [lrange $argv $i end] { > set router [string tolower $router] > # attempt at platform switching. > set platform "" > send_user ..." > (file "/usr/bin/clogin" line 722) > as1-0108-colo3-edc: missed cmd(s): show module,dir usb1:,dir debug:,show debug,show cores vdc-all,show vtp st > atus,show environment fan,show module xbar,show environment power,show inventory,dir usb2:,show vlan,dir vola > tile:,dir bootflash:,dir slot0:,show processes log vdc-all,dir logflash:,show running-config,show environment > temperature,show boot > as1-0108-colo3-edc: End of run not found > !Env: ^ > > Leo Nelson > Network Design Sr. Advisor > ? > Information Technology > Catholic Healthcare West > ? > Main: 602-407-3570 > leo.nelson at chw.edu > > > -----Original Message----- > From: john heasley [mailto:heas at shrubbery.net] > Sent: Tuesday, January 18, 2011 12:56 PM > To: Nelson, Leo - Dell > Subject: Re: [rancid] Rancid 2.3.4 issue > > Tue, Jan 18, 2011 at 09:49:55AM -0700, Nelson, Leo - Dell: > > More info. If I run rancid independent of the cron it pulls a config down just fine for both devices. > > > > please make sure that you do not have multiple installations of rancid, > esp clogin, on your machine. From pluxton at antracnetworks.com Fri Jan 21 22:08:15 2011 From: pluxton at antracnetworks.com (Patty Luxton) Date: Fri, 21 Jan 2011 14:08:15 -0800 Subject: [rancid] Rancid with sendmail Message-ID: <004b01cbb9b7$b41a0930$1c4e1b90$@antracnetworks.com> Hi, I'm having a small problem with sendmail and rancid. I have one linux box where I have this set up and all is working fine. I'm trying to set up another box for another location, and something is tripping up. Sendmail seems to be working fine - I can launch a sendmail command - /usr/sbin/sendmail -t email.address at blah, and the message sends and receives just fine. I also see this coming through my /var/log/messages, and all the information looks analogous to what is on the linux box that is working. However, when I try to do the rancid-run, there is no email message, and nothing shows up in /var/log/messages, so it's as if sendmail didn't even get called. My control_rancid file was modified to include the path, so instead of sendmail -t, it's /usr/sbin/sendmail -t (I needed the full path on my first implementation). There is no error message in the log files for rancid to indicate that it couldn't find sendmail or anything like that. There is nothing to indicate that my /etc/aliases is incorrect. When I run newaliases, I see it do what it's supposed to do. I know I should probably run postfix or something else, but I've already got it working with sendmail on two other implementations, and not sure why this 3rd one won't work. I feel like it's something simple within rancid that I may have forgotten, since sendmail doesn't even seem to get called - did a diff on control_rancid with my other implementation - no difference. /etc/aliases is: rancid-admin-networking: rancid-networking rancid-networking: my-email-address-here-for-testing Thanks in advance, Patty Patty Luxton President Antrac Nettwork Consulting, Inc pluxton at antracnetworks.com 619.240.6209 -------------- next part -------------- An HTML attachment was scrubbed... URL: From pluxton at antracnetworks.com Fri Jan 21 22:23:12 2011 From: pluxton at antracnetworks.com (Patty Luxton) Date: Fri, 21 Jan 2011 14:23:12 -0800 Subject: [rancid] Rancid with sendmail In-Reply-To: <004b01cbb9b7$b41a0930$1c4e1b90$@antracnetworks.com> References: <004b01cbb9b7$b41a0930$1c4e1b90$@antracnetworks.com> Message-ID: <005601cbb9b9$cadcd6f0$609684d0$@antracnetworks.com> One more thing of interest - changed it back to just sendmail -t in the control_rancid file without the path, and I don't even get an error message "sendmail not found" as I used to get in the logs. So something is not right with control_rancid - permissions and ownership seem to be correct on this and all other files. From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Patty Luxton Sent: Friday, January 21, 2011 2:08 PM To: rancid-discuss at shrubbery.net Subject: [rancid] Rancid with sendmail Hi, I'm having a small problem with sendmail and rancid. I have one linux box where I have this set up and all is working fine. I'm trying to set up another box for another location, and something is tripping up. Sendmail seems to be working fine - I can launch a sendmail command - /usr/sbin/sendmail -t email.address at blah, and the message sends and receives just fine. I also see this coming through my /var/log/messages, and all the information looks analogous to what is on the linux box that is working. However, when I try to do the rancid-run, there is no email message, and nothing shows up in /var/log/messages, so it's as if sendmail didn't even get called. My control_rancid file was modified to include the path, so instead of sendmail -t, it's /usr/sbin/sendmail -t (I needed the full path on my first implementation). There is no error message in the log files for rancid to indicate that it couldn't find sendmail or anything like that. There is nothing to indicate that my /etc/aliases is incorrect. When I run newaliases, I see it do what it's supposed to do. I know I should probably run postfix or something else, but I've already got it working with sendmail on two other implementations, and not sure why this 3rd one won't work. I feel like it's something simple within rancid that I may have forgotten, since sendmail doesn't even seem to get called - did a diff on control_rancid with my other implementation - no difference. /etc/aliases is: rancid-admin-networking: rancid-networking rancid-networking: my-email-address-here-for-testing Thanks in advance, Patty Patty Luxton President Antrac Nettwork Consulting, Inc pluxton at antracnetworks.com 619.240.6209 -------------- next part -------------- An HTML attachment was scrubbed... URL: From axhasan at gmail.com Sun Jan 23 21:58:54 2011 From: axhasan at gmail.com (Asad Hasan) Date: Sun, 23 Jan 2011 16:58:54 -0500 Subject: [rancid] Cisco WLC Script - Unknown Manufacturer Error Message-ID: Hello, I am trying to backup WiSM (4400 version 4.2.207.0) controller configs using rancid scripts (wlogin, ciscowlc and ciscowlc5). I can successfully login to controller using "wlogin wodc-wlc-03" and get config using "ciscowlc -d wodc-wlc-03". I have updated rancid-fe file with: 'cisco-wlc' => 'ciscowlc', 'cisco-wlc5' => 'ciscowlc5', Added to router.db bile: wodc-wlc-03:ciscowlc:up But I am getting an unknown manufacturer error when I run this with rancid-run script. Trying to get all of the configs. unknown router manufacturer for wodc-wlc-03: ciscowlc ===================================== Getting missed routers: round 1. unknown router manufacturer for wodc-wlc-03: ciscowlc ===================================== Getting missed routers: round 2. unknown router manufacturer for wodc-wlc-03: ciscowlc What am I doing wrong? Thanks Asad -------------- next part -------------- An HTML attachment was scrubbed... URL: From axhasan at gmail.com Sun Jan 23 23:49:47 2011 From: axhasan at gmail.com (Asad Hasan) Date: Sun, 23 Jan 2011 18:49:47 -0500 Subject: [rancid] Cisco WLC Script - Unknown Manufacturer Error In-Reply-To: References: Message-ID: This is resolved. I needed to use cisco-wlc instead of ciscowlc as vendor type. Asad On Sun, Jan 23, 2011 at 4:58 PM, Asad Hasan wrote: > Hello, > > I am trying to backup WiSM (4400 version 4.2.207.0) controller configs > using rancid scripts (wlogin, ciscowlc and ciscowlc5). I can successfully > login to controller using "wlogin wodc-wlc-03" and get config using > "ciscowlc -d wodc-wlc-03". > > I have updated rancid-fe file with: > > 'cisco-wlc' => 'ciscowlc', > 'cisco-wlc5' => 'ciscowlc5', > > Added to router.db bile: > > wodc-wlc-03:ciscowlc:up > > But I am getting an unknown manufacturer error when I run this with > rancid-run script. > > Trying to get all of the configs. > unknown router manufacturer for wodc-wlc-03: ciscowlc > ===================================== > Getting missed routers: round 1. > unknown router manufacturer for wodc-wlc-03: ciscowlc > ===================================== > Getting missed routers: round 2. > unknown router manufacturer for wodc-wlc-03: ciscowlc > > What am I doing wrong? > > Thanks > Asad > -------------- next part -------------- An HTML attachment was scrubbed... URL: From imd at acens.com Mon Jan 24 11:41:32 2011 From: imd at acens.com (=?Windows-1252?Q?I=F1aki_Mart=EDnez_D=EDez?=) Date: Mon, 24 Jan 2011 12:41:32 +0100 Subject: [rancid] rancid 2.3.4 sending empty emails "Routers changed to down:" In-Reply-To: <002901cbb40b$d1b8cbe0$752a63a0$@co.uk> Message-ID: An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: acens_mail_g.gif Type: image/gif Size: 5621 bytes Desc: acens_mail_g.gif URL: From networkgeni at gmail.com Mon Jan 24 12:25:14 2011 From: networkgeni at gmail.com (Network Geni) Date: Mon, 24 Jan 2011 17:25:14 +0500 Subject: [rancid] End of Run Not found [New device type] Message-ID: Dear Friends, I have a device which has cisco like command syntax and format. I have tried to copy cisco login/scripts and created it as new device type. however i am getting problem in fetching configuration with it. Its showing following messages in logs ===================================== Getting missed routers: round 4. testrouter: End of run not found Error: TIMEOUT reached On running in Debugg mode i get the below pasted output. Which shows that there is issue with --MORE-- comming and requiring to press SPACE bar. Another thing i noticed is that Cisco running-config Ends with the Keyword "end" where as this device ends with exclimation mark with end like "!end" Can someone tell me how can i fix it??? ----------------------------- expect: does "---MORE---\r" (spawn_id exp6) match regular expression "\u0008+"? no "^[^\n\r *]*router([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no "^[^\n\r]*router([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no "^--More--[\r\n]+"? no "[\n\r]+"? yes expect: set expect_out(0,string) "\r" expect: set expect_out(spawn_id) "exp6" expect: set expect_out(buffer) "---MORE---\r" expect: continuing expect expect: does "" (spawn_id exp6) match regular expression "\u0008+"? no "^[^\n\r *]*router([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no "^[^\n\r]*router([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no "^--More--[\r\n]+"? no "[\n\r]+"? no "[^\r\n]*Press to cont[^\r\n]*"? no "^ *--More--[^\n\r]*"? no "^<-+ More -+>[^\n\r]*"? no expect: timed out Error: TIMEOUT reached write() failed to write anything - will sleep(1) and retry... -------------- next part -------------- An HTML attachment was scrubbed... URL: From imd at acens.com Mon Jan 24 17:28:14 2011 From: imd at acens.com (=?iso-8859-1?Q?I=F1aki_Mart=EDnez_D=EDez?=) Date: Mon, 24 Jan 2011 18:28:14 +0100 Subject: [rancid] rancid 2.3.4 sending empty emails "Routers changed to down:" In-Reply-To: Message-ID: Hi, Since I upgraded to rancid 2.3.4 I receive (not always but very often) this kind of empty emails: "Routers changed to down:" Only that, specially when a run this: rancid-run ?r router group I run this command after each change in a switch so I receive a lot of empty emails. Any tip to fix this ? Thanks ________________________________________ I?aki Mart?nez D?ez Departamento de redes acens Technologies S.L. imd at acens.com Tel?fono: 637 772 156 Fax: 911 418 501 Este mensaje puede contener informaci?n confidencial dirigida exclusivamente a su destinatario. No se permite su copia o distribuci?n sin la autorizaci?n expresa y por anticipado de acens. Si recibi? este mensaje por error, por favor, comun?quelo al emisor y elim?nelo de su ordenador. Gracias. This message may contain confidential information exclusively addressed to its intended recipient. The copy or distribution of this message is not permitted without the prior express consent by acens. If you are not the intended recipient of this message please advise the sender and delete it. Thank you. From Leo.Nelson at chw.edu Mon Jan 24 19:41:44 2011 From: Leo.Nelson at chw.edu (Nelson, Leo - Dell) Date: Mon, 24 Jan 2011 12:41:44 -0700 Subject: [rancid] Rancid 2.3.4 issue In-Reply-To: <20110121203600.GH4209@shrubbery.net> References: <8645902FA277E04AB0F32BC9413F64D2043EAFBEE1@CHW-MSG-821.chw.edu> <8645902FA277E04AB0F32BC9413F64D2043EAFBEE4@CHW-MSG-821.chw.edu> <20110118195618.GH11726@shrubbery.net> <8645902FA277E04AB0F32BC9413F64D2043EAFC0D2@CHW-MSG-821.chw.edu> <20110121203600.GH4209@shrubbery.net> Message-ID: <8645902FA277E04AB0F32BC9413F64D2048A9FA15E@CHW-MSG-821.chw.edu> Ok it appears the problem I was having was partly the tacacs goup rights I had the user assigned to for the IOS devices. For the NXOS devices, I had to comment out commands that seemed to cause an exit on the 5Ks. Those were; "show environmrnt clock" "show cores vdc-all" As for the dead.letter issue, I have reached out to the previous admin. When I use sendmail from the cmd line, while it still tells me it is going to dead.letter I get the message on my pc. I would like to make sure I can utilize the mail system fully, so if youhave any suggestions I appreciate it. FYI I am NOT a linux admin nor do I claim to know what I am doing, but I have tinkered, can write basic scripts, and can read and understand config files so please be kind. :) Leo Nelson Network Design Sr. Advisor ? Information Technology Catholic Healthcare West ? Main: 602-407-3570 leo.nelson at chw.edu -----Original Message----- From: john heasley [mailto:heas at shrubbery.net] Sent: Friday, January 21, 2011 1:36 PM To: Nelson, Leo - Dell Cc: john heasley; rancid-discuss at shrubbery.net Subject: Re: [rancid] Rancid 2.3.4 issue Fri, Jan 21, 2011 at 12:07:59PM -0700, Nelson, Leo - Dell: > Hi John, > I have done this and I only find a single instance of Rancid installed. Here is a snippet from the log file when I run rancid-run. I really can't identify the reason why Rancid work on some devices and not others. I have check the router.db file and dns etc. The first device is IOS, second is NxOS. > > Anymore help would be appreciated. > > more EDC.20110121.115832 > starting: Fri Jan 21 11:58:32 MST 2011 > > /storage/rancid/dead.letter... Saved message in /storage/rancid/dead.letter > cvs add: is1-0204-colo3-edc already exists, with version number 1.1 > Added is1-0204-colo3-edc > cvs add: s1-pscchw already exists, with version number 1.1 > Added s1-pscchw > cvs add: s1-sjhmc-edc already exists, with version number 1.89 > Added s1-sjhmc-edc > cvs add: s2-sjhmc-edc already exists, with version number 1.107 > Added s2-sjhmc-edc unrelated, but i think you need to fix these two errors first. first, why is the mail going to dead.letter? are you not able to use sendmail (the program, whether it be postfix, sendmail, or something else) from this machine? second, why is rancid trying to cvs add files that apparently already exist. this is usually because the configure script made an error determining the proper argument for diff(1) on what i presume is a linux box or there are two diffs on the machine with differing option syntax and its finding another due to the PATH that configure constructed for/in rancid.conf. see routers.all for this group. its should look similar to is1-0204-colo3-edc:cisco s1-pscchw:cisco .... > Trying to get all of the configs. > write(spawn_id=1): broken pipe > while executing > "send_user -- "$expect_out(buffer)"" this means that either the rancid script (assuming cisco ios) or the network client program (ssh, telnet, rsh) exited prematurely. given its apprently from send_user, i suspect its the script that exited, but i have not inclination why that might be. telnet/ssh is far more likely to exit prematurely due to the network device closing the connection, etc. you could try setting NOPIPE to YES in rancid.conf. or try strace'ing cron to figure out positively whats exiting and possibly why. > invoked from within > "expect -nobrace -re+ { exp_continue } -re {^[^ > *]*as1-0102-co([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} { send_user -- "$expect_out(buffer)" > } -re {..." > invoked from within > "expect { > -re "\b+" { exp_continue } > -re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)" > } > -re "^\[^\n\r]*$reprom..." > (procedure "run_commands" line 39) > invoked from within > "run_commands $prompt $command" > ("foreach" body line 155) > invoked from within > "foreach router [lrange $argv $i end] { > set router [string tolower $router] > # attempt at platform switching. > set platform "" > send_user ..." > (file "/usr/bin/clogin" line 722) > as1-0102-colo3-edc: missed cmd(s): dir /all slavedisk2:,dir /all sec-slot2:,show diag,dir /all disk1:,dir /al > l sec-nvram:,dir /all disk2:,dir /all sec-bootflash:,show spe version,dir /all slaveslot2:,dir /all disk0:,di > r /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all slavenvram:,dir /all sec-disk2:,dir /all > slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show inventory raw,dir /all slavedisk1:,show modu > le,show controllers,show diagbus,more system:running-config,dir /all slavedisk0:,show debug,dir /all bootflas > h:,dir /all sec-slot0:,dir /all sec-disk1:,write term,show vtp status,dir /all sup-bootflash:,dir /all slot2: > ,dir /all harddisk:,dir /all slot0:,dir /all sup-microcode:,show vlan,dir /all slavebootflash:,show controlle > rs cbus,dir /all slaveslot1:,show vlan-switch,show running-config,show c7200,dir /all slot1: > as1-0102-colo3-edc: End of run not found > ! > write(spawn_id=1): broken pipe > while executing > "send_user -- "$expect_out(buffer)"" > invoked from within > "expect -nobrace -re+ { exp_continue } -re {^[^ > *]*as1-0108-co([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} { send_user -- "$expect_out(buffer)" > } -re {..." > invoked from within > "expect { > -re "\b+" { exp_continue } > -re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)" > } > -re "^\[^\n\r]*$reprom..." > (procedure "run_commands" line 39) > invoked from within > "run_commands $prompt $command" > ("foreach" body line 155) > invoked from within > "foreach router [lrange $argv $i end] { > set router [string tolower $router] > # attempt at platform switching. > set platform "" > send_user ..." > (file "/usr/bin/clogin" line 722) > as1-0108-colo3-edc: missed cmd(s): show module,dir usb1:,dir debug:,show debug,show cores vdc-all,show vtp st > atus,show environment fan,show module xbar,show environment power,show inventory,dir usb2:,show vlan,dir vola > tile:,dir bootflash:,dir slot0:,show processes log vdc-all,dir logflash:,show running-config,show environment > temperature,show boot > as1-0108-colo3-edc: End of run not found > !Env: ^ > > Leo Nelson > Network Design Sr. Advisor > ? > Information Technology > Catholic Healthcare West > ? > Main: 602-407-3570 > leo.nelson at chw.edu > > > -----Original Message----- > From: john heasley [mailto:heas at shrubbery.net] > Sent: Tuesday, January 18, 2011 12:56 PM > To: Nelson, Leo - Dell > Subject: Re: [rancid] Rancid 2.3.4 issue > > Tue, Jan 18, 2011 at 09:49:55AM -0700, Nelson, Leo - Dell: > > More info. If I run rancid independent of the cron it pulls a config down just fine for both devices. > > > > please make sure that you do not have multiple installations of rancid, > esp clogin, on your machine. From imd at acens.com Tue Jan 25 07:34:06 2011 From: imd at acens.com (=?iso-8859-1?Q?I=F1aki_Mart=EDnez_D=EDez?=) Date: Tue, 25 Jan 2011 08:34:06 +0100 Subject: [rancid] rancid 2.3.4 sending empty emails "Routers changed to down:" [SOLVED] In-Reply-To: <20110124175958.GN2175@shrubbery.net> Message-ID: Hi, Thanks to john heasley this problem is SOLVED!!!!! The problem was that my system Debian the parameters "-u -4" was obsolete and the diff command tells we must use "-U 4". Thanks!!! El 24/01/11 18:59, "john heasley" escribi?: >>>> Since I upgraded to rancid 2.3.4 I receive (not always but very >>>>often) >> >> this kind of empty emails: >> >> >> >> "Routers changed to down:" >>> >> >this is most likely a problem with the configure script choosing the >>wrong >> >options for diff(1). check what it chose in control_rancid. i believe >> >this is fixed in more recent versions. >> >> >> Lines with "diff": >> >> 207: diff -u -4 routers.all routers.all.new > /dev/null 2>&1; RALL=$? >> 211: diff -u -4 routers.down routers.down.new > /dev/null 2>&1; RDOWN=$? >> 215: diff -u -4 routers.up routers.up.new > /dev/null 2>&1; RUP=$? >> 459: cvs -f diff -u -4 -ko | sed -e '/^RCS file: /d' -e '/^--- /d' \ >> 460: -e '/^+++ /d' -e 's/^\([-+ ]\)/\1 /' >$TMP.diff >> >> 462: svn diff | sed -e '/^+++ /d' -e 's/^\([-+ ]\)/\1 /' >$TMP.diff > >see PATH in rancid.conf. does the diff that would be used as a result of >that PATH support options -u and -4? ________________________________________ I?aki Mart?nez D?ez Departamento de redes acens Technologies S.L. imd at acens.com Tel?fono: 637 772 156 Fax: 911 418 501 Este mensaje puede contener informaci?n confidencial dirigida exclusivamente a su destinatario. No se permite su copia o distribuci?n sin la autorizaci?n expresa y por anticipado de acens. Si recibi? este mensaje por error, por favor, comun?quelo al emisor y elim?nelo de su ordenador. Gracias. This message may contain confidential information exclusively addressed to its intended recipient. The copy or distribution of this message is not permitted without the prior express consent by acens. If you are not the intended recipient of this message please advise the sender and delete it. Thank you. From axhasan at gmail.com Tue Jan 25 13:20:16 2011 From: axhasan at gmail.com (Asad Hasan) Date: Tue, 25 Jan 2011 08:20:16 -0500 Subject: [rancid] Backup Cisco ACS 5.x Appliance Config with RANCID Message-ID: Has anyone tried to backup Cisco ACS 5.x appliance config with RANCID. It supports SSH login and accepts following commands: show inventory show application version acs show application status acs show running-config Thanks Asad -------------- next part -------------- An HTML attachment was scrubbed... URL: From Ian.Murphy at populous.com Wed Jan 26 16:48:20 2011 From: Ian.Murphy at populous.com (Ian Murphy) Date: Wed, 26 Jan 2011 10:48:20 -0600 Subject: [rancid] HELP! clogin and rancid work from the CLI but not for rancid Message-ID: <71E4C3C936BF364FAC4E44AD90ECCCD30D0088D97B@US-MAIL.pop.local> I'm running RANCID on Ubuntu 10.10 server and it's collecting configs from every one of my devices and properly committing to CVS... for all but one device. I have a Cisco 2901 that always end with the following error and is still listed as a new router in CVSWEB. Here's the error output. Trying to get all of the configs. losangeles2901-ucrtr-01.pop.local clogin error: Error: TIMEOUT reached losangeles2901-ucrtr-01.pop.local: missed cmd(s): dir /all slavedisk2:,show rsp chassis-info,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr chassis,dir /all sec-nvram:,show diag ch$ losangeles2901-ucrtr-01.pop.local: End of run not found I have done all the trouble shooting as outlined in the FAQ under section 3) General located at http://www.shrubbery.net/rancid/FAQ Every single troubleshooting item works as it should. I have verified that the device's entry in router.db is correct and that I can resolve the hostname. I modified the .cloginrc to add the autoenable directive for my two 2901s. One works, the other does not. Can I have more than one autoenable directive? I've seen it like this in documentation and discussions: add autoenable *{1} but then how are routers that do not get autoenabled get treated? My .cloginrc looks like this: add user * {username} add password * {password} {password} add autoenable denver2901-ucrtr-01 {1} add autoenable losangeles2901-ucrtr-01 {1} Please help! Can anyone tell me where to go next? Ian Murphy System Administrator II POPULOUS 300 Wyandotte | Suite 200 Kansas City, Missouri 64105 | USA Main: +1 816 221 1500 | Fax: +1 816 221 1578 Direct: +1 816 329 4426 ian.murphy at populous.com www.populous.com Populous was named one of Fast Company magazine's most innovative companies in sports. The information contained in this electronic communication, as well as in any attachments, may contain confidential or privileged information and may constitute non-public information, and is intended solely for use by the addressee(s). Any other use, disclosure, dissemination, distribution or copying of this electronic communication is strictly prohibited, may constitute an interference with Populous confidential business relationships and may be unlawful. If you received this communication in error, please notify me immediately and permanently delete the original and any electronic or printed copies of this electronic communication (including any attachments). Populous makes no representation regarding the absence of any virus in any attachment and expressly disclaims any responsibility for any damage suffered from the presence of a virus. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwest at zyedge.com Wed Jan 26 16:53:28 2011 From: rwest at zyedge.com (Ryan West) Date: Wed, 26 Jan 2011 16:53:28 +0000 Subject: [rancid] HELP! clogin and rancid work from the CLI but not for rancid In-Reply-To: <71E4C3C936BF364FAC4E44AD90ECCCD30D0088D97B@US-MAIL.pop.local> References: <71E4C3C936BF364FAC4E44AD90ECCCD30D0088D97B@US-MAIL.pop.local> Message-ID: <5DC4853C6CC3EE4788779E0726E034DD6AED9D@zy-ex1.zyedge.local> What happens when you login as rancid and run 'clogin denver2901-ucrtr-01' ? -ryan From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Ian Murphy Sent: Wednesday, January 26, 2011 11:48 AM To: rancid-discuss at shrubbery.net Subject: [rancid] HELP! clogin and rancid work from the CLI but not for rancid I'm running RANCID on Ubuntu 10.10 server and it's collecting configs from every one of my devices and properly committing to CVS... for all but one device. I have a Cisco 2901 that always end with the following error and is still listed as a new router in CVSWEB. Here's the error output. Trying to get all of the configs. losangeles2901-ucrtr-01.pop.local clogin error: Error: TIMEOUT reached losangeles2901-ucrtr-01.pop.local: missed cmd(s): dir /all slavedisk2:,show rsp chassis-info,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr chassis,dir /all sec-nvram:,show diag ch$ losangeles2901-ucrtr-01.pop.local: End of run not found I have done all the trouble shooting as outlined in the FAQ under section 3) General located at http://www.shrubbery.net/rancid/FAQ Every single troubleshooting item works as it should. I have verified that the device's entry in router.db is correct and that I can resolve the hostname. I modified the .cloginrc to add the autoenable directive for my two 2901s. One works, the other does not. Can I have more than one autoenable directive? I've seen it like this in documentation and discussions: add autoenable *{1} but then how are routers that do not get autoenabled get treated? My .cloginrc looks like this: add user * {username} add password * {password} {password} add autoenable denver2901-ucrtr-01 {1} add autoenable losangeles2901-ucrtr-01 {1} Please help! Can anyone tell me where to go next? Ian Murphy System Administrator II POPULOUS 300 Wyandotte | Suite 200 Kansas City, Missouri 64105 | USA Main: +1 816 221 1500 | Fax: +1 816 221 1578 Direct: +1 816 329 4426 ian.murphy at populous.com www.populous.com Populous was named one of Fast Company magazine's most innovative companies in sports. The information contained in this electronic communication, as well as in any attachments, may contain confidential or privileged information and may constitute non-public information, and is intended solely for use by the addressee(s). Any other use, disclosure, dissemination, distribution or copying of this electronic communication is strictly prohibited, may constitute an interference with Populous confidential business relationships and may be unlawful. If you received this communication in error, please notify me immediately and permanently delete the original and any electronic or printed copies of this electronic communication (including any attachments). Populous makes no representation regarding the absence of any virus in any attachment and expressly disclaims any responsibility for any damage suffered from the presence of a virus. -------------- next part -------------- An HTML attachment was scrubbed... URL: From istong at costar.com Wed Jan 26 16:54:47 2011 From: istong at costar.com (Ian Stong) Date: Wed, 26 Jan 2011 11:54:47 -0500 Subject: [rancid] rancid for Aruba Controller In-Reply-To: <71E4C3C936BF364FAC4E44AD90ECCCD30D0088D97B@US-MAIL.pop.local> References: <71E4C3C936BF364FAC4E44AD90ECCCD30D0088D97B@US-MAIL.pop.local> Message-ID: Has anyone gotten rancid working with an Aruba Controller? If so please provide some insights. Thanks, Ian -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew.brennan+rancid at drexel.edu Wed Jan 26 17:01:20 2011 From: andrew.brennan+rancid at drexel.edu (andrew.brennan+rancid at drexel.edu) Date: Wed, 26 Jan 2011 12:01:20 -0500 (EST) Subject: [rancid] rancid for Aruba Controller In-Reply-To: References: <71E4C3C936BF364FAC4E44AD90ECCCD30D0088D97B@US-MAIL.pop.local> Message-ID: <20110126115939.K1132@dust.noc.drexel.edu> I believe there has been some discussion on the Airheads forum w.r.t. this specific question - including script mods to make it work. I haven't used the posted scripts yet, though, so I'm not 100% certain that it will work properly with AOS3.x, 5.x and/or 6.x commands. andrew. On Wed, 26 Jan 2011, Ian Stong wrote: > Has anyone gotten rancid working with an Aruba Controller? If so please > provide some insights. > > > > > > Thanks, > > > > Ian > > From frnkblk at iname.com Fri Jan 28 05:27:11 2011 From: frnkblk at iname.com (Frank Bulk) Date: Thu, 27 Jan 2011 23:27:11 -0600 Subject: [rancid] rancid for Aruba Controller In-Reply-To: <20110126115939.K1132@dust.noc.drexel.edu> References: <71E4C3C936BF364FAC4E44AD90ECCCD30D0088D97B@US-MAIL.pop.local> <20110126115939.K1132@dust.noc.drexel.edu> Message-ID: <007501cbbeac$03b99f20$0b2cdd60$@iname.com> I got it working -- contact me off-list if you want a copy. Frank -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of andrew.brennan+rancid at drexel.edu Sent: Wednesday, January 26, 2011 11:01 AM To: Ian Stong Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] rancid for Aruba Controller I believe there has been some discussion on the Airheads forum w.r.t. this specific question - including script mods to make it work. I haven't used the posted scripts yet, though, so I'm not 100% certain that it will work properly with AOS3.x, 5.x and/or 6.x commands. andrew. On Wed, 26 Jan 2011, Ian Stong wrote: > Has anyone gotten rancid working with an Aruba Controller? If so please > provide some insights. > > > > > > Thanks, > > > > Ian > > _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From joseph.e.mcdonagh at gmail.com Fri Jan 28 17:39:09 2011 From: joseph.e.mcdonagh at gmail.com (Joe McDonagh) Date: Fri, 28 Jan 2011 12:39:09 -0500 Subject: [rancid] Interesting problem, HP procurve 2800s work fine, 2500s config won't download Message-ID: <4D42FF3D.1040400@gmail.com> hlogin works fine to both these sets of routers, however the config for 2500s never gets downloaded and I get this trace back: Getting missed routers: round 4. write(spawn_id=1): broken pipe while executing "send_user -- "$expect_out(buffer)"" invoked from within "expect -nobrace -re {^[^ *]*x699-25250G-24-PoE-01#} { send_user -- "$expect_out(buffer)" } -re {^[^ ]*x699-25250G-24-PoE-01#.} { send_user --..." invoked from within "expect { -re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)" } -re "^\[^\n\r]*$reprompt." { send_user -- "$expect_out(buffer)" ..." invoked from within "if [ string match "*\;*" "$command" ] { set commands [split $command \;] set num_commands [llength $commands] # the pager can not be turned off on ..." (procedure "run_commands" line 15) invoked from within "run_commands $prompt $command" ("foreach" body line 139) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] send_user "$router\n" # Figure out prompt. # Since autoena..." (file "/usr/lib/rancid/bin/hlogin" line 583) 10.5.30.4: missed cmd(s): show stack,show module,write term 10.5.30.4: End of run not found ; -- Joe McDonagh AIM: YoosingYoonickz IRC: joe-mac on freenode "When the going gets weird, the weird turn pro." From gmccullagh at gmail.com Sun Jan 30 17:02:34 2011 From: gmccullagh at gmail.com (Gavin McCullagh) Date: Sun, 30 Jan 2011 17:02:34 +0000 Subject: [rancid] rancid with Fortigate FG100A Message-ID: <20110130170234.GR13825@gmail.com> Hi, we're just starting to use Rancid and have started off with a Fortigate FG100A firewall. Regrettably, the existing scripts (nlogin, fnrancid) don't quite work with it. I've managed to patch those to get what seems to be a working setup (see below). The prompt is different, the get config command is slightly different and you need to strip out the "System time" from the status or else you get a patch every hour. Would it be of interest to add support to the project? Gavin --- nlogin 2011-01-27 17:19:04.000000000 +0000 +++ fglogin 2011-01-30 15:00:21.000000000 +0000 @@ -482,7 +482,7 @@ set router [string tolower $router] send_user "$router\n" - set prompt {-> } + set prompt " #" # Figure out passwords if { $do_passwd || $do_enapasswd } { @@ -557,7 +557,7 @@ continue } } elseif { $do_script } { - send "set console page 0\r" + #send "set console page 0\r" expect -re $prompt {} source $sfile catch {close}; --- fnrancid 2011-01-30 15:48:57.000000000 +0000 +++ fgrancid 2011-01-30 15:49:48.000000000 +0000 @@ -59,7 +59,7 @@ $file = $opt_f; $host = $ARGV[0]; $found_end = 0; -$timeo = 90; # nlogin timeout in seconds +$timeo = 90; # fglogin timeout in seconds my(@commandtable, %commands, @commands);# command lists my($aclsort) = ("ipsort"); # ACL sorting mode @@ -173,6 +173,7 @@ while () { tr/\015//d; next if /^\s*$/; + next if /^\s*System time: /; last if(/$prompt/); ProcessHistory("","","","$_"); #print STDOUT "$_"; @@ -214,7 +215,7 @@ # Main @commandtable = ( {'get system status' => 'GetSystem'}, - {'get conf' => 'GetConf'} + {'show ' => 'GetConf'} ); # Use an array to preserve the order of the commands and a hash for mapping # commands to the subroutine and track commands that have been completed. @@ -242,13 +243,13 @@ print STDERR "opening file $host\n" if ($debug); print STDOUT "opening file $host\n" if ($log); open(INPUT,"<$host") || die "open failed for $host: $!\n"; } else { - print STDERR "executing nlogin -t $timeo -c\"$cisco_cmds\" $host\n" if ($debug); - print STDOUT "executing nlogin -t $timeo -c\"$cisco_cmds\" $host\n" if ($log); + print STDERR "executing fglogin -t $timeo -c\"$cisco_cmds\" $host\n" if ($debug); + print STDOUT "executing fglogin -t $timeo -c\"$cisco_cmds\" $host\n" if ($log); if (defined($ENV{NOPIPE})) { - system "nlogin -t $timeo -c \"$cisco_cmds\" $host $host.raw 2>&1" || die "nlogin failed for $host: $!\n"; - open(INPUT, "< $host.raw") || die "nlogin failed for $host: $!\n"; + system "fglogin -t $timeo -c \"$cisco_cmds\" $host $host.raw 2>&1" || die "fglogin failed for $host: $!\n"; + open(INPUT, "< $host.raw") || die "fglogin failed for $host: $!\n"; } else { - open(INPUT,"nlogin -t $timeo -c \"$cisco_cmds\" $host ) { tr/\015//d; if (/^Error:/) { - print STDOUT ("$host nlogin error: $_"); - print STDERR ("$host nlogin error: $_") if ($debug); + print STDOUT ("$host fglogin error: $_"); + print STDERR ("$host fglogin error: $_") if ($debug); last; } - while (/>\s*($cmds_regexp)\s*$/) { + while (/#\s*($cmds_regexp)\s*$/) { $cmd = $1; - if (!defined($prompt)) { $prompt = " >\s*"; } + if (!defined($prompt)) { $prompt = " #\s*"; } print STDERR ("HIT COMMAND:$_") if ($debug); if (!defined($commands{$cmd})) { print STDERR "$host: found unexpected command - \"$cmd\"\n"; @@ -307,6 +308,7 @@ } # check for completeness +printf STDERR scalar(%commands) . "\n"; if (scalar(%commands) || !$found_end) { if (scalar(%commands)) { printf(STDOUT "$host: missed cmd(s): %s\n", join(',', keys(%commands))); From diego.ercolani at ssis.sm Mon Jan 31 09:09:59 2011 From: diego.ercolani at ssis.sm (Diego Ercolani) Date: Mon, 31 Jan 2011 10:09:59 +0100 Subject: [rancid] rancid with Fortigate FG100A In-Reply-To: <20110130170234.GR13825@gmail.com> References: <20110130170234.GR13825@gmail.com> Message-ID: <201101311010.00032.diego.ercolani@ssis.sm> Hi. I've already submitted patch to accomplish fortinet. Here it is the relevant post: http://www.shrubbery.net/pipermail/rancid-discuss/2009-June/004005.html if you see in the mailing list there are time to time modifications. Hope this help Diego In data domenica 30 gennaio 2011 18:02:34, Gavin McCullagh ha scritto: > Hi, > > we're just starting to use Rancid and have started off with a Fortigate > FG100A firewall. Regrettably, the existing scripts (nlogin, fnrancid) > don't quite work with it. > > I've managed to patch those to get what seems to be a working setup (see > below). The prompt is different, the get config command is slightly > different and you need to strip out the "System time" from the status or > else you get a patch every hour. > > Would it be of interest to add support to the project? > > Gavin > > > --- nlogin 2011-01-27 17:19:04.000000000 +0000 > +++ fglogin 2011-01-30 15:00:21.000000000 +0000 > @@ -482,7 +482,7 @@ > set router [string tolower $router] > send_user "$router\n" > > - set prompt {-> } > + set prompt " #" > > # Figure out passwords > if { $do_passwd || $do_enapasswd } { > @@ -557,7 +557,7 @@ > continue > } > } elseif { $do_script } { > - send "set console page 0\r" > + #send "set console page 0\r" > expect -re $prompt {} > source $sfile > catch {close}; > > > > --- fnrancid 2011-01-30 15:48:57.000000000 +0000 > +++ fgrancid 2011-01-30 15:49:48.000000000 +0000 > @@ -59,7 +59,7 @@ > $file = $opt_f; > $host = $ARGV[0]; > $found_end = 0; > -$timeo = 90; # nlogin timeout in seconds > +$timeo = 90; # fglogin timeout in seconds > > my(@commandtable, %commands, @commands);# command lists > my($aclsort) = ("ipsort"); # ACL sorting mode > @@ -173,6 +173,7 @@ > while () { > tr/\015//d; > next if /^\s*$/; > + next if /^\s*System time: /; > last if(/$prompt/); > ProcessHistory("","","","$_"); > #print STDOUT "$_"; > @@ -214,7 +215,7 @@ > # Main > @commandtable = ( > {'get system status' => 'GetSystem'}, > - {'get conf' => 'GetConf'} > + {'show ' => 'GetConf'} > ); > # Use an array to preserve the order of the commands and a hash for > mapping # commands to the subroutine and track commands that have been > completed. @@ -242,13 +243,13 @@ > print STDERR "opening file $host\n" if ($debug); > print STDOUT "opening file $host\n" if ($log); > open(INPUT,"<$host") || die "open failed for $host: $!\n"; } else { > - print STDERR "executing nlogin -t $timeo -c\"$cisco_cmds\" $host\n" if > ($debug); - print STDOUT "executing nlogin -t $timeo -c\"$cisco_cmds\" > $host\n" if ($log); + print STDERR "executing fglogin -t $timeo > -c\"$cisco_cmds\" $host\n" if ($debug); + print STDOUT "executing > fglogin -t $timeo -c\"$cisco_cmds\" $host\n" if ($log); if > (defined($ENV{NOPIPE})) { > - system "nlogin -t $timeo -c \"$cisco_cmds\" $host $host.raw > 2>&1" || die "nlogin failed for $host: $!\n"; - open(INPUT, "< $host.raw") > || die "nlogin failed for $host: $!\n"; + system "fglogin -t $timeo -c > \"$cisco_cmds\" $host $host.raw 2>&1" || die "fglogin failed > for $host: $!\n"; + open(INPUT, "< $host.raw") || die "fglogin failed for > $host: $!\n"; } else { > - open(INPUT,"nlogin -t $timeo -c \"$cisco_cmds\" $host die "nlogin failed for $host: $!\n"; + open(INPUT,"fglogin -t $timeo -c > \"$cisco_cmds\" $host $!\n"; } > } > > @@ -276,13 +277,13 @@ > TOP: while() { > tr/\015//d; > if (/^Error:/) { > - print STDOUT ("$host nlogin error: $_"); > - print STDERR ("$host nlogin error: $_") if ($debug); > + print STDOUT ("$host fglogin error: $_"); > + print STDERR ("$host fglogin error: $_") if ($debug); > last; > } > - while (/>\s*($cmds_regexp)\s*$/) { > + while (/#\s*($cmds_regexp)\s*$/) { > $cmd = $1; > - if (!defined($prompt)) { $prompt = " >\s*"; } > + if (!defined($prompt)) { $prompt = " #\s*"; } > print STDERR ("HIT COMMAND:$_") if ($debug); > if (!defined($commands{$cmd})) { > print STDERR "$host: found unexpected command - \"$cmd\"\n"; > @@ -307,6 +308,7 @@ > } > > # check for completeness > +printf STDERR scalar(%commands) . "\n"; > if (scalar(%commands) || !$found_end) { > if (scalar(%commands)) { > printf(STDOUT "$host: missed cmd(s): %s\n", join(',', keys(%commands))); > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From chris at siliconhotrod.com Mon Jan 31 20:28:57 2011 From: chris at siliconhotrod.com (Chris Moody) Date: Mon, 31 Jan 2011 12:28:57 -0800 Subject: [rancid] Need some Help - F5's in RANCID Message-ID: <4D471B89.5020800@siliconhotrod.com> I need a second set of eyes to help me figure out what I'm missing or doing wrong. I have a number of F5 LTM Load-Balancers that I'm trying to back up with RANCID. The trouble I'm running into is that they were backing up fine for a short while, but have recently stopped backing up and continue showing the following in the logs: ===================================== Getting missed routers: round 4. xxxx.yyyy.com: missed cmd(s): ls --full-time --color=never /config/ssl/ssl.crt,ls --full-time --color=never /config/ssl/ssl.key zzzz.yyyy.com: missed cmd(s): ls --full-time --color=never /config/ssl/ssl.crt,ls --full-time --color=never /config/ssl/ssl.key I've been debugging and have verified the following: - I have valid and functioning credentials in the .cloginrc file - I have the devices listed in a 'load-balancer' group's router.db file with the keyword 'f5' and the flag 'up' - I have tested the login via clogin - works fine (I have run clogin with the '-c' command list that f5rancid issues...and everything works fine) - I have run f5rancid in debug mode - works fine (when I run this I see that all the commands run and see a "HIT COMMAND" next to every command issued) I am running version '2.3.2' (I have plans to upgrade to '2.3.6' soon) Anyone run into this kind of behavior with F5's? Any insights, hints, comments or criticisms welcome. -Chris From rwest at zyedge.com Mon Jan 31 21:10:01 2011 From: rwest at zyedge.com (Ryan West) Date: Mon, 31 Jan 2011 21:10:01 +0000 Subject: [rancid] Need some Help - F5's in RANCID In-Reply-To: <4D471B89.5020800@siliconhotrod.com> References: <4D471B89.5020800@siliconhotrod.com> Message-ID: <5DC4853C6CC3EE4788779E0726E034DD6C405D@zy-ex1.zyedge.local> Chris, You're doing anything wrong. You'll probably find that you can 'rancid-run -r ' and have it backup properly. I would recommend getting a good backup of the keys once and then comment out the lines in the command table. -ryan -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Chris Moody Sent: Monday, January 31, 2011 3:29 PM To: rancid-discuss at shrubbery.net Subject: [rancid] Need some Help - F5's in RANCID I need a second set of eyes to help me figure out what I'm missing or doing wrong. I have a number of F5 LTM Load-Balancers that I'm trying to back up with RANCID. The trouble I'm running into is that they were backing up fine for a short while, but have recently stopped backing up and continue showing the following in the logs: ===================================== Getting missed routers: round 4. xxxx.yyyy.com: missed cmd(s): ls --full-time --color=never /config/ssl/ssl.crt,ls --full-time --color=never /config/ssl/ssl.key zzzz.yyyy.com: missed cmd(s): ls --full-time --color=never /config/ssl/ssl.crt,ls --full-time --color=never /config/ssl/ssl.key I've been debugging and have verified the following: - I have valid and functioning credentials in the .cloginrc file - I have the devices listed in a 'load-balancer' group's router.db file with the keyword 'f5' and the flag 'up' - I have tested the login via clogin - works fine (I have run clogin with the '-c' command list that f5rancid issues...and everything works fine) - I have run f5rancid in debug mode - works fine (when I run this I see that all the commands run and see a "HIT COMMAND" next to every command issued) I am running version '2.3.2' (I have plans to upgrade to '2.3.6' soon) Anyone run into this kind of behavior with F5's? Any insights, hints, comments or criticisms welcome. -Chris _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From heas at shrubbery.net Mon Jan 31 21:20:21 2011 From: heas at shrubbery.net (john heasley) Date: Mon, 31 Jan 2011 21:20:21 +0000 Subject: [rancid] Need some Help - F5's in RANCID In-Reply-To: <5DC4853C6CC3EE4788779E0726E034DD6C405D@zy-ex1.zyedge.local> References: <4D471B89.5020800@siliconhotrod.com> <5DC4853C6CC3EE4788779E0726E034DD6C405D@zy-ex1.zyedge.local> Message-ID: <20110131212021.GG19923@shrubbery.net> Mon, Jan 31, 2011 at 09:10:01PM +0000, Ryan West: > Chris, > > You're doing anything wrong. You'll probably find that you can 'rancid-run -r ' and have it backup properly. I would recommend getting a good backup of the keys once and then comment out the lines in the command table. why? what is special about the keys? > -ryan > > -----Original Message----- > From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Chris Moody > Sent: Monday, January 31, 2011 3:29 PM > To: rancid-discuss at shrubbery.net > Subject: [rancid] Need some Help - F5's in RANCID > > I need a second set of eyes to help me figure out what I'm missing or doing wrong. > > I have a number of F5 LTM Load-Balancers that I'm trying to back up with > RANCID. The trouble I'm running into is that they were backing up > fine for a short while, but have recently stopped backing up and continue showing the following in the logs: > ===================================== > Getting missed routers: round 4. > xxxx.yyyy.com: missed cmd(s): ls --full-time --color=never /config/ssl/ssl.crt,ls --full-time --color=never /config/ssl/ssl.key > zzzz.yyyy.com: missed cmd(s): ls --full-time --color=never /config/ssl/ssl.crt,ls --full-time --color=never /config/ssl/ssl.key > > I've been debugging and have verified the following: > - I have valid and functioning credentials in the .cloginrc file > - I have the devices listed in a 'load-balancer' group's router.db file with the keyword 'f5' and the flag 'up' > - I have tested the login via clogin - works fine > (I have run clogin with the '-c' command list that f5rancid issues...and everything works fine) > - I have run f5rancid in debug mode - works fine > (when I run this I see that all the commands run and see a "HIT COMMAND" next to every command issued) > > I am running version '2.3.2' (I have plans to upgrade to '2.3.6' soon) > > Anyone run into this kind of behavior with F5's? > > Any insights, hints, comments or criticisms welcome. > -Chris > > _______________________________________________ > 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 rwest at zyedge.com Mon Jan 31 21:22:42 2011 From: rwest at zyedge.com (Ryan West) Date: Mon, 31 Jan 2011 21:22:42 +0000 Subject: [rancid] Need some Help - F5's in RANCID In-Reply-To: <20110131212021.GG19923@shrubbery.net> References: <4D471B89.5020800@siliconhotrod.com> <5DC4853C6CC3EE4788779E0726E034DD6C405D@zy-ex1.zyedge.local> <20110131212021.GG19923@shrubbery.net> Message-ID: <5DC4853C6CC3EE4788779E0726E034DD6C413E@zy-ex1.zyedge.local> >> >> You're doing anything wrong. You'll probably find that you can 'rancid-run -r ' and have it backup properly. I would recommend getting a good backup of the keys once and then comment out the lines in the command table. > >why? what is special about the keys? > Wish I knew, they execute fine from command line (on F5) and even from a single rancid-run. And as Chris mentioned, it worked for a while and then stopped. A few other users I have spoken to about the problem have removed those lines and not bothered with it anymore. Chris, How many devices are you backing up at a time? Mine is set to PAR_COUNT=12; (rancid.conf) >> ===================================== >> Getting missed routers: round 4. >> xxxx.yyyy.com: missed cmd(s): ls --full-time --color=never /config/ssl/ssl.crt,ls --full-time --color=never /config/ssl/ssl.key >> zzzz.yyyy.com: missed cmd(s): ls --full-time --color=never /config/ssl/ssl.crt,ls --full-time --color=never /config/ssl/ssl.key >> From chris at siliconhotrod.com Mon Jan 31 21:25:44 2011 From: chris at siliconhotrod.com (Chris Moody) Date: Mon, 31 Jan 2011 13:25:44 -0800 Subject: [rancid] Need some Help - F5's in RANCID In-Reply-To: <5DC4853C6CC3EE4788779E0726E034DD6C413E@zy-ex1.zyedge.local> References: <4D471B89.5020800@siliconhotrod.com> <5DC4853C6CC3EE4788779E0726E034DD6C405D@zy-ex1.zyedge.local> <20110131212021.GG19923@shrubbery.net> <5DC4853C6CC3EE4788779E0726E034DD6C413E@zy-ex1.zyedge.local> Message-ID: <4D4728D8.3070405@siliconhotrod.com> Ideally I'd like to grab all my F5's (42) - but I've got them all disabled except for 2 for my debugging. I'll comment out the key listing commands and see how she runs. -Chris On 1/31/11 1:22 PM, Ryan West wrote: >>> You're doing anything wrong. You'll probably find that you can 'rancid-run -r' and have it backup properly. I would recommend getting a good backup of the keys once and then comment out the lines in the command table. >> why? what is special about the keys? >> > Wish I knew, they execute fine from command line (on F5) and even from a single rancid-run. And as Chris mentioned, it worked for a while and then stopped. A few other users I have spoken to about the problem have removed those lines and not bothered with it anymore. > > Chris, > > How many devices are you backing up at a time? Mine is set to PAR_COUNT=12; (rancid.conf) > >>> ===================================== >>> Getting missed routers: round 4. >>> xxxx.yyyy.com: missed cmd(s): ls --full-time --color=never /config/ssl/ssl.crt,ls --full-time --color=never /config/ssl/ssl.key >>> zzzz.yyyy.com: missed cmd(s): ls --full-time --color=never /config/ssl/ssl.crt,ls --full-time --color=never /config/ssl/ssl.key >>> From heas at shrubbery.net Mon Jan 31 21:33:36 2011 From: heas at shrubbery.net (john heasley) Date: Mon, 31 Jan 2011 21:33:36 +0000 Subject: [rancid] Need some Help - F5's in RANCID In-Reply-To: <5DC4853C6CC3EE4788779E0726E034DD6C413E@zy-ex1.zyedge.local> References: <4D471B89.5020800@siliconhotrod.com> <5DC4853C6CC3EE4788779E0726E034DD6C405D@zy-ex1.zyedge.local> <20110131212021.GG19923@shrubbery.net> <5DC4853C6CC3EE4788779E0726E034DD6C413E@zy-ex1.zyedge.local> Message-ID: <20110131213336.GJ19923@shrubbery.net> Mon, Jan 31, 2011 at 09:22:42PM +0000, Ryan West: > >> > >> You're doing anything wrong. You'll probably find that you can 'rancid-run -r ' and have it backup properly. I would recommend getting a good backup of the keys once and then comment out the lines in the command table. > > > >why? what is special about the keys? > > > Wish I knew, they execute fine from command line (on F5) and even from a single rancid-run. And as Chris mentioned, it worked for a while and then stopped. A few other users I have spoken to about the problem have removed those lines and not bothered with it anymore. i'm not doing perl/unix lessosn, but you seem clueful enough to try this on your own. change NOPIPE to YES, then just before the rancid script removes the .raw file, copy it somewhere for safe keeping. this problem is most likely related to cron, and the .raw file may have the clues needed to fix this. > Chris, > > How many devices are you backing up at a time? Mine is set to PAR_COUNT=12; (rancid.conf) thats shouldnt matter. they all run as separate instances. > >> ===================================== > >> Getting missed routers: round 4. > >> xxxx.yyyy.com: missed cmd(s): ls --full-time --color=never /config/ssl/ssl.crt,ls --full-time --color=never /config/ssl/ssl.key > >> zzzz.yyyy.com: missed cmd(s): ls --full-time --color=never /config/ssl/ssl.crt,ls --full-time --color=never /config/ssl/ssl.key > >> From iannai29 at gmail.com Mon Jan 31 22:26:26 2011 From: iannai29 at gmail.com (Ian Narcisi) Date: Mon, 31 Jan 2011 16:26:26 -0600 Subject: [rancid] Help with pointing existing rancid from local svn repo to remote svn Message-ID: Hello, Anyone out there have a clue as to how I point my local rancid configs away from my local svn repo and push them to a remote repo? It sounds simple enough... Thank you advance.... -------------- next part -------------- An HTML attachment was scrubbed... URL: