From ajo at sypartners.com Mon Jun 1 17:46:39 2015 From: ajo at sypartners.com (Alfredo Jo) Date: Mon, 1 Jun 2015 13:46:39 -0400 Subject: [rancid] End of run not found Message-ID: Hello, I am running rancid 3.2. backing up various switches. I have a Dell switch N3048 which used to back up but for some reason it has stopped and the logs now show the following: Trying to get all of the configs. 10.0.0.251: End of run not found ===================================== Getting missed routers: round 1. 10.0.0.251: End of run not found ===================================== Getting missed routers: round 2. 10.0.0.251: End of run not found ===================================== Getting missed routers: round 3. 10.0.0.251: End of run not found ===================================== Getting missed routers: round 4. 10.0.0.251: End of run not found my router.db show: 10.0.0.251;force10;up I am using force10 because its the only dell one in the list of devices my .clogin info is: #Dell N3048 Stack add method 10.0.0.251 ssh add user 10.0.0.251 adminusername add password 10.0.0.251 {userPassword} {enablepassword} As always very grateful for all the help. -------------- next part -------------- An HTML attachment was scrubbed... URL: From alan.mckinnon at gmail.com Mon Jun 1 19:03:17 2015 From: alan.mckinnon at gmail.com (Alan McKinnon) Date: Mon, 01 Jun 2015 21:03:17 +0200 Subject: [rancid] End of run not found In-Reply-To: References: Message-ID: <556CAC75.6030800@gmail.com> On 01/06/2015 19:46, Alfredo Jo wrote: > Hello, > > I am running rancid 3.2. backing up various switches. I have a Dell > switch N3048 which used to back up but for some reason it has stopped > and the logs now show the following: > > Trying to get all of the configs. > > 10.0.0.251 : End of run not found > > ===================================== > > Getting missed routers: round 1. > > 10.0.0.251 : End of run not found > > ===================================== > > Getting missed routers: round 2. > > 10.0.0.251 : End of run not found > > ===================================== > > Getting missed routers: round 3. > > 10.0.0.251 : End of run not found > > ===================================== > > Getting missed routers: round 4. > > 10.0.0.251 : End of run not found > > > > my router.db show: > > 10.0.0.251;force10;up > > I am using force10 because its the only dell one in the list of devices > > my .clogin info is: > > #Dell N3048 Stack > > add method 10.0.0.251 ssh > > add user 10.0.0.251 adminusername > > add password 10.0.0.251 {userPassword} {enablepassword} > > > As always very grateful for all the help. Your posted configs are correct, so we can rule out the usual typos etc. I assume that 10.0.0.251 in your output formatted as a URL is some artifact of mailers and is not present in the actual output? My usual faultfinding at this point: - make sure there is no "#" or ">" characters in the router prompt (I believe recent rancid has improved this area and error handling) - find out if the router or rancid was updated/changed co-incident with when the backups started failing - run f10rancid with the -d option so you can see what is really going on. The clogin command used is often output right at the top so if -d doesn't cut it, run that clogin command to get the entire output including the details f10rancid doesn't echo to stdout -- Alan McKinnon alan.mckinnon at gmail.com From ajo at sypartners.com Mon Jun 1 19:34:19 2015 From: ajo at sypartners.com (Alfredo Jo) Date: Mon, 1 Jun 2015 15:34:19 -0400 Subject: [rancid] End of run not found In-Reply-To: <556CAC75.6030800@gmail.com> References: <556CAC75.6030800@gmail.com> Message-ID: Thank you, i am looking into it as well, might take me a while to figure it out, Here is the output of the f10rancid -d run: PROMPT MATCH: SF-LAN2# HIT COMMAND:SF-LAN2#show version In ShowVersion: SF-LAN2#show version HIT COMMAND:SF-LAN2#show bootvar In ShowBoot: SF-LAN2#show bootvar HIT COMMAND:SF-LAN2#dir flash: In DirSlotN: SF-LAN2#dir flash: HIT COMMAND:SF-LAN2#dir slot0: In DirSlotN: SF-LAN2#dir slot0: HIT COMMAND:SF-LAN2#show chassis In ShowChassis: SF-LAN2#show chassis HIT COMMAND:SF-LAN2#show system In ShowChassis: SF-LAN2#show system HIT COMMAND:SF-LAN2#show inventory In ShowInventory: SF-LAN2#show inventory HIT COMMAND:SF-LAN2#show vlan In ShowVLAN: SF-LAN2#show vlan HIT COMMAND:SF-LAN2#show running In WriteTerm: SF-LAN2#show running 10.0.0.251: End of run not found 10.0.0.251: End of run not found On Mon, Jun 1, 2015 at 3:03 PM, Alan McKinnon wrote: > On 01/06/2015 19:46, Alfredo Jo wrote: > > Hello, > > > > I am running rancid 3.2. backing up various switches. I have a Dell > > switch N3048 which used to back up but for some reason it has stopped > > and the logs now show the following: > > > > Trying to get all of the configs. > > > > 10.0.0.251 : End of run not found > > > > ===================================== > > > > Getting missed routers: round 1. > > > > 10.0.0.251 : End of run not found > > > > ===================================== > > > > Getting missed routers: round 2. > > > > 10.0.0.251 : End of run not found > > > > ===================================== > > > > Getting missed routers: round 3. > > > > 10.0.0.251 : End of run not found > > > > ===================================== > > > > Getting missed routers: round 4. > > > > 10.0.0.251 : End of run not found > > > > > > > > my router.db show: > > > > 10.0.0.251;force10;up > > > > I am using force10 because its the only dell one in the list of devices > > > > my .clogin info is: > > > > #Dell N3048 Stack > > > > add method 10.0.0.251 ssh > > > > add user 10.0.0.251 adminusername > > > > add password 10.0.0.251 {userPassword} {enablepassword} > > > > > > As always very grateful for all the help. > > > Your posted configs are correct, so we can rule out the usual typos etc. > I assume that 10.0.0.251 in your output formatted as a URL is some > artifact of mailers and is not present in the actual output? > > My usual faultfinding at this point: > > - make sure there is no "#" or ">" characters in the router prompt (I > believe recent rancid has improved this area and error handling) > - find out if the router or rancid was updated/changed co-incident with > when the backups started failing > - run f10rancid with the -d option so you can see what is really going > on. The clogin command used is often output right at the top so if -d > doesn't cut it, run that clogin command to get the entire output > including the details f10rancid doesn't echo to stdout > > -- > Alan McKinnon > alan.mckinnon at gmail.com > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.brown at pnnl.gov Mon Jun 1 20:50:31 2015 From: david.brown at pnnl.gov (Brown, David M JR) Date: Mon, 1 Jun 2015 20:50:31 +0000 Subject: [rancid] Rancid 3.2 RHEL6 compatibilities with Socket module. Message-ID: We?ve had several requests to get the updated version of rancid on RHEL 6. However, there seems to be some issues getting that to work with the older version of the Socket module. https://bugzilla.redhat.com/show_bug.cgi?id=1224143 The patch ftp://ftp.shrubbery.net/pub/rancid/rancid-3.2.p3.gz seems to be the supported resolution though it does prevent rancid 3.2 from running on RHEL 6, out of the box. The patch in the bug suggests using the Socket6 module and pulling the relevant names which seems to have a working version. Would it be possible to use Socket6 instead of Socket for inet_pton()? Thanks, - David Brown -------------- next part -------------- An HTML attachment was scrubbed... URL: From rdrake at direcpath.com Tue Jun 2 01:50:56 2015 From: rdrake at direcpath.com (Robert Drake) Date: Mon, 1 Jun 2015 21:50:56 -0400 Subject: [rancid] Rancid 3.2 RHEL6 compatibilities with Socket module. In-Reply-To: References: Message-ID: <556D0C00.7000203@direcpath.com> Not speaking for anyone but myself. FWIW, this is code from spamassassin: my $ip6 = eval { require Socket; Socket->VERSION(1.95); Socket->import( 'inet_pton' ); 1; } || eval { require Socket6; Socket6->import( 'inet_pton' ); 1; }; Normally I would say use NetAddr::IP or another library to avoid the inet_pton call, but I found this note: # ipaddrval(IPaddr) converts and IPv4/v6 address to a string for comparison. # Some may ask why not use Net::IP; performance. We tried and it was horribly # slow. If performance is a major concern I would make minor changes to the existing code (sorry for the formatting): if ($a =~ /:/) { my($l); ($a, $l) = split(/\//, $a); # this split works even if the slash isn't there $l ||= 128; # if !defined is faster than if (/\//) $norder = inet_pton(AF_INET6, $a); return unpack('H128', $norder) . unpack('H', pack('C', $l)); } I don't think this sacrifices readability but it improves the performance (by about 30-40k calls/s). The regex and split string operations are almost always the most expensive aspect and if there were ways to get rid of them then the speed would go way up. Honestly inet_pton is low level but it's the best way to get speed out of IP operations (because it's just wrapping a C function). Drawbacks: RHEL6 (or anything older than 2009 running perl5.10.x) don't have inet_pton. Socket.pm also doesn't support MSWin32 until 2.019, which hasn't been shipped yet with any version of perl (so inet_pton isn't available on any windows systems without workarounds. I have no idea if anyone runs rancid on windows though, or if that would be possible) Suggested workarounds: It's a minor change. I'm not sure if Redhat uses a system like Debian's quilt for maintaining downstream patches, but I would just put together a changeset for the 3 lines and repackage it rather than forcing the change upstream. The reason being that although this is minor, changing it causes documentation headaches (well.. a comment saying why it is the way it is) and doesn't give a sunset clause to it. If it's maintained in downstream then as soon as RHEL6 support is dropped the packages stop being produced and that is the sunset of the changes. Yeah, I've probably spent more time whining in this email than it would take for whoever to fix it, but what if there are other 5.12 features they turn on later and then need to turn off because someone still runs 5.10? Robert On 6/1/2015 4:50 PM, Brown, David M JR wrote: > We?ve had several requests to get the updated version of rancid on > RHEL 6. However, there seems to be some issues getting that to work > with the older version of the Socket module. > > https://bugzilla.redhat.com/show_bug.cgi?id=1224143 > > The patch ftp://ftp.shrubbery.net/pub/rancid/rancid-3.2.p3.gz seems to > be the supported resolution though it does prevent rancid 3.2 from > running on RHEL 6, out of the box. > > The patch in the bug suggests using the Socket6 module and pulling the > relevant names which seems to have a working version. Would it be > possible to use Socket6 instead of Socket for inet_pton()? > > Thanks, > - David Brown > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss -------------- next part -------------- An HTML attachment was scrubbed... URL: From alan.mckinnon at gmail.com Tue Jun 2 07:09:16 2015 From: alan.mckinnon at gmail.com (Alan McKinnon) Date: Tue, 02 Jun 2015 09:09:16 +0200 Subject: [rancid] End of run not found In-Reply-To: References: <556CAC75.6030800@gmail.com> Message-ID: <556D569C.7080505@gmail.com> On 01/06/2015 21:34, Alfredo Jo wrote: > Thank you, i am looking into it as well, might take me a while to figure > it out, Here is the output of the f10rancid -d run: > > > PROMPT MATCH: SF-LAN2# > > HIT COMMAND:SF-LAN2#show version > > In ShowVersion: SF-LAN2#show version > > HIT COMMAND:SF-LAN2#show bootvar > > In ShowBoot: SF-LAN2#show bootvar > > HIT COMMAND:SF-LAN2#dir flash: > > In DirSlotN: SF-LAN2#dir flash: > > HIT COMMAND:SF-LAN2#dir slot0: > > In DirSlotN: SF-LAN2#dir slot0: > > HIT COMMAND:SF-LAN2#show chassis > > In ShowChassis: SF-LAN2#show chassis > > HIT COMMAND:SF-LAN2#show system > > In ShowChassis: SF-LAN2#show system > > HIT COMMAND:SF-LAN2#show inventory > > In ShowInventory: SF-LAN2#show inventory > > HIT COMMAND:SF-LAN2#show vlan > > In ShowVLAN: SF-LAN2#show vlan > > HIT COMMAND:SF-LAN2#show running > > In WriteTerm: SF-LAN2#show running > > 10.0.0.251 : End of run not found > > 10.0.0.251 : End of run not found This shows that the script correctly detected the beginning of the output from "show running", but not the end. The version of rancid I have here is still the 2.3 series, and it shows that command is the last one to be run. The main loop in the script starts with this: TOP: while() { tr/\015//d; if (/\#\s?exit$/) { $clean_run=1; last; } So it's looking for the regex "/\#\s?exit$/) to detect end of output. Perhaps that word exit doesn't appear, or the following EOL is missing? Either way your true problem is around there somewhere. > > > > > On Mon, Jun 1, 2015 at 3:03 PM, Alan McKinnon > wrote: > > On 01/06/2015 19:46, Alfredo Jo wrote: > > Hello, > > > > I am running rancid 3.2. backing up various switches. I have a Dell > > switch N3048 which used to back up but for some reason it has stopped > > and the logs now show the following: > > > > Trying to get all of the configs. > > > > 10.0.0.251 : End of run not found > > > > ===================================== > > > > Getting missed routers: round 1. > > > > 10.0.0.251 : End of run not found > > > > ===================================== > > > > Getting missed routers: round 2. > > > > 10.0.0.251 : End of run not found > > > > ===================================== > > > > Getting missed routers: round 3. > > > > 10.0.0.251 : End of run not found > > > > ===================================== > > > > Getting missed routers: round 4. > > > > 10.0.0.251 : End of run not found > > > > > > > > my router.db show: > > > > 10.0.0.251;force10;up > > > > I am using force10 because its the only dell one in the list of devices > > > > my .clogin info is: > > > > #Dell N3048 Stack > > > > add method 10.0.0.251 ssh > > > > add user 10.0.0.251 adminusername > > > > add password 10.0.0.251 {userPassword} {enablepassword} > > > > > > As always very grateful for all the help. > > > Your posted configs are correct, so we can rule out the usual typos etc. > I assume that 10.0.0.251 in your output formatted as a URL is some > artifact of mailers and is not present in the actual output? > > My usual faultfinding at this point: > > - make sure there is no "#" or ">" characters in the router prompt (I > believe recent rancid has improved this area and error handling) > - find out if the router or rancid was updated/changed co-incident with > when the backups started failing > - run f10rancid with the -d option so you can see what is really going > on. The clogin command used is often output right at the top so if -d > doesn't cut it, run that clogin command to get the entire output > including the details f10rancid doesn't echo to stdout > > -- > Alan McKinnon > alan.mckinnon at gmail.com > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > > -- Alan McKinnon alan.mckinnon at gmail.com From el.es.cr at gmail.com Tue Jun 2 11:21:34 2015 From: el.es.cr at gmail.com (Lukasz Sokol) Date: Tue, 02 Jun 2015 12:21:34 +0100 Subject: [rancid] .cloginrc add method hostname {ssh:-port} for mtlogin/mtrancid? Message-ID: Hi, I dug : http://www.shrubbery.net/pipermail/rancid-discuss/2009-January/003604.html and tried adding that to my rancid (2.3.8 from Debian packages) .cloginrc, but my mtlogin still tries connecting to port 22 : rancid at george:~$ bin/mtlogin hostname hostname spawn ssh -i /var/lib/rancid/.ssh/id_ssa_for_mt_backup -c 3des -x -l user+ct hostname ssh: connect to host hostname port 22: Connection refused can not find channel named "exp6" while executing "expect eof" invoked from within "expect { "Connection refused" { catch {close}; catch {wait}; sleep 0.3 expect eof send_user "\nError: Connection Refused\n"; wait; retu..." (procedure "login" line 71) invoked from within "login $router $ruser $userpswd $passwd $prompt $cmethod $cyphertype $identfile" ("foreach" body line 87) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] send_user "$router\n" # Figure out prompt. set prompt "] >..." (file "bin/mtlogin" line 479) and so same does rancid-run... Can I try to teach mtrancid/mtlogin to spec a non-standard port? Lukasz From James.Ren at sky.uk Mon Jun 1 14:37:31 2015 From: James.Ren at sky.uk (Ren, James) Date: Mon, 1 Jun 2015 14:37:31 +0000 Subject: [rancid] RANCID squash the case Message-ID: Dear RANCID users, I'm currently upgrading our RANCID system from 2.3.6 to 3.1. With regards to your reply on http://www.shrubbery.net/pipermail/rancid-discuss/2014-November/007913.html, Heasley and Hank mentioned "the login scripts squash the case of their command-line host/device argument(s)". Would you please let me know where I can remove this function? I tried to search for the whole directory but was unable to locate the proper place to change it. Many thanks in advance, James Ren Network Engineer 4 Victoria Square | St Albans | Hertfordshire | AL1 3TF T: +44 (0)1727 421038 M:+44 (0)752 3262559 W: www.sky.com [cid:image001.png at 01D09C80.DF5215B0] Information in this email including any attachments may be privileged, confidential and is intended exclusively for the addressee. The views expressed may not be official policy, but the personal views of the originator. If you have received it in error, please notify the sender by return e-mail and delete it from your system. You should not reproduce, distribute, store, retransmit, use or disclose its contents to anyone. Please note we reserve the right to monitor all e-mail communication through our internal and external networks. SKY and the SKY marks are trademarks of Sky plc and Sky International AG and are used under licence. Sky UK Limited (Registration No. 2906991), Sky-In-Home Service Limited (Registration No. 2067075) and Sky Subscribers Services Limited (Registration No. 2340150) are direct or indirect subsidiaries of Sky plc (Registration No. 2247735). All of the companies mentioned in this paragraph are incorporated in England and Wales and share the same registered office at Grant Way, Isleworth, Middlesex TW7 5QD. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 24625 bytes Desc: image001.png URL: From heas at shrubbery.net Tue Jun 2 21:28:17 2015 From: heas at shrubbery.net (heasley) Date: Tue, 2 Jun 2015 21:28:17 +0000 Subject: [rancid] .cloginrc add method hostname {ssh:-port} for mtlogin/mtrancid? In-Reply-To: References: Message-ID: <20150602212817.GG82033@shrubbery.net> Tue, Jun 02, 2015 at 12:21:34PM +0100, Lukasz Sokol: > Hi, > I dug : http://www.shrubbery.net/pipermail/rancid-discuss/2009-January/003604.html > > and tried adding that to my rancid (2.3.8 from Debian packages) .cloginrc, > > but my mtlogin still tries connecting to port 22 : > ... > Can I try to teach mtrancid/mtlogin to spec a non-standard port? install rancid 3.2. also, you probably just want {ssh:port} for ssh. -port is a telnetism. From heas at shrubbery.net Tue Jun 2 23:58:17 2015 From: heas at shrubbery.net (heasley) Date: Tue, 2 Jun 2015 23:58:17 +0000 Subject: [rancid] RANCID squash the case In-Reply-To: References: Message-ID: <20150602235817.GP82033@shrubbery.net> Mon, Jun 01, 2015 at 02:37:31PM +0000, Ren, James: > Dear RANCID users, > > > I'm currently upgrading our RANCID system from 2.3.6 to 3.1. With regards to your reply on http://www.shrubbery.net/pipermail/rancid-discuss/2014-November/007913.html, Heasley and Hank mentioned "the login scripts squash the case of their command-line host/device argument(s)". > > > > Would you please let me know where I can remove this function? I tried to search for the whole directory but was unable to locate the proper place to change it. the case insensitive .cloginrc lookup was committed to 3.2. From el.es.cr at gmail.com Wed Jun 3 07:48:24 2015 From: el.es.cr at gmail.com (Lukasz Sokol) Date: Wed, 03 Jun 2015 08:48:24 +0100 Subject: [rancid] .cloginrc add method hostname {ssh:-port} for mtlogin/mtrancid? In-Reply-To: <20150602212817.GG82033@shrubbery.net> References: <20150602212817.GG82033@shrubbery.net> Message-ID: On 02/06/15 22:28, heasley wrote: > Tue, Jun 02, 2015 at 12:21:34PM +0100, Lukasz Sokol: >> Hi, >> I dug : http://www.shrubbery.net/pipermail/rancid-discuss/2009-January/003604.html >> >> and tried adding that to my rancid (2.3.8 from Debian packages) .cloginrc, >> >> but my mtlogin still tries connecting to port 22 : >> > ... > >> Can I try to teach mtrancid/mtlogin to spec a non-standard port? > > install rancid 3.2. i see, anyone hosting packages for Debian ? :) > > also, you probably just want {ssh:port} for ssh. -port is a telnetism. that isn't working either, as expected: ~$ cat .cloginrc add user * username add password * r4n60mk3y57r0k35 add method * ssh add identity * /var/lib/rancid/.ssh/id_ssa_for_mt_backup add method hostname {ssh:65122} ~$ bin/mtlogin hostname hostname spawn ssh -i /var/lib/rancid/.ssh/id_ssa_for_mt_backup -c 3des -x -l username+ct hostname ssh: connect to host hostname port 22: Connection refused ... Thanks anyway, Lukasz From alan.mckinnon at gmail.com Wed Jun 3 07:56:40 2015 From: alan.mckinnon at gmail.com (Alan McKinnon) Date: Wed, 03 Jun 2015 09:56:40 +0200 Subject: [rancid] .cloginrc add method hostname {ssh:-port} for mtlogin/mtrancid? In-Reply-To: References: <20150602212817.GG82033@shrubbery.net> Message-ID: <556EB338.5010809@gmail.com> On 03/06/2015 09:48, Lukasz Sokol wrote: > On 02/06/15 22:28, heasley wrote: >> Tue, Jun 02, 2015 at 12:21:34PM +0100, Lukasz Sokol: >>> Hi, >>> I dug : http://www.shrubbery.net/pipermail/rancid-discuss/2009-January/003604.html >>> >>> and tried adding that to my rancid (2.3.8 from Debian packages) .cloginrc, >>> >>> but my mtlogin still tries connecting to port 22 : >>> >> ... >> >>> Can I try to teach mtrancid/mtlogin to spec a non-standard port? >> >> install rancid 3.2. > > i see, anyone hosting packages for Debian ? :) > >> >> also, you probably just want {ssh:port} for ssh. -port is a telnetism. > > that isn't working either, as expected: > > ~$ cat .cloginrc > add user * username > add password * r4n60mk3y57r0k35 > add method * ssh > add identity * /var/lib/rancid/.ssh/id_ssa_for_mt_backup These 4 override everything below as * matches everything. The rule is "first match wins", so move them t the end of the file where they will act as a default > add method hostname {ssh:65122} > ~$ bin/mtlogin hostname > hostname > spawn ssh -i /var/lib/rancid/.ssh/id_ssa_for_mt_backup -c 3des -x -l username+ct hostname > ssh: connect to host hostname port 22: Connection refused > ... > > Thanks anyway, > > Lukasz > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > -- Alan McKinnon alan.mckinnon at gmail.com From penguin-kernel at I-love.SAKURA.ne.jp Wed Jun 3 13:16:09 2015 From: penguin-kernel at I-love.SAKURA.ne.jp (Tetsuo Handa) Date: Wed, 3 Jun 2015 22:16:09 +0900 Subject: [rancid] Several suggestions about rancid-3.2.p7 Message-ID: <201506032216.FBB17686.FQHMFOSVJOLOFt@I-love.SAKURA.ne.jp> Hello. I've just installed rancid-3.2p7 on CentOS 6.6. (1) I noticed that while the configure script checks for Socket.pm >= 2.006 , it works for me with below patch. If below patch is correct (I'm not perl user), we don't need to force users to upgrade package to a version which is not included in RHEL 6 / CentOS 6 distribution. ---------------------------------------- patch -p0 << "EOF" --- configure +++ configure @@ -5316,15 +5316,6 @@ PERLV=`basename $PERLV_PATH` -# check Socket.pm version -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Socket.pm version" >&5 -$as_echo_n "checking Socket.pm version... " >&6; } -$PERLV_PATH -e 'use 2.006 Socket qw(inet_pton);' 2>&1 >/dev/null -if test $? -ne 0 ; then - as_fn_error $? "Socket.pm is older than 2.006; upgrade from http://metacpan.org/pod/Socket" "$LINENO" 5 - exit 1 -fi - # Extract the first word of "expect", so it can be a program name with args. set dummy expect; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 --- lib/rancid.pm.in +++ lib/rancid.pm.in @@ -48,7 +48,7 @@ use 5.010; use strict 'vars'; use warnings; -use 2.006 Socket qw(AF_INET AF_INET6 inet_pton); +use Socket qw(AF_INET AF_INET6); require(Exporter); our @ISA = qw(Exporter); @@ -351,6 +351,11 @@ @sorted_lines; } +sub inet_pton { + my($family, $addr) = @_; + return inet_pton($family, $addr); +} + # ipaddrval(IPaddr) converts and IPv4/v6 address to a string for comparison. # Some may ask why not use Net::IP; performance. We tried and it was horribly # slow. EOF ---------------------------------------- (2) I noticed that the shell variable SENDMAIL is defined in bin/control_rancid.in like below # SENDMAIL location SENDMAIL=${SENDMAIL:=sendmail}; but this variable is never used because /usr/sbin/sendmail is hard-coded like below /usr/sbin/sendmail -t $MAILOPTS I think you need to either remove this variable definition or replace like below with variable definition updated. -| /usr/sbin/sendmail -t $MAILOPTS +| $SENDMAIL -t $MAILOPTS (3) I noticed that bin/control_rancid.in forgot to exclude .cvsignore file in the # delete configs from RCS for routers not listed in routers.up. block. As a result, "svn commit" fails and "Deleted .cvsignore" line is printed (very confusing!) when I executed bin/rancid-run , possibly the same problem reported at http://www.shrubbery.net/pipermail/rancid-discuss/2015-May/008414.html . I think you need to replace like below. -for router in `find . \( -name \*.new -prune -o -name CVS -prune -o -name .svn -prune -o -name .gitignore -prune \) -o -type f -print | sed -e 's/^.\///'` +for router in `find . \( -name \*.new -prune -o -name CVS -prune -o -name .svn -prune -o -name .gitignore -prune -o -name .cvsignore -prune \) -o -type f -print | sed -e 's/^.\///'` (4) Usually, PATH environment variable should not contain "." (current directory). Regards. From el.es.cr at gmail.com Wed Jun 3 14:07:39 2015 From: el.es.cr at gmail.com (Lukasz Sokol) Date: Wed, 03 Jun 2015 15:07:39 +0100 Subject: [rancid] .cloginrc add method hostname {ssh:-port} for mtlogin/mtrancid? In-Reply-To: <556EB338.5010809@gmail.com> References: <20150602212817.GG82033@shrubbery.net> <556EB338.5010809@gmail.com> Message-ID: On 03/06/15 08:56, Alan McKinnon wrote: [...] >> ~$ cat .cloginrc >> add user * username >> add password * r4n60mk3y57r0k35 >> add method * ssh >> add identity * /var/lib/rancid/.ssh/id_ssa_for_mt_backup > > These 4 override everything below as * matches everything. The rule is > "first match wins", so move them t the end of the file where they will > act as a default > > Thanks! but as heasley said, rancid 3 onwards :J rancid at george:~$ bin/mtlogin hostname hostname Error: unknown connection method: ssh:65122 will get there, eventually :) > >> add method hostname {ssh:65122} >> ~$ bin/mtlogin hostname >> hostname >> spawn ssh -i /var/lib/rancid/.ssh/id_ssa_for_mt_backup -c 3des -x -l username+ct hostname >> ssh: connect to host hostname port 22: Connection refused >> ... >> >> Thanks anyway, >> >> Lukasz > Lukasz From heas at shrubbery.net Wed Jun 3 15:08:09 2015 From: heas at shrubbery.net (heasley) Date: Wed, 3 Jun 2015 15:08:09 +0000 Subject: [rancid] .cloginrc add method hostname {ssh:-port} for mtlogin/mtrancid? In-Reply-To: <20150603150619.5A2262C0A63@roome.shrubbery.net> Message-ID: <20150603150809.GB34344@shrubbery.net> Wed, Jun 03, 2015 at 03:07:39PM +0100, Lukasz Sokol: > rancid at george:~$ bin/mtlogin hostname > hostname > > Error: unknown connection method: ssh:65122 > > will get there, eventually :) grumble. it needs to match the port below; i think this change is the missing bit. sorry Index: bin/mtlogin.in =================================================================== --- bin/mtlogin.in (revision 3124) +++ bin/mtlogin.in (working copy) @@ -277,7 +277,7 @@ send_user "\nError: telnet failed: $reason\n" return 1 } - } elseif ![string compare $prog "ssh"] { + } elseif [string match "ssh*" $prog] { # ssh to the router & try to login with or without an identfile. regexp {ssh(:([^[:space:]]+))*} $prog methcmd suffix port set cmd $sshcmd From el.es.cr at gmail.com Wed Jun 3 15:42:09 2015 From: el.es.cr at gmail.com (Lukasz Sokol) Date: Wed, 03 Jun 2015 16:42:09 +0100 Subject: [rancid] .cloginrc add method hostname {ssh:-port} for mtlogin/mtrancid? In-Reply-To: <20150603150809.GB34344@shrubbery.net> References: <20150603150809.GB34344@shrubbery.net> Message-ID: <556F2051.8030604@gmail.com> On 03/06/15 16:08, heasley wrote: > Wed, Jun 03, 2015 at 03:07:39PM +0100, Lukasz Sokol: >> rancid at george:~$ bin/mtlogin hostname >> hostname >> >> Error: unknown connection method: ssh:65122 >> >> will get there, eventually :) > > grumble. it needs to match the port below; i think this change is the > missing bit. sorry > > Index: bin/mtlogin.in > =================================================================== > --- bin/mtlogin.in (revision 3124) > +++ bin/mtlogin.in (working copy) > @@ -277,7 +277,7 @@ > send_user "\nError: telnet failed: $reason\n" > return 1 > } > - } elseif ![string compare $prog "ssh"] { > + } elseif [string match "ssh*" $prog] { > # ssh to the router & try to login with or without an identfile. > regexp {ssh(:([^[:space:]]+))*} $prog methcmd suffix port > set cmd $sshcmd > > I found the relevant line next to the previous backport, but this change causes all ssh contacts to fail even the 'up' test. what is wrong with compare ? lukasz From heas at shrubbery.net Wed Jun 3 16:06:44 2015 From: heas at shrubbery.net (heasley) Date: Wed, 3 Jun 2015 16:06:44 +0000 Subject: [rancid] .cloginrc add method hostname {ssh:-port} for mtlogin/mtrancid? In-Reply-To: <556F2051.8030604@gmail.com> References: <20150603150809.GB34344@shrubbery.net> <556F2051.8030604@gmail.com> Message-ID: <20150603160643.GA35576@shrubbery.net> Wed, Jun 03, 2015 at 04:42:09PM +0100, Lukasz Sokol: > I found the relevant line next to the previous backport, > but this change causes all ssh contacts to fail even the 'up' test. What do you mean by 'up test'? show us actual error transcripts. If I remove the '+ct' bit from the username, I can connect and pass authentication to a cisco. > what is wrong with compare ? match allows the glob; ssh* -> ssh, ssh:nnn From el.es.cr at gmail.com Wed Jun 3 16:04:17 2015 From: el.es.cr at gmail.com (Lukasz Sokol) Date: Wed, 03 Jun 2015 17:04:17 +0100 Subject: [rancid] .cloginrc add method hostname {ssh:-port} for mtlogin/mtrancid? In-Reply-To: <556F2051.8030604@gmail.com> References: <20150603150809.GB34344@shrubbery.net> <556F2051.8030604@gmail.com> Message-ID: On 03/06/15 16:42, Lukasz Sokol wrote: > On 03/06/15 16:08, heasley wrote: >> Wed, Jun 03, 2015 at 03:07:39PM +0100, Lukasz Sokol: >>> rancid at george:~$ bin/mtlogin hostname >>> hostname >>> >>> Error: unknown connection method: ssh:65122 >>> >>> will get there, eventually :) >> >> grumble. it needs to match the port below; i think this change is the >> missing bit. sorry >> >> Index: bin/mtlogin.in >> =================================================================== >> --- bin/mtlogin.in (revision 3124) >> +++ bin/mtlogin.in (working copy) >> @@ -277,7 +277,7 @@ >> send_user "\nError: telnet failed: $reason\n" >> return 1 >> } >> - } elseif ![string compare $prog "ssh"] { >> + } elseif [string match "ssh*" $prog] { >> # ssh to the router & try to login with or without an identfile. >> regexp {ssh(:([^[:space:]]+))*} $prog methcmd suffix port >> set cmd $sshcmd >> >> > I found the relevant line next to the previous backport, > but this change causes all ssh contacts to fail even the 'up' test. > > what is wrong with compare ? > > lukasz would this mean that the default ssh method would need to be {ssh:22} with this change? so that the one with {ssh:65122} will be an exception ? or might the order of 'regexp {...} methcmd suffix port' matter then? sorry for stabbing in the dark :) lukasz From el.es.cr at gmail.com Wed Jun 3 16:15:18 2015 From: el.es.cr at gmail.com (Lukasz Sokol) Date: Wed, 03 Jun 2015 17:15:18 +0100 Subject: [rancid] .cloginrc add method hostname {ssh:-port} for mtlogin/mtrancid? In-Reply-To: <20150603160643.GA35576@shrubbery.net> References: <20150603150809.GB34344@shrubbery.net> <556F2051.8030604@gmail.com> <20150603160643.GA35576@shrubbery.net> Message-ID: <556F2816.3060102@gmail.com> On 03/06/15 17:06, heasley wrote: > Wed, Jun 03, 2015 at 04:42:09PM +0100, Lukasz Sokol: >> I found the relevant line next to the previous backport, but this >> change causes all ssh contacts to fail even the 'up' test. > > What do you mean by 'up test'? show us actual error transcripts. If > I remove the '+ct' bit from the username, I can connect and pass > authentication to a cisco. > With the patch, after rancid-run I get an email that the run was unsuccessful. >> what is wrong with compare ? > > match allows the glob; ssh* -> ssh, ssh:nnn > mtlogin -d to a host that worked before the patch : rancid at george:~$ bin/mtlogin -d workinghost workinghost Gate keeper glob pattern for '(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?' is ''. Not usable, disabling the performance booster. Gate keeper glob pattern for 'HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?' is 'HOST IDENTIFICATION HAS CHANGED* (yes/no)\?'. Activating booster. Gate keeper glob pattern for 'HOST IDENTIFICATION HAS CHANGED[^ ]+' is 'HOST IDENTIFICATION HAS CHANGED*'. Activating booster. Gate keeper glob pattern for 'Offending key for .* \(yes/no\)\?' is 'Offending key for * (yes/no)\?'. Activating booster. Gate keeper glob pattern for 'Login:' is 'Login:'. Activating booster. Gate keeper glob pattern for '[Pp]assword:' is '?assword:'. Activating booster. Gate keeper glob pattern for '^Confirm seeing above note' is 'Confirm seeing above note'. Activating booster. Gate keeper glob pattern for '] > ' is '] > '. Activating booster. expect: does "" (spawn_id exp0) match glob pattern "Connection refused"? no "Unknown host\r\n"? no "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes re=no "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no "Login:"? Gate "Login:"? gate=no "[Pp]assword:"? Gate "?assword:"? gate=no "^Confirm seeing above note"? Gate "Confirm seeing above note"? gate=no "Password incorrect"? no "] > "? Gate "] > "? gate=no "denied"? no "\r\n"? no # it appears stuck so # I pressed ^D here expect: read eof expect: set expect_out(spawn_id) "exp0" expect: set expect_out(buffer) "" send: spawn id exp0 not open while executing "send_user "\nError: Couldn't login\n"" invoked from within "expect { "Connection refused" { catch {close}; catch {wait}; sleep 0.3 expect eof send_user "\nError: Connection Refused\n"; wait; retu..." (procedure "login" line 72) invoked from within "login $router $ruser $userpswd $passwd $prompt $cmethod $cyphertype $identfile" ("foreach" body line 87) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] send_user "$router\n" # Figure out prompt. set prompt "] >..." (file "bin/mtlogin" line 480) Hope this helps Lukasz ( I'll test more tomorrow, GMT/BST timezone) From heas at shrubbery.net Wed Jun 3 16:36:21 2015 From: heas at shrubbery.net (heasley) Date: Wed, 3 Jun 2015 16:36:21 +0000 Subject: [rancid] .cloginrc add method hostname {ssh:-port} for mtlogin/mtrancid? In-Reply-To: <556F2816.3060102@gmail.com> References: <20150603150809.GB34344@shrubbery.net> <556F2051.8030604@gmail.com> <20150603160643.GA35576@shrubbery.net> <556F2816.3060102@gmail.com> Message-ID: <20150603163621.GD35576@shrubbery.net> Wed, Jun 03, 2015 at 05:15:18PM +0100, Lukasz Sokol: > On 03/06/15 17:06, heasley wrote: > > Wed, Jun 03, 2015 at 04:42:09PM +0100, Lukasz Sokol: > >> I found the relevant line next to the previous backport, but this > >> change causes all ssh contacts to fail even the 'up' test. > > > > What do you mean by 'up test'? show us actual error transcripts. If > > I remove the '+ct' bit from the username, I can connect and pass > > authentication to a cisco. > > > > With the patch, after rancid-run I get an email that the run was unsuccessful. > > >> what is wrong with compare ? > > > > match allows the glob; ssh* -> ssh, ssh:nnn > > > > mtlogin -d to a host that worked before the patch : > > rancid at george:~$ bin/mtlogin -d workinghost > workinghost seems that you truncated the output here; the spawn, etc are missing. we'd need to see the output leading up to this. > Gate keeper glob pattern for '(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?' is ''. Not usable, disabling the performance booster. > Gate keeper glob pattern for 'HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?' is 'HOST IDENTIFICATION HAS CHANGED* (yes/no)\?'. Activating booster. > Gate keeper glob pattern for 'HOST IDENTIFICATION HAS CHANGED[^ > ]+' is 'HOST IDENTIFICATION HAS CHANGED*'. Activating booster. > Gate keeper glob pattern for 'Offending key for .* \(yes/no\)\?' is 'Offending key for * (yes/no)\?'. Activating booster. > Gate keeper glob pattern for 'Login:' is 'Login:'. Activating booster. > Gate keeper glob pattern for '[Pp]assword:' is '?assword:'. Activating booster. > Gate keeper glob pattern for '^Confirm seeing above note' is 'Confirm seeing above note'. Activating booster. > Gate keeper glob pattern for '] > ' is '] > '. Activating booster. > > expect: does "" (spawn_id exp0) match glob pattern "Connection refused"? no > "Unknown host\r\n"? no > "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes re=no > "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no > "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no > "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no > "Login:"? Gate "Login:"? gate=no > "[Pp]assword:"? Gate "?assword:"? gate=no > "^Confirm seeing above note"? Gate "Confirm seeing above note"? gate=no > "Password incorrect"? no > "] > "? Gate "] > "? gate=no > "denied"? no > "\r\n"? no > > # it appears stuck so > # I pressed ^D here > > expect: read eof > expect: set expect_out(spawn_id) "exp0" > expect: set expect_out(buffer) "" > send: spawn id exp0 not open > while executing > "send_user "\nError: Couldn't login\n"" > invoked from within > "expect { > "Connection refused" { > catch {close}; catch {wait}; > sleep 0.3 > expect eof > send_user "\nError: Connection Refused\n"; wait; retu..." > (procedure "login" line 72) > invoked from within > "login $router $ruser $userpswd $passwd $prompt $cmethod $cyphertype $identfile" > ("foreach" body line 87) > invoked from within > "foreach router [lrange $argv $i end] { > set router [string tolower $router] > send_user "$router\n" > > # Figure out prompt. > set prompt "] >..." > (file "bin/mtlogin" line 480) > > > Hope this helps > Lukasz > > ( I'll test more tomorrow, GMT/BST timezone) From mnewton at pofp.com Wed Jun 3 16:42:25 2015 From: mnewton at pofp.com (Michael Newton) Date: Wed, 3 Jun 2015 16:42:25 +0000 Subject: [rancid] .cloginrc add method hostname {ssh:-port} for mtlogin/mtrancid? In-Reply-To: References: <20150603150809.GB34344@shrubbery.net> <556F2051.8030604@gmail.com> Message-ID: <6F67E414-F870-423C-A50F-67938666F127@pofp.com> If you?re looking to connect to a custom port number, this is what we do. Not sure if you can use it or not, but thought it might help someone. /var/rancid/foo/router.db: host.example.com:2222;hp;up;HP switch 22 host.example.com:3222;aruba;up;Aruba switch 32 /var/rancid/.cloginrc: add sshcmd * {/usr/local/bin/sshport} /usr/local/bin/sshport: #!/bin/sh #host is the last argument passed FULLHOST=${!#} #check it for the colon if [ -z "${FULLHOST##*:*}" ] then #stuff left of colon HOST=${FULLHOST%:*} #stuff right of colon PORT=${FULLHOST#*:} else HOST=$FULLHOST PORT=22 fi #now remove the original host from the arguments list #??? magic! ARGS=( "$@" ) unset ARGS[${#ARGS[@]}-1] ARGS=${ARGS[@]} /usr/bin/ssh -p $PORT $ARGS $HOST -- Michael Newton Director, Product Development Point of Presence Technologies From: Rancid-discuss on behalf of Lukasz Sokol Date: Wednesday, June 3, 2015 at 9:04 AM To: "rancid-discuss at shrubbery.net" Subject: Re: [rancid] .cloginrc add method hostname {ssh:-port} for mtlogin/mtrancid? On 03/06/15 16:42, Lukasz Sokol wrote: On 03/06/15 16:08, heasley wrote: Wed, Jun 03, 2015 at 03:07:39PM +0100, Lukasz Sokol: rancid at george:~$ bin/mtlogin hostname hostname Error: unknown connection method: ssh:65122 will get there, eventually :) grumble. it needs to match the port below; i think this change is the missing bit. sorry Index: bin/mtlogin.in =================================================================== --- bin/mtlogin.in (revision 3124) +++ bin/mtlogin.in (working copy) @@ -277,7 +277,7 @@ send_user "\nError: telnet failed: $reason\n" return 1 } - } elseif ![string compare $prog "ssh"] { + } elseif [string match "ssh*" $prog] { # ssh to the router & try to login with or without an identfile. regexp {ssh(:([^[:space:]]+))*} $prog methcmd suffix port set cmd $sshcmd I found the relevant line next to the previous backport, but this change causes all ssh contacts to fail even the 'up' test. what is wrong with compare ? lukasz would this mean that the default ssh method would need to be {ssh:22} with this change? so that the one with {ssh:65122} will be an exception ? or might the order of 'regexp {...} methcmd suffix port' matter then? sorry for stabbing in the dark :) lukasz _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo/rancid-discuss -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 5966 bytes Desc: not available URL: From heas at shrubbery.net Wed Jun 3 18:30:18 2015 From: heas at shrubbery.net (heasley) Date: Wed, 3 Jun 2015 18:30:18 +0000 Subject: [rancid] .cloginrc add method hostname {ssh:-port} for mtlogin/mtrancid? In-Reply-To: <6F67E414-F870-423C-A50F-67938666F127@pofp.com> References: <20150603150809.GB34344@shrubbery.net> <556F2051.8030604@gmail.com> <6F67E414-F870-423C-A50F-67938666F127@pofp.com> Message-ID: <20150603183018.GI35576@shrubbery.net> Wed, Jun 03, 2015 at 04:42:25PM +0000, Michael Newton: > If you?re looking to connect to a custom port number, this is what we do. Not sure if you can use it or not, but thought it might help someone. > > /var/rancid/foo/router.db: > host.example.com:2222;hp;up;HP switch 22 > > host.example.com:3222;aruba;up;Aruba switch 32 indeed, if your client supports that. but the port will appear in the RCS filename, if i am not mistaken. Lukasz, I'd still like to know why the patch isnt working for you. I suspect that your issue is unrelated. From mnewton at pofp.com Wed Jun 3 18:34:53 2015 From: mnewton at pofp.com (Michael Newton) Date: Wed, 3 Jun 2015 18:34:53 +0000 Subject: [rancid] .cloginrc add method hostname {ssh:-port} for mtlogin/mtrancid? In-Reply-To: <20150603183018.GI35576@shrubbery.net> References: <20150603150809.GB34344@shrubbery.net> <556F2051.8030604@gmail.com> <6F67E414-F870-423C-A50F-67938666F127@pofp.com> <20150603183018.GI35576@shrubbery.net> Message-ID: Yes it does; we are pulling configs from remote client sites via NAT, not local machines, so we want the port number in the file name anyway. -- Michael Newton Director, Product Development Point of Presence Technologies From: heasley Date: Wednesday, June 3, 2015 at 11:30 AM To: Michael Newton Cc: Lukasz Sokol, "rancid-discuss at shrubbery.net" Subject: Re: [rancid] .cloginrc add method hostname {ssh:-port} for mtlogin/mtrancid? Wed, Jun 03, 2015 at 04:42:25PM +0000, Michael Newton: If you?re looking to connect to a custom port number, this is what we do. Not sure if you can use it or not, but thought it might help someone. /var/rancid/foo/router.db: host.example.com:2222;hp;up;HP switch 22 host.example.com:3222;aruba;up;Aruba switch 32 indeed, if your client supports that. but the port will appear in the RCS filename, if i am not mistaken. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 5966 bytes Desc: not available URL: From ajo at sypartners.com Wed Jun 3 20:21:48 2015 From: ajo at sypartners.com (Alfredo Jo) Date: Wed, 3 Jun 2015 16:21:48 -0400 Subject: [rancid] No such file or directory at /usr... Message-ID: Hello, I have a Dell switch N3048 which used to back up but for some reason it has stopped and the logs now show the following: Trying to get all of the configs. Could not open /usr/local/rancid/etc/rancid.types.conf: No such file or directory at /usr/local/rancid/bin/rancid-fe line 61. 10.0.0.251: missed cmd(s): all commands 10.0.0.251: End of run not found ! Could not open /usr/local/rancid/etc/rancid.types.conf: No such file or directory at /usr/local/rancid/bin/rancid-fe line 61. ===================================== Getting missed routers: round 1. Could not open /usr/local/rancid/etc/rancid.types.conf: No such file or directory at /usr/local/rancid/bin/rancid-fe line 61. Could not open /usr/local/rancid/etc/rancid.types.conf: No such file or directory at /usr/local/rancid/bin/rancid-fe line 61. 10.0.0.251: missed cmd(s): all commands 10.0.0.251: End of run not found my router.db show: 10.0.0.251;force10;up I am using force10 because its the only dell one in the list of devices my .clogin info is: #Dell N3048 Stack add method 10.0.0.251 ssh add user 10.0.0.251 adminusername add password 10.0.0.251 {userPassword} {enablepassword} As always very grateful for all the help. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajo at sypartners.com Wed Jun 3 20:28:31 2015 From: ajo at sypartners.com (Alfredo Jo) Date: Wed, 3 Jun 2015 16:28:31 -0400 Subject: [rancid] rancid and Cisco WLC Message-ID: I am trying to backup 2 Cisco WLC with rancid 3.2. I can see the file under /usr/local/rancid/var/networking/configs but when but nothing shows when I open it. Logs don't show anything, I also tried ciscowlc4 and 5. my router db. 10.0.0.4;ciscowlc;up 172.16.1.4;ciscowlc;up clogin info: #WLC SF add methos 10.0.0.4 ssh add noenable 10.0.0.4 {01} add user 10.0.0.4 adminusername add password 10.0.0.4 {password} {password} Thank you for all the help -------------- next part -------------- An HTML attachment was scrubbed... URL: From antonio.quesada at usan.com Wed Jun 3 21:03:30 2015 From: antonio.quesada at usan.com (Antonio Quesada) Date: Wed, 3 Jun 2015 21:03:30 +0000 Subject: [rancid] rancid and Cisco WLC In-Reply-To: References: Message-ID: <24DA785F724DBB40B9655CFA49DE7828874692EA@NOR2K8EXCH1.usanad.com> When you say: Log?s don?t show anything, You mean nothing at all? Or nothing wrong. Also, the .cloginrc you included, did you type it? Or is it a copy/paste? If the latter, I think it should be method, not methos. Thanks, Antonio Quesada From: Rancid-discuss [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Alfredo Jo Sent: Wednesday, June 03, 2015 16:29 To: rancid-discuss at shrubbery.net Subject: [rancid] rancid and Cisco WLC I am trying to backup 2 Cisco WLC with rancid 3.2. I can see the file under /usr/local/rancid/var/networking/configs but when but nothing shows when I open it. Logs don't show anything, I also tried ciscowlc4 and 5. my router db. 10.0.0.4;ciscowlc;up 172.16.1.4;ciscowlc;up clogin info: #WLC SF add methos 10.0.0.4 ssh add noenable 10.0.0.4 {01} add user 10.0.0.4 adminusername add password 10.0.0.4 {password} {password} Thank you for all the help This communication, and any attachments, is intended solely for the use of the individual or entity to which it is addressed and contains information that is proprietary, privileged and confidential. If you are not the intended recipient or the person responsible for delivering this communication to the intended recipient, you are prohibited from retaining, using, disseminating, forwarding, printing or copying this communication. If you have received this communication in error, please immediately notify the sender via return e-mail or telephone and delete the original message. -------------- next part -------------- An HTML attachment was scrubbed... URL: From el.es.cr at gmail.com Thu Jun 4 09:24:10 2015 From: el.es.cr at gmail.com (Lukasz Sokol) Date: Thu, 04 Jun 2015 10:24:10 +0100 Subject: [rancid] .cloginrc add method hostname {ssh:-port} for mtlogin/mtrancid? In-Reply-To: <20150603183018.GI35576@shrubbery.net> References: <20150603150809.GB34344@shrubbery.net> <556F2051.8030604@gmail.com> <6F67E414-F870-423C-A50F-67938666F127@pofp.com> <20150603183018.GI35576@shrubbery.net> Message-ID: <5570193A.8060708@gmail.com> On 03/06/15 19:30, heasley wrote: > Wed, Jun 03, 2015 at 04:42:25PM +0000, Michael Newton: >> If you?re looking to connect to a custom port number, this is what we do. Not sure if you can use it or not, but thought it might help someone. >> >> /var/rancid/foo/router.db: >> host.example.com:2222;hp;up;HP switch 22 >> >> host.example.com:3222;aruba;up;Aruba switch 32 > > indeed, if your client supports that. but the port will appear in the > RCS filename, if i am not mistaken. For this reason I'd rather have it working the 'right way', unless I have my script method explicitly call that device on that port ... > > Lukasz, I'd still like to know why the patch isnt working for you. I > suspect that your issue is unrelated. > . > Yeah sorry I will send reply to previous message shortly. Lukasz From el.es.cr at gmail.com Thu Jun 4 09:42:01 2015 From: el.es.cr at gmail.com (Lukasz Sokol) Date: Thu, 04 Jun 2015 10:42:01 +0100 Subject: [rancid] .cloginrc add method hostname {ssh:-port} for mtlogin/mtrancid? In-Reply-To: <20150603163621.GD35576@shrubbery.net> References: <20150603150809.GB34344@shrubbery.net> <556F2051.8030604@gmail.com> <20150603160643.GA35576@shrubbery.net> <556F2816.3060102@gmail.com> <20150603163621.GD35576@shrubbery.net> Message-ID: <55701D69.50208@gmail.com> Hi, On 03/06/15 17:36, heasley wrote: > > seems that you truncated the output here; the spawn, etc are missing. we'd > need to see the output leading up to this. > No I did not - it just did not print it there. here are 2 runs : one on the host that used to work (workinghost) and one on the host with shifted port (shiftedhost): (shiftedhost has the method {ssh:65122} in .cloginrc ) ~$ bin/mtlogin workinghost workinghost (here it just hung, printed NOTHING, with -d the output is exactly as I pasted last time, no spawn line...) ~bin/mtlogin -d shiftedhost shiftedhost spawn ssh -i /var/lib/rancid/.ssh/id_ssa_for_mt_backup -c 3des -x -l username+ct shiftedhost # is it me or it still does not add '-p 65122' here? parent: waiting for sync byte parent: telling child to go ahead parent: now unsynchronized from child spawn: returns {6388} Gate keeper glob pattern for '(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?' is ''. Not usable, disabling the performance booster. Gate keeper glob pattern for 'HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?' is 'HOST IDENTIFICATION HAS CHANGED* (yes/no)\?'. Activating booster. Gate keeper glob pattern for 'HOST IDENTIFICATION HAS CHANGED[^ ]+' is 'HOST IDENTIFICATION HAS CHANGED*'. Activating booster. Gate keeper glob pattern for 'Offending key for .* \(yes/no\)\?' is 'Offending key for * (yes/no)\?'. Activating booster. Gate keeper glob pattern for 'Login:' is 'Login:'. Activating booster. Gate keeper glob pattern for '[Pp]assword:' is '?assword:'. Activating booster. Gate keeper glob pattern for '^Confirm seeing above note' is 'Confirm seeing above note'. Activating booster. Gate keeper glob pattern for '] > ' is '] > '. Activating booster. expect: does "" (spawn_id exp6) match glob pattern "Connection refused"? no "Unknown host\r\n"? no "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes re=no "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no "Login:"? Gate "Login:"? gate=no "[Pp]assword:"? Gate "?assword:"? gate=no "^Confirm seeing above note"? Gate "Confirm seeing above note"? gate=no "Password incorrect"? no "] > "? Gate "] > "? gate=no "denied"? no "\r\n"? no ssh: connect to host shiftedhost port 22: Connection refused expect: does "ssh: connect to host shiftedhost port 22: Connection refused\r\r\n" (spawn_id exp6) match glob pattern "Connection refused"? yes expect: set expect_out(0,string) "Connection refused" expect: set expect_out(spawn_id) "exp6" expect: set expect_out(buffer) "ssh: connect to host shiftedhost port 22: Connection refused" can not find channel named "exp6" while executing "expect eof" invoked from within "expect { "Connection refused" { catch {close}; catch {wait}; sleep 0.3 expect eof send_user "\nError: Connection Refused\n"; wait; retu..." (procedure "login" line 72) invoked from within "login $router $ruser $userpswd $passwd $prompt $cmethod $cyphertype $identfile" ("foreach" body line 87) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] send_user "$router\n" # Figure out prompt. set prompt "] >..." (file "bin/mtlogin" line 480) without the patch: ~$ bin/mtlogin.orig -d workinghost workinghost spawn ssh -i /var/lib/rancid/.ssh/id_ssa_for_mt_backup -c 3des -x -l username+ct workinghost (and the rest is working then, skipping.) From el.es.cr at gmail.com Thu Jun 4 10:43:06 2015 From: el.es.cr at gmail.com (Lukasz Sokol) Date: Thu, 04 Jun 2015 11:43:06 +0100 Subject: [rancid] .cloginrc add method hostname {ssh:-port} for mtlogin/mtrancid? In-Reply-To: <55701D69.50208@gmail.com> References: <20150603150809.GB34344@shrubbery.net> <556F2051.8030604@gmail.com> <20150603160643.GA35576@shrubbery.net> <556F2816.3060102@gmail.com> <20150603163621.GD35576@shrubbery.net> <55701D69.50208@gmail.com> Message-ID: I added send_user "prog: $prog\n methcmd: $methcmd\n suffix: $suffix \nport: $port\n" under the regex and now I'm seeing: ~$ bin/mtlogin.patched shftedhost shiftedhost prog: ssh -p 65122 methcmd: ssh suffix: port: spawn ssh -i /var/lib/rancid/.ssh/id_ssa_for_mt_backup -c 3des -x -l username+ct shiftedhost ssh: connect to host shiftedhost port 22: Connection refused So it /does/ get the -p 65122 from somewhere above? for comparison, when running with workinghost: ~$ bin/mtlogin workinghost workinghost prog: ssh methcmd: ssh suffix: port: spawn ssh -i /var/lib/rancid/.ssh/id_ssa_for_mt_backup -c 3des -x -l username+ct workinghost So If i say the $cmd to be $prog... set $cmd $prog it works! for both cases (default and specified port) Patch inline below. --- mtlogin.orig 2015-06-03 17:08:33.642852694 +0100 +++ mtlogin 2015-06-04 11:37:31.085409961 +0100 @@ -323,10 +323,12 @@ send_user "\nError: telnet failed: $reason\n" return 1 } - } elseif ![string compare $prog "ssh"] { + } elseif [string match "ssh*" $prog] { # ssh to the router & try to login with or without an identfile. backported from trunk. + # also if port given in method, use it regexp {ssh(:([^[:space:]]+))*} $prog methcmd suffix port - set cmd $sshcmd + send_user "prog: $prog\n methcmd: $methcmd\n suffix: $suffix \nport: $port\n" # debug line + set cmd $prog if {"$port" != ""} { set cmd "$cmd -p $port" } Please review.. From ete.sabuj at gmail.com Thu Jun 4 10:02:53 2015 From: ete.sabuj at gmail.com (Hussein, Md Sazzad) Date: Thu, 4 Jun 2015 12:02:53 +0200 Subject: [rancid] Email delivery failing Message-ID: *Dear Support,* Please have a look over following mail.log & aliases information. It seems that rancid is deliveryng data to wrong recepient! *1. mail.log*Jun 4 09:57:39 RR-DE-NMS-1 postfix/qmgr[9395]: 79093D20A3C: from=, size=569, nrcpt=1 (queue active) Jun 4 09:57:39 RR-DE-NMS-1 postfix/smtp[6699]: 79093D20A3C: to=*>*, orig_to=, relay=172.19.1.31[172.19.1.31]:25, delay=0.19, delays=0.01/0/0/0.17, dsn=2.6.0, status=sent (250 2.6.0 <20150604075739.79093D20A3C at RR-DE-NMS-1.de.rr-icecream.internal> Queued mail for delivery) *2. vi /etc/aliases*rancid-network: sazzad.hussein at de.rr-icecream.eu rancid-admin-network: sazzad.hussein at de.rr-icecream.eu ?I am following ellow guide to install rancid:? https://www.edge-cloud.net/2013/05/rancidtrac-on-ubuntu-12-04-lts/? Also please let me know, in which directory i can get all the data? ?Any idea how to fix it?? -- --*Sazzad Hussein*www.sazzad-hussein.branded.me | ete.sabuj at gmail.com Hermann-Ehlers Str. 2, 49082 Osnabr?ck, Deutschland Mobile number: 4915214010461 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alan.mckinnon at gmail.com Thu Jun 4 11:59:18 2015 From: alan.mckinnon at gmail.com (Alan McKinnon) Date: Thu, 04 Jun 2015 13:59:18 +0200 Subject: [rancid] Email delivery failing In-Reply-To: References: Message-ID: <55703D96.9020006@gmail.com> On 04/06/2015 12:02, Hussein, Md Sazzad wrote: > *Dear Support,* > > Please have a look over following mail.log & aliases information. It > seems that rancid is deliveryng data to wrong recepient! > > _*1. mail.log > *_Jun 4 09:57:39 RR-DE-NMS-1 postfix/qmgr[9395]: 79093D20A3C: > from=>, > size=569, nrcpt=1 (queue active) > Jun 4 09:57:39 RR-DE-NMS-1 postfix/smtp[6699]: 79093D20A3C: > to=* >*, orig_to=, > relay=172.19.1.31[172.19.1.31]:25, delay=0.19, delays=0.01/0/0/0.17, > dsn=2.6.0, status=sent (250 2.6.0 > <20150604075739.79093D20A3C at RR-DE-NMS-1.de.rr-icecream.internal> Queued > mail for delivery)_* > > 2. vi /etc/aliases > *_rancid-network: sazzad.hussein at de.rr-icecream.eu > > rancid-admin-network: sazzad.hussein at de.rr-icecream.eu > _* > *_ > > ?I am following ellow guide to install rancid:? > https://www.edge-cloud.net/2013/05/rancidtrac-on-ubuntu-12-04-lts/? > > Also please let me know, in which directory i can get all the data? > > ?Any idea how to fix it?? I think you didn't run newaliases -- Alan McKinnon alan.mckinnon at gmail.com From ete.sabuj at gmail.com Thu Jun 4 12:37:58 2015 From: ete.sabuj at gmail.com (Hussein, Md Sazzad) Date: Thu, 4 Jun 2015 14:37:58 +0200 Subject: [rancid] Config generatinf failed_Help required Message-ID: Guys, I am facing problem with switch config backup. ?When i just run the following command: sudo su -c /usr/lib/rancid/bin/rancid-run -s /bin/bash -l rancid? ?I used to get the "*attached"* log:::::? ?*My config:::*? ?rancid at RR-DE-NMS-1:~/network$ more router.db 172.19.254.46:hp:up 172.19.254.53:hp:up 172.19.1.254:netscreen:up Please note that there is no *"enable"* passowrd is assigned. I just put the admin passowrd directly. Anyone is there to support me! ? -- --*Sazzad Hussein*www.sazzad-hussein.branded.me | ete.sabuj at gmail.com Hermann-Ehlers Str. 2, 49082 Osnabr?ck, Deutschland Mobile number: 4915214010461 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: rancid log Type: application/octet-stream Size: 3899 bytes Desc: not available URL: From scott.granados at gmail.com Thu Jun 4 14:29:20 2015 From: scott.granados at gmail.com (Scott Granados) Date: Thu, 4 Jun 2015 10:29:20 -0400 Subject: [rancid] Config generatinf failed_Help required In-Reply-To: References: Message-ID: <9F31E9C7-BA90-4551-8C94-428B05EE23B7@gmail.com> What version of RANCID are you using. If 3.2 you need to use ; marks not : marks in the router.db Else you get odd errors and the script won?t run or give the appropriate output. Just a suggestion to check out. Thanks Scott On Jun 4, 2015, at 8:37 AM, Hussein, Md Sazzad wrote: > Guys, > > I am facing problem with switch config backup. > > ?When i just run the following command: > sudo su -c /usr/lib/rancid/bin/rancid-run -s /bin/bash -l rancid? > > ?I used to get the "attached" log:::::? > > ?My config:::? > > ?rancid at RR-DE-NMS-1:~/network$ more router.db > 172.19.254.46:hp:up > 172.19.254.53:hp:up > 172.19.1.254:netscreen:up > > Please note that there is no "enable" passowrd is assigned. I just put the admin passowrd directly. > > Anyone is there to support me! > > ? > > -- > -- > Sazzad Hussein > www.sazzad-hussein.branded.me | ete.sabuj at gmail.com > Hermann-Ehlers Str. 2, 49082 Osnabr?ck, Deutschland > Mobile number: 4915214010461 > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss -------------- next part -------------- An HTML attachment was scrubbed... URL: From ete.sabuj at gmail.com Thu Jun 4 14:45:00 2015 From: ete.sabuj at gmail.com (Hussein, Md Sazzad) Date: Thu, 4 Jun 2015 16:45:00 +0200 Subject: [rancid] Config generatinf failed_Help required In-Reply-To: <9F31E9C7-BA90-4551-8C94-428B05EE23B7@gmail.com> References: <9F31E9C7-BA90-4551-8C94-428B05EE23B7@gmail.com> Message-ID: Hi Scott, Thanks for the reply! Please have a look over the bellow output: root at RR-DE-NMS-1:/var/log/rancid# more /etc/aliases rancid-network; sazzad.hussein at de.rr-icecream.eu rancid-admin-network; sazzad.hussein at de.rr-icecream.eu root at RR-DE-NMS-1:/var/log/rancid# sudo /usr/bin/newaliases postalias: warning: /etc/aliases, line 1: need name:value pair postalias: warning: /etc/aliases, line 3: need name:value pair root at RR-DE-NMS-1:/var/log/rancid# How to check the rancid version? Is there any command for that? regards sazzad On Thursday, June 4, 2015, Scott Granados wrote: > What version of RANCID are you using. > If 3.2 you need to use ; marks not : marks in the router.db > Else you get odd errors and the script won?t run or give the appropriate output. > Just a suggestion to check out. > Thanks > Scott > On Jun 4, 2015, at 8:37 AM, Hussein, Md Sazzad wrote: > > Guys, > > I am facing problem with switch config backup. > > When i just run the following command: > sudo su -c /usr/lib/rancid/bin/rancid-run -s /bin/bash -l rancid > I used to get the "attached" log::::: > My config::: > rancid at RR-DE-NMS-1:~/network$ more router.db > 172.19.254.46:hp:up > 172.19.254.53:hp:up > 172.19.1.254:netscreen:up > > Please note that there is no "enable" passowrd is assigned. I just put the admin passowrd directly. > > Anyone is there to support me! > > > -- > > -- > Sazzad Hussein > www.sazzad-hussein.branded.me | ete.sabuj at gmail.com > Hermann-Ehlers Str. 2, 49082 Osnabr?ck, Deutschland > Mobile number: 4915214010461 > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > -- --*Sazzad Hussein*www.sazzad-hussein.branded.me | ete.sabuj at gmail.com Hermann-Ehlers Str. 2, 49082 Osnabr?ck, Deutschland Mobile number: 4915214010461 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alan.mckinnon at gmail.com Thu Jun 4 15:20:50 2015 From: alan.mckinnon at gmail.com (Alan McKinnon) Date: Thu, 04 Jun 2015 17:20:50 +0200 Subject: [rancid] Config generatinf failed_Help required In-Reply-To: References: <9F31E9C7-BA90-4551-8C94-428B05EE23B7@gmail.com> Message-ID: <55706CD2.1020708@gmail.com> On 04/06/2015 16:45, Hussein, Md Sazzad wrote: > Hi Scott, > > Thanks for the reply! Please have a look over the bellow output: > > root at RR-DE-NMS-1:/var/log/rancid# more /etc/aliases > rancid-network; sazzad.hussein at de.rr-icecream.eu > > rancid-admin-network; sazzad.hussein at de.rr-icecream.eu > > > root at RR-DE-NMS-1:/var/log/rancid# sudo /usr/bin/newaliases > postalias: warning: /etc/aliases, line 1: need name:value pair > postalias: warning: /etc/aliases, line 3: need name:value pair > root at RR-DE-NMS-1:/var/log/rancid# You edited the wrong file, /etc/aliases is postfix's file and was correct as you originally had it. The file to edit is router.db. This is a rancid file and there is one per rancid group. rancid-2.3.x uses a ":" as the separator rancid-3.x uses a ";" as the separator This change was made for rancid-3 to accommodate IPv6 addresses > > > How to check the rancid version? Is there any command for that? rancid -V > > > regards > sazzad > On Thursday, June 4, 2015, Scott Granados > wrote: >> What version of RANCID are you using. >> If 3.2 you need to use ; marks not : marks in the router.db >> Else you get odd errors and the script won?t run or give the > appropriate output. >> Just a suggestion to check out. >> Thanks >> Scott >> On Jun 4, 2015, at 8:37 AM, Hussein, Md Sazzad > wrote: >> >> Guys, >> >> I am facing problem with switch config backup. >> >> When i just run the following command: >> sudo su -c /usr/lib/rancid/bin/rancid-run -s /bin/bash -l rancid >> I used to get the "attached" log::::: >> My config::: >> rancid at RR-DE-NMS-1:~/network$ more router.db >> 172.19.254.46:hp:up >> 172.19.254.53:hp:up >> 172.19.1.254:netscreen:up >> >> Please note that there is no "enable" passowrd is assigned. I just put > the admin passowrd directly. >> >> Anyone is there to support me! >> >> >> -- >> >> -- >> Sazzad Hussein >> www.sazzad-hussein.branded.me | > ete.sabuj at gmail.com >> Hermann-Ehlers Str. 2, 49082 Osnabr?ck, Deutschland >> Mobile number: 4915214010461 >> >> _______________________________________________ >> Rancid-discuss mailing list >> Rancid-discuss at shrubbery.net >> http://www.shrubbery.net/mailman/listinfo/rancid-discuss >> > > -- > > |-- > *Sazzad Hussein* > www.sazzad-hussein.branded.me | ete.sabuj at gmail.com > Hermann-Ehlers Str. 2, 49082 Osnabr?ck, Deutschland > Mobile number: 4915214010461| > > > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > -- Alan McKinnon alan.mckinnon at gmail.com From ete.sabuj at gmail.com Thu Jun 4 08:14:35 2015 From: ete.sabuj at gmail.com (Hussein, Md Sazzad) Date: Thu, 4 Jun 2015 10:14:35 +0200 Subject: [rancid] Email delivery failing Message-ID: *Dear Support,* Please have a look over following mail.log & aliases information. It seems that rancid is deliveryng data to wrong recepient! *1. mail.log*Jun 4 09:57:39 RR-DE-NMS-1 postfix/qmgr[9395]: 79093D20A3C: from=, size=569, nrcpt=1 (queue active) Jun 4 09:57:39 RR-DE-NMS-1 postfix/smtp[6699]: 79093D20A3C: to=*>*, orig_to=, relay=172.19.1.31[172.19.1.31]:25, delay=0.19, delays=0.01/0/0/0.17, dsn=2.6.0, status=sent (250 2.6.0 <20150604075739.79093D20A3C at RR-DE-NMS-1.de.rr-icecream.internal> Queued mail for delivery) *2. vi /etc/aliases*rancid-network: sazzad.hussein at de.rr-icecream.eu rancid-admin-network: sazzad.hussein at de.rr-icecream.eu ?I am following ellow guide to install rancid:? https://www.edge-cloud.net/2013/05/rancidtrac-on-ubuntu-12-04-lts/? Also please let me know, in which directory i can get all the data? ?Any idea how to fix it?? -- --*Sazzad Hussein*www.sazzad-hussein.branded.me | ete.sabuj at gmail.com Hermann-Ehlers Str. 2, 49082 Osnabr?ck, Deutschland Mobile number: 4915214010461 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ete.sabuj at gmail.com Thu Jun 4 12:05:52 2015 From: ete.sabuj at gmail.com (Hussein, Md Sazzad) Date: Thu, 4 Jun 2015 14:05:52 +0200 Subject: [rancid] Email delivery failing In-Reply-To: <55703D96.9020006@gmail.com> References: <55703D96.9020006@gmail.com> Message-ID: Hi Alan, Thanks for your reply! Please have a look over following data. Its already been added to "newaliases". root at RR-DE-NMS-1:~# sudo /usr/bin/newaliases root at RR-DE-NMS-1:~# more /etc/aliases rancid-network: sazzad.hussein at de.rr-icecream.eu rancid-admin-network: sazzad.hussein at de.rr-icecream.eu root at RR-DE-NMS-1:~# sudo /usr/bin/newaliases root at RR-DE-NMS-1:~# On Thursday, June 4, 2015, Alan McKinnon wrote: > On 04/06/2015 12:02, Hussein, Md Sazzad wrote: >> *Dear Support,* >> >> Please have a look over following mail.log & aliases information. It >> seems that rancid is deliveryng data to wrong recepient! >> >> _*1. mail.log >> *_Jun 4 09:57:39 RR-DE-NMS-1 postfix/qmgr[9395]: 79093D20A3C: >> from=>, >> size=569, nrcpt=1 (queue active) >> Jun 4 09:57:39 RR-DE-NMS-1 postfix/smtp[6699]: 79093D20A3C: >> to=*> >*, orig_to=, >> relay=172.19.1.31[172.19.1.31]:25, delay=0.19, delays=0.01/0/0/0.17, >> dsn=2.6.0, status=sent (250 2.6.0 >> <20150604075739.79093D20A3C at RR-DE-NMS-1.de.rr-icecream.internal> Queued >> mail for delivery)_* >> >> 2. vi /etc/aliases >> *_rancid-network: sazzad.hussein at de.rr-icecream.eu >> >> rancid-admin-network: sazzad.hussein at de.rr-icecream.eu >> _* >> *_ >> >> I am following ellow guide to install rancid: >> https://www.edge-cloud.net/2013/05/rancidtrac-on-ubuntu-12-04-lts/ >> >> Also please let me know, in which directory i can get all the data? >> >> Any idea how to fix it? > > > > I think you didn't run newaliases > > > > -- > Alan McKinnon > alan.mckinnon at gmail.com > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss -- --*Sazzad Hussein*www.sazzad-hussein.branded.me | ete.sabuj at gmail.com Hermann-Ehlers Str. 2, 49082 Osnabr?ck, Deutschland Mobile number: 4915214010461 -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Fri Jun 5 00:13:58 2015 From: heas at shrubbery.net (heasley) Date: Fri, 5 Jun 2015 00:13:58 +0000 Subject: [rancid] .cloginrc add method hostname {ssh:-port} for mtlogin/mtrancid? In-Reply-To: References: <20150603150809.GB34344@shrubbery.net> <556F2051.8030604@gmail.com> <20150603160643.GA35576@shrubbery.net> <556F2816.3060102@gmail.com> <20150603163621.GD35576@shrubbery.net> <55701D69.50208@gmail.com> Message-ID: <20150605001358.GO9281@shrubbery.net> Thu, Jun 04, 2015 at 11:43:06AM +0100, Lukasz Sokol: > I added > > send_user "prog: $prog\n methcmd: $methcmd\n suffix: $suffix \nport: $port\n" > > under the regex and now I'm seeing: > > ~$ bin/mtlogin.patched shftedhost > shiftedhost > prog: ssh -p 65122 > methcmd: ssh > suffix: > port: > spawn ssh -i /var/lib/rancid/.ssh/id_ssa_for_mt_backup -c 3des -x -l username+ct shiftedhost > ssh: connect to host shiftedhost port 22: Connection refused > > So it /does/ get the -p 65122 from somewhere above? > > for comparison, when running with workinghost: > > ~$ bin/mtlogin workinghost > workinghost > prog: ssh > methcmd: ssh > suffix: > port: > spawn ssh -i /var/lib/rancid/.ssh/id_ssa_for_mt_backup -c 3des -x -l username+ct workinghost > > So If i say the $cmd to be $prog... > > set $cmd $prog > > it works! for both cases (default and specified port) I am confused. I sent diffs from the trunk, but this and the related parts are unchanged since 3.0. I'll send you a fresh version to test in a separate email; one that is complete with cloginrc:sshcmd support. > Patch inline below. > > --- mtlogin.orig 2015-06-03 17:08:33.642852694 +0100 > +++ mtlogin 2015-06-04 11:37:31.085409961 +0100 > @@ -323,10 +323,12 @@ > send_user "\nError: telnet failed: $reason\n" > return 1 > } > - } elseif ![string compare $prog "ssh"] { > + } elseif [string match "ssh*" $prog] { > # ssh to the router & try to login with or without an identfile. backported from trunk. > + # also if port given in method, use it > regexp {ssh(:([^[:space:]]+))*} $prog methcmd suffix port > - set cmd $sshcmd > + send_user "prog: $prog\n methcmd: $methcmd\n suffix: $suffix \nport: $port\n" # debug line > + set cmd $prog > if {"$port" != ""} { > set cmd "$cmd -p $port" > } > > Please review.. > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss From heas at shrubbery.net Fri Jun 5 00:44:39 2015 From: heas at shrubbery.net (heasley) Date: Fri, 5 Jun 2015 00:44:39 +0000 Subject: [rancid] Several suggestions about rancid-3.2.p7 In-Reply-To: <201506032216.FBB17686.FQHMFOSVJOLOFt@I-love.SAKURA.ne.jp> References: <201506032216.FBB17686.FQHMFOSVJOLOFt@I-love.SAKURA.ne.jp> Message-ID: <20150605004439.GR9281@shrubbery.net> Wed, Jun 03, 2015 at 10:16:09PM +0900, Tetsuo Handa: > Hello. > > I've just installed rancid-3.2p7 on CentOS 6.6. > > (1) I noticed that while the configure script checks for Socket.pm >= 2.006 , > it works for me with below patch. If below patch is correct (I'm not perl > user), we don't need to force users to upgrade package to a version which > is not included in RHEL 6 / CentOS 6 distribution. I'm not sure what I'll do here. I'll poke the various suggestions folks have sent to make sure that the change does not result in a regression. > ---------------------------------------- > patch -p0 << "EOF" > --- configure > +++ configure > @@ -5316,15 +5316,6 @@ > PERLV=`basename $PERLV_PATH` > > > -# check Socket.pm version > -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Socket.pm version" >&5 > -$as_echo_n "checking Socket.pm version... " >&6; } > -$PERLV_PATH -e 'use 2.006 Socket qw(inet_pton);' 2>&1 >/dev/null > -if test $? -ne 0 ; then > - as_fn_error $? "Socket.pm is older than 2.006; upgrade from http://metacpan.org/pod/Socket" "$LINENO" 5 > - exit 1 > -fi > - > # Extract the first word of "expect", so it can be a program name with args. > set dummy expect; ac_word=$2 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 > --- lib/rancid.pm.in > +++ lib/rancid.pm.in > @@ -48,7 +48,7 @@ > use 5.010; > use strict 'vars'; > use warnings; > -use 2.006 Socket qw(AF_INET AF_INET6 inet_pton); > +use Socket qw(AF_INET AF_INET6); > require(Exporter); > our @ISA = qw(Exporter); > > @@ -351,6 +351,11 @@ > @sorted_lines; > } > > +sub inet_pton { > + my($family, $addr) = @_; > + return inet_pton($family, $addr); > +} > + > # ipaddrval(IPaddr) converts and IPv4/v6 address to a string for comparison. > # Some may ask why not use Net::IP; performance. We tried and it was horribly > # slow. > EOF > ---------------------------------------- > > (2) I noticed that the shell variable SENDMAIL is defined in > bin/control_rancid.in like below > > # SENDMAIL location > SENDMAIL=${SENDMAIL:=sendmail}; ... Crap. Thanks > (3) I noticed that bin/control_rancid.in forgot to exclude .cvsignore > file in the > > # delete configs from RCS for routers not listed in routers.up. ... I update 3.2p6 a few days ago for this. thanks > (4) Usually, PATH environment variable should not contain "." > (current directory). I presume that it inheritted this from your environment or whomever ran configure. From ete.sabuj at gmail.com Fri Jun 5 05:34:35 2015 From: ete.sabuj at gmail.com (Hussein, Md Sazzad) Date: Fri, 5 Jun 2015 07:34:35 +0200 Subject: [rancid] Config generatinf failed_Help required In-Reply-To: <55706CD2.1020708@gmail.com> References: <9F31E9C7-BA90-4551-8C94-428B05EE23B7@gmail.com> <55706CD2.1020708@gmail.com> Message-ID: *Hi Alan,* Good morning! Thanks for your help. *1. I think its working. Please have look over the log:* *# tail -f /var/log/rancid/network.20150605.065402* starting: Fri Jun 5 06:54:02 CEST 2015 D 172.19.1.254 Deleting 172.19.1.254 Committed revision 13. Deleted 172.19.1.254 D 172.19.254.53 Deleting 172.19.254.53 Committed revision 14. Deleted 172.19.254.53 D 172.19.254.46 Deleting 172.19.254.46 Committed revision 15. Deleted 172.19.254.46 Sending router.db Transmitting file data . Committed revision 16. ending: Fri Jun 5 06:54:02 CEST 2015 *2. But the problem still exists in mail delivery. Still rancid is deliverying to wrong mailing address:* Jun 5 06:54:02 RR-DE-NMS-1 postfix/qmgr[9395]: 80391D21915: from=< rancid at de.rr-icecream.eu>, size=729, nrcpt=1 (queue active) Jun 5 06:54:02 RR-DE-NMS-1 postfix/smtp[15798]: 80391D21915: to=< rancid-admin-network at de.rr-icecream.eu>, orig_to=, relay=172.19.1.31[172.19.1.31]:25, delay=0.19, delays=0.01/0/0/0.18, dsn=2.6.0, status=sent (250 2.6.0 <20150605045402.80391D21915 at RR-DE-NMS-1.de.rr-icecream.internal> Queued mail for delivery) Jun 5 06:54:02 RR-DE-NMS-1 postfix/qmgr[9395]: 80391D21915: removed *3. Could you please let me know the path where rancid is backing up the switch/router config file?* *4. For checking rancid version please have a look:* root at RR-DE-NMS-1:/var/log# rancid -v rancid: command not found rancid at RR-DE-NMS-1:/usr/bin$ rancid -V rancid: command not found rancid at RR-DE-NMS-1:/usr/bin$ rancid -v rancid: command not found *Expecting your kind help again!* On Thu, Jun 4, 2015 at 5:20 PM, Alan McKinnon wrote: > On 04/06/2015 16:45, Hussein, Md Sazzad wrote: > > Hi Scott, > > > > Thanks for the reply! Please have a look over the bellow output: > > > > root at RR-DE-NMS-1:/var/log/rancid# more /etc/aliases > > rancid-network; sazzad.hussein at de.rr-icecream.eu > > > > rancid-admin-network; sazzad.hussein at de.rr-icecream.eu > > > > > > root at RR-DE-NMS-1:/var/log/rancid# sudo /usr/bin/newaliases > > postalias: warning: /etc/aliases, line 1: need name:value pair > > postalias: warning: /etc/aliases, line 3: need name:value pair > > root at RR-DE-NMS-1:/var/log/rancid# > > You edited the wrong file, /etc/aliases is postfix's file and was > correct as you originally had it. > > The file to edit is router.db. This is a rancid file and there is one > per rancid group. > rancid-2.3.x uses a ":" as the separator > rancid-3.x uses a ";" as the separator > This change was made for rancid-3 to accommodate IPv6 addresses > > > > > > How to check the rancid version? Is there any command for that? > > rancid -V > > > > > > > > > regards > > sazzad > > On Thursday, June 4, 2015, Scott Granados > > wrote: > >> What version of RANCID are you using. > >> If 3.2 you need to use ; marks not : marks in the router.db > >> Else you get odd errors and the script won?t run or give the > > appropriate output. > >> Just a suggestion to check out. > >> Thanks > >> Scott > >> On Jun 4, 2015, at 8:37 AM, Hussein, Md Sazzad > > wrote: > >> > >> Guys, > >> > >> I am facing problem with switch config backup. > >> > >> When i just run the following command: > >> sudo su -c /usr/lib/rancid/bin/rancid-run -s /bin/bash -l rancid > >> I used to get the "attached" log::::: > >> My config::: > >> rancid at RR-DE-NMS-1:~/network$ more router.db > >> 172.19.254.46:hp:up > >> 172.19.254.53:hp:up > >> 172.19.1.254:netscreen:up > >> > >> Please note that there is no "enable" passowrd is assigned. I just put > > the admin passowrd directly. > >> > >> Anyone is there to support me! > >> > >> > >> -- > >> > >> -- > >> Sazzad Hussein > >> www.sazzad-hussein.branded.me | > > ete.sabuj at gmail.com > >> Hermann-Ehlers Str. 2, 49082 Osnabr?ck, Deutschland > >> Mobile number: 4915214010461 > >> > >> _______________________________________________ > >> Rancid-discuss mailing list > >> Rancid-discuss at shrubbery.net > >> http://www.shrubbery.net/mailman/listinfo/rancid-discuss > >> > > > > -- > > > > |-- > > *Sazzad Hussein* > > www.sazzad-hussein.branded.me | > ete.sabuj at gmail.com > > Hermann-Ehlers Str. 2, 49082 Osnabr?ck, Deutschland > > Mobile number: 4915214010461| > > > > > > > > > > _______________________________________________ > > Rancid-discuss mailing list > > Rancid-discuss at shrubbery.net > > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > > > > > -- > Alan McKinnon > alan.mckinnon at gmail.com > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > -- --*Sazzad Hussein*www.sazzad-hussein.branded.me | ete.sabuj at gmail.com Hermann-Ehlers Str. 2, 49082 Osnabr?ck, Deutschland Mobile number: 4915214010461 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alan.mckinnon at gmail.com Fri Jun 5 06:01:48 2015 From: alan.mckinnon at gmail.com (Alan McKinnon) Date: Fri, 05 Jun 2015 08:01:48 +0200 Subject: [rancid] Config generatinf failed_Help required In-Reply-To: References: <9F31E9C7-BA90-4551-8C94-428B05EE23B7@gmail.com> <55706CD2.1020708@gmail.com> Message-ID: <55713B4C.5040504@gmail.com> On 05/06/2015 07:34, Hussein, Md Sazzad wrote: > *Hi Alan,* > > Good morning! > Thanks for your help. [snip] > *2. But the problem still exists in mail delivery. Still rancid is > deliverying to wrong mailing address:* > > Jun 5 06:54:02 RR-DE-NMS-1 postfix/qmgr[9395]: 80391D21915: > from=>, > size=729, nrcpt=1 (queue active) > Jun 5 06:54:02 RR-DE-NMS-1 postfix/smtp[15798]: 80391D21915: > to= >, > orig_to=, relay=172.19.1.31[172.19.1.31]:25, > delay=0.19, delays=0.01/0/0/0.18, dsn=2.6.0, status=sent (250 2.6.0 > <20150605045402.80391D21915 at RR-DE-NMS-1.de.rr-icecream.internal> Queued > mail for delivery) > Jun 5 06:54:02 RR-DE-NMS-1 postfix/qmgr[9395]: 80391D21915: removed This is a problem with your mailer setup. You need to check that but it's out of the scope of this list > *3. Could you please let me know the path where rancid is backing up the > switch/router config file? They could be anywhere, they are just files and there nothing about files that declares where they must go. How did you install rancid? From sources? From a package manager? Which distro? > > * > *4. For checking rancid version please have a look: > * > root at RR-DE-NMS-1:/var/log# rancid -v > rancid: command not found > > rancid at RR-DE-NMS-1:/usr/bin$ rancid -V > rancid: command not found > rancid at RR-DE-NMS-1:/usr/bin$ rancid -v > rancid: command not found* Then you don't have a rancid command, meaning you are probably n v3.0. Run any of the other rancid commands with a -V option, or look inside one of them (they are text scripts and the version number is stated at the top) or ask your package manager what version is installed -- Alan McKinnon alan.mckinnon at gmail.com From ete.sabuj at gmail.com Fri Jun 5 06:11:24 2015 From: ete.sabuj at gmail.com (Hussein, Md Sazzad) Date: Fri, 5 Jun 2015 08:11:24 +0200 Subject: [rancid] Config generatinf failed_Help required In-Reply-To: <55713B4C.5040504@gmail.com> References: <9F31E9C7-BA90-4551-8C94-428B05EE23B7@gmail.com> <55706CD2.1020708@gmail.com> <55713B4C.5040504@gmail.com> Message-ID: *Hallo Alan,* 2. The thing is that i have installed some other services like nagios, cacti, tacas+. The same server si sending mail alert to correct destination. But why rancid is picking up *rancid at mydomain* address? There something should be in rancid config file. I have looked for but failed. 3. I am just followed bellow URL to set up rancid: https://www.edge-cloud.net/2013/05/rancidtrac-on-ubuntu-12-04-lts/ On Fri, Jun 5, 2015 at 8:01 AM, Alan McKinnon wrote: > On 05/06/2015 07:34, Hussein, Md Sazzad wrote: > > *Hi Alan,* > > > > Good morning! > > Thanks for your help. > > [snip] > > > > *2. But the problem still exists in mail delivery. Still rancid is > > deliverying to wrong mailing address:* > > > > Jun 5 06:54:02 RR-DE-NMS-1 postfix/qmgr[9395]: 80391D21915: > > from=>, > > size=729, nrcpt=1 (queue active) > > Jun 5 06:54:02 RR-DE-NMS-1 postfix/smtp[15798]: 80391D21915: > > to= > >, > > orig_to=, relay=172.19.1.31[172.19.1.31]:25, > > delay=0.19, delays=0.01/0/0/0.18, dsn=2.6.0, status=sent (250 2.6.0 > > <20150605045402.80391D21915 at RR-DE-NMS-1.de.rr-icecream.internal> Queued > > mail for delivery) > > Jun 5 06:54:02 RR-DE-NMS-1 postfix/qmgr[9395]: 80391D21915: removed > > > This is a problem with your mailer setup. > You need to check that but it's out of the scope of this list > > > > *3. Could you please let me know the path where rancid is backing up the > > switch/router config file? > > They could be anywhere, they are just files and there nothing about > files that declares where they must go. > > How did you install rancid? From sources? From a package manager? Which > distro? > > > > > * > > *4. For checking rancid version please have a look: > > * > > root at RR-DE-NMS-1:/var/log# rancid -v > > rancid: command not found > > > > rancid at RR-DE-NMS-1:/usr/bin$ rancid -V > > rancid: command not found > > rancid at RR-DE-NMS-1:/usr/bin$ rancid -v > > rancid: command not found* > > Then you don't have a rancid command, meaning you are probably n v3.0. > Run any of the other rancid commands with a -V option, > or look inside one of them (they are text scripts and the version number > is stated at the top) > or ask your package manager what version is installed > > > -- > Alan McKinnon > alan.mckinnon at gmail.com > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > -- --*Sazzad Hussein*www.sazzad-hussein.branded.me | ete.sabuj at gmail.com Hermann-Ehlers Str. 2, 49082 Osnabr?ck, Deutschland Mobile number: 4915214010461 -------------- next part -------------- An HTML attachment was scrubbed... URL: From el.es.cr at gmail.com Fri Jun 5 07:53:20 2015 From: el.es.cr at gmail.com (Lukasz Sokol) Date: Fri, 05 Jun 2015 08:53:20 +0100 Subject: [rancid] .cloginrc add method hostname {ssh:-port} for mtlogin/mtrancid? In-Reply-To: <20150605001358.GO9281@shrubbery.net> References: <20150603150809.GB34344@shrubbery.net> <556F2051.8030604@gmail.com> <20150603160643.GA35576@shrubbery.net> <556F2816.3060102@gmail.com> <20150603163621.GD35576@shrubbery.net> <55701D69.50208@gmail.com> <20150605001358.GO9281@shrubbery.net> Message-ID: <55715570.5020900@gmail.com> On 05/06/15 01:13, heasley wrote: > Thu, Jun 04, 2015 at 11:43:06AM +0100, Lukasz Sokol: >> I added >> >> send_user "prog: $prog\n methcmd: $methcmd\n suffix: $suffix \nport: $port\n" >> >> under the regex and now I'm seeing: >> >> ~$ bin/mtlogin.patched shftedhost >> shiftedhost >> prog: ssh -p 65122 >> methcmd: ssh >> suffix: >> port: >> spawn ssh -i /var/lib/rancid/.ssh/id_ssa_for_mt_backup -c 3des -x -l username+ct shiftedhost >> ssh: connect to host shiftedhost port 22: Connection refused >> >> So it /does/ get the -p 65122 from somewhere above? >> >> for comparison, when running with workinghost: >> >> ~$ bin/mtlogin workinghost >> workinghost >> prog: ssh >> methcmd: ssh >> suffix: >> port: >> spawn ssh -i /var/lib/rancid/.ssh/id_ssa_for_mt_backup -c 3des -x -l username+ct workinghost >> >> So If i say the $cmd to be $prog... >> >> set $cmd $prog >> >> it works! for both cases (default and specified port) > > I am confused. I sent diffs from the trunk, but this and the related parts > are unchanged since 3.0. I'll send you a fresh version to test in a > separate email; one that is complete with cloginrc:sshcmd support. > This is against rancid at george:~$ bin/rancid -V rancid 2.3.8 together with the backport of ssh ident file support as you've backported it then for me... (I applied it manually back then) >> Patch inline below. >> >> --- mtlogin.orig 2015-06-03 17:08:33.642852694 +0100 >> +++ mtlogin 2015-06-04 11:37:31.085409961 +0100 >> @@ -323,10 +323,12 @@ >> send_user "\nError: telnet failed: $reason\n" >> return 1 >> } >> - } elseif ![string compare $prog "ssh"] { >> + } elseif [string match "ssh*" $prog] { >> # ssh to the router & try to login with or without an identfile. backported from trunk. >> + # also if port given in method, use it >> regexp {ssh(:([^[:space:]]+))*} $prog methcmd suffix port >> - set cmd $sshcmd >> + send_user "prog: $prog\n methcmd: $methcmd\n suffix: $suffix \nport: $port\n" # debug line >> + set cmd $prog >> if {"$port" != ""} { >> set cmd "$cmd -p $port" >> } >> >> Please review.. >> Will answer to that one. From penguin-kernel at I-love.SAKURA.ne.jp Fri Jun 5 11:45:38 2015 From: penguin-kernel at I-love.SAKURA.ne.jp (Tetsuo Handa) Date: Fri, 5 Jun 2015 20:45:38 +0900 Subject: [rancid] Several suggestions about rancid-3.2.p7 In-Reply-To: <20150605004439.GR9281@shrubbery.net> References: <201506032216.FBB17686.FQHMFOSVJOLOFt@I-love.SAKURA.ne.jp> <20150605004439.GR9281@shrubbery.net> Message-ID: <201506052045.GBG65673.VFFLOtOFSOMQJH@I-love.SAKURA.ne.jp> heasley wrote: > > (3) I noticed that bin/control_rancid.in forgot to exclude .cvsignore > > file in the > > > > # delete configs from RCS for routers not listed in routers.up. > > ... > > I update 3.2p6 a few days ago for this. thanks I expect that you do not tamper released files, or there will be confusion between those who downloaded old version of file and those who downloaded new version of file. > > > (4) Usually, PATH environment variable should not contain "." > > (current directory). > > I presume that it inheritted this from your environment or whomever ran > configure. > Unfortunately, the "." comes from the configure script when "dirname no" is executed due to nonexistent program. I think you can remove "." at the later ENV_PATH=`echo $ENV_PATH | $PERLV_PATH -e ... line of the configure script. ---------- test -z "$ac_cv_path_CVS" && ac_cv_path_CVS="no" ;; esac fi CVS=$ac_cv_path_CVS if test -n "$CVS"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CVS" >&5 $as_echo "$CVS" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi ENV_PATH="$ENV_PATH:`dirname $ac_cv_path_CVS`" ---------- ---------- + test -z '' + ac_cv_path_CVS=no + CVS=no + test -n no + printf '%s\n' 'configure:5475: result: no' + printf '%s\n' no no ++ dirname no + ENV_PATH=/usr/bin:/usr/bin:/usr/sbin:/usr/bin:/usr/bin:. ---------- From heas at shrubbery.net Fri Jun 5 21:07:11 2015 From: heas at shrubbery.net (heasley) Date: Fri, 5 Jun 2015 21:07:11 +0000 Subject: [rancid] Rancid 3.2 RHEL6 compatibilities with Socket module. In-Reply-To: <556D0C00.7000203@direcpath.com> References: <556D0C00.7000203@direcpath.com> Message-ID: <20150605210711.GA67498@shrubbery.net> Mon, Jun 01, 2015 at 09:50:56PM -0400, Robert Drake: > Not speaking for anyone but myself. > > FWIW, this is code from spamassassin: > > my $ip6 = eval { > require Socket; > Socket->VERSION(1.95); > Socket->import( 'inet_pton' ); > 1; > } || eval { > require Socket6; > Socket6->import( 'inet_pton' ); > 1; > }; > > Normally I would say use NetAddr::IP or another library to avoid the > inet_pton call, but I found this note: > > # ipaddrval(IPaddr) converts and IPv4/v6 address to a string for comparison. > # Some may ask why not use Net::IP; performance. We tried and it was > horribly > # slow. > > If performance is a major concern I would make minor changes to the > existing code (sorry for the formatting): > > if ($a =~ /:/) { > my($l); > ($a, $l) = split(/\//, $a); # this split works even if the slash > isn't there > $l ||= 128; # if !defined is faster than if (/\//) > > $norder = inet_pton(AF_INET6, $a); > return unpack('H128', $norder) . unpack('H', pack('C', $l)); > } that doesn't handle /0 properly. this does: ($a, $l) = split(/\//, $a); if (!defined($l)) { $l ||= 128; } the difference in speed/efficiency is tiny (on 13M of acls). Net::IP was utterly haneous; seemingly in perl's object handling mess. > I don't think this sacrifices readability but it improves the > performance (by about 30-40k calls/s). The regex and split string > operations are almost always the most expensive aspect and if there were > ways to get rid of them then the speed would go way up. Honestly > inet_pton is low level but it's the best way to get speed out of IP > operations (because it's just wrapping a C function). > > Drawbacks: RHEL6 (or anything older than 2009 running perl5.10.x) don't > have inet_pton. Socket.pm also doesn't support MSWin32 until 2.019, > which hasn't been shipped yet with any version of perl (so inet_pton > isn't available on any windows systems without workarounds. I have no > idea if anyone runs rancid on windows though, or if that would be possible) > > Suggested workarounds: It's a minor change. I'm not sure if Redhat > uses a system like Debian's quilt for maintaining downstream patches, > but I would just put together a changeset for the 3 lines and repackage > it rather than forcing the change upstream. The reason being that > although this is minor, changing it causes documentation headaches > (well.. a comment saying why it is the way it is) and doesn't give a > sunset clause to it. If it's maintained in downstream then as soon as > RHEL6 support is dropped the packages stop being produced and that is > the sunset of the changes. I agree with that; if they insist upon using ancient versions, then .... hrm. From jayneejshah21 at gmail.com Fri Jun 5 22:46:57 2015 From: jayneejshah21 at gmail.com (Jaynee Shah) Date: Fri, 5 Jun 2015 15:46:57 -0700 Subject: [rancid] Rancid backup problem for Arista 7500 Message-ID: Hi, We recently started deploying Arista 7504 switches, with dual supervisor modules. Rancid backup won't work for the switches. *Here is the error message*: ===================================== Getting missed routers: round 3. *couldn't compile regular expression pattern: parentheses () not balanced* while executing "expect { -re "\b+" { exp_continue } -re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)" } -re "^\[^\n\r]*$reprom..." (procedure "run_commands" line 27) invoked from within "run_commands $prompt $command" ("foreach" body line 186) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] # attempt at platform switching. set platform "" send_user ..." (file "/usr/local/rancid/bin/clogin" line 740) switch1: missed cmd(s): dir flash:,show env all,show inventory,show extensions,show boot-config,show version,show boot-extensions,show running-config switch1: End of run not found ! *clogin to the switch works fine though*. rancid at net-server:~$ bin/clogin switch1 switch1 spawn ssh -c 3des -x -l rancid switch1 Password: switch1(s1)>enable Password: switch1(s1)# switch1(s1)#exit Connection to switch1 closed. Does this look like a problem with the hostname itself? The switch has switch1(s1) or switch1(s2) prompt, depending on which supervisor is the active one. Here is a similar previous thread I found: http://www.shrubbery.net/pipermail/rancid-discuss/2014-May/007644.html Let me know if anyone has experienced the similar issue. If so, what needs to be done to resolve this? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From delmiroc at gmail.com Sat Jun 6 18:57:57 2015 From: delmiroc at gmail.com (Delmiro Campelo) Date: Sat, 6 Jun 2015 13:57:57 -0500 Subject: [rancid] New Installation Message-ID: Hello guys, I'm trying to get rancid working on red hat enterprise machine, and i'm running into some issues that i'm hoping you guys me with. I have been using as a guide this link http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch1_:_Network_Backups_With_Rancid#.VXMCQ0anFja Problem: no backups are created. When i run the command ./bin/rancid-run a log is created but there is no errors or anything? I also don't see where a backup config file was made? what could I be missing? please see below the output. **************************************************** [rancid at rancid ~]$ bin/clogin 10.2.9.9 <- it seems to be working no issues here. 10.2.9.9 spawn ssh -c 3des -x -l admin 10.2.9.9 CC Warning: Access to this equipment is restricted. Unauthorized use is prohibited. All connections are monitored. Password: C3560-2>enable Password: C3560-2#exit <- i typed exit Connection to 10.2.9.9 closed. [rancid at rancid ~]$ ./bin/rancid-run [rancid at rancid ~]$ cat ./var/logs/networking.20150606.112853 starting: Sat Jun 6 11:28:53 CDT 2015 ending: Sat Jun 6 11:28:53 CDT 2015 [rancid at rancid ~]$ [rancid at rancid ~]$ ls ./var/networking/configs/ CVS [rancid at rancid ~]$ [rancid at rancid ~]$ cat ./var/networking/router.db 10.2.9.9:cisco:up [rancid at rancid ~]$ ***************************************************** Thanks for any help you can provide Delmiro -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajo at sypartners.com Sat Jun 6 19:09:55 2015 From: ajo at sypartners.com (Alfredo Jo) Date: Sat, 6 Jun 2015 15:09:55 -0400 Subject: [rancid] New Installation In-Reply-To: References: Message-ID: <-2731898026880344018@unknownmsgid> What version of rancid are you running? rancid -V will tell you If you are running 3.0 you need to change your router.db file from : to ; Example : 10.0.0.3;Cisco;up Sent from my iPhone On Jun 6, 2015, at 3:05 PM, Delmiro Campelo wrote: Hello guys, I'm trying to get rancid working on red hat enterprise machine, and i'm running into some issues that i'm hoping you guys me with. I have been using as a guide this link http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch1_:_Network_Backups_With_Rancid#.VXMCQ0anFja Problem: no backups are created. When i run the command ./bin/rancid-run a log is created but there is no errors or anything? I also don't see where a backup config file was made? what could I be missing? please see below the output. **************************************************** [rancid at rancid ~]$ bin/clogin 10.2.9.9 <- it seems to be working no issues here. 10.2.9.9 spawn ssh -c 3des -x -l admin 10.2.9.9 CC Warning: Access to this equipment is restricted. Unauthorized use is prohibited. All connections are monitored. Password: C3560-2>enable Password: C3560-2#exit <- i typed exit Connection to 10.2.9.9 closed. [rancid at rancid ~]$ ./bin/rancid-run [rancid at rancid ~]$ cat ./var/logs/networking.20150606.112853 starting: Sat Jun 6 11:28:53 CDT 2015 ending: Sat Jun 6 11:28:53 CDT 2015 [rancid at rancid ~]$ [rancid at rancid ~]$ ls ./var/networking/configs/ CVS [rancid at rancid ~]$ [rancid at rancid ~]$ cat ./var/networking/router.db 10.2.9.9:cisco:up [rancid at rancid ~]$ ***************************************************** Thanks for any help you can provide Delmiro _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo/rancid-discuss -------------- next part -------------- An HTML attachment was scrubbed... URL: From delmiroc at gmail.com Sat Jun 6 19:39:23 2015 From: delmiroc at gmail.com (Delmiro Campelo) Date: Sat, 6 Jun 2015 14:39:23 -0500 Subject: [rancid] New Installation In-Reply-To: <-2731898026880344018@unknownmsgid> References: <-2731898026880344018@unknownmsgid> Message-ID: I'm running version 3.2, and made changes you suggested and it's working now! Thank you Alfredo! On Sat, Jun 6, 2015 at 2:09 PM, Alfredo Jo wrote: > What version of rancid are you running? > rancid -V will tell you > > If you are running 3.0 you need to change your router.db file from : to ; > Example : 10.0.0.3;Cisco;up > > > Sent from my iPhone > > On Jun 6, 2015, at 3:05 PM, Delmiro Campelo wrote: > > Hello guys, > > I'm trying to get rancid working on red hat enterprise machine, and i'm > running into some issues that i'm hoping you guys me with. I have been > using as a guide this link > http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch1_:_Network_Backups_With_Rancid#.VXMCQ0anFja > > Problem: no backups are created. > > When i run the command ./bin/rancid-run a log is created but there is no > errors or anything? I also don't see where a backup config file was made? > what could I be missing? please see below the output. > > **************************************************** > [rancid at rancid ~]$ bin/clogin 10.2.9.9 <- it seems to be working no > issues here. > 10.2.9.9 > spawn ssh -c 3des -x -l admin 10.2.9.9 > CC > Warning: Access to this equipment is restricted. Unauthorized use is > prohibited. All connections are monitored. > Password: > C3560-2>enable > Password: > C3560-2#exit <- i typed exit > Connection to 10.2.9.9 closed. > [rancid at rancid ~]$ ./bin/rancid-run > [rancid at rancid ~]$ cat ./var/logs/networking.20150606.112853 > starting: Sat Jun 6 11:28:53 CDT 2015 > > > > ending: Sat Jun 6 11:28:53 CDT 2015 > [rancid at rancid ~]$ > [rancid at rancid ~]$ ls ./var/networking/configs/ > CVS > [rancid at rancid ~]$ > [rancid at rancid ~]$ cat ./var/networking/router.db > 10.2.9.9:cisco:up > [rancid at rancid ~]$ > ***************************************************** > > Thanks for any help you can provide > Delmiro > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Sun Jun 7 06:34:54 2015 From: heas at shrubbery.net (heasley) Date: Sun, 7 Jun 2015 06:34:54 +0000 Subject: [rancid] Several suggestions about rancid-3.2.p7 In-Reply-To: <201506052045.GBG65673.VFFLOtOFSOMQJH@I-love.SAKURA.ne.jp> References: <201506032216.FBB17686.FQHMFOSVJOLOFt@I-love.SAKURA.ne.jp> <20150605004439.GR9281@shrubbery.net> <201506052045.GBG65673.VFFLOtOFSOMQJH@I-love.SAKURA.ne.jp> Message-ID: <20150607063454.GI23445@shrubbery.net> Fri, Jun 05, 2015 at 08:45:38PM +0900, Tetsuo Handa: > heasley wrote: > > > (3) I noticed that bin/control_rancid.in forgot to exclude .cvsignore > > > file in the > > > > > > # delete configs from RCS for routers not listed in routers.up. > > > > ... > > > > I update 3.2p6 a few days ago for this. thanks > > I expect that you do not tamper released files, or there will be confusion > between those who downloaded old version of file and those who downloaded > new version of file. sorry, thought i'd fixed the omission before anyone fetched it. > > > > > (4) Usually, PATH environment variable should not contain "." > > > (current directory). > > > > I presume that it inheritted this from your environment or whomever ran > > configure. > > > > Unfortunately, the "." comes from the configure script when "dirname no" is > executed due to nonexistent program. I think you can remove "." at the later > > ENV_PATH=`echo $ENV_PATH | $PERLV_PATH -e ... > > line of the configure script. i dont see it, but ok, i'll remove it in the path compression > ---------- > test -z "$ac_cv_path_CVS" && ac_cv_path_CVS="no" > ;; > esac > fi > CVS=$ac_cv_path_CVS > if test -n "$CVS"; then > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CVS" >&5 > $as_echo "$CVS" >&6; } > else > { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 > $as_echo "no" >&6; } > fi > > > ENV_PATH="$ENV_PATH:`dirname $ac_cv_path_CVS`" > ---------- > > ---------- > + test -z '' > + ac_cv_path_CVS=no > + CVS=no > + test -n no > + printf '%s\n' 'configure:5475: result: no' > + printf '%s\n' no > no > ++ dirname no > + ENV_PATH=/usr/bin:/usr/bin:/usr/sbin:/usr/bin:/usr/bin:. > ---------- From delmiroc at gmail.com Sun Jun 7 01:28:19 2015 From: delmiroc at gmail.com (Delmiro Campelo) Date: Sat, 6 Jun 2015 20:28:19 -0500 Subject: [rancid] issues with email delivery Message-ID: Hello guys, I'm hoping that you can give me some ideas here. I'm in the process of installing rancid and I thought I had it working but for some reason my emails are sent to the wrong email address, rancid-networking at realdomain.net is not valid and not what I have specified in my aliases, I'm stuck on this :( how can I fix it ? i need them to go to myemail at realdomain.net. I'm used this article as the guide to help me set it up http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch1_:_Network_Backups_With_Rancid#.VXNW70anFjY, please see below, and thank you for any help you can provide. ************************************************************************** rancid.conf file: # LIST_OF_GROUPS="networking" Aliases file: /etc/aliases # Rancid email addresses # rancid-networking: myemail at realdomain.net rancid-admin-networking: myemail at realdomain.net PostFix log below: Jun 6 20:00:17 vm-rancid postfix/qmgr[2246]: 400828034349: removed Jun 6 20:00:35 vm-rancid postfix/pickup[2245]: 0464D8034349: uid=1001 from= Jun 6 20:00:35 vm-rancid postfix/cleanup[2302]: 0464D8034349: message-id=< 20150607010035.0464D8034349 at vm-rancid.realdomain.net> Jun 6 20:00:35 vm-rancid postfix/qmgr[2246]: 0464D8034349: from=< rancid at realdomain.net>, size=2360, nrcpt=1 (queue active) Jun 6 20:00:35 vm-rancid postfix/smtp[2309]: 0464D8034349: to=< rancid-networking at realdomain.net>, orig_to=, relay= mail.realdomain.net[10.2.11.22]:25, delay=0.32, delays=0.01/0/0.01/0.3, dsn=2.6.0, status=sent (250 2.6.0 < 20150607010035.0464D8034349 at vm-rancid.realdomain.net> [InternalId=7366618] Queued mail for delivery) Jun 6 20:00:35 vm-rancid postfix/qmgr[2246]: 0464D8034349: removed ***************************************************************************** Thanks, Delmiro -------------- next part -------------- An HTML attachment was scrubbed... URL: From alan.mckinnon at gmail.com Sun Jun 7 07:53:16 2015 From: alan.mckinnon at gmail.com (Alan McKinnon) Date: Sun, 07 Jun 2015 09:53:16 +0200 Subject: [rancid] issues with email delivery In-Reply-To: References: Message-ID: <5573F86C.3000404@gmail.com> On 07/06/2015 03:28, Delmiro Campelo wrote: > Hello guys, > > I'm hoping that you can give me some ideas here. I'm in the process of > installing rancid and I thought I had it working but for some reason my > emails are sent to the wrong email address, > rancid-networking at realdomain.net > is not valid and not what I > have specified in my aliases, I'm stuck on this :( how can I fix it ? i > need them to go to myemail at realdomain.net . > > I'm used this article as the guide to help me set it up > http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch1_:_Network_Backups_With_Rancid#.VXNW70anFjY, > please see below, and thank you for any help you can provide. > > ************************************************************************** > rancid.conf file: > # > LIST_OF_GROUPS="networking" > > Aliases file: > /etc/aliases > # Rancid email addresses > # > rancid-networking: myemail at realdomain.net > > rancid-admin-networking: myemail at realdomain.net > > > PostFix log below: > Jun 6 20:00:17 vm-rancid postfix/qmgr[2246]: 400828034349: removed > Jun 6 20:00:35 vm-rancid postfix/pickup[2245]: 0464D8034349: uid=1001 > from= > Jun 6 20:00:35 vm-rancid postfix/cleanup[2302]: 0464D8034349: > message-id=<20150607010035.0464D8034349 at vm-rancid.realdomain.net > > > Jun 6 20:00:35 vm-rancid postfix/qmgr[2246]: 0464D8034349: > from=>, size=2360, > nrcpt=1 (queue active) > Jun 6 20:00:35 vm-rancid postfix/smtp[2309]: 0464D8034349: > to= >, orig_to=, > relay=mail.realdomain.net [10.2.11.22]:25, > delay=0.32, delays=0.01/0/0.01/0.3, dsn=2.6.0, status=sent (250 2.6.0 > <20150607010035.0464D8034349 at vm-rancid.realdomain.net > > > [InternalId=7366618] Queued mail for delivery) > Jun 6 20:00:35 vm-rancid postfix/qmgr[2246]: 0464D8034349: removed That howto looks like something from Joe Random Blogger. It's suspect. It also references rancid 2.3.2, which is ancient. Current version is 3.2, and the first problem you are going to run into is the change in format of router.db Don't use that howto. Install rancid using any normal method (rpm, yum, tarball - the method does not matter) and then follow the text files supplied by rancid itself. Have you run newaliases since editing /etc/aliases? -- Alan McKinnon alan.mckinnon at gmail.com From delmiroc at gmail.com Sun Jun 7 16:36:14 2015 From: delmiroc at gmail.com (Delmiro Campelo) Date: Sun, 7 Jun 2015 11:36:14 -0500 Subject: [rancid] issues with email delivery In-Reply-To: <5573F86C.3000404@gmail.com> References: <5573F86C.3000404@gmail.com> Message-ID: Hi Alan, and thank you for helping with this. I was able to get it working again by uninstalling postfix and reinstalling it. One more question, how does rancid find mail server to send the email to ? is it based on MX record for the email address specified in the aliases? Thanks again, Delmiro On Sun, Jun 7, 2015 at 2:53 AM, Alan McKinnon wrote: > On 07/06/2015 03:28, Delmiro Campelo wrote: > > Hello guys, > > > > I'm hoping that you can give me some ideas here. I'm in the process of > > installing rancid and I thought I had it working but for some reason my > > emails are sent to the wrong email address, > > rancid-networking at realdomain.net > > is not valid and not what I > > have specified in my aliases, I'm stuck on this :( how can I fix it ? i > > need them to go to myemail at realdomain.net >. > > > > I'm used this article as the guide to help me set it up > > > http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch1_:_Network_Backups_With_Rancid#.VXNW70anFjY > , > > please see below, and thank you for any help you can provide. > > > > > ************************************************************************** > > rancid.conf file: > > # > > LIST_OF_GROUPS="networking" > > > > Aliases file: > > /etc/aliases > > # Rancid email addresses > > # > > rancid-networking: myemail at realdomain.net > > > > rancid-admin-networking: myemail at realdomain.net > > > > > > PostFix log below: > > Jun 6 20:00:17 vm-rancid postfix/qmgr[2246]: 400828034349: removed > > Jun 6 20:00:35 vm-rancid postfix/pickup[2245]: 0464D8034349: uid=1001 > > from= > > Jun 6 20:00:35 vm-rancid postfix/cleanup[2302]: 0464D8034349: > > message-id=<20150607010035.0464D8034349 at vm-rancid.realdomain.net > > > > > Jun 6 20:00:35 vm-rancid postfix/qmgr[2246]: 0464D8034349: > > from=>, size=2360, > > nrcpt=1 (queue active) > > Jun 6 20:00:35 vm-rancid postfix/smtp[2309]: 0464D8034349: > > to= > >, orig_to=, > > relay=mail.realdomain.net [10.2.11.22]:25, > > delay=0.32, delays=0.01/0/0.01/0.3, dsn=2.6.0, status=sent (250 2.6.0 > > <20150607010035.0464D8034349 at vm-rancid.realdomain.net > > > > > [InternalId=7366618] Queued mail for delivery) > > Jun 6 20:00:35 vm-rancid postfix/qmgr[2246]: 0464D8034349: removed > > > That howto looks like something from Joe Random Blogger. It's suspect. > It also references rancid 2.3.2, which is ancient. > > Current version is 3.2, and the first problem you are going to run into > is the change in format of router.db > > Don't use that howto. > > Install rancid using any normal method (rpm, yum, tarball - the method > does not matter) and then follow the text files supplied by rancid itself. > > Have you run newaliases since editing /etc/aliases? > > > -- > Alan McKinnon > alan.mckinnon at gmail.com > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rancid at ale.cx Sun Jun 7 17:32:07 2015 From: rancid at ale.cx (Alex DEKKER) Date: Sun, 07 Jun 2015 18:32:07 +0100 Subject: [rancid] issues with email delivery In-Reply-To: References: <5573F86C.3000404@gmail.com> Message-ID: <55748017.9010402@ale.cx> On 07/06/15 17:36, Delmiro Campelo wrote: > Hi Alan, and thank you for helping with this. I was able to get it > working again by uninstalling postfix and reinstalling it. One more > question, how does rancid find mail server to send the email to ? is > it based on MX record for the email address specified in the aliases? RANCID just submits it locally, local MTA does the rest [hence advice about /etc/aliases]. alexd From alan.mckinnon at gmail.com Mon Jun 8 05:51:57 2015 From: alan.mckinnon at gmail.com (Alan McKinnon) Date: Mon, 08 Jun 2015 07:51:57 +0200 Subject: [rancid] issues with email delivery In-Reply-To: References: <5573F86C.3000404@gmail.com> Message-ID: <55752D7D.7000806@gmail.com> On 07/06/2015 18:36, Delmiro Campelo wrote: > Hi Alan, and thank you for helping with this. I was able to get it > working again by uninstalling postfix and reinstalling it. Drastic method. You likely "fixed" the problem by causing newaliases to be run. > One more > question, how does rancid find mail server to send the email to ? is it > based on MX record for the email address specified in the aliases? That is not a rancid question. It is 100% an email question. Seeing as it's coming up often nowadays, I'll answer it. Rancid does not find any mail server at all. It composes the mail and hands it over to the local MTA (mail transfer agent) which in your case is Postfix. Rancid's job is to compose a mail, Postfix's job is to get that mail delivered. Postfix looks up the MX records of the *domain* in each mail address, and tries to deliver the mails to each server in that list in turn using SMTP. How it does this is fully described in many quality articles on the internet. http://www.postfix.org has excellent documentation on all aspects of SMTP > > Thanks again, > Delmiro > > On Sun, Jun 7, 2015 at 2:53 AM, Alan McKinnon > wrote: > > On 07/06/2015 03:28, Delmiro Campelo wrote: > > Hello guys, > > > > I'm hoping that you can give me some ideas here. I'm in the process of > > installing rancid and I thought I had it working but for some > reason my > > emails are sent to the wrong email address, > > rancid-networking at realdomain.net > > > > is not valid and not what I > > have specified in my aliases, I'm stuck on this :( how can I fix > it ? i > > need them to go to myemail at realdomain.net > >. > > > > I'm used this article as the guide to help me set it up > > > http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch1_:_Network_Backups_With_Rancid#.VXNW70anFjY, > > please see below, and thank you for any help you can provide. > > > > > ************************************************************************** > > rancid.conf file: > > # > > LIST_OF_GROUPS="networking" > > > > Aliases file: > > /etc/aliases > > # Rancid email addresses > > # > > rancid-networking: myemail at realdomain.net > > > > > > rancid-admin-networking: myemail at realdomain.net > > > > > > > > PostFix log below: > > Jun 6 20:00:17 vm-rancid postfix/qmgr[2246]: 400828034349: removed > > Jun 6 20:00:35 vm-rancid postfix/pickup[2245]: 0464D8034349: uid=1001 > > from= > > Jun 6 20:00:35 vm-rancid postfix/cleanup[2302]: 0464D8034349: > > message-id=<20150607010035.0464D8034349 at vm-rancid.realdomain.net > > > >> > > Jun 6 20:00:35 vm-rancid postfix/qmgr[2246]: 0464D8034349: > > from= > >>, > size=2360, > > nrcpt=1 (queue active) > > Jun 6 20:00:35 vm-rancid postfix/smtp[2309]: 0464D8034349: > > to= > > >>, > orig_to=, > > relay=mail.realdomain.net > [10.2.11.22]:25, > > delay=0.32, delays=0.01/0/0.01/0.3, dsn=2.6.0, status=sent (250 2.6.0 > > <20150607010035.0464D8034349 at vm-rancid.realdomain.net > > > >> > > [InternalId=7366618] Queued mail for delivery) > > Jun 6 20:00:35 vm-rancid postfix/qmgr[2246]: 0464D8034349: removed > > > That howto looks like something from Joe Random Blogger. It's suspect. > It also references rancid 2.3.2, which is ancient. > > Current version is 3.2, and the first problem you are going to run into > is the change in format of router.db > > Don't use that howto. > > Install rancid using any normal method (rpm, yum, tarball - the method > does not matter) and then follow the text files supplied by rancid > itself. > > Have you run newaliases since editing /etc/aliases? > > > -- > Alan McKinnon > alan.mckinnon at gmail.com > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > > -- Alan McKinnon alan.mckinnon at gmail.com From ete.sabuj at gmail.com Mon Jun 8 07:54:26 2015 From: ete.sabuj at gmail.com (Hussein, Sazzad) Date: Mon, 8 Jun 2015 09:54:26 +0200 Subject: [rancid] issues with email delivery In-Reply-To: <55752D7D.7000806@gmail.com> References: <5573F86C.3000404@gmail.com> <55752D7D.7000806@gmail.com> Message-ID: *Hi Demiro,* I was experiencing same problem as you were. Could you please share the document which you are following for integrating rancid? On Mon, Jun 8, 2015 at 7:51 AM, Alan McKinnon wrote: > On 07/06/2015 18:36, Delmiro Campelo wrote: > > Hi Alan, and thank you for helping with this. I was able to get it > > working again by uninstalling postfix and reinstalling it. > > Drastic method. You likely "fixed" the problem by causing newaliases to > be run. > > > One more > > question, how does rancid find mail server to send the email to ? is it > > based on MX record for the email address specified in the aliases? > > That is not a rancid question. It is 100% an email question. > > Seeing as it's coming up often nowadays, I'll answer it. > > Rancid does not find any mail server at all. It composes the mail and > hands it over to the local MTA (mail transfer agent) which in your case > is Postfix. Rancid's job is to compose a mail, Postfix's job is to get > that mail delivered. > > Postfix looks up the MX records of the *domain* in each mail address, > and tries to deliver the mails to each server in that list in turn using > SMTP. How it does this is fully described in many quality articles on > the internet. > > http://www.postfix.org has excellent documentation on all aspects of SMTP > > > > > > > Thanks again, > > Delmiro > > > > On Sun, Jun 7, 2015 at 2:53 AM, Alan McKinnon > > wrote: > > > > On 07/06/2015 03:28, Delmiro Campelo wrote: > > > Hello guys, > > > > > > I'm hoping that you can give me some ideas here. I'm in the > process of > > > installing rancid and I thought I had it working but for some > > reason my > > > emails are sent to the wrong email address, > > > rancid-networking at realdomain.net > > > > > > > is not valid and not > what I > > > have specified in my aliases, I'm stuck on this :( how can I fix > > it ? i > > > need them to go to myemail at realdomain.net > > > >. > > > > > > I'm used this article as the guide to help me set it up > > > > > > http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch1_:_Network_Backups_With_Rancid#.VXNW70anFjY > , > > > please see below, and thank you for any help you can provide. > > > > > > > > > ************************************************************************** > > > rancid.conf file: > > > # > > > LIST_OF_GROUPS="networking" > > > > > > Aliases file: > > > /etc/aliases > > > # Rancid email addresses > > > # > > > rancid-networking: myemail at realdomain.net > > > > > > > > > rancid-admin-networking: myemail at realdomain.net > > > > > > > > > > > > PostFix log below: > > > Jun 6 20:00:17 vm-rancid postfix/qmgr[2246]: 400828034349: removed > > > Jun 6 20:00:35 vm-rancid postfix/pickup[2245]: 0464D8034349: > uid=1001 > > > from= > > > Jun 6 20:00:35 vm-rancid postfix/cleanup[2302]: 0464D8034349: > > > message-id=<20150607010035.0464D8034349 at vm-rancid.realdomain.net > > > > > > >> > > > Jun 6 20:00:35 vm-rancid postfix/qmgr[2246]: 0464D8034349: > > > from= > > >>, > > size=2360, > > > nrcpt=1 (queue active) > > > Jun 6 20:00:35 vm-rancid postfix/smtp[2309]: 0464D8034349: > > > to= > > > > > >>, > > orig_to=, > > > relay=mail.realdomain.net > > [10.2.11.22]:25, > > > delay=0.32, delays=0.01/0/0.01/0.3, dsn=2.6.0, status=sent (250 > 2.6.0 > > > <20150607010035.0464D8034349 at vm-rancid.realdomain.net > > > > > > >> > > > [InternalId=7366618] Queued mail for delivery) > > > Jun 6 20:00:35 vm-rancid postfix/qmgr[2246]: 0464D8034349: removed > > > > > > That howto looks like something from Joe Random Blogger. It's > suspect. > > It also references rancid 2.3.2, which is ancient. > > > > Current version is 3.2, and the first problem you are going to run > into > > is the change in format of router.db > > > > Don't use that howto. > > > > Install rancid using any normal method (rpm, yum, tarball - the > method > > does not matter) and then follow the text files supplied by rancid > > itself. > > > > Have you run newaliases since editing /etc/aliases? > > > > > > -- > > Alan McKinnon > > alan.mckinnon at gmail.com > > > > _______________________________________________ > > Rancid-discuss mailing list > > Rancid-discuss at shrubbery.net > > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > > > > > > > -- > Alan McKinnon > alan.mckinnon at gmail.com > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > -- --*Sazzad Hussein*www.sazzad-hussein.branded.me | ete.sabuj at gmail.com Hermann-Ehlers Str. 2, 49082 Osnabr?ck, Deutschland Mobile number: 4915214010461 -------------- next part -------------- An HTML attachment was scrubbed... URL: From delmiroc at gmail.com Mon Jun 8 13:15:21 2015 From: delmiroc at gmail.com (Delmiro Campelo) Date: Mon, 8 Jun 2015 08:15:21 -0500 Subject: [rancid] issues with email delivery In-Reply-To: References: <5573F86C.3000404@gmail.com> <55752D7D.7000806@gmail.com> Message-ID: I believe the issue that I was having with postfix was because i had configured relayhost= in main.cf. Here is the postfix config which is working with rancid fine right now. # cat /etc/postfix/main.cf | grep -v ^# queue_directory = /var/spool/postfix command_directory = /usr/sbin daemon_directory = /usr/libexec/postfix data_directory = /var/lib/postfix mail_owner = postfix myhostname = vm-rancid.myrealdomain.net mydomain = myrealdomain.net myorigin = $myhostname inet_interfaces = localhost inet_protocols = all unknown_local_recipient_reject_code = 550 alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases debug_peer_level = 2 debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/sbin/sendmail.postfix newaliases_path = /usr/bin/newaliases.postfix mailq_path = /usr/bin/mailq.postfix setgid_group = postdrop html_directory = no manpage_directory = /usr/share/man sample_directory = /usr/share/doc/postfix-2.10.1/samples readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES smtp_generic_maps = hash:/etc/postfix/generic I also wanted to change the way the email addresses appeared when email was delivered from this box, I just this article and worked like a charm. http://www.cyberciti.biz/tips/howto-postfix-masquerade-change-email-mail-address.html Thanks, Delmiro On Mon, Jun 8, 2015 at 2:54 AM, Hussein, Sazzad wrote: > *Hi Demiro,* > > I was experiencing same problem as you were. > Could you please share the document which you are following for > integrating rancid? > > On Mon, Jun 8, 2015 at 7:51 AM, Alan McKinnon > wrote: > >> On 07/06/2015 18:36, Delmiro Campelo wrote: >> > Hi Alan, and thank you for helping with this. I was able to get it >> > working again by uninstalling postfix and reinstalling it. >> >> Drastic method. You likely "fixed" the problem by causing newaliases to >> be run. >> >> > One more >> > question, how does rancid find mail server to send the email to ? is it >> > based on MX record for the email address specified in the aliases? >> >> That is not a rancid question. It is 100% an email question. >> >> Seeing as it's coming up often nowadays, I'll answer it. >> >> Rancid does not find any mail server at all. It composes the mail and >> hands it over to the local MTA (mail transfer agent) which in your case >> is Postfix. Rancid's job is to compose a mail, Postfix's job is to get >> that mail delivered. >> >> Postfix looks up the MX records of the *domain* in each mail address, >> and tries to deliver the mails to each server in that list in turn using >> SMTP. How it does this is fully described in many quality articles on >> the internet. >> >> http://www.postfix.org has excellent documentation on all aspects of SMTP >> >> >> >> > >> > Thanks again, >> > Delmiro >> > >> > On Sun, Jun 7, 2015 at 2:53 AM, Alan McKinnon > > > wrote: >> > >> > On 07/06/2015 03:28, Delmiro Campelo wrote: >> > > Hello guys, >> > > >> > > I'm hoping that you can give me some ideas here. I'm in the >> process of >> > > installing rancid and I thought I had it working but for some >> > reason my >> > > emails are sent to the wrong email address, >> > > rancid-networking at realdomain.net >> > >> > > > > > is not valid and not >> what I >> > > have specified in my aliases, I'm stuck on this :( how can I fix >> > it ? i >> > > need them to go to myemail at realdomain.net >> > > > >. >> > > >> > > I'm used this article as the guide to help me set it up >> > > >> > >> http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch1_:_Network_Backups_With_Rancid#.VXNW70anFjY >> , >> > > please see below, and thank you for any help you can provide. >> > > >> > > >> > >> ************************************************************************** >> > > rancid.conf file: >> > > # >> > > LIST_OF_GROUPS="networking" >> > > >> > > Aliases file: >> > > /etc/aliases >> > > # Rancid email addresses >> > > # >> > > rancid-networking: myemail at realdomain.net >> > >> > > > >> > > rancid-admin-networking: myemail at realdomain.net >> > >> > > > >> > > >> > > PostFix log below: >> > > Jun 6 20:00:17 vm-rancid postfix/qmgr[2246]: 400828034349: >> removed >> > > Jun 6 20:00:35 vm-rancid postfix/pickup[2245]: 0464D8034349: >> uid=1001 >> > > from= >> > > Jun 6 20:00:35 vm-rancid postfix/cleanup[2302]: 0464D8034349: >> > > message-id=<20150607010035.0464D8034349 at vm-rancid.realdomain.net >> > >> > > > > >> >> > > Jun 6 20:00:35 vm-rancid postfix/qmgr[2246]: 0464D8034349: >> > > from= >> > >>, >> > size=2360, >> > > nrcpt=1 (queue active) >> > > Jun 6 20:00:35 vm-rancid postfix/smtp[2309]: 0464D8034349: >> > > to=> > >> > > > > >>, >> > orig_to=, >> > > relay=mail.realdomain.net >> > [10.2.11.22]:25, >> > > delay=0.32, delays=0.01/0/0.01/0.3, dsn=2.6.0, status=sent (250 >> 2.6.0 >> > > <20150607010035.0464D8034349 at vm-rancid.realdomain.net >> > >> > > > > >> >> > > [InternalId=7366618] Queued mail for delivery) >> > > Jun 6 20:00:35 vm-rancid postfix/qmgr[2246]: 0464D8034349: >> removed >> > >> > >> > That howto looks like something from Joe Random Blogger. It's >> suspect. >> > It also references rancid 2.3.2, which is ancient. >> > >> > Current version is 3.2, and the first problem you are going to run >> into >> > is the change in format of router.db >> > >> > Don't use that howto. >> > >> > Install rancid using any normal method (rpm, yum, tarball - the >> method >> > does not matter) and then follow the text files supplied by rancid >> > itself. >> > >> > Have you run newaliases since editing /etc/aliases? >> > >> > >> > -- >> > Alan McKinnon >> > alan.mckinnon at gmail.com >> > >> > _______________________________________________ >> > Rancid-discuss mailing list >> > Rancid-discuss at shrubbery.net >> > http://www.shrubbery.net/mailman/listinfo/rancid-discuss >> > >> > >> >> >> -- >> Alan McKinnon >> alan.mckinnon at gmail.com >> >> _______________________________________________ >> Rancid-discuss mailing list >> Rancid-discuss at shrubbery.net >> http://www.shrubbery.net/mailman/listinfo/rancid-discuss >> > > > > -- > > --*Sazzad Hussein*www.sazzad-hussein.branded.me | ete.sabuj at gmail.com > Hermann-Ehlers Str. 2, 49082 Osnabr?ck, Deutschland > Mobile number: 4915214010461 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ete.sabuj at gmail.com Mon Jun 8 13:54:12 2015 From: ete.sabuj at gmail.com (Hussein, Sazzad) Date: Mon, 8 Jun 2015 15:54:12 +0200 Subject: [rancid] issues with email delivery In-Reply-To: References: <5573F86C.3000404@gmail.com> <55752D7D.7000806@gmail.com> Message-ID: Thanks Delmiro, I will test it & let you know! On 8 Jun 2015 15:15, "Delmiro Campelo" wrote: > I believe the issue that I was having with postfix was because i had > configured relayhost= in main.cf. > > Here is the postfix config which is working with rancid fine right now. > # cat /etc/postfix/main.cf | grep -v ^# > queue_directory = /var/spool/postfix > command_directory = /usr/sbin > daemon_directory = /usr/libexec/postfix > data_directory = /var/lib/postfix > mail_owner = postfix > myhostname = vm-rancid.myrealdomain.net > mydomain = myrealdomain.net > myorigin = $myhostname > inet_interfaces = localhost > inet_protocols = all > unknown_local_recipient_reject_code = 550 > alias_maps = hash:/etc/aliases > alias_database = hash:/etc/aliases > debug_peer_level = 2 > debugger_command = > PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin > ddd $daemon_directory/$process_name $process_id & sleep 5 > sendmail_path = /usr/sbin/sendmail.postfix > newaliases_path = /usr/bin/newaliases.postfix > mailq_path = /usr/bin/mailq.postfix > setgid_group = postdrop > html_directory = no > manpage_directory = /usr/share/man > sample_directory = /usr/share/doc/postfix-2.10.1/samples > readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES > smtp_generic_maps = hash:/etc/postfix/generic > > > I also wanted to change the way the email addresses appeared when email > was delivered from this box, I just this article and worked like a charm. > > http://www.cyberciti.biz/tips/howto-postfix-masquerade-change-email-mail-address.html > > Thanks, > Delmiro > > > On Mon, Jun 8, 2015 at 2:54 AM, Hussein, Sazzad > wrote: > >> *Hi Demiro,* >> >> I was experiencing same problem as you were. >> Could you please share the document which you are following for >> integrating rancid? >> >> On Mon, Jun 8, 2015 at 7:51 AM, Alan McKinnon >> wrote: >> >>> On 07/06/2015 18:36, Delmiro Campelo wrote: >>> > Hi Alan, and thank you for helping with this. I was able to get it >>> > working again by uninstalling postfix and reinstalling it. >>> >>> Drastic method. You likely "fixed" the problem by causing newaliases to >>> be run. >>> >>> > One more >>> > question, how does rancid find mail server to send the email to ? is it >>> > based on MX record for the email address specified in the aliases? >>> >>> That is not a rancid question. It is 100% an email question. >>> >>> Seeing as it's coming up often nowadays, I'll answer it. >>> >>> Rancid does not find any mail server at all. It composes the mail and >>> hands it over to the local MTA (mail transfer agent) which in your case >>> is Postfix. Rancid's job is to compose a mail, Postfix's job is to get >>> that mail delivered. >>> >>> Postfix looks up the MX records of the *domain* in each mail address, >>> and tries to deliver the mails to each server in that list in turn using >>> SMTP. How it does this is fully described in many quality articles on >>> the internet. >>> >>> http://www.postfix.org has excellent documentation on all aspects of >>> SMTP >>> >>> >>> >>> > >>> > Thanks again, >>> > Delmiro >>> > >>> > On Sun, Jun 7, 2015 at 2:53 AM, Alan McKinnon >> > > wrote: >>> > >>> > On 07/06/2015 03:28, Delmiro Campelo wrote: >>> > > Hello guys, >>> > > >>> > > I'm hoping that you can give me some ideas here. I'm in the >>> process of >>> > > installing rancid and I thought I had it working but for some >>> > reason my >>> > > emails are sent to the wrong email address, >>> > > rancid-networking at realdomain.net >>> > >>> > > >> > > is not valid and not >>> what I >>> > > have specified in my aliases, I'm stuck on this :( how can I fix >>> > it ? i >>> > > need them to go to myemail at realdomain.net >>> > >> > >. >>> > > >>> > > I'm used this article as the guide to help me set it up >>> > > >>> > >>> http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch1_:_Network_Backups_With_Rancid#.VXNW70anFjY >>> , >>> > > please see below, and thank you for any help you can provide. >>> > > >>> > > >>> > >>> ************************************************************************** >>> > > rancid.conf file: >>> > > # >>> > > LIST_OF_GROUPS="networking" >>> > > >>> > > Aliases file: >>> > > /etc/aliases >>> > > # Rancid email addresses >>> > > # >>> > > rancid-networking: myemail at realdomain.net >>> > >>> > > > >>> > > rancid-admin-networking: myemail at realdomain.net >>> > >>> > > > >>> > > >>> > > PostFix log below: >>> > > Jun 6 20:00:17 vm-rancid postfix/qmgr[2246]: 400828034349: >>> removed >>> > > Jun 6 20:00:35 vm-rancid postfix/pickup[2245]: 0464D8034349: >>> uid=1001 >>> > > from= >>> > > Jun 6 20:00:35 vm-rancid postfix/cleanup[2302]: 0464D8034349: >>> > > message-id=<20150607010035.0464D8034349 at vm-rancid.realdomain.net >>> > >>> > > >> > >> >>> > > Jun 6 20:00:35 vm-rancid postfix/qmgr[2246]: 0464D8034349: >>> > > from= >>> > >>, >>> > size=2360, >>> > > nrcpt=1 (queue active) >>> > > Jun 6 20:00:35 vm-rancid postfix/smtp[2309]: 0464D8034349: >>> > > to=>> > >>> > > >> > >>, >>> > orig_to=, >>> > > relay=mail.realdomain.net >>> > [10.2.11.22]:25, >>> > > delay=0.32, delays=0.01/0/0.01/0.3, dsn=2.6.0, status=sent (250 >>> 2.6.0 >>> > > <20150607010035.0464D8034349 at vm-rancid.realdomain.net >>> > >>> > > >> > >> >>> > > [InternalId=7366618] Queued mail for delivery) >>> > > Jun 6 20:00:35 vm-rancid postfix/qmgr[2246]: 0464D8034349: >>> removed >>> > >>> > >>> > That howto looks like something from Joe Random Blogger. It's >>> suspect. >>> > It also references rancid 2.3.2, which is ancient. >>> > >>> > Current version is 3.2, and the first problem you are going to run >>> into >>> > is the change in format of router.db >>> > >>> > Don't use that howto. >>> > >>> > Install rancid using any normal method (rpm, yum, tarball - the >>> method >>> > does not matter) and then follow the text files supplied by rancid >>> > itself. >>> > >>> > Have you run newaliases since editing /etc/aliases? >>> > >>> > >>> > -- >>> > Alan McKinnon >>> > alan.mckinnon at gmail.com >>> > >>> > _______________________________________________ >>> > Rancid-discuss mailing list >>> > Rancid-discuss at shrubbery.net >>> > http://www.shrubbery.net/mailman/listinfo/rancid-discuss >>> > >>> > >>> >>> >>> -- >>> Alan McKinnon >>> alan.mckinnon at gmail.com >>> >>> _______________________________________________ >>> Rancid-discuss mailing list >>> Rancid-discuss at shrubbery.net >>> http://www.shrubbery.net/mailman/listinfo/rancid-discuss >>> >> >> >> >> -- >> >> --*Sazzad Hussein*www.sazzad-hussein.branded.me | ete.sabuj at gmail.com >> Hermann-Ehlers Str. 2, 49082 Osnabr?ck, Deutschland >> Mobile number: 4915214010461 >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wilby at wilbysanchez.com Mon Jun 8 11:49:02 2015 From: wilby at wilbysanchez.com (Wilby Sanchez) Date: Mon, 8 Jun 2015 13:49:02 +0200 Subject: [rancid] [RANCID] PROBLEM WITH RANCID 3.1 AND 3.2 Message-ID: Hello everybody, i have small problem, i trying to install Rancid 3.1 and 3.2 **i try the both version because i have small error** when i download the packet and unpack #wget http://shrubbery.net/pub/rancid/rancid-3.1.tar.gz #tar -zxvf rancid-3.1.tar.gz i choose the configuration #./configure --prefix=/usr/local/rancid/ (check attached file) *but when i try to make the install this give error * #make install (check attached file) -- Wilby S?nchez Tejada http://www.wilbysanchez.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for gmake... /usr/bin/gmake checking whether /usr/bin/gmake sets $(MAKE)... yes checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking for style of include used by /usr/bin/gmake... GNU checking dependency style of gcc... gcc3 checking how to run the C preprocessor... gcc -E checking for an ANSI C-conforming const... yes checking for inline... inline checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for preprocessor stringizing operator... yes checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking ctype.h usability... yes checking ctype.h presence... yes checking for ctype.h... yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking libutil.h usability... no checking libutil.h presence... no checking for libutil.h... no checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking pty.h usability... yes checking pty.h presence... yes checking for pty.h... yes checking malloc.h usability... yes checking malloc.h presence... yes checking for malloc.h... yes checking for memory.h... (cached) yes checking siginfo.h usability... no checking siginfo.h presence... no checking for siginfo.h... no checking for string.h... (cached) yes checking for strings.h... (cached) yes checking stropts.h usability... no checking stropts.h presence... no checking for stropts.h... no checking sys/resource.h usability... yes checking sys/resource.h presence... yes checking for sys/resource.h... yes checking for sys/types.h... (cached) yes checking sys/wait.h usability... yes checking sys/wait.h presence... yes checking for sys/wait.h... yes checking sysexits.h usability... yes checking sysexits.h presence... yes checking for sysexits.h... yes checking for unistd.h... (cached) yes checking util.h usability... no checking util.h presence... no checking for util.h... no checking wait.h usability... yes checking wait.h presence... yes checking for wait.h... yes checking for asprintf... yes checking for memcpy... yes checking for memmove... yes checking for memset... yes checking for strerror... yes checking for strchr... yes checking for strrchr... yes checking for strstr... yes checking for strtok... yes checking for strrtok... no checking for index... yes checking for rindex... yes checking for unsetenv... yes checking for openpty... no checking for openpty in -lutil... yes checking return type of signal handlers... void checking for size_t... yes checking whether to create the local state directory at install time... yes checking whether to install sample .conf files in sysconfdir... yes checking whether subversion... no checking whether mail addresses should be in the rancid+ form... no checking whether admin mail addresses should be in the rancid-admin+ form... rancid-admin- checking for dirname... /usr/bin/dirname checking for a diff(1) that supports -u... diff -U 4 checking for sendmail... /usr/sbin/sendmail checking for gnutar... no checking for gtar... gtar checking for automake... ${SHELL} /home/rancid/tar/rancid-3.2/missing automake-1.15 checking for perl5... no checking for perl... /usr/bin/perl checking for expect... /usr/bin/expect checking for ping... /bin/ping checking for cvs... /usr/bin/cvs checking for comm... /usr/bin/comm checking for find... /bin/find checking for grep... (cached) /bin/grep checking for id... /usr/bin/id checking for mkdir... /bin/mkdir checking for rsh... no checking for sort... /bin/sort checking for ssh... /usr/bin/ssh checking for telnet... /usr/bin/telnet checking for touch... /bin/touch checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating bin/Makefile config.status: creating etc/Makefile config.status: creating include/Makefile config.status: creating lib/Makefile config.status: creating man/Makefile config.status: creating share/Makefile config.status: creating include/version.h config.status: creating bin/control_rancid config.status: creating bin/agmrancid config.status: creating bin/alogin config.status: creating bin/arancid config.status: creating bin/anlogin config.status: creating bin/arrancid config.status: creating bin/avologin config.status: creating bin/avorancid config.status: creating bin/blogin config.status: creating bin/brancid config.status: creating bin/cat5rancid config.status: creating bin/clogin config.status: creating bin/complogin config.status: creating bin/cssrancid config.status: creating bin/dllogin config.status: creating bin/elogin config.status: creating bin/erancid config.status: creating bin/f5rancid config.status: creating bin/f10rancid config.status: creating bin/flogin config.status: creating bin/fnlogin config.status: creating bin/fnrancid config.status: creating bin/hlogin config.status: creating bin/hrancid config.status: creating bin/htlogin config.status: creating bin/htrancid config.status: creating bin/jlogin config.status: creating bin/jerancid config.status: creating bin/mrancid config.status: creating bin/mrvlogin config.status: creating bin/mtrancid config.status: creating bin/mtlogin config.status: creating bin/nlogin config.status: creating bin/nrancid config.status: creating bin/nslogin config.status: creating bin/nsrancid config.status: creating bin/panlogin config.status: creating bin/prancid config.status: creating bin/rivlogin config.status: creating bin/rivrancid config.status: creating bin/rrancid config.status: creating bin/srancid config.status: creating bin/tlogin config.status: creating bin/trancid config.status: creating bin/xilogin config.status: creating bin/xirancid config.status: creating bin/xrancid config.status: creating bin/wlogin config.status: creating bin/zrancid config.status: creating share/rtrfilter config.status: creating include/config.h config.status: include/config.h is unchanged config.status: executing depfiles commands -------------- next part -------------- Making install in . gmake[1]: se ingresa al directorio `/home/rancid/tar/rancid-3.2' gmake[2]: se ingresa al directorio `/home/rancid/tar/rancid-3.2' gmake[2]: No se hace nada para `install-exec-am'. /bin/mkdir -p '/usr/local/rancid/share/rancid' /usr/bin/install -c -m 644 COPYING CHANGES FAQ README README.lg UPGRADING cloginrc.sample '/usr/local/rancid/share/rancid' /usr/bin/gmake install-data-hook gmake[3]: se ingresa al directorio `/home/rancid/tar/rancid-3.2' /bin/sh ./mkinstalldirs /usr/local/rancid /usr/local/rancid/etc /usr/local/rancid/var; gmake[3]: se sale del directorio `/home/rancid/tar/rancid-3.2' gmake[2]: se sale del directorio `/home/rancid/tar/rancid-3.2' gmake[1]: se sale del directorio `/home/rancid/tar/rancid-3.2' Making install in include gmake[1]: se ingresa al directorio `/home/rancid/tar/rancid-3.2/include' gmake[2]: se ingresa al directorio `/home/rancid/tar/rancid-3.2/include' gmake[2]: No se hace nada para `install-exec-am'. gmake[2]: No se hace nada para `install-data-am'. gmake[2]: se sale del directorio `/home/rancid/tar/rancid-3.2/include' gmake[1]: se sale del directorio `/home/rancid/tar/rancid-3.2/include' Making install in etc gmake[1]: se ingresa al directorio `/home/rancid/tar/rancid-3.2/etc' rm -f lg.conf.sample lg.conf.sample.tmp; \ sed -e 's, at bindir\@,/usr/local/rancid/bin,g' -e 's, at prefix\@,/usr/local/rancid,g' -e 's, at localstatedir\@,/usr/local/rancid/var,g' -e 's, at pkglibdir\@,/usr/local/rancid/lib/rancid,g' -e 's, at sysconfdir\@,/usr/local/rancid/etc,g' -e 's, at EXPECT_PATH\@,/usr/bin/expect,g' -e 's, at PERLV_PATH\@,/usr/bin/perl,g' -e 's, at ENV_PATH\@,/usr/bin:/usr/sbin:/bin:.:/usr/local/bin:/usr/bin,g' -e 's, at RCSSYS\@,cvs,g' -e 's, at PACKAGE\@,rancid,g' -e 's, at SENDMAIL\@,/usr/sbin/sendmail,g' -e 's, at VERSION\@,3.2,g' ./lg.conf.sample.in >lg.conf.sample.tmp; \ mv lg.conf.sample.tmp lg.conf.sample rm -f rancid.conf.sample rancid.conf.sample.tmp; \ sed -e 's, at bindir\@,/usr/local/rancid/bin,g' -e 's, at prefix\@,/usr/local/rancid,g' -e 's, at localstatedir\@,/usr/local/rancid/var,g' -e 's, at pkglibdir\@,/usr/local/rancid/lib/rancid,g' -e 's, at sysconfdir\@,/usr/local/rancid/etc,g' -e 's, at EXPECT_PATH\@,/usr/bin/expect,g' -e 's, at PERLV_PATH\@,/usr/bin/perl,g' -e 's, at ENV_PATH\@,/usr/bin:/usr/sbin:/bin:.:/usr/local/bin:/usr/bin,g' -e 's, at RCSSYS\@,cvs,g' -e 's, at PACKAGE\@,rancid,g' -e 's, at SENDMAIL\@,/usr/sbin/sendmail,g' -e 's, at VERSION\@,3.2,g' ./rancid.conf.sample.in >rancid.conf.sample.tmp; \ mv rancid.conf.sample.tmp rancid.conf.sample gmake[2]: se ingresa al directorio `/home/rancid/tar/rancid-3.2/etc' /bin/mkdir -p '/usr/local/rancid/etc' /usr/bin/install -c -m 644 rancid.types.base '/usr/local/rancid/etc' WARNING: *** /usr/local/rancid/etc/rancid.conf exists. See *** /usr/local/rancid/share/rancid/rancid.conf.sample for new *** examples. WARNING: *** /usr/local/rancid/etc/lg.conf exists. See *** /usr/local/rancid/share/rancid/lg.conf.sample for new *** examples. /bin/mkdir -p '/usr/local/rancid/share/rancid' /usr/bin/install -c -m 644 lg.conf.sample rancid.conf.sample '/usr/local/rancid/share/rancid' gmake[2]: se sale del directorio `/home/rancid/tar/rancid-3.2/etc' gmake[1]: se sale del directorio `/home/rancid/tar/rancid-3.2/etc' Making install in lib gmake[1]: se ingresa al directorio `/home/rancid/tar/rancid-3.2/lib' rm -f rancid.pm rancid.pm.tmp; \ sed -e 's, at prefix\@,/usr/local/rancid,g' -e 's, at localstatedir\@,/usr/local/rancid/var,g' -e 's, at sysconfdir\@,/usr/local/rancid/etc,g' -e 's, at EXPECT_PATH\@,/usr/bin/expect,g' -e 's, at PERLV\@,perl,g' -e 's, at PERLV_PATH\@,/usr/bin/perl,g' -e 's, at LG_PING_CMD\@,/bin/ping -c 1,g' -e 's, at ADMINMAILPLUS\@,rancid-admin-,g' -e 's, at MAILPLUS\@,rancid-,g' -e 's, at PACKAGE\@,rancid,g' -e 's, at SVN_FSTYPE\@,--fs-type fsfs,g' -e 's, at VERSION\@,3.2,g' -e 's, at COPYYEARS\@,1997-2015,g' ./rancid.pm.in >rancid.pm.tmp; \ chmod +r rancid.pm.tmp; \ mv rancid.pm.tmp rancid.pm rm -f arbor.pm arbor.pm.tmp; \ sed -e 's, at prefix\@,/usr/local/rancid,g' -e 's, at localstatedir\@,/usr/local/rancid/var,g' -e 's, at sysconfdir\@,/usr/local/rancid/etc,g' -e 's, at EXPECT_PATH\@,/usr/bin/expect,g' -e 's, at PERLV\@,perl,g' -e 's, at PERLV_PATH\@,/usr/bin/perl,g' -e 's, at LG_PING_CMD\@,/bin/ping -c 1,g' -e 's, at ADMINMAILPLUS\@,rancid-admin-,g' -e 's, at MAILPLUS\@,rancid-,g' -e 's, at PACKAGE\@,rancid,g' -e 's, at SVN_FSTYPE\@,--fs-type fsfs,g' -e 's, at VERSION\@,3.2,g' -e 's, at COPYYEARS\@,1997-2015,g' ./arbor.pm.in >arbor.pm.tmp; \ chmod +r arbor.pm.tmp; \ mv arbor.pm.tmp arbor.pm rm -f ciscowlc.pm ciscowlc.pm.tmp; \ sed -e 's, at prefix\@,/usr/local/rancid,g' -e 's, at localstatedir\@,/usr/local/rancid/var,g' -e 's, at sysconfdir\@,/usr/local/rancid/etc,g' -e 's, at EXPECT_PATH\@,/usr/bin/expect,g' -e 's, at PERLV\@,perl,g' -e 's, at PERLV_PATH\@,/usr/bin/perl,g' -e 's, at LG_PING_CMD\@,/bin/ping -c 1,g' -e 's, at ADMINMAILPLUS\@,rancid-admin-,g' -e 's, at MAILPLUS\@,rancid-,g' -e 's, at PACKAGE\@,rancid,g' -e 's, at SVN_FSTYPE\@,--fs-type fsfs,g' -e 's, at VERSION\@,3.2,g' -e 's, at COPYYEARS\@,1997-2015,g' ./ciscowlc.pm.in >ciscowlc.pm.tmp; \ chmod +r ciscowlc.pm.tmp; \ mv ciscowlc.pm.tmp ciscowlc.pm rm -f dell.pm dell.pm.tmp; \ sed -e 's, at prefix\@,/usr/local/rancid,g' -e 's, at localstatedir\@,/usr/local/rancid/var,g' -e 's, at sysconfdir\@,/usr/local/rancid/etc,g' -e 's, at EXPECT_PATH\@,/usr/bin/expect,g' -e 's, at PERLV\@,perl,g' -e 's, at PERLV_PATH\@,/usr/bin/perl,g' -e 's, at LG_PING_CMD\@,/bin/ping -c 1,g' -e 's, at ADMINMAILPLUS\@,rancid-admin-,g' -e 's, at MAILPLUS\@,rancid-,g' -e 's, at PACKAGE\@,rancid,g' -e 's, at SVN_FSTYPE\@,--fs-type fsfs,g' -e 's, at VERSION\@,3.2,g' -e 's, at COPYYEARS\@,1997-2015,g' ./dell.pm.in >dell.pm.tmp; \ chmod +r dell.pm.tmp; \ mv dell.pm.tmp dell.pm rm -f eos.pm eos.pm.tmp; \ sed -e 's, at prefix\@,/usr/local/rancid,g' -e 's, at localstatedir\@,/usr/local/rancid/var,g' -e 's, at sysconfdir\@,/usr/local/rancid/etc,g' -e 's, at EXPECT_PATH\@,/usr/bin/expect,g' -e 's, at PERLV\@,perl,g' -e 's, at PERLV_PATH\@,/usr/bin/perl,g' -e 's, at LG_PING_CMD\@,/bin/ping -c 1,g' -e 's, at ADMINMAILPLUS\@,rancid-admin-,g' -e 's, at MAILPLUS\@,rancid-,g' -e 's, at PACKAGE\@,rancid,g' -e 's, at SVN_FSTYPE\@,--fs-type fsfs,g' -e 's, at VERSION\@,3.2,g' -e 's, at COPYYEARS\@,1997-2015,g' ./eos.pm.in >eos.pm.tmp; \ chmod +r eos.pm.tmp; \ mv eos.pm.tmp eos.pm rm -f foundry.pm foundry.pm.tmp; \ sed -e 's, at prefix\@,/usr/local/rancid,g' -e 's, at localstatedir\@,/usr/local/rancid/var,g' -e 's, at sysconfdir\@,/usr/local/rancid/etc,g' -e 's, at EXPECT_PATH\@,/usr/bin/expect,g' -e 's, at PERLV\@,perl,g' -e 's, at PERLV_PATH\@,/usr/bin/perl,g' -e 's, at LG_PING_CMD\@,/bin/ping -c 1,g' -e 's, at ADMINMAILPLUS\@,rancid-admin-,g' -e 's, at MAILPLUS\@,rancid-,g' -e 's, at PACKAGE\@,rancid,g' -e 's, at SVN_FSTYPE\@,--fs-type fsfs,g' -e 's, at VERSION\@,3.2,g' -e 's, at COPYYEARS\@,1997-2015,g' ./foundry.pm.in >foundry.pm.tmp; \ chmod +r foundry.pm.tmp; \ mv foundry.pm.tmp foundry.pm rm -f ios.pm ios.pm.tmp; \ sed -e 's, at prefix\@,/usr/local/rancid,g' -e 's, at localstatedir\@,/usr/local/rancid/var,g' -e 's, at sysconfdir\@,/usr/local/rancid/etc,g' -e 's, at EXPECT_PATH\@,/usr/bin/expect,g' -e 's, at PERLV\@,perl,g' -e 's, at PERLV_PATH\@,/usr/bin/perl,g' -e 's, at LG_PING_CMD\@,/bin/ping -c 1,g' -e 's, at ADMINMAILPLUS\@,rancid-admin-,g' -e 's, at MAILPLUS\@,rancid-,g' -e 's, at PACKAGE\@,rancid,g' -e 's, at SVN_FSTYPE\@,--fs-type fsfs,g' -e 's, at VERSION\@,3.2,g' -e 's, at COPYYEARS\@,1997-2015,g' ./ios.pm.in >ios.pm.tmp; \ chmod +r ios.pm.tmp; \ mv ios.pm.tmp ios.pm rm -f iosxr.pm iosxr.pm.tmp; \ sed -e 's, at prefix\@,/usr/local/rancid,g' -e 's, at localstatedir\@,/usr/local/rancid/var,g' -e 's, at sysconfdir\@,/usr/local/rancid/etc,g' -e 's, at EXPECT_PATH\@,/usr/bin/expect,g' -e 's, at PERLV\@,perl,g' -e 's, at PERLV_PATH\@,/usr/bin/perl,g' -e 's, at LG_PING_CMD\@,/bin/ping -c 1,g' -e 's, at ADMINMAILPLUS\@,rancid-admin-,g' -e 's, at MAILPLUS\@,rancid-,g' -e 's, at PACKAGE\@,rancid,g' -e 's, at SVN_FSTYPE\@,--fs-type fsfs,g' -e 's, at VERSION\@,3.2,g' -e 's, at COPYYEARS\@,1997-2015,g' ./iosxr.pm.in >iosxr.pm.tmp; \ chmod +r iosxr.pm.tmp; \ mv iosxr.pm.tmp iosxr.pm rm -f junos.pm junos.pm.tmp; \ sed -e 's, at prefix\@,/usr/local/rancid,g' -e 's, at localstatedir\@,/usr/local/rancid/var,g' -e 's, at sysconfdir\@,/usr/local/rancid/etc,g' -e 's, at EXPECT_PATH\@,/usr/bin/expect,g' -e 's, at PERLV\@,perl,g' -e 's, at PERLV_PATH\@,/usr/bin/perl,g' -e 's, at LG_PING_CMD\@,/bin/ping -c 1,g' -e 's, at ADMINMAILPLUS\@,rancid-admin-,g' -e 's, at MAILPLUS\@,rancid-,g' -e 's, at PACKAGE\@,rancid,g' -e 's, at SVN_FSTYPE\@,--fs-type fsfs,g' -e 's, at VERSION\@,3.2,g' -e 's, at COPYYEARS\@,1997-2015,g' ./junos.pm.in >junos.pm.tmp; \ chmod +r junos.pm.tmp; \ mv junos.pm.tmp junos.pm rm -f mrv.pm mrv.pm.tmp; \ sed -e 's, at prefix\@,/usr/local/rancid,g' -e 's, at localstatedir\@,/usr/local/rancid/var,g' -e 's, at sysconfdir\@,/usr/local/rancid/etc,g' -e 's, at EXPECT_PATH\@,/usr/bin/expect,g' -e 's, at PERLV\@,perl,g' -e 's, at PERLV_PATH\@,/usr/bin/perl,g' -e 's, at LG_PING_CMD\@,/bin/ping -c 1,g' -e 's, at ADMINMAILPLUS\@,rancid-admin-,g' -e 's, at MAILPLUS\@,rancid-,g' -e 's, at PACKAGE\@,rancid,g' -e 's, at SVN_FSTYPE\@,--fs-type fsfs,g' -e 's, at VERSION\@,3.2,g' -e 's, at COPYYEARS\@,1997-2015,g' ./mrv.pm.in >mrv.pm.tmp; \ chmod +r mrv.pm.tmp; \ mv mrv.pm.tmp mrv.pm rm -f nxos.pm nxos.pm.tmp; \ sed -e 's, at prefix\@,/usr/local/rancid,g' -e 's, at localstatedir\@,/usr/local/rancid/var,g' -e 's, at sysconfdir\@,/usr/local/rancid/etc,g' -e 's, at EXPECT_PATH\@,/usr/bin/expect,g' -e 's, at PERLV\@,perl,g' -e 's, at PERLV_PATH\@,/usr/bin/perl,g' -e 's, at LG_PING_CMD\@,/bin/ping -c 1,g' -e 's, at ADMINMAILPLUS\@,rancid-admin-,g' -e 's, at MAILPLUS\@,rancid-,g' -e 's, at PACKAGE\@,rancid,g' -e 's, at SVN_FSTYPE\@,--fs-type fsfs,g' -e 's, at VERSION\@,3.2,g' -e 's, at COPYYEARS\@,1997-2015,g' ./nxos.pm.in >nxos.pm.tmp; \ chmod +r nxos.pm.tmp; \ mv nxos.pm.tmp nxos.pm rm -f panos.pm panos.pm.tmp; \ sed -e 's, at prefix\@,/usr/local/rancid,g' -e 's, at localstatedir\@,/usr/local/rancid/var,g' -e 's, at sysconfdir\@,/usr/local/rancid/etc,g' -e 's, at EXPECT_PATH\@,/usr/bin/expect,g' -e 's, at PERLV\@,perl,g' -e 's, at PERLV_PATH\@,/usr/bin/perl,g' -e 's, at LG_PING_CMD\@,/bin/ping -c 1,g' -e 's, at ADMINMAILPLUS\@,rancid-admin-,g' -e 's, at MAILPLUS\@,rancid-,g' -e 's, at PACKAGE\@,rancid,g' -e 's, at SVN_FSTYPE\@,--fs-type fsfs,g' -e 's, at VERSION\@,3.2,g' -e 's, at COPYYEARS\@,1997-2015,g' ./panos.pm.in >panos.pm.tmp; \ chmod +r panos.pm.tmp; \ mv panos.pm.tmp panos.pm gmake[2]: se ingresa al directorio `/home/rancid/tar/rancid-3.2/lib' gmake[2]: No se hace nada para `install-exec-am'. /bin/mkdir -p '/usr/local/rancid/lib/rancid' /usr/bin/install -c -m 644 rancid.pm arbor.pm ciscowlc.pm dell.pm eos.pm foundry.pm ios.pm iosxr.pm junos.pm mrv.pm nxos.pm panos.pm '/usr/local/rancid/lib/rancid' gmake[2]: se sale del directorio `/home/rancid/tar/rancid-3.2/lib' gmake[1]: se sale del directorio `/home/rancid/tar/rancid-3.2/lib' Making install in bin gmake[1]: se ingresa al directorio `/home/rancid/tar/rancid-3.2/bin' gcc -DHAVE_CONFIG_H -I. -I../include -g -O0 -MT hpuifilter.o -MD -MP -MF .deps/hpuifilter.Tpo -c -o hpuifilter.o hpuifilter.c mv -f .deps/hpuifilter.Tpo .deps/hpuifilter.Po gcc -g -O0 -o hpuifilter hpuifilter.o -lutil gcc -DHAVE_CONFIG_H -I. -I../include -g -O0 -MT par.o -MD -MP -MF .deps/par.Tpo -c -o par.o par.c mv -f .deps/par.Tpo .deps/par.Po gcc -g -O0 -o par par.o -lutil rm -f plogin plogin.tmp; \ sed -e 's, at prefix\@,/usr/local/rancid,g' -e 's, at localstatedir\@,/usr/local/rancid/var,g' -e 's, at pkglibdir\@,/usr/local/rancid/lib/rancid,g' -e 's, at sysconfdir\@,/usr/local/rancid/etc,g' -e 's, at EXPECT_PATH\@,/usr/bin/expect,g' -e 's, at PERLV\@,perl,g' -e 's, at PERLV_PATH\@,/usr/bin/perl,g' -e 's, at LG_PING_CMD\@,/bin/ping -c 1,g' -e 's, at ADMINMAILPLUS\@,rancid-admin-,g' -e 's, at MAILPLUS\@,rancid-,g' -e 's, at PACKAGE\@,rancid,g' -e 's, at SVN_FSTYPE\@,--fs-type fsfs,g' -e 's, at SENDMAIL\@,/usr/sbin/sendmail,g' -e 's, at VERSION\@,3.2,g' -e 's, at COPYYEARS\@,1997-2015,g' ./plogin.in >plogin.tmp; \ chmod +x plogin.tmp; \ mv plogin.tmp plogin rm -f rancid rancid.tmp; \ sed -e 's, at prefix\@,/usr/local/rancid,g' -e 's, at localstatedir\@,/usr/local/rancid/var,g' -e 's, at pkglibdir\@,/usr/local/rancid/lib/rancid,g' -e 's, at sysconfdir\@,/usr/local/rancid/etc,g' -e 's, at EXPECT_PATH\@,/usr/bin/expect,g' -e 's, at PERLV\@,perl,g' -e 's, at PERLV_PATH\@,/usr/bin/perl,g' -e 's, at LG_PING_CMD\@,/bin/ping -c 1,g' -e 's, at ADMINMAILPLUS\@,rancid-admin-,g' -e 's, at MAILPLUS\@,rancid-,g' -e 's, at PACKAGE\@,rancid,g' -e 's, at SVN_FSTYPE\@,--fs-type fsfs,g' -e 's, at SENDMAIL\@,/usr/sbin/sendmail,g' -e 's, at VERSION\@,3.2,g' -e 's, at COPYYEARS\@,1997-2015,g' ./rancid.in >rancid.tmp; \ chmod +x rancid.tmp; \ mv rancid.tmp rancid rm -f lg.cgi lg.cgi.tmp; \ sed -e 's, at prefix\@,/usr/local/rancid,g' -e 's, at localstatedir\@,/usr/local/rancid/var,g' -e 's, at pkglibdir\@,/usr/local/rancid/lib/rancid,g' -e 's, at sysconfdir\@,/usr/local/rancid/etc,g' -e 's, at EXPECT_PATH\@,/usr/bin/expect,g' -e 's, at PERLV\@,perl,g' -e 's, at PERLV_PATH\@,/usr/bin/perl,g' -e 's, at LG_PING_CMD\@,/bin/ping -c 1,g' -e 's, at ADMINMAILPLUS\@,rancid-admin-,g' -e 's, at MAILPLUS\@,rancid-,g' -e 's, at PACKAGE\@,rancid,g' -e 's, at SVN_FSTYPE\@,--fs-type fsfs,g' -e 's, at SENDMAIL\@,/usr/sbin/sendmail,g' -e 's, at VERSION\@,3.2,g' -e 's, at COPYYEARS\@,1997-2015,g' ./lg.cgi.in >lg.cgi.tmp; \ chmod +x lg.cgi.tmp; \ mv lg.cgi.tmp lg.cgi rm -f lgform.cgi lgform.cgi.tmp; \ sed -e 's, at prefix\@,/usr/local/rancid,g' -e 's, at localstatedir\@,/usr/local/rancid/var,g' -e 's, at pkglibdir\@,/usr/local/rancid/lib/rancid,g' -e 's, at sysconfdir\@,/usr/local/rancid/etc,g' -e 's, at EXPECT_PATH\@,/usr/bin/expect,g' -e 's, at PERLV\@,perl,g' -e 's, at PERLV_PATH\@,/usr/bin/perl,g' -e 's, at LG_PING_CMD\@,/bin/ping -c 1,g' -e 's, at ADMINMAILPLUS\@,rancid-admin-,g' -e 's, at MAILPLUS\@,rancid-,g' -e 's, at PACKAGE\@,rancid,g' -e 's, at SVN_FSTYPE\@,--fs-type fsfs,g' -e 's, at SENDMAIL\@,/usr/sbin/sendmail,g' -e 's, at VERSION\@,3.2,g' -e 's, at COPYYEARS\@,1997-2015,g' ./lgform.cgi.in >lgform.cgi.tmp; \ chmod +x lgform.cgi.tmp; \ mv lgform.cgi.tmp lgform.cgi rm -f rancid-cvs rancid-cvs.tmp; \ sed -e 's, at prefix\@,/usr/local/rancid,g' -e 's, at localstatedir\@,/usr/local/rancid/var,g' -e 's, at pkglibdir\@,/usr/local/rancid/lib/rancid,g' -e 's, at sysconfdir\@,/usr/local/rancid/etc,g' -e 's, at EXPECT_PATH\@,/usr/bin/expect,g' -e 's, at PERLV\@,perl,g' -e 's, at PERLV_PATH\@,/usr/bin/perl,g' -e 's, at LG_PING_CMD\@,/bin/ping -c 1,g' -e 's, at ADMINMAILPLUS\@,rancid-admin-,g' -e 's, at MAILPLUS\@,rancid-,g' -e 's, at PACKAGE\@,rancid,g' -e 's, at SVN_FSTYPE\@,--fs-type fsfs,g' -e 's, at SENDMAIL\@,/usr/sbin/sendmail,g' -e 's, at VERSION\@,3.2,g' -e 's, at COPYYEARS\@,1997-2015,g' ./rancid-cvs.in >rancid-cvs.tmp; \ chmod +x rancid-cvs.tmp; \ mv rancid-cvs.tmp rancid-cvs rm -f rancid-fe rancid-fe.tmp; \ sed -e 's, at prefix\@,/usr/local/rancid,g' -e 's, at localstatedir\@,/usr/local/rancid/var,g' -e 's, at pkglibdir\@,/usr/local/rancid/lib/rancid,g' -e 's, at sysconfdir\@,/usr/local/rancid/etc,g' -e 's, at EXPECT_PATH\@,/usr/bin/expect,g' -e 's, at PERLV\@,perl,g' -e 's, at PERLV_PATH\@,/usr/bin/perl,g' -e 's, at LG_PING_CMD\@,/bin/ping -c 1,g' -e 's, at ADMINMAILPLUS\@,rancid-admin-,g' -e 's, at MAILPLUS\@,rancid-,g' -e 's, at PACKAGE\@,rancid,g' -e 's, at SVN_FSTYPE\@,--fs-type fsfs,g' -e 's, at SENDMAIL\@,/usr/sbin/sendmail,g' -e 's, at VERSION\@,3.2,g' -e 's, at COPYYEARS\@,1997-2015,g' ./rancid-fe.in >rancid-fe.tmp; \ chmod +x rancid-fe.tmp; \ mv rancid-fe.tmp rancid-fe rm -f rancid-run rancid-run.tmp; \ sed -e 's, at prefix\@,/usr/local/rancid,g' -e 's, at localstatedir\@,/usr/local/rancid/var,g' -e 's, at pkglibdir\@,/usr/local/rancid/lib/rancid,g' -e 's, at sysconfdir\@,/usr/local/rancid/etc,g' -e 's, at EXPECT_PATH\@,/usr/bin/expect,g' -e 's, at PERLV\@,perl,g' -e 's, at PERLV_PATH\@,/usr/bin/perl,g' -e 's, at LG_PING_CMD\@,/bin/ping -c 1,g' -e 's, at ADMINMAILPLUS\@,rancid-admin-,g' -e 's, at MAILPLUS\@,rancid-,g' -e 's, at PACKAGE\@,rancid,g' -e 's, at SVN_FSTYPE\@,--fs-type fsfs,g' -e 's, at SENDMAIL\@,/usr/sbin/sendmail,g' -e 's, at VERSION\@,3.2,g' -e 's, at COPYYEARS\@,1997-2015,g' ./rancid-run.in >rancid-run.tmp; \ chmod +x rancid-run.tmp; \ mv rancid-run.tmp rancid-run gmake[2]: se ingresa al directorio `/home/rancid/tar/rancid-3.2/bin' /bin/mkdir -p '/usr/local/rancid/bin' /usr/bin/install -c hpuifilter par '/usr/local/rancid/bin' /bin/mkdir -p '/usr/local/rancid/bin' /usr/bin/install -c agmrancid alogin anlogin arancid arrancid avologin avorancid blogin brancid cat5rancid clogin complogin control_rancid cssrancid dllogin elogin erancid f5rancid f10rancid flogin fnlogin fnrancid hlogin hrancid htlogin htrancid jerancid jlogin mrancid mrvlogin mtlogin mtrancid nlogin nrancid nslogin nsrancid panlogin plogin rancid rivlogin '/usr/local/rancid/bin' /usr/bin/install -c rivrancid rrancid srancid tlogin trancid wlogin xilogin xirancid xrancid zrancid lg.cgi lgform.cgi rancid-cvs rancid-fe rancid-run '/usr/local/rancid/bin' gmake[2]: No se hace nada para `install-data-am'. gmake[2]: se sale del directorio `/home/rancid/tar/rancid-3.2/bin' gmake[1]: se sale del directorio `/home/rancid/tar/rancid-3.2/bin' Making install in man gmake[1]: se ingresa al directorio `/home/rancid/tar/rancid-3.2/man' rm -f lg.conf.5 lg.conf.5.tmp; \ sed -e 's, at prefix\@,/usr/local/rancid,g' -e 's, at bindir\@,/usr/local/rancid/bin,g' -e 's, at localstatedir\@,/usr/local/rancid/var,g' -e 's, at sysconfdir\@,/usr/local/rancid/etc,g' -e 's, at pkgdatadir\@,/usr/local/rancid/share/rancid,g' -e 's, at ADMINMAILPLUS\@,rancid-admin-,g' -e 's, at MAILPLUS\@,rancid-,g' ./lg.conf.5.in >lg.conf.5.tmp; \ mv lg.conf.5.tmp lg.conf.5 rm -f rancid.3 rancid.3.tmp; \ sed -e 's, at prefix\@,/usr/local/rancid,g' -e 's, at bindir\@,/usr/local/rancid/bin,g' -e 's, at localstatedir\@,/usr/local/rancid/var,g' -e 's, at sysconfdir\@,/usr/local/rancid/etc,g' -e 's, at pkgdatadir\@,/usr/local/rancid/share/rancid,g' -e 's, at ADMINMAILPLUS\@,rancid-admin-,g' -e 's, at MAILPLUS\@,rancid-,g' ./rancid.3.in >rancid.3.tmp; \ mv rancid.3.tmp rancid.3 rm -f rancid.conf.5 rancid.conf.5.tmp; \ sed -e 's, at prefix\@,/usr/local/rancid,g' -e 's, at bindir\@,/usr/local/rancid/bin,g' -e 's, at localstatedir\@,/usr/local/rancid/var,g' -e 's, at sysconfdir\@,/usr/local/rancid/etc,g' -e 's, at pkgdatadir\@,/usr/local/rancid/share/rancid,g' -e 's, at ADMINMAILPLUS\@,rancid-admin-,g' -e 's, at MAILPLUS\@,rancid-,g' ./rancid.conf.5.in >rancid.conf.5.tmp; \ mv rancid.conf.5.tmp rancid.conf.5 rm -f rancid.types.conf.5 rancid.types.conf.5.tmp; \ sed -e 's, at prefix\@,/usr/local/rancid,g' -e 's, at bindir\@,/usr/local/rancid/bin,g' -e 's, at localstatedir\@,/usr/local/rancid/var,g' -e 's, at sysconfdir\@,/usr/local/rancid/etc,g' -e 's, at pkgdatadir\@,/usr/local/rancid/share/rancid,g' -e 's, at ADMINMAILPLUS\@,rancid-admin-,g' -e 's, at MAILPLUS\@,rancid-,g' ./rancid.types.conf.5.in >rancid.types.conf.5.tmp; \ mv rancid.types.conf.5.tmp rancid.types.conf.5 rm -f lg_intro.1 lg_intro.1.tmp; \ sed -e 's, at prefix\@,/usr/local/rancid,g' -e 's, at bindir\@,/usr/local/rancid/bin,g' -e 's, at localstatedir\@,/usr/local/rancid/var,g' -e 's, at sysconfdir\@,/usr/local/rancid/etc,g' -e 's, at pkgdatadir\@,/usr/local/rancid/share/rancid,g' -e 's, at ADMINMAILPLUS\@,rancid-admin-,g' -e 's, at MAILPLUS\@,rancid-,g' ./lg_intro.1.in >lg_intro.1.tmp; \ mv lg_intro.1.tmp lg_intro.1 gmake[2]: se ingresa al directorio `/home/rancid/tar/rancid-3.2/man' gmake[2]: No se hace nada para `install-exec-am'. /bin/mkdir -p '/usr/local/rancid/share/man/man1' /usr/bin/install -c -m 644 agmrancid.1 alogin.1 anlogin.1 anrancid.1 arancid.1 arrancid.1 avologin.1 avorancid.1 blogin.1 brancid.1 cat5rancid.1 clogin.1 control_rancid.1 cssrancid.1 dllogin.1 elogin.1 erancid.1 f5rancid.1 f10rancid.1 flogin.1 fnlogin.1 fnrancid.1 hlogin.1 hrancid.1 htlogin.1 htrancid.1 jerancid.1 jlogin.1 mrancid.1 mrvlogin.1 mtlogin.1 mtrancid.1 nlogin.1 nrancid.1 nslogin.1 nsrancid.1 nxrancid.1 panlogin.1 par.1 plogin.1 '/usr/local/rancid/share/man/man1' /usr/bin/install -c -m 644 prancid.1 rancid-cvs.1 rancid-run.1 rancid.1 rancid_intro.1 rivlogin.1 rivrancid.1 rrancid.1 srancid.1 tlogin.1 wlogin.1 xilogin.1 xirancid.1 trancid.1 xrancid.1 zrancid.1 complogin.1 comprancid.1 lg_intro.1 '/usr/local/rancid/share/man/man1' /bin/mkdir -p '/usr/local/rancid/share/man/man3' /usr/bin/install -c -m 644 rancid.3 '/usr/local/rancid/share/man/man3' /bin/mkdir -p '/usr/local/rancid/share/man/man5' /usr/bin/install -c -m 644 cloginrc.5 rancid.types.base.5 router.db.5 lg.conf.5 rancid.conf.5 rancid.types.conf.5 '/usr/local/rancid/share/man/man5' gmake[2]: se sale del directorio `/home/rancid/tar/rancid-3.2/man' gmake[1]: se sale del directorio `/home/rancid/tar/rancid-3.2/man' Making install in share gmake[1]: se ingresa al directorio `/home/rancid/tar/rancid-3.2/share' rm -f rancid-cvspurge rancid-cvspurge.tmp; \ sed -e 's, at prefix\@,/usr/local/rancid,g' -e 's, at localstatedir\@,/usr/local/rancid/var,g' -e 's, at sysconfdir\@,/usr/local/rancid/etc,g' -e 's, at pkgdatadir\@,/usr/local/rancid/share/rancid,g' -e 's, at ADMINMAILPLUS\@,rancid-admin-,g' -e 's, at MAILPLUS\@,rancid-,g' ./rancid-cvspurge.in >rancid-cvspurge.tmp; \ chmod +x rancid-cvspurge.tmp; \ mv rancid-cvspurge.tmp rancid-cvspurge rm -f downreport downreport.tmp; \ sed -e 's, at prefix\@,/usr/local/rancid,g' -e 's, at localstatedir\@,/usr/local/rancid/var,g' -e 's, at sysconfdir\@,/usr/local/rancid/etc,g' -e 's, at pkgdatadir\@,/usr/local/rancid/share/rancid,g' -e 's, at ADMINMAILPLUS\@,rancid-admin-,g' -e 's, at MAILPLUS\@,rancid-,g' ./downreport.in >downreport.tmp; \ chmod +x downreport.tmp; \ mv downreport.tmp downreport gmake[2]: se ingresa al directorio `/home/rancid/tar/rancid-3.2/share' gmake[2]: No se hace nada para `install-exec-am'. /bin/mkdir -p '/usr/local/rancid/share/rancid' /usr/bin/install -c -m 644 README.misc cisco-load.exp cisco-reload.exp index.html lgnotes.html '/usr/local/rancid/share/rancid' /bin/mkdir -p '/usr/local/rancid/share/rancid' /usr/bin/install -c getipacctg '/usr/local/rancid/share/rancid' /bin/mkdir -p '/usr/local/rancid/share/rancid' /usr/bin/install -c rancid-cvspurge rtrfilter downreport '/usr/local/rancid/share/rancid' gmake[2]: se sale del directorio `/home/rancid/tar/rancid-3.2/share' gmake[1]: se sale del directorio `/home/rancid/tar/rancid-3.2/share' From delmiroc at gmail.com Mon Jun 8 20:37:51 2015 From: delmiroc at gmail.com (Delmiro Campelo) Date: Mon, 8 Jun 2015 15:37:51 -0500 Subject: [rancid] CVSWeb issues Message-ID: Hello guys, I'm writing to see if anyone has run into this issue before or if you have a suggestion about other tools that would allow via web interface to browse the CVS repository for rancid. Thanks for any input or suggestions you can provide. Thus far i'm trying to get CVSWeb working with rancid 3.2 but i'm running into the following error. I'm using the article linked below as a guide (Step 7). http://www.richardyau.com/?p=11 ERROR: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at root at localhost to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error may be available in the server error log. /usr/local/etc/cvsweb/cvsweb.conf @CVSrepositories = ( 'local' => ['Local Repository', '/var/cvs'], 'rancid' => ['Rancid Backups', '/usr/local/rancid/var/CVS/'], # 'freebsd' => ['FreeBSD', '/var/ncvs'], # 'openbsd' => ['OpenBSD', '/var/ncvs'], # 'netbsd' => ['NetBSD', '/var/ncvs'], # 'ruby' => ['Ruby', '/var/anoncvs/ruby'], ); /var/log/httpd/error_log [Mon Jun 08 15:22:52.594458 2015] [mime_magic:error] [pid 2320] [client 172.21.14.23:51954] AH01512: mod_mime_magic: can't read `/var/www/cgi-bin/cvsweb.cgi' [Mon Jun 08 15:22:52.596461 2015] [cgi:error] [pid 2320] [client 172.21.14.23:51954] AH01215: (13)Permission denied: exec of '/var/www/cgi-bin/cvsweb.cgi' failed [root at vm-rancid tmp]# id apache uid=48(apache) gid=48(apache) groups=48(apache),1001(netadm) [root at vm-rancid tmp]# id rancid uid=1001(rancid) gid=1001(netadm) groups=1001(netadm),48(apache) [root at vm-rancid tmp]# ls -l /var/www/cgi-bin/cvsweb.cgi -rwxrwxrwx. 1 root root 126583 Sep 25 2005 /var/www/cgi-bin/cvsweb.cgi Thanks, Delmiro -------------- next part -------------- An HTML attachment was scrubbed... URL: From jethro.binks at strath.ac.uk Mon Jun 8 20:50:45 2015 From: jethro.binks at strath.ac.uk (Jethro R Binks) Date: Mon, 8 Jun 2015 21:50:45 +0100 (BST) Subject: [rancid] CVSWeb issues In-Reply-To: References: Message-ID: Check the path to your perl binary at the top of /var/www/cgi-bin/cvsweb.cgi is correct. Try changing to your web server user (apache) and just run the script from the command line and see if it outputs lots of HTML. Check the perms on the /var/www/cgi-bin path are at least executable to the web server user (or 'other'). > [root at vm-rancid tmp]# ls -l /var/www/cgi-bin/cvsweb.cgi > -rwxrwxrwx. 1 root root 126583 Sep 25 2005 /var/www/cgi-bin/cvsweb.cgi Having write permissions to anyone other than the owner is probably not a good idea. Maybe: chmod go-w /var/www/cgi-bin/cvsweb.cgi Jethro. On Mon, 8 Jun 2015, Delmiro Campelo wrote: > Hello guys, > > I'm writing to see if anyone has run into this issue before or if you have > a suggestion about other tools that would allow via web interface to browse > the CVS repository for rancid. Thanks for any input or suggestions you can > provide. > > Thus far i'm trying to get CVSWeb working with rancid 3.2 but i'm running > into the following error. I'm using the article linked below as a guide > (Step 7). > http://www.richardyau.com/?p=11 > > ERROR: > Internal Server Error > The server encountered an internal error or misconfiguration and was unable > to complete your request. > Please contact the server administrator at root at localhost to inform them of > the time this error occurred, and the actions you performed just before > this error. > More information about this error may be available in the server error log. > > > /usr/local/etc/cvsweb/cvsweb.conf > @CVSrepositories = ( > 'local' => ['Local Repository', '/var/cvs'], > 'rancid' => ['Rancid Backups', '/usr/local/rancid/var/CVS/'], > # 'freebsd' => ['FreeBSD', '/var/ncvs'], > # 'openbsd' => ['OpenBSD', '/var/ncvs'], > # 'netbsd' => ['NetBSD', '/var/ncvs'], > # 'ruby' => ['Ruby', '/var/anoncvs/ruby'], > ); > > /var/log/httpd/error_log > [Mon Jun 08 15:22:52.594458 2015] [mime_magic:error] [pid 2320] [client > 172.21.14.23:51954] AH01512: mod_mime_magic: can't read > `/var/www/cgi-bin/cvsweb.cgi' > [Mon Jun 08 15:22:52.596461 2015] [cgi:error] [pid 2320] [client > 172.21.14.23:51954] AH01215: (13)Permission denied: exec of > '/var/www/cgi-bin/cvsweb.cgi' failed > > [root at vm-rancid tmp]# id apache > uid=48(apache) gid=48(apache) groups=48(apache),1001(netadm) > [root at vm-rancid tmp]# id rancid > uid=1001(rancid) gid=1001(netadm) groups=1001(netadm),48(apache) > > [root at vm-rancid tmp]# ls -l /var/www/cgi-bin/cvsweb.cgi > -rwxrwxrwx. 1 root root 126583 Sep 25 2005 /var/www/cgi-bin/cvsweb.cgi > > Thanks, > Delmiro > . . . . . . . . . . . . . . . . . . . . . . . . . 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 ete.sabuj at gmail.com Tue Jun 9 07:12:59 2015 From: ete.sabuj at gmail.com (Hussein, Sazzad) Date: Tue, 9 Jun 2015 09:12:59 +0200 Subject: [rancid] issues with email delivery In-Reply-To: References: <5573F86C.3000404@gmail.com> <55752D7D.7000806@gmail.com> Message-ID: *Hello Delmiro,* Would you like to share the thred you used to install Rancid? Because i had installed 2.x.x version & i would rather try to install 3.x.x version to test for the last time. Looking forward for your response! Thanks in advance! On Mon, Jun 8, 2015 at 3:54 PM, Hussein, Sazzad wrote: > Thanks Delmiro, > > I will test it & let you know! > On 8 Jun 2015 15:15, "Delmiro Campelo" wrote: > >> I believe the issue that I was having with postfix was because i had >> configured relayhost= in main.cf. >> >> Here is the postfix config which is working with rancid fine right now. >> # cat /etc/postfix/main.cf | grep -v ^# >> queue_directory = /var/spool/postfix >> command_directory = /usr/sbin >> daemon_directory = /usr/libexec/postfix >> data_directory = /var/lib/postfix >> mail_owner = postfix >> myhostname = vm-rancid.myrealdomain.net >> mydomain = myrealdomain.net >> myorigin = $myhostname >> inet_interfaces = localhost >> inet_protocols = all >> unknown_local_recipient_reject_code = 550 >> alias_maps = hash:/etc/aliases >> alias_database = hash:/etc/aliases >> debug_peer_level = 2 >> debugger_command = >> PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin >> ddd $daemon_directory/$process_name $process_id & sleep 5 >> sendmail_path = /usr/sbin/sendmail.postfix >> newaliases_path = /usr/bin/newaliases.postfix >> mailq_path = /usr/bin/mailq.postfix >> setgid_group = postdrop >> html_directory = no >> manpage_directory = /usr/share/man >> sample_directory = /usr/share/doc/postfix-2.10.1/samples >> readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES >> smtp_generic_maps = hash:/etc/postfix/generic >> >> >> I also wanted to change the way the email addresses appeared when email >> was delivered from this box, I just this article and worked like a charm. >> >> http://www.cyberciti.biz/tips/howto-postfix-masquerade-change-email-mail-address.html >> >> Thanks, >> Delmiro >> >> >> On Mon, Jun 8, 2015 at 2:54 AM, Hussein, Sazzad >> wrote: >> >>> *Hi Demiro,* >>> >>> I was experiencing same problem as you were. >>> Could you please share the document which you are following for >>> integrating rancid? >>> >>> On Mon, Jun 8, 2015 at 7:51 AM, Alan McKinnon >>> wrote: >>> >>>> On 07/06/2015 18:36, Delmiro Campelo wrote: >>>> > Hi Alan, and thank you for helping with this. I was able to get it >>>> > working again by uninstalling postfix and reinstalling it. >>>> >>>> Drastic method. You likely "fixed" the problem by causing newaliases to >>>> be run. >>>> >>>> > One more >>>> > question, how does rancid find mail server to send the email to ? is >>>> it >>>> > based on MX record for the email address specified in the aliases? >>>> >>>> That is not a rancid question. It is 100% an email question. >>>> >>>> Seeing as it's coming up often nowadays, I'll answer it. >>>> >>>> Rancid does not find any mail server at all. It composes the mail and >>>> hands it over to the local MTA (mail transfer agent) which in your case >>>> is Postfix. Rancid's job is to compose a mail, Postfix's job is to get >>>> that mail delivered. >>>> >>>> Postfix looks up the MX records of the *domain* in each mail address, >>>> and tries to deliver the mails to each server in that list in turn using >>>> SMTP. How it does this is fully described in many quality articles on >>>> the internet. >>>> >>>> http://www.postfix.org has excellent documentation on all aspects of >>>> SMTP >>>> >>>> >>>> >>>> > >>>> > Thanks again, >>>> > Delmiro >>>> > >>>> > On Sun, Jun 7, 2015 at 2:53 AM, Alan McKinnon < >>>> alan.mckinnon at gmail.com >>>> > > wrote: >>>> > >>>> > On 07/06/2015 03:28, Delmiro Campelo wrote: >>>> > > Hello guys, >>>> > > >>>> > > I'm hoping that you can give me some ideas here. I'm in the >>>> process of >>>> > > installing rancid and I thought I had it working but for some >>>> > reason my >>>> > > emails are sent to the wrong email address, >>>> > > rancid-networking at realdomain.net >>>> > >>>> > > >>> > > is not valid and not >>>> what I >>>> > > have specified in my aliases, I'm stuck on this :( how can I fix >>>> > it ? i >>>> > > need them to go to myemail at realdomain.net >>>> > >>> > >. >>>> > > >>>> > > I'm used this article as the guide to help me set it up >>>> > > >>>> > >>>> http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch1_:_Network_Backups_With_Rancid#.VXNW70anFjY >>>> , >>>> > > please see below, and thank you for any help you can provide. >>>> > > >>>> > > >>>> > >>>> ************************************************************************** >>>> > > rancid.conf file: >>>> > > # >>>> > > LIST_OF_GROUPS="networking" >>>> > > >>>> > > Aliases file: >>>> > > /etc/aliases >>>> > > # Rancid email addresses >>>> > > # >>>> > > rancid-networking: myemail at realdomain.net >>>> > >>>> > > > >>>> > > rancid-admin-networking: myemail at realdomain.net >>>> > >>>> > > > >>>> > > >>>> > > PostFix log below: >>>> > > Jun 6 20:00:17 vm-rancid postfix/qmgr[2246]: 400828034349: >>>> removed >>>> > > Jun 6 20:00:35 vm-rancid postfix/pickup[2245]: 0464D8034349: >>>> uid=1001 >>>> > > from= >>>> > > Jun 6 20:00:35 vm-rancid postfix/cleanup[2302]: 0464D8034349: >>>> > > message-id=< >>>> 20150607010035.0464D8034349 at vm-rancid.realdomain.net >>>> > >>>> > > >>> > >> >>>> > > Jun 6 20:00:35 vm-rancid postfix/qmgr[2246]: 0464D8034349: >>>> > > from= >>>> > >>, >>>> > size=2360, >>>> > > nrcpt=1 (queue active) >>>> > > Jun 6 20:00:35 vm-rancid postfix/smtp[2309]: 0464D8034349: >>>> > > to=>>> > >>>> > > >>> > >>, >>>> > orig_to=, >>>> > > relay=mail.realdomain.net >>>> > [10.2.11.22]:25, >>>> > > delay=0.32, delays=0.01/0/0.01/0.3, dsn=2.6.0, status=sent (250 >>>> 2.6.0 >>>> > > <20150607010035.0464D8034349 at vm-rancid.realdomain.net >>>> > >>>> > > >>> > >> >>>> > > [InternalId=7366618] Queued mail for delivery) >>>> > > Jun 6 20:00:35 vm-rancid postfix/qmgr[2246]: 0464D8034349: >>>> removed >>>> > >>>> > >>>> > That howto looks like something from Joe Random Blogger. It's >>>> suspect. >>>> > It also references rancid 2.3.2, which is ancient. >>>> > >>>> > Current version is 3.2, and the first problem you are going to >>>> run into >>>> > is the change in format of router.db >>>> > >>>> > Don't use that howto. >>>> > >>>> > Install rancid using any normal method (rpm, yum, tarball - the >>>> method >>>> > does not matter) and then follow the text files supplied by rancid >>>> > itself. >>>> > >>>> > Have you run newaliases since editing /etc/aliases? >>>> > >>>> > >>>> > -- >>>> > Alan McKinnon >>>> > alan.mckinnon at gmail.com >>>> > >>>> > _______________________________________________ >>>> > Rancid-discuss mailing list >>>> > Rancid-discuss at shrubbery.net >>> > >>>> > http://www.shrubbery.net/mailman/listinfo/rancid-discuss >>>> > >>>> > >>>> >>>> >>>> -- >>>> Alan McKinnon >>>> alan.mckinnon at gmail.com >>>> >>>> _______________________________________________ >>>> Rancid-discuss mailing list >>>> Rancid-discuss at shrubbery.net >>>> http://www.shrubbery.net/mailman/listinfo/rancid-discuss >>>> >>> >>> >>> >>> -- >>> >>> --*Sazzad Hussein*www.sazzad-hussein.branded.me | ete.sabuj at gmail.com >>> Hermann-Ehlers Str. 2, 49082 Osnabr?ck, Deutschland >>> Mobile number: 4915214010461 >>> >>> >> -- --*Sazzad Hussein*www.sazzad-hussein.branded.me | ete.sabuj at gmail.com Hermann-Ehlers Str. 2, 49082 Osnabr?ck, Deutschland Mobile number: 4915214010461 -------------- next part -------------- An HTML attachment was scrubbed... URL: From delmiroc at gmail.com Tue Jun 9 12:52:53 2015 From: delmiroc at gmail.com (Delmiro Campelo) Date: Tue, 9 Jun 2015 07:52:53 -0500 Subject: [rancid] issues with email delivery In-Reply-To: References: <5573F86C.3000404@gmail.com> <55752D7D.7000806@gmail.com> Message-ID: sure, here it is. http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch1_:_Network_Backups_With_Rancid#.VXbhXEanFjZ Thanks, Delmiro On Tue, Jun 9, 2015 at 2:12 AM, Hussein, Sazzad wrote: > *Hello Delmiro,* > > Would you like to share the thred you used to install Rancid? > Because i had installed 2.x.x version & i would rather try to install > 3.x.x version to test for the last time. > > Looking forward for your response! > Thanks in advance! > > On Mon, Jun 8, 2015 at 3:54 PM, Hussein, Sazzad > wrote: > >> Thanks Delmiro, >> >> I will test it & let you know! >> On 8 Jun 2015 15:15, "Delmiro Campelo" wrote: >> >>> I believe the issue that I was having with postfix was because i had >>> configured relayhost= in main.cf. >>> >>> Here is the postfix config which is working with rancid fine right now. >>> # cat /etc/postfix/main.cf | grep -v ^# >>> queue_directory = /var/spool/postfix >>> command_directory = /usr/sbin >>> daemon_directory = /usr/libexec/postfix >>> data_directory = /var/lib/postfix >>> mail_owner = postfix >>> myhostname = vm-rancid.myrealdomain.net >>> mydomain = myrealdomain.net >>> myorigin = $myhostname >>> inet_interfaces = localhost >>> inet_protocols = all >>> unknown_local_recipient_reject_code = 550 >>> alias_maps = hash:/etc/aliases >>> alias_database = hash:/etc/aliases >>> debug_peer_level = 2 >>> debugger_command = >>> PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin >>> ddd $daemon_directory/$process_name $process_id & sleep 5 >>> sendmail_path = /usr/sbin/sendmail.postfix >>> newaliases_path = /usr/bin/newaliases.postfix >>> mailq_path = /usr/bin/mailq.postfix >>> setgid_group = postdrop >>> html_directory = no >>> manpage_directory = /usr/share/man >>> sample_directory = /usr/share/doc/postfix-2.10.1/samples >>> readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES >>> smtp_generic_maps = hash:/etc/postfix/generic >>> >>> >>> I also wanted to change the way the email addresses appeared when email >>> was delivered from this box, I just this article and worked like a charm. >>> >>> http://www.cyberciti.biz/tips/howto-postfix-masquerade-change-email-mail-address.html >>> >>> Thanks, >>> Delmiro >>> >>> >>> On Mon, Jun 8, 2015 at 2:54 AM, Hussein, Sazzad >>> wrote: >>> >>>> *Hi Demiro,* >>>> >>>> I was experiencing same problem as you were. >>>> Could you please share the document which you are following for >>>> integrating rancid? >>>> >>>> On Mon, Jun 8, 2015 at 7:51 AM, Alan McKinnon >>>> wrote: >>>> >>>>> On 07/06/2015 18:36, Delmiro Campelo wrote: >>>>> > Hi Alan, and thank you for helping with this. I was able to get it >>>>> > working again by uninstalling postfix and reinstalling it. >>>>> >>>>> Drastic method. You likely "fixed" the problem by causing newaliases to >>>>> be run. >>>>> >>>>> > One more >>>>> > question, how does rancid find mail server to send the email to ? is >>>>> it >>>>> > based on MX record for the email address specified in the aliases? >>>>> >>>>> That is not a rancid question. It is 100% an email question. >>>>> >>>>> Seeing as it's coming up often nowadays, I'll answer it. >>>>> >>>>> Rancid does not find any mail server at all. It composes the mail and >>>>> hands it over to the local MTA (mail transfer agent) which in your case >>>>> is Postfix. Rancid's job is to compose a mail, Postfix's job is to get >>>>> that mail delivered. >>>>> >>>>> Postfix looks up the MX records of the *domain* in each mail address, >>>>> and tries to deliver the mails to each server in that list in turn >>>>> using >>>>> SMTP. How it does this is fully described in many quality articles on >>>>> the internet. >>>>> >>>>> http://www.postfix.org has excellent documentation on all aspects of >>>>> SMTP >>>>> >>>>> >>>>> >>>>> > >>>>> > Thanks again, >>>>> > Delmiro >>>>> > >>>>> > On Sun, Jun 7, 2015 at 2:53 AM, Alan McKinnon < >>>>> alan.mckinnon at gmail.com >>>>> > > wrote: >>>>> > >>>>> > On 07/06/2015 03:28, Delmiro Campelo wrote: >>>>> > > Hello guys, >>>>> > > >>>>> > > I'm hoping that you can give me some ideas here. I'm in the >>>>> process of >>>>> > > installing rancid and I thought I had it working but for some >>>>> > reason my >>>>> > > emails are sent to the wrong email address, >>>>> > > rancid-networking at realdomain.net >>>>> > >>>>> > > >>>> > > is not valid and not >>>>> what I >>>>> > > have specified in my aliases, I'm stuck on this :( how can I >>>>> fix >>>>> > it ? i >>>>> > > need them to go to myemail at realdomain.net >>>>> > >>>> > >. >>>>> > > >>>>> > > I'm used this article as the guide to help me set it up >>>>> > > >>>>> > >>>>> http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch1_:_Network_Backups_With_Rancid#.VXNW70anFjY >>>>> , >>>>> > > please see below, and thank you for any help you can provide. >>>>> > > >>>>> > > >>>>> > >>>>> ************************************************************************** >>>>> > > rancid.conf file: >>>>> > > # >>>>> > > LIST_OF_GROUPS="networking" >>>>> > > >>>>> > > Aliases file: >>>>> > > /etc/aliases >>>>> > > # Rancid email addresses >>>>> > > # >>>>> > > rancid-networking: myemail at realdomain.net >>>>> > >>>>> > > >>>> >> >>>>> > > rancid-admin-networking: myemail at realdomain.net >>>>> > >>>>> > > >>>> >> >>>>> > > >>>>> > > PostFix log below: >>>>> > > Jun 6 20:00:17 vm-rancid postfix/qmgr[2246]: 400828034349: >>>>> removed >>>>> > > Jun 6 20:00:35 vm-rancid postfix/pickup[2245]: 0464D8034349: >>>>> uid=1001 >>>>> > > from= >>>>> > > Jun 6 20:00:35 vm-rancid postfix/cleanup[2302]: 0464D8034349: >>>>> > > message-id=< >>>>> 20150607010035.0464D8034349 at vm-rancid.realdomain.net >>>>> > >>>>> > > >>>> > >> >>>>> > > Jun 6 20:00:35 vm-rancid postfix/qmgr[2246]: 0464D8034349: >>>>> > > from= >>>>> > >>, >>>>> > size=2360, >>>>> > > nrcpt=1 (queue active) >>>>> > > Jun 6 20:00:35 vm-rancid postfix/smtp[2309]: 0464D8034349: >>>>> > > to=>>>> > >>>>> > > >>>> > >>, >>>>> > orig_to=, >>>>> > > relay=mail.realdomain.net >>>>> > [10.2.11.22]:25, >>>>> > > delay=0.32, delays=0.01/0/0.01/0.3, dsn=2.6.0, status=sent >>>>> (250 2.6.0 >>>>> > > <20150607010035.0464D8034349 at vm-rancid.realdomain.net >>>>> > >>>>> > > >>>> > >> >>>>> > > [InternalId=7366618] Queued mail for delivery) >>>>> > > Jun 6 20:00:35 vm-rancid postfix/qmgr[2246]: 0464D8034349: >>>>> removed >>>>> > >>>>> > >>>>> > That howto looks like something from Joe Random Blogger. It's >>>>> suspect. >>>>> > It also references rancid 2.3.2, which is ancient. >>>>> > >>>>> > Current version is 3.2, and the first problem you are going to >>>>> run into >>>>> > is the change in format of router.db >>>>> > >>>>> > Don't use that howto. >>>>> > >>>>> > Install rancid using any normal method (rpm, yum, tarball - the >>>>> method >>>>> > does not matter) and then follow the text files supplied by >>>>> rancid >>>>> > itself. >>>>> > >>>>> > Have you run newaliases since editing /etc/aliases? >>>>> > >>>>> > >>>>> > -- >>>>> > Alan McKinnon >>>>> > alan.mckinnon at gmail.com >>>>> > >>>>> > _______________________________________________ >>>>> > Rancid-discuss mailing list >>>>> > Rancid-discuss at shrubbery.net >>>> Rancid-discuss at shrubbery.net> >>>>> > http://www.shrubbery.net/mailman/listinfo/rancid-discuss >>>>> > >>>>> > >>>>> >>>>> >>>>> -- >>>>> Alan McKinnon >>>>> alan.mckinnon at gmail.com >>>>> >>>>> _______________________________________________ >>>>> Rancid-discuss mailing list >>>>> Rancid-discuss at shrubbery.net >>>>> http://www.shrubbery.net/mailman/listinfo/rancid-discuss >>>>> >>>> >>>> >>>> >>>> -- >>>> >>>> --*Sazzad Hussein*www.sazzad-hussein.branded.me | ete.sabuj at gmail.com >>>> Hermann-Ehlers Str. 2, 49082 Osnabr?ck, Deutschland >>>> Mobile number: 4915214010461 >>>> >>>> >>> > > > -- > > --*Sazzad Hussein*www.sazzad-hussein.branded.me | ete.sabuj at gmail.com > Hermann-Ehlers Str. 2, 49082 Osnabr?ck, Deutschland > Mobile number: 4915214010461 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nicotine at warningg.com Tue Jun 9 13:19:21 2015 From: nicotine at warningg.com (Brandon Ewing) Date: Tue, 9 Jun 2015 08:19:21 -0500 Subject: [rancid] Netscaler 10.5 prompt Message-ID: <20150609131921.GA15679@radiological.warningg.com> Greetings, Does anyone have a working patch for nslogin that can successfully find the prompt in 10.5? It looks like they changed the prompt again to "hostname time user>" instead of "^>|#". Not sure if there's a widget in the config to change this behavior, either. Checked the RPMs from RHEL6/7, they don't work. Latest source also appears to be looking for "^>" as well. -- Brandon Ewing (nicotine at warningg.com) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: not available URL: From nicotine at warningg.com Tue Jun 9 13:46:14 2015 From: nicotine at warningg.com (Brandon Ewing) Date: Tue, 9 Jun 2015 08:46:14 -0500 Subject: [rancid] Netscaler 10.5 prompt In-Reply-To: <20150609131921.GA15679@radiological.warningg.com> References: <20150609131921.GA15679@radiological.warningg.com> Message-ID: <20150609134613.GB15679@radiological.warningg.com> On Tue, Jun 09, 2015 at 08:19:21AM -0500, Brandon Ewing wrote: > Greetings, > > Does anyone have a working patch for nslogin that can successfully find the > prompt in 10.5? It looks like they changed the prompt again to > "hostname time user>" instead of "^>|#". Not sure if there's a widget in > the config to change this behavior, either. > > Checked the RPMs from RHEL6/7, they don't work. > > Latest source also appears to be looking for "^>" as well. As a further piece of weirdness, if you log in as a TACACS user, it's the old "> " prompt. If you log in as nsroot, you get the long prompt. -- Brandon Ewing (nicotine at warningg.com) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: not available URL: From incudie at gmail.com Tue Jun 9 23:36:17 2015 From: incudie at gmail.com (Incudie) Date: Tue, 9 Jun 2015 16:36:17 -0700 Subject: [rancid] Netscaler 10.5 prompt In-Reply-To: <20150609131921.GA15679@radiological.warningg.com> References: <20150609131921.GA15679@radiological.warningg.com> Message-ID: Hey Brandon, My script writing skills are pretty bad BUT I managed to get an old copy of nslogin that was floating around to work with NS9.3 Build 56.5. The prompt I was testing with also displayed in a similar fashion to what you described. It's been awhile but it literally involved me commenting out some stuff about the prompt. I'm sure this broke other things for nslogin but it's worked well enough for my ONE netscaler. Feel free to give it a shot. Best, Tim On Tue, Jun 9, 2015 at 6:19 AM, Brandon Ewing wrote: > Greetings, > > Does anyone have a working patch for nslogin that can successfully find the > prompt in 10.5? It looks like they changed the prompt again to > "hostname time user>" instead of "^>|#". Not sure if there's a widget in > the config to change this behavior, either. > > Checked the RPMs from RHEL6/7, they don't work. > > Latest source also appears to be looking for "^>" as well. > > -- > Brandon Ewing (nicotine at warningg.com) > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: nslogin Type: application/octet-stream Size: 19958 bytes Desc: not available URL: From buoy at clear.net.nz Wed Jun 10 05:43:27 2015 From: buoy at clear.net.nz (Jos) Date: Wed, 10 Jun 2015 17:43:27 +1200 Subject: [rancid] Backing up F5 BigIP LTM with rancid? In-Reply-To: <87F3481B-B0A4-4306-99D0-95C9F29F482C@gmail.com> References: <87F3481B-B0A4-4306-99D0-95C9F29F482C@gmail.com> Message-ID: Hi Scott I trust you got this sorted by now, but you were not alone with this. I have finally managed to get this going on a Centos 6.5 machine with the config attached (a hacked amalgam of 3.2 rancid and the github tmsh stuff), hoping it?s helpful to someone, the F5?s we have that this works for are running 11.5.1 Build 4.123.128. It?s currently producing noise, specifically the encrypted passwords for a couple local user accounts keep getting flagged in cvs as changing, but otherwise works well. If I can figure out the regex to remove the encrypted passwords that follow: auth-password-encrypted Or privacy-password-encrypted I can share. Cheers, Jos ==== On 23/04/15 06:34, "Scott Granados" wrote: >Hi, > I recently have installed some F5 BigIPS in my network and wish to back >these up with RANCID like I do my other network elements. I have tried >to play with the included files but these seem out of date. (I?m running >11.60.0 firmware) While googling I found some mention of using TMSH >instead of the older BigPipe command but the patch I found to f5rancid.in >didn?t apply cleanly and seem to fail. Has anyone else got this >configuration working and having success dealing with F5 devices using >rancid? If so could you post some details on how you accomplished this >or a pointer to a current f5rancid and f5login that works? Any help >would be most appreciated. > >Thanks >Scott > >_______________________________________________ >Rancid-discuss mailing list >Rancid-discuss at shrubbery.net >http://www.shrubbery.net/mailman/listinfo/rancid-discuss -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: f5rancid.txt URL: From alan.mckinnon at gmail.com Wed Jun 10 05:54:50 2015 From: alan.mckinnon at gmail.com (Alan McKinnon) Date: Wed, 10 Jun 2015 07:54:50 +0200 Subject: [rancid] Backing up F5 BigIP LTM with rancid? In-Reply-To: References: <87F3481B-B0A4-4306-99D0-95C9F29F482C@gmail.com> Message-ID: <5577D12A.5020004@gmail.com> On 10/06/2015 07:43, Jos wrote: > Hi Scott > > I trust you got this sorted by now, but you were not alone with this. I > have finally managed to get this going on a Centos 6.5 machine with the > config attached (a hacked amalgam of 3.2 rancid and the github tmsh > stuff), hoping it?s helpful to someone, the F5?s we have that this works > for are running 11.5.1 Build 4.123.128. It?s currently producing noise, > specifically the encrypted passwords for a couple local user accounts keep > getting flagged in cvs as changing, but otherwise works well. > > If I can figure out the regex to remove the encrypted passwords that > follow: > > auth-password-encrypted > > Or > privacy-password-encrypted > > > I can share. The rancid scripts are peppered with these sort of checks. Something like this: if (/^(\s*auth|privacy)-password-encrypted/ && $filter_pwds >= 1) { ProcessHistory("whatever}","","","$1-password-encrypted \n"); } next; Regex gets complicated. There's a few examples aready in sub WriteTerm. You'll obviously have to adapt the regex to cater for all the multiple and various outputs different models from your vendor spit out. -- Alan McKinnon alan.mckinnon at gmail.com From matta at surveymonkey.com Wed Jun 10 13:36:36 2015 From: matta at surveymonkey.com (Matt Almgren) Date: Wed, 10 Jun 2015 13:36:36 +0000 Subject: [rancid] Backing up F5 BigIP LTM with rancid? In-Reply-To: <5577D12A.5020004@gmail.com> References: <87F3481B-B0A4-4306-99D0-95C9F29F482C@gmail.com> ,<5577D12A.5020004@gmail.com> Message-ID: <76B5779F-37DD-4791-9431-E752F0F3962B@surveymonkey.com> Jos and Alan, if you get this working, can you please share the f5rancid file with me? I'll be setting up a 3.2 installation in the next couple weeks. Much thanks! --iMatt > On Jun 9, 2015, at 10:55 PM, Alan McKinnon wrote: > >> On 10/06/2015 07:43, Jos wrote: >> Hi Scott >> >> I trust you got this sorted by now, but you were not alone with this. I >> have finally managed to get this going on a Centos 6.5 machine with the >> config attached (a hacked amalgam of 3.2 rancid and the github tmsh >> stuff), hoping it?s helpful to someone, the F5?s we have that this works >> for are running 11.5.1 Build 4.123.128. It?s currently producing noise, >> specifically the encrypted passwords for a couple local user accounts keep >> getting flagged in cvs as changing, but otherwise works well. >> >> If I can figure out the regex to remove the encrypted passwords that >> follow: >> >> auth-password-encrypted >> >> Or >> privacy-password-encrypted >> >> >> I can share. > > > > The rancid scripts are peppered with these sort of checks. Something > like this: > > if (/^(\s*auth|privacy)-password-encrypted/ && $filter_pwds >= 1) { > ProcessHistory("whatever}","","","$1-password-encrypted \n"); > } > next; > > Regex gets complicated. There's a few examples aready in sub WriteTerm. > You'll obviously have to adapt the regex to cater for all the multiple > and various outputs different models from your vendor spit out. > > -- > Alan McKinnon > alan.mckinnon at gmail.com > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss From scott.granados at gmail.com Wed Jun 10 14:14:47 2015 From: scott.granados at gmail.com (Scott Granados) Date: Wed, 10 Jun 2015 10:14:47 -0400 Subject: [rancid] Backing up F5 BigIP LTM with rancid? In-Reply-To: <76B5779F-37DD-4791-9431-E752F0F3962B@surveymonkey.com> References: <87F3481B-B0A4-4306-99D0-95C9F29F482C@gmail.com> , <5577D12A.5020004@gmail.com> <76B5779F-37DD-4791-9431-E752F0F3962B@surveymonkey.com> Message-ID: <1AED658C-C1A7-4A46-B026-2D9746CF3D5E@gmail.com> If you follow the thread between Josh and myself he helped me get to where I needed to be with a pair of F5 BigIPs with HA and partitioning enabled. Also it?s important to note you need an f5rancid file that?s based on tmsh instead of bagpipe as bagpipe is deprecated. On Jun 10, 2015, at 9:36 AM, Matt Almgren wrote: > Jos and Alan, if you get this working, can you please share the f5rancid file with me? I'll be setting up a 3.2 installation in the next couple weeks. > > Much thanks! > > --iMatt > >> On Jun 9, 2015, at 10:55 PM, Alan McKinnon wrote: >> >>> On 10/06/2015 07:43, Jos wrote: >>> Hi Scott >>> >>> I trust you got this sorted by now, but you were not alone with this. I >>> have finally managed to get this going on a Centos 6.5 machine with the >>> config attached (a hacked amalgam of 3.2 rancid and the github tmsh >>> stuff), hoping it?s helpful to someone, the F5?s we have that this works >>> for are running 11.5.1 Build 4.123.128. It?s currently producing noise, >>> specifically the encrypted passwords for a couple local user accounts keep >>> getting flagged in cvs as changing, but otherwise works well. >>> >>> If I can figure out the regex to remove the encrypted passwords that >>> follow: >>> >>> auth-password-encrypted >>> >>> Or >>> privacy-password-encrypted >>> >>> >>> I can share. >> >> >> >> The rancid scripts are peppered with these sort of checks. Something >> like this: >> >> if (/^(\s*auth|privacy)-password-encrypted/ && $filter_pwds >= 1) { >> ProcessHistory("whatever}","","","$1-password-encrypted \n"); >> } >> next; >> >> Regex gets complicated. There's a few examples aready in sub WriteTerm. >> You'll obviously have to adapt the regex to cater for all the multiple >> and various outputs different models from your vendor spit out. >> >> -- >> Alan McKinnon >> alan.mckinnon at gmail.com >> >> _______________________________________________ >> Rancid-discuss mailing list >> Rancid-discuss at shrubbery.net >> http://www.shrubbery.net/mailman/listinfo/rancid-discuss > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss From matta at surveymonkey.com Wed Jun 10 14:19:51 2015 From: matta at surveymonkey.com (Matt Almgren) Date: Wed, 10 Jun 2015 14:19:51 +0000 Subject: [rancid] Backing up F5 BigIP LTM with rancid? In-Reply-To: <1AED658C-C1A7-4A46-B026-2D9746CF3D5E@gmail.com> References: <87F3481B-B0A4-4306-99D0-95C9F29F482C@gmail.com> <5577D12A.5020004@gmail.com> <76B5779F-37DD-4791-9431-E752F0F3962B@surveymonkey.com> <1AED658C-C1A7-4A46-B026-2D9746CF3D5E@gmail.com> Message-ID: Yup, I did. I too am using 11.5.x with TMSH and HA. I was hoping that since you had already done the lions share of the work and had something working (or in progress), you would be able to share what you have with the rest of us. I have a working Rancid copy of 2.8.x working well with f5 LTM, but have heard there were some problems with 3.2 and was just waiting until all the kinks have been worked out. Sounds like we?re almost there. ? Matt On 6/10/15, 7:14 AM, "Scott Granados" wrote: >If you follow the thread between Josh and myself he helped me get to >where I needed to be with a pair of F5 BigIPs with HA and partitioning >enabled. Also it?s important to note you need an f5rancid file that?s >based on tmsh instead of bagpipe as bagpipe is deprecated. > > > >On Jun 10, 2015, at 9:36 AM, Matt Almgren wrote: > >> Jos and Alan, if you get this working, can you please share the >>f5rancid file with me? I'll be setting up a 3.2 installation in the >>next couple weeks. >> >> Much thanks! >> >> --iMatt >> >>> On Jun 9, 2015, at 10:55 PM, Alan McKinnon >>>wrote: >>> >>>> On 10/06/2015 07:43, Jos wrote: >>>> Hi Scott >>>> >>>> I trust you got this sorted by now, but you were not alone with this. >>>>I >>>> have finally managed to get this going on a Centos 6.5 machine with >>>>the >>>> config attached (a hacked amalgam of 3.2 rancid and the github tmsh >>>> stuff), hoping it?s helpful to someone, the F5?s we have that this >>>>works >>>> for are running 11.5.1 Build 4.123.128. It?s currently producing >>>>noise, >>>> specifically the encrypted passwords for a couple local user accounts >>>>keep >>>> getting flagged in cvs as changing, but otherwise works well. >>>> >>>> If I can figure out the regex to remove the encrypted passwords that >>>> follow: >>>> >>>> auth-password-encrypted >>>> >>>> Or >>>> privacy-password-encrypted >>>> >>>> >>>> I can share. >>> >>> >>> >>> The rancid scripts are peppered with these sort of checks. Something >>> like this: >>> >>> if (/^(\s*auth|privacy)-password-encrypted/ && $filter_pwds >= 1) { >>> ProcessHistory("whatever}","","","$1-password-encrypted \n"); >>> } >>> next; >>> >>> Regex gets complicated. There's a few examples aready in sub WriteTerm. >>> You'll obviously have to adapt the regex to cater for all the multiple >>> and various outputs different models from your vendor spit out. >>> >>> -- >>> Alan McKinnon >>> alan.mckinnon at gmail.com >>> >>> _______________________________________________ >>> Rancid-discuss mailing list >>> Rancid-discuss at shrubbery.net >>> http://www.shrubbery.net/mailman/listinfo/rancid-discuss >> _______________________________________________ >> Rancid-discuss mailing list >> Rancid-discuss at shrubbery.net >> http://www.shrubbery.net/mailman/listinfo/rancid-discuss > From matta at surveymonkey.com Wed Jun 10 14:46:15 2015 From: matta at surveymonkey.com (Matt Almgren) Date: Wed, 10 Jun 2015 14:46:15 +0000 Subject: [rancid] Backing up F5 BigIP LTM with rancid? In-Reply-To: <3AD217DC-184B-479B-BD02-68B7452A0289@gmail.com> References: <87F3481B-B0A4-4306-99D0-95C9F29F482C@gmail.com> <5577D12A.5020004@gmail.com> <76B5779F-37DD-4791-9431-E752F0F3962B@surveymonkey.com> <1AED658C-C1A7-4A46-B026-2D9746CF3D5E@gmail.com> <3AD217DC-184B-479B-BD02-68B7452A0289@gmail.com> Message-ID: Thank you very much! I?ll let you know how it goes in the next couple weeks. ? Matt From: Scott Granados > Date: Wednesday, June 10, 2015 at 7:40 AM To: Matt Almgren > Cc: Alan McKinnon >, "rancid-discuss at shrubbery.net" > Subject: Re: [rancid] Backing up F5 BigIP LTM with rancid? I have 3.5 working. Basically using the internal library / included. I will attach the f5rancid file I?m using though and earlier in this thread there?s an F5 part 2 line script you?ll need. I will cut and paste the contents of that in the file. First, creat a file called f5part in the /config dir of your F5. This is needed if you use partitions only. put the contents that follow in to this file and save #!/bin/bash tmsh -q -c "cd /;list recursive" Make sure the file can be executed and then use the attached f5rancid which should pull down what you need. Let me know how you make out, will be glad to help more if I can. Thanks On Jun 10, 2015, at 10:19 AM, Matt Almgren > wrote: Yup, I did. I too am using 11.5.x with TMSH and HA. I was hoping that since you had already done the lions share of the work and had something working (or in progress), you would be able to share what you have with the rest of us. I have a working Rancid copy of 2.8.x working well with f5 LTM, but have heard there were some problems with 3.2 and was just waiting until all the kinks have been worked out. Sounds like we?re almost there. ? Matt On 6/10/15, 7:14 AM, "Scott Granados" > wrote: If you follow the thread between Josh and myself he helped me get to where I needed to be with a pair of F5 BigIPs with HA and partitioning enabled. Also it?s important to note you need an f5rancid file that?s based on tmsh instead of bagpipe as bagpipe is deprecated. On Jun 10, 2015, at 9:36 AM, Matt Almgren > wrote: Jos and Alan, if you get this working, can you please share the f5rancid file with me? I'll be setting up a 3.2 installation in the next couple weeks. Much thanks! --iMatt On Jun 9, 2015, at 10:55 PM, Alan McKinnon > wrote: On 10/06/2015 07:43, Jos wrote: Hi Scott I trust you got this sorted by now, but you were not alone with this. I have finally managed to get this going on a Centos 6.5 machine with the config attached (a hacked amalgam of 3.2 rancid and the github tmsh stuff), hoping it?s helpful to someone, the F5?s we have that this works for are running 11.5.1 Build 4.123.128. It?s currently producing noise, specifically the encrypted passwords for a couple local user accounts keep getting flagged in cvs as changing, but otherwise works well. If I can figure out the regex to remove the encrypted passwords that follow: auth-password-encrypted Or privacy-password-encrypted I can share. The rancid scripts are peppered with these sort of checks. Something like this: if (/^(\s*auth|privacy)-password-encrypted/ && $filter_pwds >= 1) { ProcessHistory("whatever}","","","$1-password-encrypted \n"); } next; Regex gets complicated. There's a few examples aready in sub WriteTerm. You'll obviously have to adapt the regex to cater for all the multiple and various outputs different models from your vendor spit out. -- Alan McKinnon alan.mckinnon at gmail.com _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo/rancid-discuss _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo/rancid-discuss -------------- next part -------------- An HTML attachment was scrubbed... URL: From scott.granados at gmail.com Wed Jun 10 14:40:33 2015 From: scott.granados at gmail.com (Scott Granados) Date: Wed, 10 Jun 2015 10:40:33 -0400 Subject: [rancid] Backing up F5 BigIP LTM with rancid? In-Reply-To: References: <87F3481B-B0A4-4306-99D0-95C9F29F482C@gmail.com> <5577D12A.5020004@gmail.com> <76B5779F-37DD-4791-9431-E752F0F3962B@surveymonkey.com> <1AED658C-C1A7-4A46-B026-2D9746CF3D5E@gmail.com> Message-ID: <3AD217DC-184B-479B-BD02-68B7452A0289@gmail.com> I have 3.5 working. Basically using the internal library / included. I will attach the f5rancid file I?m using though and earlier in this thread there?s an F5 part 2 line script you?ll need. I will cut and paste the contents of that in the file. First, creat a file called f5part in the /config dir of your F5. This is needed if you use partitions only. put the contents that follow in to this file and save #!/bin/bash tmsh -q -c "cd /;list recursive" Make sure the file can be executed and then use the attached f5rancid which should pull down what you need. Let me know how you make out, will be glad to help more if I can. Thanks On Jun 10, 2015, at 10:19 AM, Matt Almgren wrote: > > > Yup, I did. I too am using 11.5.x with TMSH and HA. I was hoping that > since you had already done the lions share of the work and had something > working (or in progress), you would be able to share what you have with > the rest of us. > > I have a working Rancid copy of 2.8.x working well with f5 LTM, but have > heard there were some problems with 3.2 and was just waiting until all the > kinks have been worked out. Sounds like we?re almost there. > > ? Matt > > > > > > On 6/10/15, 7:14 AM, "Scott Granados" wrote: > >> If you follow the thread between Josh and myself he helped me get to >> where I needed to be with a pair of F5 BigIPs with HA and partitioning >> enabled. Also it?s important to note you need an f5rancid file that?s >> based on tmsh instead of bagpipe as bagpipe is deprecated. >> >> >> >> On Jun 10, 2015, at 9:36 AM, Matt Almgren wrote: >> >>> Jos and Alan, if you get this working, can you please share the >>> f5rancid file with me? I'll be setting up a 3.2 installation in the >>> next couple weeks. >>> >>> Much thanks! >>> >>> --iMatt >>> >>>> On Jun 9, 2015, at 10:55 PM, Alan McKinnon >>>> wrote: >>>> >>>>> On 10/06/2015 07:43, Jos wrote: >>>>> Hi Scott >>>>> >>>>> I trust you got this sorted by now, but you were not alone with this. >>>>> I >>>>> have finally managed to get this going on a Centos 6.5 machine with >>>>> the >>>>> config attached (a hacked amalgam of 3.2 rancid and the github tmsh >>>>> stuff), hoping it?s helpful to someone, the F5?s we have that this >>>>> works >>>>> for are running 11.5.1 Build 4.123.128. It?s currently producing >>>>> noise, >>>>> specifically the encrypted passwords for a couple local user accounts >>>>> keep >>>>> getting flagged in cvs as changing, but otherwise works well. >>>>> >>>>> If I can figure out the regex to remove the encrypted passwords that >>>>> follow: >>>>> >>>>> auth-password-encrypted >>>>> >>>>> Or >>>>> privacy-password-encrypted >>>>> >>>>> >>>>> I can share. >>>> >>>> >>>> >>>> The rancid scripts are peppered with these sort of checks. Something >>>> like this: >>>> >>>> if (/^(\s*auth|privacy)-password-encrypted/ && $filter_pwds >= 1) { >>>> ProcessHistory("whatever}","","","$1-password-encrypted \n"); >>>> } >>>> next; >>>> >>>> Regex gets complicated. There's a few examples aready in sub WriteTerm. >>>> You'll obviously have to adapt the regex to cater for all the multiple >>>> and various outputs different models from your vendor spit out. >>>> >>>> -- >>>> Alan McKinnon >>>> alan.mckinnon at gmail.com >>>> >>>> _______________________________________________ >>>> Rancid-discuss mailing list >>>> Rancid-discuss at shrubbery.net >>>> http://www.shrubbery.net/mailman/listinfo/rancid-discuss >>> _______________________________________________ >>> Rancid-discuss mailing list >>> Rancid-discuss at shrubbery.net >>> http://www.shrubbery.net/mailman/listinfo/rancid-discuss >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: f5rancid Type: application/octet-stream Size: 24069 bytes Desc: not available URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: From jabbyjim at gmail.com Wed Jun 10 15:31:54 2015 From: jabbyjim at gmail.com (Jim P) Date: Wed, 10 Jun 2015 11:31:54 -0400 Subject: [rancid] missed cmd(s): all commands Message-ID: greetings. I have been googling like crazy but I am unable to figure out what this error means in the logs. What is "all commands?" was I supposed to put them in? Here is the log itself. The switch is an HP, which I put appropriately in the router.db file. (x.x.x.x;hp;up) ----------------------------- [rancid at localhost logs]$ more Switches.20150610.110807 starting: Wed Jun 10 11:08:07 EDT 2015 cvs add: x.x.x.x already exists, with version number 1.1 Added x.x.x.xx Trying to get all of the configs. x.x.x.x: missed cmd(s): all commands x.x.x.x: clogin error: Error: TIMEOUT reached x.x.x.x: End of run not found ; has anyone seen this before. I am fairly new to Rancid. This is my 2nd day playing around w/it thanks for any help Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: From scott.granados at gmail.com Wed Jun 10 16:51:43 2015 From: scott.granados at gmail.com (Scott Granados) Date: Wed, 10 Jun 2015 12:51:43 -0400 Subject: [rancid] missed cmd(s): all commands In-Reply-To: References: Message-ID: <3F92DA95-392B-432E-8E51-B586E27A7184@gmail.com> So likely if you?re running 3.2 (you didn?t put the rancid version I don?t think) you need to use ;s and not :s in your router.db file. The commands error means that no commands ran successfully I believe. Try changing to ;s in your router.db file and rerunning. I got this exact result before I updated my config thanks to someone on list a while back. Good luck Scott On Jun 10, 2015, at 11:31 AM, Jim P wrote: > greetings. I have been googling like crazy but I am unable to figure out what this error means in the logs. What is "all commands?" was I supposed to put them in? > > Here is the log itself. The switch is an HP, which I put appropriately in the router.db file. (x.x.x.x;hp;up) > > ----------------------------- > [rancid at localhost logs]$ more Switches.20150610.110807 > starting: Wed Jun 10 11:08:07 EDT 2015 > > cvs add: x.x.x.x already exists, with version number 1.1 > Added x.x.x.xx > > Trying to get all of the configs. > x.x.x.x: missed cmd(s): all commands > x.x.x.x: clogin error: Error: TIMEOUT reached > x.x.x.x: End of run not found > ; > > has anyone seen this before. I am fairly new to Rancid. This is my 2nd day playing around w/it > > thanks for any help > > Jim > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss From workwithcisco at yahoo.com Wed Jun 10 16:48:24 2015 From: workwithcisco at yahoo.com (Todd Heide) Date: Wed, 10 Jun 2015 16:48:24 +0000 (UTC) Subject: [rancid] missed cmd(s): all commands In-Reply-To: References: Message-ID: <1512615162.172788.1433954904617.JavaMail.yahoo@mail.yahoo.com> It simply means it was unable to log into the device and run any of the commands it needs to. Check that Rancid can log in, thats the problem you have. >________________________________ > From: Jim P >To: rancid-discuss at shrubbery.net >Sent: Wednesday, June 10, 2015 10:31 AM >Subject: [rancid] missed cmd(s): all commands > > > >greetings. I have been googling like crazy but I am unable to figure out what this error means in the logs. What is "all commands?" was I supposed to put them in? > > >Here is the log itself. The switch is an HP, which I put appropriately in the router.db file. (x.x.x.x;hp;up) > > >----------------------------- >[rancid at localhost logs]$ more Switches.20150610.110807 >starting: Wed Jun 10 11:08:07 EDT 2015 > > >cvs add: x.x.x.x already exists, with version number 1.1 >Added x.x.x.xx > > >Trying to get all of the configs. >x.x.x.x: missed cmd(s): all commands >x.x.x.x: clogin error: Error: TIMEOUT reached >x.x.x.x: End of run not found >; > > >has anyone seen this before. I am fairly new to Rancid. This is my 2nd day playing around w/it > > >thanks for any help > > >Jim >_______________________________________________ >Rancid-discuss mailing list >Rancid-discuss at shrubbery.net >http://www.shrubbery.net/mailman/listinfo/rancid-discuss > > From jabbyjim at gmail.com Wed Jun 10 17:00:08 2015 From: jabbyjim at gmail.com (Jim P) Date: Wed, 10 Jun 2015 13:00:08 -0400 Subject: [rancid] missed cmd(s): all commands In-Reply-To: <1512615162.172788.1433954904617.JavaMail.yahoo@mail.yahoo.com> References: <1512615162.172788.1433954904617.JavaMail.yahoo@mail.yahoo.com> Message-ID: Rancid version 3.1 (sorry forgot to put that!) thanks everyone (Reading the FAQ now also). I"m definitely using the ; 's (I found and fixed that problem yesterday actually!) clogin worked perfectly but maybe my router.db is off still somehow? Its very simple, with just one test IP ---------------------------------------------------------------- [rancid at localhost Switches]$ more router.db 1.1.1.1;hp;up [rancid at localhost Switches]$ ---------------------------------------------------------------- I checked the logs of my HP and I see it logging in but doing nothing, which is odd. On Wed, Jun 10, 2015 at 12:48 PM, Todd Heide wrote: > It simply means it was unable to log into the device and run any of the > commands it needs to. Check that Rancid can log in, thats the problem you > have. > > > > >________________________________ > > From: Jim P > >To: rancid-discuss at shrubbery.net > >Sent: Wednesday, June 10, 2015 10:31 AM > >Subject: [rancid] missed cmd(s): all commands > > > > > > > >greetings. I have been googling like crazy but I am unable to figure out > what this error means in the logs. What is "all commands?" was I supposed > to put them in? > > > > > >Here is the log itself. The switch is an HP, which I put appropriately in > the router.db file. (x.x.x.x;hp;up) > > > > > >----------------------------- > >[rancid at localhost logs]$ more Switches.20150610.110807 > >starting: Wed Jun 10 11:08:07 EDT 2015 > > > > > >cvs add: x.x.x.x already exists, with version number 1.1 > >Added x.x.x.xx > > > > > >Trying to get all of the configs. > >x.x.x.x: missed cmd(s): all commands > >x.x.x.x: clogin error: Error: TIMEOUT reached > >x.x.x.x: End of run not found > >; > > > > > >has anyone seen this before. I am fairly new to Rancid. This is my 2nd > day playing around w/it > > > > > >thanks for any help > > > > > >Jim > >_______________________________________________ > >Rancid-discuss mailing list > >Rancid-discuss at shrubbery.net > >http://www.shrubbery.net/mailman/listinfo/rancid-discuss > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jhb at clemson.edu Wed Jun 10 17:18:26 2015 From: jhb at clemson.edu (Joseph Bernard) Date: Wed, 10 Jun 2015 17:18:26 +0000 Subject: [rancid] missed cmd(s): all commands In-Reply-To: References: <1512615162.172788.1433954904617.JavaMail.yahoo@mail.yahoo.com>, Message-ID: <694A53E5-993E-476E-9F63-76EC43231917@clemson.edu> Have you tried this? rancid -d -t hp 1.1.1.1 Thanks, Joseph B. Sent from my iPhone On Jun 10, 2015, at 1:07 PM, Jim P > wrote: Rancid version 3.1 (sorry forgot to put that!) thanks everyone (Reading the FAQ now also). I"m definitely using the ; 's (I found and fixed that problem yesterday actually!) clogin worked perfectly but maybe my router.db is off still somehow? Its very simple, with just one test IP ---------------------------------------------------------------- [rancid at localhost Switches]$ more router.db 1.1.1.1;hp;up [rancid at localhost Switches]$ ---------------------------------------------------------------- I checked the logs of my HP and I see it logging in but doing nothing, which is odd. On Wed, Jun 10, 2015 at 12:48 PM, Todd Heide > wrote: It simply means it was unable to log into the device and run any of the commands it needs to. Check that Rancid can log in, thats the problem you have. >________________________________ > From: Jim P > >To: rancid-discuss at shrubbery.net >Sent: Wednesday, June 10, 2015 10:31 AM >Subject: [rancid] missed cmd(s): all commands > > > >greetings. I have been googling like crazy but I am unable to figure out what this error means in the logs. What is "all commands?" was I supposed to put them in? > > >Here is the log itself. The switch is an HP, which I put appropriately in the router.db file. (x.x.x.x;hp;up) > > >----------------------------- >[rancid at localhost logs]$ more Switches.20150610.110807 >starting: Wed Jun 10 11:08:07 EDT 2015 > > >cvs add: x.x.x.x already exists, with version number 1.1 >Added x.x.x.xx > > >Trying to get all of the configs. >x.x.x.x: missed cmd(s): all commands >x.x.x.x: clogin error: Error: TIMEOUT reached >x.x.x.x: End of run not found >; > > >has anyone seen this before. I am fairly new to Rancid. This is my 2nd day playing around w/it > > >thanks for any help > > >Jim >_______________________________________________ >Rancid-discuss mailing list >Rancid-discuss at shrubbery.net >http://www.shrubbery.net/mailman/listinfo/rancid-discuss > > _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo/rancid-discuss -------------- next part -------------- An HTML attachment was scrubbed... URL: From workwithcisco at yahoo.com Wed Jun 10 17:14:19 2015 From: workwithcisco at yahoo.com (Todd Heide) Date: Wed, 10 Jun 2015 17:14:19 +0000 (UTC) Subject: [rancid] missed cmd(s): all commands In-Reply-To: References: Message-ID: <1342912148.201245.1433956459297.JavaMail.yahoo@mail.yahoo.com> Dont know if this helps or not, but ran into a similar issue on Cisco devices( not familiar with HP, sorry). The problem was a MOTD banner. clogin looks for # to know it is in enable mode, the MOTD had # as the border, so Rancid never knew it was in enable mode as it saw a ton of # being sent back and timedout. I changed the MOTD to use * and was able to resolve the issue. So if there is a specific thing Rancid looks for to know it is in enable mode where it can run the commands, then make sure that it is not used in any banners during login. >________________________________ > From: Jim P >To: >Cc: "rancid-discuss at shrubbery.net" >Sent: Wednesday, June 10, 2015 12:00 PM >Subject: Re: [rancid] missed cmd(s): all commands > > > >Rancid version 3.1 (sorry forgot to put that!) > > >thanks everyone (Reading the FAQ now also). I"m definitely using the ; 's (I found and fixed that problem yesterday actually!) > > >clogin worked perfectly but maybe my router.db is off still somehow? > > >Its very simple, with just one test IP >---------------------------------------------------------------- > >[rancid at localhost Switches]$ more router.db >1.1.1.1;hp;up >[rancid at localhost Switches]$ >---------------------------------------------------------------- > > > >I checked the logs of my HP and I see it logging in but doing nothing, which is odd. > > > > > > > > > > >On Wed, Jun 10, 2015 at 12:48 PM, Todd Heide wrote: > >It simply means it was unable to log into the device and run any of the commands it needs to. Check that Rancid can log in, thats the problem you have. >> >> >> >>>________________________________ >>> From: Jim P >>>To: rancid-discuss at shrubbery.net >>>Sent: Wednesday, June 10, 2015 10:31 AM >>>Subject: [rancid] missed cmd(s): all commands >> >>> >>> >>> >>>greetings. I have been googling like crazy but I am unable to figure out what this error means in the logs. What is "all commands?" was I supposed to put them in? >>> >>> >>>Here is the log itself. The switch is an HP, which I put appropriately in the router.db file. (x.x.x.x;hp;up) >>> >>> >>>----------------------------- >>>[rancid at localhost logs]$ more Switches.20150610.110807 >>>starting: Wed Jun 10 11:08:07 EDT 2015 >>> >>> >>>cvs add: x.x.x.x already exists, with version number 1.1 >>>Added x.x.x.xx >>> >>> >>>Trying to get all of the configs. >>>x.x.x.x: missed cmd(s): all commands >>>x.x.x.x: clogin error: Error: TIMEOUT reached >>>x.x.x.x: End of run not found >>>; >>> >>> >>>has anyone seen this before. I am fairly new to Rancid. This is my 2nd day playing around w/it >>> >>> >>>thanks for any help >>> >>> >>>Jim >> >>>_______________________________________________ >>>Rancid-discuss mailing list >>>Rancid-discuss at shrubbery.net >>>http://www.shrubbery.net/mailman/listinfo/rancid-discuss >>> >>> >> > > >_______________________________________________ >Rancid-discuss mailing list >Rancid-discuss at shrubbery.net >http://www.shrubbery.net/mailman/listinfo/rancid-discuss > > From jabbyjim at gmail.com Wed Jun 10 17:26:37 2015 From: jabbyjim at gmail.com (Jim P) Date: Wed, 10 Jun 2015 13:26:37 -0400 Subject: [rancid] missed cmd(s): all commands In-Reply-To: <1342912148.201245.1433956459297.JavaMail.yahoo@mail.yahoo.com> References: <1342912148.201245.1433956459297.JavaMail.yahoo@mail.yahoo.com> Message-ID: wow interesting ... there are no #'s in the banner but it does ask for an ENTER prompt, maybe its getting stuck there? I wonder if that is screwing it up. It doesn't look like I can get rid of the "Press any key to continue" even if I have no banner at all. ------------------------------------------------------------------------------------------------------------------------------- admin at 1.1.1.1's password: ProCurve J4899B Switch 2650 Software revision H.10.115 Copyright (C) 1991-2014 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 ------------------------------------------------------------------------------------------------------------------------------- On Wed, Jun 10, 2015 at 1:14 PM, Todd Heide wrote: > Dont know if this helps or not, but ran into a similar issue on Cisco > devices( not familiar with HP, sorry). The problem was a MOTD banner. > clogin looks for # to know it is in enable mode, the MOTD had # as the > border, so Rancid never knew it was in enable mode as it saw a ton of # > being sent back and timedout. I changed the MOTD to use * and was able to > resolve the issue. > > > So if there is a specific thing Rancid looks for to know it is in enable > mode where it can run the commands, then make sure that it is not used in > any banners during login. > > > >________________________________ > > From: Jim P > >To: > >Cc: "rancid-discuss at shrubbery.net" > >Sent: Wednesday, June 10, 2015 12:00 PM > >Subject: Re: [rancid] missed cmd(s): all commands > > > > > > > >Rancid version 3.1 (sorry forgot to put that!) > > > > > >thanks everyone (Reading the FAQ now also). I"m definitely using the ; 's > (I found and fixed that problem yesterday actually!) > > > > > >clogin worked perfectly but maybe my router.db is off still somehow? > > > > > >Its very simple, with just one test IP > >---------------------------------------------------------------- > > > >[rancid at localhost Switches]$ more router.db > >1.1.1.1;hp;up > >[rancid at localhost Switches]$ > >---------------------------------------------------------------- > > > > > > > >I checked the logs of my HP and I see it logging in but doing nothing, > which is odd. > > > > > > > > > > > > > > > > > > > > > >On Wed, Jun 10, 2015 at 12:48 PM, Todd Heide > wrote: > > > >It simply means it was unable to log into the device and run any of the > commands it needs to. Check that Rancid can log in, thats the problem you > have. > >> > >> > >> > >>>________________________________ > >>> From: Jim P > >>>To: rancid-discuss at shrubbery.net > >>>Sent: Wednesday, June 10, 2015 10:31 AM > >>>Subject: [rancid] missed cmd(s): all commands > >> > >>> > >>> > >>> > >>>greetings. I have been googling like crazy but I am unable to figure > out what this error means in the logs. What is "all commands?" was I > supposed to put them in? > >>> > >>> > >>>Here is the log itself. The switch is an HP, which I put appropriately > in the router.db file. (x.x.x.x;hp;up) > >>> > >>> > >>>----------------------------- > >>>[rancid at localhost logs]$ more Switches.20150610.110807 > >>>starting: Wed Jun 10 11:08:07 EDT 2015 > >>> > >>> > >>>cvs add: x.x.x.x already exists, with version number 1.1 > >>>Added x.x.x.xx > >>> > >>> > >>>Trying to get all of the configs. > >>>x.x.x.x: missed cmd(s): all commands > >>>x.x.x.x: clogin error: Error: TIMEOUT reached > >>>x.x.x.x: End of run not found > >>>; > >>> > >>> > >>>has anyone seen this before. I am fairly new to Rancid. This is my 2nd > day playing around w/it > >>> > >>> > >>>thanks for any help > >>> > >>> > >>>Jim > >> > >>>_______________________________________________ > >>>Rancid-discuss mailing list > >>>Rancid-discuss at shrubbery.net > >>>http://www.shrubbery.net/mailman/listinfo/rancid-discuss > >>> > >>> > >> > > > > > >_______________________________________________ > >Rancid-discuss mailing list > >Rancid-discuss at shrubbery.net > >http://www.shrubbery.net/mailman/listinfo/rancid-discuss > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jabbyjim at gmail.com Wed Jun 10 17:36:36 2015 From: jabbyjim at gmail.com (Jim P) Date: Wed, 10 Jun 2015 13:36:36 -0400 Subject: [rancid] missed cmd(s): all commands In-Reply-To: References: <1342912148.201245.1433956459297.JavaMail.yahoo@mail.yahoo.com> Message-ID: well this may explain it .. but I'm unsure of what it means entirely. I thought the scripts were included already. ---------------------------------- [rancid at localhost bin]$ ./rancid -d -t hp 1.1.1.1 loadtype: device type hp loadtype: found device type hp in /usr/local/rancid/etc/rancid.types.base login script not defined for device type hp ---------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Wed Jun 10 17:48:15 2015 From: heas at shrubbery.net (heasley) Date: Wed, 10 Jun 2015 17:48:15 +0000 Subject: [rancid] missed cmd(s): all commands In-Reply-To: <694A53E5-993E-476E-9F63-76EC43231917@clemson.edu> References: <1512615162.172788.1433954904617.JavaMail.yahoo@mail.yahoo.com> <694A53E5-993E-476E-9F63-76EC43231917@clemson.edu> Message-ID: <20150610174815.GE43094@shrubbery.net> Wed, Jun 10, 2015 at 05:18:26PM +0000, Joseph Bernard: > Have you tried this? > > rancid -d -t hp 1.1.1.1 hrancid hasn't been converted to a module yet. so, hrancid -d hostname From jabbyjim at gmail.com Wed Jun 10 18:01:56 2015 From: jabbyjim at gmail.com (Jim P) Date: Wed, 10 Jun 2015 14:01:56 -0400 Subject: [rancid] missed cmd(s): all commands In-Reply-To: References: <1342912148.201245.1433956459297.JavaMail.yahoo@mail.yahoo.com> Message-ID: tried this also .. no luck [rancid at localhost bin]$ ./hrancid -d -t hp 1.1.1.1 executing hlogin -t 90 -c"show version;show flash;show system-information;show 9 sh: hlogin: command not found 10.10.0.99: missed cmd(s): all commands 10.10.0.99: End of run not found 10.10.0.99: End of run not found ; On Wed, Jun 10, 2015 at 1:36 PM, Jim P wrote: > well this may explain it .. but I'm unsure of what it means entirely. I > thought the scripts were included already. > > ---------------------------------- > [rancid at localhost bin]$ ./rancid -d -t hp 1.1.1.1 > loadtype: device type hp > loadtype: found device type hp in /usr/local/rancid/etc/rancid.types.base > login script not defined for device type hp > ---------------------------------- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dan.w.anderson at gmail.com Wed Jun 10 19:31:43 2015 From: dan.w.anderson at gmail.com (Dan Anderson) Date: Wed, 10 Jun 2015 15:31:43 -0400 Subject: [rancid] missed cmd(s): all commands In-Reply-To: References: <1342912148.201245.1433956459297.JavaMail.yahoo@mail.yahoo.com> Message-ID: What does your current $PATH look like? It would appear that your current working directory (guessing /usr/local/rancid/bin) isn't in there. pwd echo $PATH On Wed, Jun 10, 2015 at 2:01 PM, Jim P wrote: > tried this also .. no luck > > [rancid at localhost bin]$ ./hrancid -d -t hp 1.1.1.1 > executing hlogin -t 90 -c"show version;show flash;show > system-information;show 9 > sh: hlogin: command not found > 10.10.0.99: missed cmd(s): all commands > 10.10.0.99: End of run not found > 10.10.0.99: End of run not found > ; > > > On Wed, Jun 10, 2015 at 1:36 PM, Jim P wrote: > >> well this may explain it .. but I'm unsure of what it means entirely. I >> thought the scripts were included already. >> >> ---------------------------------- >> [rancid at localhost bin]$ ./rancid -d -t hp 1.1.1.1 >> loadtype: device type hp >> loadtype: found device type hp in /usr/local/rancid/etc/rancid.types.base >> login script not defined for device type hp >> ---------------------------------- >> >> > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > -- Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: From jabbyjim at gmail.com Wed Jun 10 19:33:56 2015 From: jabbyjim at gmail.com (Jim P) Date: Wed, 10 Jun 2015 15:33:56 -0400 Subject: [rancid] missed cmd(s): all commands In-Reply-To: References: <1342912148.201245.1433956459297.JavaMail.yahoo@mail.yahoo.com> Message-ID: current $PATH looks like this> [rancid at localhost bin]$ pwd /usr/local/rancid/bin [rancid at localhost bin]$ echo $PATH /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/rancid/.local/bin:/home/rancid/bin On Wed, Jun 10, 2015 at 3:31 PM, Dan Anderson wrote: > What does your current $PATH look like? It would appear that your current > working directory (guessing /usr/local/rancid/bin) isn't in there. > > pwd > echo $PATH > > On Wed, Jun 10, 2015 at 2:01 PM, Jim P wrote: > >> tried this also .. no luck >> >> [rancid at localhost bin]$ ./hrancid -d -t hp 1.1.1.1 >> executing hlogin -t 90 -c"show version;show flash;show >> system-information;show 9 >> sh: hlogin: command not found >> 10.10.0.99: missed cmd(s): all commands >> 10.10.0.99: End of run not found >> 10.10.0.99: End of run not found >> ; >> >> >> On Wed, Jun 10, 2015 at 1:36 PM, Jim P wrote: >> >>> well this may explain it .. but I'm unsure of what it means entirely. I >>> thought the scripts were included already. >>> >>> ---------------------------------- >>> [rancid at localhost bin]$ ./rancid -d -t hp 1.1.1.1 >>> loadtype: device type hp >>> loadtype: found device type hp in /usr/local/rancid/etc/rancid.types.base >>> login script not defined for device type hp >>> ---------------------------------- >>> >>> >> >> _______________________________________________ >> Rancid-discuss mailing list >> Rancid-discuss at shrubbery.net >> http://www.shrubbery.net/mailman/listinfo/rancid-discuss >> > > > > -- > Dan > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jabbyjim at gmail.com Wed Jun 10 20:43:38 2015 From: jabbyjim at gmail.com (Jim P) Date: Wed, 10 Jun 2015 16:43:38 -0400 Subject: [rancid] missed cmd(s): all commands Message-ID: Thanks for the help everyone. Ok.. I added /usr/local/rancid/bin to $path but I don't see a difference. ----------------------------------------------------------------------------------------------- [rancid at localhost bin]$ ./rancid-run [rancid at localhost bin]$ echo $PATH /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/rancid/.local/bin:/home/rancid/bin:/usr/local/rancid/bin starting: Wed Jun 10 16:09:05 EDT 2015 Trying to get all of the configs. 1.1.1.1: missed cmd(s): all commands 1.1.1.1 clogin error: Error: TIMEOUT reached 1.1.1.1: End of run not found ; ----------------------------------------------------------------------------------------------- [rancid at localhost bin]$ ./rancid -d -t hp 1.1.1.1 loadtype: device type hp loadtype: found device type hp in /usr/local/rancid/etc/rancid.types.base login script not defined for device type hp ----------------------------------------------------------------------------------------------- [rancid at localhost bin]$ ./hrancid -d -t hp 1.1.1.1 executing hlogin -t 90 -c"show version;show flash;show system-information;show system information;show module;show stack;show tech transceivers;show config files;show config status;write term" 1.1.1.1 1.1.1.1 clogin error: Error: TIMEOUT reached 1.1.1.1 clogin error: Error: TIMEOUT reached 1.1.1.1: missed cmd(s): all commands 1.1.1.1: End of run not found 1.1.1.1: End of run not found ; On Wed, Jun 10, 2015 at 3:33 PM, Jim P wrote: > current $PATH looks like this> > > [rancid at localhost bin]$ pwd > /usr/local/rancid/bin > [rancid at localhost bin]$ echo $PATH > > /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/rancid/.local/bin:/home/rancid/bin > > On Wed, Jun 10, 2015 at 3:31 PM, Dan Anderson > wrote: > >> What does your current $PATH look like? It would appear that your current >> working directory (guessing /usr/local/rancid/bin) isn't in there. >> >> pwd >> echo $PATH >> >> On Wed, Jun 10, 2015 at 2:01 PM, Jim P wrote: >> >>> tried this also .. no luck >>> >>> [rancid at localhost bin]$ ./hrancid -d -t hp 1.1.1.1 >>> executing hlogin -t 90 -c"show version;show flash;show >>> system-information;show 9 >>> sh: hlogin: command not found >>> 10.10.0.99: missed cmd(s): all commands >>> 10.10.0.99: End of run not found >>> 10.10.0.99: End of run not found >>> ; >>> >>> >>> On Wed, Jun 10, 2015 at 1:36 PM, Jim P wrote: >>> >>>> well this may explain it .. but I'm unsure of what it means entirely. I >>>> thought the scripts were included already. >>>> >>>> ---------------------------------- >>>> [rancid at localhost bin]$ ./rancid -d -t hp 1.1.1.1 >>>> loadtype: device type hp >>>> loadtype: found device type hp in >>>> /usr/local/rancid/etc/rancid.types.base >>>> login script not defined for device type hp >>>> ---------------------------------- >>>> >>>> >>> >>> _______________________________________________ >>> Rancid-discuss mailing list >>> Rancid-discuss at shrubbery.net >>> http://www.shrubbery.net/mailman/listinfo/rancid-discuss >>> >> >> >> >> -- >> Dan >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jabbyjim at gmail.com Thu Jun 11 15:49:47 2015 From: jabbyjim at gmail.com (Jim P) Date: Thu, 11 Jun 2015 11:49:47 -0400 Subject: [rancid] hlogin timing out Message-ID: I have narrowed down my recent issues to that I really believe I'm having an HP specific issue. Its driving me bonkers and I hope I'm not doing the same for the mailing list. trying to run this off of a test HP 2650 When I run this: ./clogin -c "show ver" 10.10.0.99 ------------------------------------------------------------------------------ [rancid at localhost bin]$ ./clogin -c "show ver" 10.10.0.99 10.10.0.99 spawn telnet 10.10.0.99 Trying 10.10.0.99... Connected to 10.10.0.99. Escape character is '^]'. ProCurve J4899B Switch 2650 Software revision H.10.115 Copyright (C) 1991-2014 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 Password: TEST-SWITCH99# TEST-SWITCH99# terminal length 0 Invalid input: 0 TEST-SWITCH99# Error: TIMEOUT reached --------------------------------------------------------------------------------- it does much better than if I do the following (which just sort of locks up the screen) --------------------------------------------------------------------------------- ./hlogin -c "show ver" 10.10.0.99 10.10.0.99 spawn hpuifilter -- telnet 10.10.0.99 Trying 10.10.0.99... Connected to 10.10.0.99. Escape character is '^]'. ProCurve J4899B Switch 2650 Software revision H.10.115 Copyright (C) 1991-2014 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 continuePassword: TEST-SWITCH99# --> (IT HANGS HERE until it eventually times out) Error: TIMEOUT reached --------------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From jabbyjim at gmail.com Thu Jun 11 14:23:41 2015 From: jabbyjim at gmail.com (Jim P) Date: Thu, 11 Jun 2015 10:23:41 -0400 Subject: [rancid] missed cmd(s): all commands Message-ID: Could it be that I am trying to backup HP 2650's (and the like). They are pretty old, and I know the CLI changed significantly in the newer models. I'm just unsure what RANCID is entirely expecting. Here is my current hrancid test (path as rancid looks good) [rancid at localhost bin]$ echo $PATH /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/usr/local/rancid/bin:/home/rancid/.local/bin:/home/rancid/bin (hrancid test) [rancid at localhost bin]$ ./hrancid -d -t hp 1.1.1.1 executing hlogin -t 90 -c"show version;show flash;show system-information;show system information;show module;show stack;show tech t9 1.1.1.1 clogin error: Error: TIMEOUT reached 1.1.1.1 clogin error: Error: TIMEOUT reached 1.1.1.1: missed cmd(s): all commands 1.1.1.1: End of run not found 1.1.1.1: End of run not found ; I tried ./clogin 1.1.1.1 and it logged in perfectly but if I do ./clogin -h hp 1.1.1.1 it logs in and does a TIMEOUT Immediately -------------------------------------------------------------- ProCurve J4899B Switch 2650 Software revision H.10.115 Copyright (C) 1991-2014 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 Error: TIMEOUT reached <--- this happens immediately [rancid at localhost bin]$ -------------------------------------------------------------- I'm also using "hp" in my router.db file [rancid at localhost Switches]$ more router.db 1.1.1.1;hp;up -------------- next part -------------- An HTML attachment was scrubbed... URL: From mnewton at pofp.com Thu Jun 11 18:26:10 2015 From: mnewton at pofp.com (Michael Newton) Date: Thu, 11 Jun 2015 18:26:10 +0000 Subject: [rancid] hlogin timing out In-Reply-To: References: Message-ID: <223776CE-BAFE-4489-B703-A6D95103F6CB@pofp.com> Jim, I don?t have much insight aside from passing the ?d flag to hlogin which will give you a lot of debugging. My reason for replying is just to let you know that we are successfully backing up HP 2600-8, 2626, and 2650 switches, and with much older firmware revisions on some of them (e.g. H.10.31.) We?re running rancid 3.1, and have not seen any issues with timeouts like this. -- Michael Newton Director, Product Development Point of Presence Technologies From: Rancid-discuss on behalf of Jim P Date: Thursday, June 11, 2015 at 8:49 AM To: "rancid-discuss at shrubbery.net" Subject: [rancid] hlogin timing out I have narrowed down my recent issues to that I really believe I'm having an HP specific issue. Its driving me bonkers and I hope I'm not doing the same for the mailing list. trying to run this off of a test HP 2650 When I run this: ./clogin -c "show ver" 10.10.0.99 ------------------------------------------------------------------------------ [rancid at localhost bin]$ ./clogin -c "show ver" 10.10.0.99 10.10.0.99 spawn telnet 10.10.0.99 Trying 10.10.0.99... Connected to 10.10.0.99. Escape character is '^]'. ProCurve J4899B Switch 2650 Software revision H.10.115 Copyright (C) 1991-2014 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 Password: TEST-SWITCH99# TEST-SWITCH99# terminal length 0 Invalid input: 0 TEST-SWITCH99# Error: TIMEOUT reached --------------------------------------------------------------------------------- it does much better than if I do the following (which just sort of locks up the screen) --------------------------------------------------------------------------------- ./hlogin -c "show ver" 10.10.0.99 10.10.0.99 spawn hpuifilter -- telnet 10.10.0.99 Trying 10.10.0.99... Connected to 10.10.0.99. Escape character is '^]'. ProCurve J4899B Switch 2650 Software revision H.10.115 Copyright (C) 1991-2014 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 continuePassword: TEST-SWITCH99# --> (IT HANGS HERE until it eventually times out) Error: TIMEOUT reached --------------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 5966 bytes Desc: not available URL: From jabbyjim at gmail.com Thu Jun 11 19:18:48 2015 From: jabbyjim at gmail.com (Jim P) Date: Thu, 11 Jun 2015 15:18:48 -0400 Subject: [rancid] hlogin timing out In-Reply-To: <223776CE-BAFE-4489-B703-A6D95103F6CB@pofp.com> References: <223776CE-BAFE-4489-B703-A6D95103F6CB@pofp.com> Message-ID: that is good news and good advice, thank you. Its a pretty hard read but it pretty much feels like rancid gets lost after it logs in? I upgraded to Rancid 3.2, but it didn't help :( [rancid at localhost bin]$ ./hlogin -d -c "show ver" 10.10.0.99 10.10.0.99 spawn hpuifilter -- telnet 10.10.0.99 parent: waiting for sync byte parent: telling child to go ahead parent: now unsynchronized from child spawn: returns {6380} --- SNIP --- expect: does "Password: " (spawn_id exp4) match regular expression "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "Password:" expect: set expect_out(1,string) "Password" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "Password:" send: sending "testpass\r" to { exp4 } Gate keeper glob pattern for '[Pp]assword:' is '?assword:'. Activating booster. expect: does " " (spawn_id exp4) match glob pattern "Press any key to continue"? no "[Pp]assword:"? Gate "?assword:"? gate=no ">"? no TEST-SWITCH99# expect: does " \r\r\n\rTEST-SWITCH99# " (spawn_id exp4) match glob pattern "Press any key to continue"? no "[Pp]assword:"? Gate "?assword:"? gate=no ">"? no expect: timed out Error: TIMEOUT reached ------------------------ On Thu, Jun 11, 2015 at 2:26 PM, Michael Newton wrote: > Jim, I don?t have much insight aside from passing the ?d flag to hlogin > which will give you a lot of debugging. > > My reason for replying is just to let you know that we are successfully > backing up HP 2600-8, 2626, and 2650 switches, and with much older firmware > revisions on some of them (e.g. H.10.31.) We?re running rancid 3.1, and > have not seen any issues with timeouts like this. > > > -- > > Michael Newton > Director, Product Development > Point of Presence Technologies > > > From: Rancid-discuss on behalf of Jim P > Date: Thursday, June 11, 2015 at 8:49 AM > To: "rancid-discuss at shrubbery.net" > Subject: [rancid] hlogin timing out > > I have narrowed down my recent issues to that I really believe I'm having > an HP specific issue. Its driving me bonkers and I hope I'm not doing the > same for the mailing list. > > trying to run this off of a test HP 2650 > > When I run this: > > ./clogin -c "show ver" 10.10.0.99 > > ------------------------------------------------------------------------------ > [rancid at localhost bin]$ ./clogin -c "show ver" 10.10.0.99 > 10.10.0.99 > spawn telnet 10.10.0.99 > Trying 10.10.0.99... > Connected to 10.10.0.99. > Escape character is '^]'. > ProCurve J4899B Switch 2650 > Software revision H.10.115 > Copyright (C) 1991-2014 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 > Password: > > TEST-SWITCH99# > TEST-SWITCH99# terminal length 0 > Invalid input: 0 > TEST-SWITCH99# > Error: TIMEOUT reached > > --------------------------------------------------------------------------------- > > it does much better than if I do the following (which just sort of locks > up the screen) > > > --------------------------------------------------------------------------------- > ./hlogin -c "show ver" 10.10.0.99 > > 10.10.0.99 > spawn hpuifilter -- telnet 10.10.0.99 > Trying 10.10.0.99... > Connected to 10.10.0.99. > Escape character is '^]'. > ProCurve J4899B Switch 2650 > Software revision H.10.115 > > Copyright (C) 1991-2014 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 continuePassword: > TEST-SWITCH99# --> (IT HANGS HERE until it eventually times out) > Error: TIMEOUT reached > > --------------------------------------------------------------------------------- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From workwithcisco at yahoo.com Thu Jun 11 19:59:49 2015 From: workwithcisco at yahoo.com (Todd Heide) Date: Thu, 11 Jun 2015 19:59:49 +0000 (UTC) Subject: [rancid] hlogin timing out In-Reply-To: References: Message-ID: <320735396.623508.1434052789524.JavaMail.yahoo@mail.yahoo.com> What is debug telling you? When you run debug it will output what Rancid is doing when it logs in, maybe you can see the errors the HP is putting out. >________________________________ > From: Jim P >To: Michael Newton >Cc: "rancid-discuss at shrubbery.net" >Sent: Thursday, June 11, 2015 2:18 PM >Subject: Re: [rancid] hlogin timing out > > > >that is good news and good advice, thank you. Its a pretty hard read but it pretty much feels like rancid gets lost after it logs in? I upgraded to Rancid 3.2, but it didn't help :( > > >[rancid at localhost bin]$ ./hlogin -d -c "show ver" 10.10.0.99 >10.10.0.99 >spawn hpuifilter -- telnet 10.10.0.99 >parent: waiting for sync byte >parent: telling child to go ahead >parent: now unsynchronized from child >spawn: returns {6380} > > >--- SNIP --- > > > >expect: does "Password: " (spawn_id exp4) match regular expression "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no >"([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no >"([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=yes >expect: set expect_out(0,string) "Password:" >expect: set expect_out(1,string) "Password" >expect: set expect_out(spawn_id) "exp4" >expect: set expect_out(buffer) "Password:" >send: sending "testpass\r" to { exp4 } >Gate keeper glob pattern for '[Pp]assword:' is '?assword:'. Activating booster. > > >expect: does " " (spawn_id exp4) match glob pattern "Press any key to continue"? no >"[Pp]assword:"? Gate "?assword:"? gate=no >">"? no > > >TEST-SWITCH99# >expect: does " \r\r\n\rTEST-SWITCH99# " (spawn_id exp4) match glob pattern "Press any key to continue"? no >"[Pp]assword:"? Gate "?assword:"? gate=no >">"? no >expect: timed out > > >Error: TIMEOUT reached > > > > > >------------------------ > > >On Thu, Jun 11, 2015 at 2:26 PM, Michael Newton wrote: > >Jim, I don?t have much insight aside from passing the ?d flag to hlogin which will give you a lot of debugging. >> >> >>My reason for replying is just to let you know that we are successfully backing up HP 2600-8, 2626, and 2650 switches, and with much older firmware revisions on some of them (e.g. H.10.31.) We?re running rancid 3.1, and have not seen any issues with timeouts like this. >> >> >>-- >>Michael Newton >>Director, Product Development >>Point of Presence Technologies >> >> >> >>From: Rancid-discuss on behalf of Jim P >>Date: Thursday, June 11, 2015 at 8:49 AM >>To: "rancid-discuss at shrubbery.net" >>Subject: [rancid] hlogin timing out >> >> >> >>I have narrowed down my recent issues to that I really believe I'm having an HP specific issue. Its driving me bonkers and I hope I'm not doing the same for the mailing list. >> >> >>trying to run this off of a test HP 2650 >> >> >>When I run this: >> >> >>./clogin -c "show ver" 10.10.0.99 >>------------------------------------------------------------------------------ >>[rancid at localhost bin]$ ./clogin -c "show ver" 10.10.0.99 >>10.10.0.99 >>spawn telnet 10.10.0.99 >>Trying 10.10.0.99... >>Connected to 10.10.0.99. >>Escape character is '^]'. >>ProCurve J4899B Switch 2650 >>Software revision H.10.115 >>Copyright (C) 1991-2014 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 >> >>Password: >> >> >> >>TEST-SWITCH99# >> >>TEST-SWITCH99# terminal length 0 >>Invalid input: 0 >>TEST-SWITCH99# >>Error: TIMEOUT reached >>--------------------------------------------------------------------------------- >> >> >> >>it does much better than if I do the following (which just sort of locks up the screen) >> >> >>--------------------------------------------------------------------------------- >> >>./hlogin -c "show ver" 10.10.0.99 >> >> >> >>10.10.0.99 >>spawn hpuifilter -- telnet 10.10.0.99 >>Trying 10.10.0.99... >>Connected to 10.10.0.99. >>Escape character is '^]'. >>ProCurve J4899B Switch 2650 >>Software revision H.10.115 >> >> >>Copyright (C) 1991-2014 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 continuePassword: >>TEST-SWITCH99# --> (IT HANGS HERE until it eventually times out) >> >>Error: TIMEOUT reached >>--------------------------------------------------------------------------------- >> >> >> > > >_______________________________________________ >Rancid-discuss mailing list >Rancid-discuss at shrubbery.net >http://www.shrubbery.net/mailman/listinfo/rancid-discuss > > From rancid at ale.cx Thu Jun 11 20:19:08 2015 From: rancid at ale.cx (Alex DEKKER) Date: Thu, 11 Jun 2015 21:19:08 +0100 Subject: [rancid] hlogin timing out In-Reply-To: References: <223776CE-BAFE-4489-B703-A6D95103F6CB@pofp.com> Message-ID: <5579ED3C.8000206@ale.cx> On 11/06/15 20:18, Jim P wrote: ... > expect: does " " (spawn_id exp4) match glob pattern "Press any key to > continue"? no > "[Pp]assword:"? Gate "?assword:"? gate=no > ">"? no > > TEST-SWITCH99# > expect: does " \r\r\n\rTEST-SWITCH99# " (spawn_id exp4) match glob > pattern "Press any key to continue"? no > "[Pp]assword:"? Gate "?assword:"? gate=no > ">"? no > expect: timed out > > Error: TIMEOUT reached > > Is TEST-SWITCH99 your switch's name? It seems to me that RANCID is expecting a login prompt but your switch doesn't require logging in. If you telnet to the switch, do you land straight in the CLI without a login prompt? alexd From jabbyjim at gmail.com Thu Jun 11 20:08:49 2015 From: jabbyjim at gmail.com (Jim P) Date: Thu, 11 Jun 2015 16:08:49 -0400 Subject: [rancid] hlogin timing out In-Reply-To: <320735396.623508.1434052789524.JavaMail.yahoo@mail.yahoo.com> References: <320735396.623508.1434052789524.JavaMail.yahoo@mail.yahoo.com> Message-ID: Its hard to decipher, unless if I am looking at the wrong thing? ------------ expect: does " " (spawn_id exp4) match glob pattern "Press any key to continue"? no "[Pp]assword:"? Gate "?assword:"? gate=no ">"? no TEST-SWITCH99# expect: does " \r\r\n\rTEST-SWITCH99# " (spawn_id exp4) match glob pattern "Press any key to continue"? no "[Pp]assword:"? Gate "?assword:"? gate=no ">"? no expect: timed out Error: TIMEOUT reached ------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From jabbyjim at gmail.com Thu Jun 11 20:51:52 2015 From: jabbyjim at gmail.com (Jim P) Date: Thu, 11 Jun 2015 16:51:52 -0400 Subject: [rancid] hlogin timing out In-Reply-To: <320735396.623508.1434052789524.JavaMail.yahoo@mail.yahoo.com> References: <320735396.623508.1434052789524.JavaMail.yahoo@mail.yahoo.com> Message-ID: thanks for the help... I feel like I'm being a nuisance now! I'm getting used to this mailing list in how it works, so excuse the duplicates. here's the full debug below. TEST-SWITCH99 is the name of my switch.. but I am accessing it via IP here is the interesting part with my HP's. Logging in via telnet asks for you to "push any key" then it asks for a password. logging on as SSH asks you for name then password, then asks you to "push any key" It "seems" that the script logs in .. because it is actually giving me the switch TEST-SWITCH99 name which wouldn't show until after I log in but I'm guessing that's a problem. Is there a way to force hlogin to do ssh instead of telnet? maybe that would work? It definitely feels confused. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ [rancid at localhost bin]$ ./hlogin -d -c "show ver" 10.10.0.99 10.10.0.99 spawn hpuifilter -- telnet 10.10.0.99 parent: waiting for sync byte parent: telling child to go ahead parent: now unsynchronized from child spawn: returns {6671} Gate keeper glob pattern for '(Connection refused|Secure connection [^ ]+ refused|Connection closed by)' is ''. Not usable, disabling the performance booster. Gate keeper glob pattern for '(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?. Gate keeper glob pattern for 'HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?' is 'HOST IDENTIFICATION HAS CHA. Gate keeper glob pattern for 'HOST IDENTIFICATION HAS CHANGED[^ ]+' is 'HOST IDENTIFICATION HAS CHANGED*'. Activating booster. Gate keeper glob pattern for 'Offending key for .* \(yes/no\)\?' is 'Offending key for * (yes/no)\?'. Activat. Gate keeper glob pattern for 'Enter passphrase.*: ' is 'Enter passphrase*: '. Activating booster. Gate keeper glob pattern for '([Uu]sername|[Ll]ogin|user name|Login Name):' is ''. Not usable, disabling the . Gate keeper glob pattern for '([Pp]assword|passwd):' is ''. Not usable, disabling the performance booster. expect: does "" (spawn_id exp4) match glob pattern "Press any key to continue"? no "Enter switch number to connect to or :"? no "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes ro "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yeo "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no expect: does "" (spawn_id exp4) match glob pattern "unknown host\r"? no expect: does "" (spawn_id exp4) match regular expression "Enter passphrase.*: "? Gate "Enter passphrase*: "? o "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no ">"? no "denied"? no "% Bad passwords"? no Trying 10.10.0.99... Connected to 10.10.0.99. Escape character is '^]'. ProCurve J4899B Switch 2650 Software revision H.10.115 Copyright (C) 1991-2014 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 expect: does "Trying 10.10.0.99...\r\r\r\nConnected to 10.10.0.99.\r\r\r\nEscape character is '^]'.\r\r\r\nPrs expect: set expect_out(0,string) "Press any key to continue" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "Trying 10.10.0.99...\r\r\r\nConnected to 10.10.0.99.\r\r\r\nEscape character " send: sending " " to { exp4 } expect: continuing expect expect: does "" (spawn_id exp4) match glob pattern "Press any key to continue"? no "Enter switch number to connect to or :"? no "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes ro "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yeo "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no expect: does "" (spawn_id exp4) match glob pattern "unknown host\r"? no expect: does "" (spawn_id exp4) match regular expression "Enter passphrase.*: "? Gate "Enter passphrase*: "? o "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no ">"? no "denied"? no "% Bad passwords"? no Password: expect: does "Password: " (spawn_id exp4) match glob pattern "Press any key to continue"? no "Enter switch number to connect to or :"? no "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes ro "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yeo "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no expect: does "Password: " (spawn_id exp4) match glob pattern "unknown host\r"? no expect: does "Password: " (spawn_id exp4) match regular expression "Enter passphrase.*: "? Gate "Enter passpho "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "Password:" expect: set expect_out(1,string) "Password" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "Password:" send: sending "3nd3rw1gg1n\r" to { exp4 } Gate keeper glob pattern for '[Pp]assword:' is '?assword:'. Activating booster. expect: does " " (spawn_id exp4) match glob pattern "Press any key to continue"? no "[Pp]assword:"? Gate "?assword:"? gate=no ">"? no TEST-SWITCH99# expect: does " \r\r\n\rTEST-SWITCH99# " (spawn_id exp4) match glob pattern "Press any key to continue"? no "[Pp]assword:"? Gate "?assword:"? gate=no ">"? no expect: timed out Error: TIMEOUT reached +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ On Thu, Jun 11, 2015 at 3:59 PM, Todd Heide wrote: > What is debug telling you? When you run debug it will output what Rancid > is doing when it logs in, maybe you can see the errors the HP is putting > out. > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mnewton at pofp.com Thu Jun 11 21:09:32 2015 From: mnewton at pofp.com (Michael Newton) Date: Thu, 11 Jun 2015 21:09:32 +0000 Subject: [rancid] hlogin timing out In-Reply-To: References: <320735396.623508.1434052789524.JavaMail.yahoo@mail.yahoo.com> Message-ID: <71721D34-3AAA-47F2-ABB2-B265C251A64B@pofp.com> Here?s what my debug output looks like, where you get the hang. You?re correct, you are logged in, the different order for telnet vs ssh doesn?t cause any problems. For some reason your system is checking for > instead of #. Do you have noenable active on this device? For testing, you can try adding -noenable to the hlogin command. expect: does "" (spawn_id exp4) match glob pattern "Press any key to continue"? no "[Pp]assword:"? Gate "?assword:"? gate=no "#"? no Switch75-SW1D.FL15.RM1# expect: does "Switch75-SW1D.FL15.RM1# " (spawn_id exp4) match glob pattern "Press any key to continue"? no "[Pp]assword:"? Gate "?assword:"? gate=no "#"? yes expect: set expect_out(0,string) "#" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "Switch75-SW1D.FL15.RM1#" send: sending "\r" to { exp4 } Gate keeper glob pattern for '[ ]+' is ''. Not usable, disabling the performance booster. Gate keeper glob pattern for '^.+#' is '*#'. Activating booster. -- Michael Newton Director, Product Development Point of Presence Technologies You manage your business. We?ll manage your network. 206-1110 Government Street, Victoria BC V8W 1Y2 T: 250-412-6688 x 7040 | F: 484-731-9837 mnewton at pofp.com | www.pofp.com From: Jim P Date: Thursday, June 11, 2015 at 1:51 PM To: Todd Heide Cc: Michael Newton, "rancid-discuss at shrubbery.net" Subject: Re: [rancid] hlogin timing out thanks for the help... I feel like I'm being a nuisance now! I'm getting used to this mailing list in how it works, so excuse the duplicates. here's the full debug below. TEST-SWITCH99 is the name of my switch.. but I am accessing it via IP here is the interesting part with my HP's. Logging in via telnet asks for you to "push any key" then it asks for a password. logging on as SSH asks you for name then password, then asks you to "push any key" It "seems" that the script logs in .. because it is actually giving me the switch TEST-SWITCH99 name which wouldn't show until after I log in but I'm guessing that's a problem. Is there a way to force hlogin to do ssh instead of telnet? maybe that would work? It definitely feels confused. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ [rancid at localhost bin]$ ./hlogin -d -c "show ver" 10.10.0.99 10.10.0.99 spawn hpuifilter -- telnet 10.10.0.99 parent: waiting for sync byte parent: telling child to go ahead parent: now unsynchronized from child spawn: returns {6671} Gate keeper glob pattern for '(Connection refused|Secure connection [^ ]+ refused|Connection closed by)' is ''. Not usable, disabling the performance booster. Gate keeper glob pattern for '(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?. Gate keeper glob pattern for 'HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?' is 'HOST IDENTIFICATION HAS CHA. Gate keeper glob pattern for 'HOST IDENTIFICATION HAS CHANGED[^ ]+' is 'HOST IDENTIFICATION HAS CHANGED*'. Activating booster. Gate keeper glob pattern for 'Offending key for .* \(yes/no\)\?' is 'Offending key for * (yes/no)\?'. Activat. Gate keeper glob pattern for 'Enter passphrase.*: ' is 'Enter passphrase*: '. Activating booster. Gate keeper glob pattern for '([Uu]sername|[Ll]ogin|user name|Login Name):' is ''. Not usable, disabling the . Gate keeper glob pattern for '([Pp]assword|passwd):' is ''. Not usable, disabling the performance booster. expect: does "" (spawn_id exp4) match glob pattern "Press any key to continue"? no "Enter switch number to connect to or :"? no "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes ro "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yeo "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no expect: does "" (spawn_id exp4) match glob pattern "unknown host\r"? no expect: does "" (spawn_id exp4) match regular expression "Enter passphrase.*: "? Gate "Enter passphrase*: "? o "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no ">"? no "denied"? no "% Bad passwords"? no Trying 10.10.0.99... Connected to 10.10.0.99. Escape character is '^]'. ProCurve J4899B Switch 2650 Software revision H.10.115 Copyright (C) 1991-2014 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 expect: does "Trying 10.10.0.99...\r\r\r\nConnected to 10.10.0.99.\r\r\r\nEscape character is '^]'.\r\r\r\nPrs expect: set expect_out(0,string) "Press any key to continue" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "Trying 10.10.0.99...\r\r\r\nConnected to 10.10.0.99.\r\r\r\nEscape character " send: sending " " to { exp4 } expect: continuing expect expect: does "" (spawn_id exp4) match glob pattern "Press any key to continue"? no "Enter switch number to connect to or :"? no "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes ro "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yeo "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no expect: does "" (spawn_id exp4) match glob pattern "unknown host\r"? no expect: does "" (spawn_id exp4) match regular expression "Enter passphrase.*: "? Gate "Enter passphrase*: "? o "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no ">"? no "denied"? no "% Bad passwords"? no Password: expect: does "Password: " (spawn_id exp4) match glob pattern "Press any key to continue"? no "Enter switch number to connect to or :"? no "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes ro "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yeo "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no expect: does "Password: " (spawn_id exp4) match glob pattern "unknown host\r"? no expect: does "Password: " (spawn_id exp4) match regular expression "Enter passphrase.*: "? Gate "Enter passpho "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "Password:" expect: set expect_out(1,string) "Password" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "Password:" send: sending "3nd3rw1gg1n\r" to { exp4 } Gate keeper glob pattern for '[Pp]assword:' is '?assword:'. Activating booster. expect: does " " (spawn_id exp4) match glob pattern "Press any key to continue"? no "[Pp]assword:"? Gate "?assword:"? gate=no ">"? no TEST-SWITCH99# expect: does " \r\r\n\rTEST-SWITCH99# " (spawn_id exp4) match glob pattern "Press any key to continue"? no "[Pp]assword:"? Gate "?assword:"? gate=no ">"? no expect: timed out Error: TIMEOUT reached +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ On Thu, Jun 11, 2015 at 3:59 PM, Todd Heide wrote: What is debug telling you? When you run debug it will output what Rancid is doing when it logs in, maybe you can see the errors the HP is putting out. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 5966 bytes Desc: not available URL: From heas at shrubbery.net Thu Jun 11 22:42:09 2015 From: heas at shrubbery.net (heasley) Date: Thu, 11 Jun 2015 22:42:09 +0000 Subject: [rancid] hlogin timing out In-Reply-To: <5579ED3C.8000206@ale.cx> References: <223776CE-BAFE-4489-B703-A6D95103F6CB@pofp.com> <5579ED3C.8000206@ale.cx> Message-ID: <20150611224209.GL5176@shrubbery.net> Thu, Jun 11, 2015 at 09:19:08PM +0100, Alex DEKKER: > On 11/06/15 20:18, Jim P wrote: > > ... > > expect: does " " (spawn_id exp4) match glob pattern "Press any key to > > continue"? no > > "[Pp]assword:"? Gate "?assword:"? gate=no > > ">"? no > > > > TEST-SWITCH99# > > expect: does " \r\r\n\rTEST-SWITCH99# " (spawn_id exp4) match glob > > pattern "Press any key to continue"? no > > "[Pp]assword:"? Gate "?assword:"? gate=no > > ">"? no ^^^ cloginrc(5): autoenable From delmiroc at gmail.com Fri Jun 12 05:45:59 2015 From: delmiroc at gmail.com (Delmiro Campelo) Date: Fri, 12 Jun 2015 00:45:59 -0500 Subject: [rancid] ssh issues connecting Cisco ASR Message-ID: Has anyone run into this issue? i'm able to run clogin against other Cisco devices, but having some issues when I try Cisco ASR router. [rancid at router ~]$ ./bin/clogin router router spawn ssh -c 3des -x -l admin router Connection closed by 10.3.9.20 Error: Connection closed (ssh): Log messages in the router: Jun 12 00:26:21.943 CST: %SSH-3-DH_RANGE_FAIL: Client DH key range mismatch with maximum configured DH key on server Jun 12 00:26:22.241 CST: %SSH-3-DH_RANGE_FAIL: Client DH key range mismatch with maximum configured DH key on server Jun 12 00:26:22.616 CST: %SSH-3-DH_RANGE_FAIL: Client DH key range mismatch with maximum configured DH key on server Thanks, Delmiro -------------- next part -------------- An HTML attachment was scrubbed... URL: From ete.sabuj at gmail.com Fri Jun 12 06:29:31 2015 From: ete.sabuj at gmail.com (Hussein, Sazzad) Date: Fri, 12 Jun 2015 08:29:31 +0200 Subject: [rancid] hlogin timing out In-Reply-To: References: Message-ID: *Hi Jim,* Good day! Sorry for my *off-topic* post. I had tried a lot & beleive that i need to expend a little bit more time as well as concentration on it to make working. Like i have different sites & there are 2600, 1800, 1900, 5400, 1800 HP Series with differnt firmware. The thing is that i need to start backing up the configuration & report it to my manager. If you aren't lucky then it could take more than 2-3 week to make it running through rancid. I can suggest you a *interim solution*. Just copy the running configuration through "scp" command. *1800/1900/2600/5412 Switches:* pscp -scp -l username -pw password -2 xxx.xxx.xxx.xxx:cfg/running-config /path/filename.cfg *3Com 5900 Series:* pscp -scp -l username -pw password -2 xxx.xxx.xxx.xxx:startup.cfg /path/filename.cfg *xxx- Your switch IP address At lease you will have all the configuration data & if you want you can do same for firware & alarm file. If you want this for *Juniper, Cisco & ZyXEL* please let me know. I have done this too. It's quite easy & handy. I just put them on crontab & it's working. Now i have spare time for thinking about *"rancid"*. *Happy Backup :)* On Thu, Jun 11, 2015 at 5:49 PM, Jim P wrote: > I have narrowed down my recent issues to that I really believe I'm having > an HP specific issue. Its driving me bonkers and I hope I'm not doing the > same for the mailing list. > > trying to run this off of a test HP 2650 > > When I run this: > > ./clogin -c "show ver" 10.10.0.99 > > ------------------------------------------------------------------------------ > [rancid at localhost bin]$ ./clogin -c "show ver" 10.10.0.99 > 10.10.0.99 > spawn telnet 10.10.0.99 > Trying 10.10.0.99... > Connected to 10.10.0.99. > Escape character is '^]'. > ProCurve J4899B Switch 2650 > Software revision H.10.115 > Copyright (C) 1991-2014 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 > Password: > > TEST-SWITCH99# > TEST-SWITCH99# terminal length 0 > Invalid input: 0 > TEST-SWITCH99# > Error: TIMEOUT reached > > --------------------------------------------------------------------------------- > > it does much better than if I do the following (which just sort of locks > up the screen) > > > --------------------------------------------------------------------------------- > ./hlogin -c "show ver" 10.10.0.99 > > 10.10.0.99 > spawn hpuifilter -- telnet 10.10.0.99 > Trying 10.10.0.99... > Connected to 10.10.0.99. > Escape character is '^]'. > ProCurve J4899B Switch 2650 > Software revision H.10.115 > > Copyright (C) 1991-2014 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 continuePassword: > TEST-SWITCH99# --> (IT HANGS HERE until it eventually times out) > Error: TIMEOUT reached > > --------------------------------------------------------------------------------- > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > -- --*Sazzad Hussein*www.sazzad-hussein.branded.me | ete.sabuj at gmail.com Hermann-Ehlers Str. 2, 49082 Osnabr?ck, Deutschland Mobile number: 4915214010461 -------------- next part -------------- An HTML attachment was scrubbed... URL: From bha.Qaqish at NITC.gov.jo Fri Jun 12 07:35:06 2015 From: bha.Qaqish at NITC.gov.jo (bha Qaqish) Date: Fri, 12 Jun 2015 07:35:06 +0000 Subject: [rancid] ASR problem Message-ID: Dear am running rancid 2.3.2 and everything was oki , until I had added a new ASR 1k router , every time rancid run it send to me notification change for this router . this is sample of the changes + ........... /bootflash/tracelogs/inst_cleanup........ What is the problem , and how could I resolve it . Best Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From jabbyjim at gmail.com Fri Jun 12 12:25:31 2015 From: jabbyjim at gmail.com (Jim P) Date: Fri, 12 Jun 2015 08:25:31 -0400 Subject: [rancid] hlogin timing out In-Reply-To: <71721D34-3AAA-47F2-ABB2-B265C251A64B@pofp.com> References: <320735396.623508.1434052789524.JavaMail.yahoo@mail.yahoo.com> <71721D34-3AAA-47F2-ABB2-B265C251A64B@pofp.com> Message-ID: It didn't seem to help, but I see what you are saying. Here is where I ended up. I'm going to mess with the switch settings and see if that helps some ------------------------------------------------------------------------------------------------------ [rancid at localhost bin]$ ./hlogin -d -noenable -c "show run" 10.10.0.99 10.10.0.99 spawn hpuifilter -- telnet 10.10.0.99 parent: waiting for sync byte parent: telling child to go ahead parent: now unsynchronized from child spawn: returns {8433} Gate keeper glob pattern for '(Connection refused|Secure connection [^ ]+ refused|Connection closed by)' is ''. Not usable, disabling the performance booster. Gate keeper glob pattern for '(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?. Gate keeper glob pattern for 'HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?' is 'HOST IDENTIFICATION HAS CHA. Gate keeper glob pattern for 'HOST IDENTIFICATION HAS CHANGED[^ ]+' is 'HOST IDENTIFICATION HAS CHANGED*'. Activating booster. Gate keeper glob pattern for 'Offending key for .* \(yes/no\)\?' is 'Offending key for * (yes/no)\?'. Activat. Gate keeper glob pattern for 'Enter passphrase.*: ' is 'Enter passphrase*: '. Activating booster. Gate keeper glob pattern for '([Uu]sername|[Ll]ogin|user name|Login Name):' is ''. Not usable, disabling the . Gate keeper glob pattern for '([Pp]assword|passwd):' is ''. Not usable, disabling the performance booster. expect: does "" (spawn_id exp4) match glob pattern "Press any key to continue"? no "Enter switch number to connect to or :"? no "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes ro "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yeo "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no expect: does "" (spawn_id exp4) match glob pattern "unknown host\r"? no expect: does "" (spawn_id exp4) match regular expression "Enter passphrase.*: "? Gate "Enter passphrase*: "? o "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no ">"? no "denied"? no "% Bad passwords"? no Trying 10.10.0.99... Connected to 10.10.0.99. Escape character is '^]'. ProCurve J4899B Switch 2650 Software revision H.10.115 Copyright (C) 1991-2014 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 expect: does "Trying 10.10.0.99...\r\r\r\nConnected to 10.10.0.99.\r\r\r\nEscape character is '^]'.\r\r\r\nPrs expect: set expect_out(0,string) "Press any key to continue" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "Trying 10.10.0.99...\r\r\r\nConnected to 10.10.0.99.\r\r\r\nEscape character " send: sending " " to { exp4 } expect: continuing expect expect: does "" (spawn_id exp4) match glob pattern "Press any key to continue"? no "Enter switch number to connect to or :"? no "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes ro "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yeo "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no expect: does "" (spawn_id exp4) match glob pattern "unknown host\r"? no expect: does "" (spawn_id exp4) match regular expression "Enter passphrase.*: "? Gate "Enter passphrase*: "? o "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no ">"? no "denied"? no "% Bad passwords"? no Password: expect: does "Password: " (spawn_id exp4) match glob pattern "Press any key to continue"? no "Enter switch number to connect to or :"? no "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes ro "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yeo "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no expect: does "Password: " (spawn_id exp4) match glob pattern "unknown host\r"? no expect: does "Password: " (spawn_id exp4) match regular expression "Enter passphrase.*: "? Gate "Enter passpho "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "Password:" expect: set expect_out(1,string) "Password" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "Password:" send: sending "TESTPASS\r" to { exp4 } Gate keeper glob pattern for '[Pp]assword:' is '?assword:'. Activating booster. expect: does " " (spawn_id exp4) match glob pattern "Press any key to continue"? no "[Pp]assword:"? Gate "?assword:"? gate=no ">"? no TEST-SWITCH99# expect: does " \r\r\n\rTEST-SWITCH99# " (spawn_id exp4) match glob pattern "Press any key to continue"? no "[Pp]assword:"? Gate "?assword:"? gate=no ">"? no expect: timed out Error: TIMEOUT reached ------------------------------------------------------------------------------------------------------ On Thu, Jun 11, 2015 at 5:09 PM, Michael Newton wrote: > Here?s what my debug output looks like, where you get the hang. You?re > correct, you are logged in, the different order for telnet vs ssh doesn?t > cause any problems. For some reason your system is checking for > instead > of #. Do you have noenable active on this device? For testing, you can try > adding -noenable to the hlogin command. > > expect: does "" (spawn_id exp4) match glob pattern "Press any key to > continue"? no > > "[Pp]assword:"? Gate "?assword:"? gate=no > > "#"? no > > Switch75-SW1D.FL15.RM1# > > expect: does "Switch75-SW1D.FL15.RM1# " (spawn_id exp4) match glob pattern > "Press any key to continue"? no > > "[Pp]assword:"? Gate "?assword:"? gate=no > > "#"? yes > > expect: set expect_out(0,string) "#" > > expect: set expect_out(spawn_id) "exp4" > > expect: set expect_out(buffer) "Switch75-SW1D.FL15.RM1#" > > send: sending "\r" to { exp4 } > > Gate keeper glob pattern for '[ > > ]+' is ''. Not usable, disabling the performance booster. > > Gate keeper glob pattern for '^.+#' is '*#'. Activating booster. > > > -- > > Michael Newton > Director, Product Development > Point of Presence Technologies > *You manage your business. We?ll manage your network.* > 206-1110 Government Street, Victoria BC V8W 1Y2 > T: 250-412-6688 x 7040 | F: 484-731-9837 > > mnewton at pofp.com | www.pofp.com > > From: Jim P > Date: Thursday, June 11, 2015 at 1:51 PM > To: Todd Heide > Cc: Michael Newton, "rancid-discuss at shrubbery.net" > Subject: Re: [rancid] hlogin timing out > > thanks for the help... I feel like I'm being a nuisance now! I'm getting > used to this mailing list in how it works, so excuse the duplicates. > > here's the full debug below. TEST-SWITCH99 is the name of my switch.. but > I am accessing it via IP > > here is the interesting part with my HP's. Logging in via telnet asks for > you to "push any key" then it asks for a password. > logging on as SSH asks you for name then password, then asks you to "push > any key" > > It "seems" that the script logs in .. because it is actually giving me the > switch TEST-SWITCH99 name which wouldn't show until after I log in but I'm > guessing that's a problem. > > Is there a way to force hlogin to do ssh instead of telnet? maybe that > would work? It definitely feels confused. > > > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > [rancid at localhost bin]$ ./hlogin -d -c "show ver" 10.10.0.99 > 10.10.0.99 > spawn hpuifilter -- telnet 10.10.0.99 > parent: waiting for sync byte > parent: telling child to go ahead > parent: now unsynchronized from child > spawn: returns {6671} > Gate keeper glob pattern for '(Connection refused|Secure connection [^ > ]+ refused|Connection closed by)' is ''. Not usable, disabling the > performance booster. > Gate keeper glob pattern for '(Host key not found |The authenticity of > host .* be established).* \(yes/no\)\?. > Gate keeper glob pattern for 'HOST IDENTIFICATION HAS CHANGED.* > \(yes/no\)\?' is 'HOST IDENTIFICATION HAS CHA. > Gate keeper glob pattern for 'HOST IDENTIFICATION HAS CHANGED[^ > ]+' is 'HOST IDENTIFICATION HAS CHANGED*'. Activating booster. > Gate keeper glob pattern for 'Offending key for .* \(yes/no\)\?' is > 'Offending key for * (yes/no)\?'. Activat. > Gate keeper glob pattern for 'Enter passphrase.*: ' is 'Enter passphrase*: > '. Activating booster. > Gate keeper glob pattern for '([Uu]sername|[Ll]ogin|user name|Login > Name):' is ''. Not usable, disabling the . > Gate keeper glob pattern for '([Pp]assword|passwd):' is ''. Not usable, > disabling the performance booster. > > expect: does "" (spawn_id exp4) match glob pattern "Press any key to > continue"? no > "Enter switch number to connect to or :"? no > "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed > by)"? (No Gate, RE only) gate=yes ro > "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established).* > \(yes/no\)\?"? (No Gate, RE only) gate=yeo > "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST > IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no > "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS > CHANGED*"? gate=no > "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * > (yes/no)\?"? gate=no > > expect: does "" (spawn_id exp4) match glob pattern "unknown host\r"? no > > expect: does "" (spawn_id exp4) match regular expression "Enter > passphrase.*: "? Gate "Enter passphrase*: "? o > "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) > gate=yes re=no > "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no > ">"? no > "denied"? no > "% Bad passwords"? no > Trying 10.10.0.99... > Connected to 10.10.0.99. > Escape character is '^]'. > ProCurve J4899B Switch 2650 > Software revision H.10.115 > > Copyright (C) 1991-2014 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 > expect: does "Trying 10.10.0.99...\r\r\r\nConnected to > 10.10.0.99.\r\r\r\nEscape character is '^]'.\r\r\r\nPrs > expect: set expect_out(0,string) "Press any key to continue" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "Trying 10.10.0.99...\r\r\r\nConnected to > 10.10.0.99.\r\r\r\nEscape character " > send: sending " " to { exp4 } > expect: continuing expect > > expect: does "" (spawn_id exp4) match glob pattern "Press any key to > continue"? no > "Enter switch number to connect to or :"? no > "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed > by)"? (No Gate, RE only) gate=yes ro > "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established).* > \(yes/no\)\?"? (No Gate, RE only) gate=yeo > "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST > IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no > "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS > CHANGED*"? gate=no > "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * > (yes/no)\?"? gate=no > > expect: does "" (spawn_id exp4) match glob pattern "unknown host\r"? no > > expect: does "" (spawn_id exp4) match regular expression "Enter > passphrase.*: "? Gate "Enter passphrase*: "? o > "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) > gate=yes re=no > "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no > ">"? no > "denied"? no > "% Bad passwords"? no > Password: > expect: does "Password: " (spawn_id exp4) match glob pattern "Press any > key to continue"? no > "Enter switch number to connect to or :"? no > "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed > by)"? (No Gate, RE only) gate=yes ro > "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established).* > \(yes/no\)\?"? (No Gate, RE only) gate=yeo > "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST > IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no > "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS > CHANGED*"? gate=no > "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * > (yes/no)\?"? gate=no > > expect: does "Password: " (spawn_id exp4) match glob pattern "unknown > host\r"? no > > expect: does "Password: " (spawn_id exp4) match regular expression "Enter > passphrase.*: "? Gate "Enter passpho > "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) > gate=yes re=no > "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=yes > expect: set expect_out(0,string) "Password:" > expect: set expect_out(1,string) "Password" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "Password:" > send: sending "3nd3rw1gg1n\r" to { exp4 } > Gate keeper glob pattern for '[Pp]assword:' is '?assword:'. Activating > booster. > > expect: does " " (spawn_id exp4) match glob pattern "Press any key to > continue"? no > "[Pp]assword:"? Gate "?assword:"? gate=no > ">"? no > > TEST-SWITCH99# > expect: does " \r\r\n\rTEST-SWITCH99# " (spawn_id exp4) match glob pattern > "Press any key to continue"? no > "[Pp]assword:"? Gate "?assword:"? gate=no > ">"? no > expect: timed out > > Error: TIMEOUT reached > > > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > On Thu, Jun 11, 2015 at 3:59 PM, Todd Heide > wrote: > >> What is debug telling you? When you run debug it will output what Rancid >> is doing when it logs in, maybe you can see the errors the HP is putting >> out. >> >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From jabbyjim at gmail.com Fri Jun 12 12:27:56 2015 From: jabbyjim at gmail.com (Jim P) Date: Fri, 12 Jun 2015 08:27:56 -0400 Subject: [rancid] hlogin timing out In-Reply-To: References: Message-ID: this is great thank you so much, this will certainly buy me time On Fri, Jun 12, 2015 at 2:29 AM, Hussein, Sazzad wrote: > *Hi Jim,* > Good day! > > Sorry for my *off-topic* post. I had tried a lot & beleive that i need to > expend a little bit more time as well as concentration on it to make > working. > > Like i have different sites & there are 2600, 1800, 1900, 5400, 1800 HP > Series with differnt firmware. The thing is that i need to start backing up > the configuration & report it to my manager. If you aren't lucky then it > could take more than 2-3 week to make it running through rancid. > > I can suggest you a *interim solution*. > Just copy the running configuration through "scp" command. > > *1800/1900/2600/5412 Switches:* > pscp -scp -l username -pw password -2 xxx.xxx.xxx.xxx:cfg/running-config > /path/filename.cfg > > *3Com 5900 Series:* > pscp -scp -l username -pw password -2 xxx.xxx.xxx.xxx:startup.cfg > /path/filename.cfg > > *xxx- Your switch IP address > > At lease you will have all the configuration data & if you want you can do > same for firware & alarm file. > > If you want this for *Juniper, Cisco & ZyXEL* please let me know. I have > done this too. It's quite easy & handy. I just put them on crontab & it's > working. > Now i have spare time for thinking about *"rancid"*. > > *Happy Backup :)* > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jabbyjim at gmail.com Fri Jun 12 13:29:53 2015 From: jabbyjim at gmail.com (Jim P) Date: Fri, 12 Jun 2015 09:29:53 -0400 Subject: [rancid] hlogin timing out In-Reply-To: <71721D34-3AAA-47F2-ABB2-B265C251A64B@pofp.com> References: <320735396.623508.1434052789524.JavaMail.yahoo@mail.yahoo.com> <71721D34-3AAA-47F2-ABB2-B265C251A64B@pofp.com> Message-ID: Interesting discovery! > So I found out that this works on on HP's that are stacked (which is kind of confusing). I only have two stacks and in a list of like 70 HP switches. Theya re the only two that played nicely with RANCID. It appears that RANCID is expecting something like this after logging in, or perhaps a symbol? ------------------------------- Stack Members SN MAC Address System Name Device Type Status -- ------------- ---------------- --------------------- ------------------------- 0 016b8-d12240 SWITCH15 ProCurve 2900-48G Commander Up 1 016b8-d1a2c0 SWITCH13 ProCurve 2900-48G Member Up Enter switch number to connect to or : ------------------------------- so I'm unsure what to do now, other than change the script (somehow). Has anyone done this? -------------- next part -------------- An HTML attachment was scrubbed... URL: From jabbyjim at gmail.com Fri Jun 12 13:37:13 2015 From: jabbyjim at gmail.com (Jim P) Date: Fri, 12 Jun 2015 09:37:13 -0400 Subject: [rancid] hlogin timing out In-Reply-To: References: Message-ID: so knowing that RANCID is expecting a " > " this makes sense, however when I turn on -noenable it gets even more confusing. why is it trying to log in as "rancid" all of a sudden? it could get in before? ------------------------------------ [rancid at localhost bin]$ ./hlogin -noenable -c "show ver" 10.10.0.99 10.10.0.99 spawn hpuifilter -- telnet 10.10.0.99 Trying 10.10.0.99... Connected to 10.10.0.99. Escape character is '^]'. ProCurve J4899B Switch 2650 Software revision H.10.115 Copyright (C) 1991-2014 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 continueUsername: rancid Password: Invalid password Username: rancid Password: Invalid password Username: rancid Password: Invalid password Session Terminated, unable to login. Connection closed by foreign host. spawn hpuifilter -- ssh -c 3des -x -l rancid 10.10.0.99 rancid at 10.10.0.99's password: Permission denied, please try again. rancid at 10.10.0.99's password: Permission denied, please try again. rancid at 10.10.0.99's password: Received disconnect from 10.10.0.99: 2: Too many authentication failures for rancid Error: Couldn't login ---------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From nick at foobar.org Fri Jun 12 14:25:39 2015 From: nick at foobar.org (Nick Hilliard) Date: Fri, 12 Jun 2015 15:25:39 +0100 Subject: [rancid] ssh issues connecting Cisco ASR In-Reply-To: References: Message-ID: <557AEBE3.2020101@foobar.org> On 12/06/2015 06:45, Delmiro Campelo wrote: > Has anyone run into this issue? i'm able to run clogin against other Cisco > devices, but having some issues when I try Cisco ASR router. yes: > http://stackoverflow.com/questions/25341773/cisco-ssh-key-exchange-fails-from-ubuntu-14-04-client-dh-key-range-mismatch Nick From mark.tinka at seacom.mu Fri Jun 12 14:29:34 2015 From: mark.tinka at seacom.mu (Mark Tinka) Date: Fri, 12 Jun 2015 16:29:34 +0200 Subject: [rancid] ssh issues connecting Cisco ASR In-Reply-To: <557AEBE3.2020101@foobar.org> References: <557AEBE3.2020101@foobar.org> Message-ID: <557AECCE.4080301@seacom.mu> This issue also hit FreeBSD, after an SSH update a few months ago. The inline fix as mentioned in the URL below from Nick will work. Otherwise, you can also add the below to /etc/ssh/ssh_config: Host * KexAlgorithms diffie-hellman-group1-sha1 This works on FreeBSD. Mark. On 12/Jun/15 16:25, Nick Hilliard wrote: > On 12/06/2015 06:45, Delmiro Campelo wrote: >> Has anyone run into this issue? i'm able to run clogin against other Cisco >> devices, but having some issues when I try Cisco ASR router. > yes: > >> http://stackoverflow.com/questions/25341773/cisco-ssh-key-exchange-fails-from-ubuntu-14-04-client-dh-key-range-mismatch > Nick > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > . > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jabbyjim at gmail.com Fri Jun 12 15:35:47 2015 From: jabbyjim at gmail.com (Jim P) Date: Fri, 12 Jun 2015 11:35:47 -0400 Subject: [rancid] hlogin timing out In-Reply-To: References: Message-ID: SOLVED! (sort of). Someone may beat me with a hose for this but this is what I did (for those curious) Until I find the proper way to do this, I cheated and changed the hlogin script a bit. For those curious I changed this part... this is TOTALLY wrong, but turning -autoenable on or -noenable on simply was not working --------------------------------------------- # Figure out prompt. # Since autoenable is off by default, if we have it defined, it # was done on the command line. If it is not specifically set on the # command line, check the password file. if $avautoenable { set autoenable 1 set enable 0 set prompt "#" } else { set ae [find autoenable $router] if { "$ae" == "1" } { set autoenable 1 set enable 0 set prompt "#" } else { set autoenable 0 set enable $avenable set prompt ">" (switched that are stacked indicate with at the end which triggers this) # added this next line as a workaround set prompt "#" (other switches hit the SU prompt that has #, which triggers this also now) } } --------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From gmourani at gmail.com Fri Jun 12 15:30:12 2015 From: gmourani at gmail.com (Gerhard Mourani) Date: Fri, 12 Jun 2015 11:30:12 -0400 Subject: [rancid] missed cmd(s): show full-configuration Message-ID: Hello List, Since an update of one of my FortiGate, Rancid started to generate this kind of error messages into the log. Trying to get all of the configs. 10.3.0.4: missed cmd(s): show full-configuration 0: found end 10.3.0.4: End of run not found If I manualy run the clogin -c "show full-configuration? 10.3.0.4, it work! (it can automaticaly log into the device and run the command) My Rancid version is 3.1.99 Gerhard, From delmiroc at gmail.com Fri Jun 12 15:46:43 2015 From: delmiroc at gmail.com (Delmiro Campelo) Date: Fri, 12 Jun 2015 10:46:43 -0500 Subject: [rancid] ssh issues connecting Cisco ASR In-Reply-To: <557AECCE.4080301@seacom.mu> References: <557AEBE3.2020101@foobar.org> <557AECCE.4080301@seacom.mu> Message-ID: thank you Mark, this worked perfectly in my red hat server. I appreciate the help of you all. On Fri, Jun 12, 2015 at 9:29 AM, Mark Tinka wrote: > This issue also hit FreeBSD, after an SSH update a few months ago. > > The inline fix as mentioned in the URL below from Nick will work. > > Otherwise, you can also add the below to /etc/ssh/ssh_config: > > Host * > KexAlgorithms diffie-hellman-group1-sha1 > > This works on FreeBSD. > > Mark. > > On 12/Jun/15 16:25, Nick Hilliard wrote: > > On 12/06/2015 06:45, Delmiro Campelo wrote: > > Has anyone run into this issue? i'm able to run clogin against other Cisco > devices, but having some issues when I try Cisco ASR router. > > yes: > > > http://stackoverflow.com/questions/25341773/cisco-ssh-key-exchange-fails-from-ubuntu-14-04-client-dh-key-range-mismatch > > Nick > > > _______________________________________________ > Rancid-discuss mailing listRancid-discuss at shrubbery.nethttp://www.shrubbery.net/mailman/listinfo/rancid-discuss > . > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Fri Jun 12 16:47:43 2015 From: heas at shrubbery.net (heasley) Date: Fri, 12 Jun 2015 16:47:43 +0000 Subject: [rancid] ASR problem In-Reply-To: References: Message-ID: <20150612164743.GC71403@shrubbery.net> Fri, Jun 12, 2015 at 07:35:06AM +0000, bha Qaqish: > Dear > am running rancid 2.3.2 and everything was oki , until I had added a new ASR 1k router , every time rancid run it send to me notification change for this router . > this is sample of the changes > + ........... /bootflash/tracelogs/inst_cleanup........ > > What is the problem , and how could I resolve it . is that the actual output or have you altered the line for some reason? perhaps provide a little more context around that line. From alan.mckinnon at gmail.com Sat Jun 13 06:59:21 2015 From: alan.mckinnon at gmail.com (Alan McKinnon) Date: Sat, 13 Jun 2015 08:59:21 +0200 Subject: [rancid] hlogin timing out In-Reply-To: References: Message-ID: <557BD4C9.80802@gmail.com> Here's what I think you are actually dealing with: rancid (and all it's tools) is heavily Cisco-centric. The tools are launched in the order they need to be used on Cisco kit, and all the checks (prompt format, end of output, etc) all assume things are done the way Cisco does them. This is not necessarily universally true, and leads to existing scripts being bent to fit whatever vendor X does. In the case of ProCurves, the amount of bending becomes excessive and usually only accommodates one model used one way. There are other problematic vendors as well that pop up from time to time. To fix this, I think you need to dump the entire set of h* scripts and start over. Fortunately, the overall design of rancid is very generic and lends itself to plugging in your ProCurve-specific scripts which are unrelated to Cisco ones. It's not as difficult as it sounds, it's easier than continuing trying to fit Cisco's square peg into HP's round hole. The first step is to document the behaviour of ProCurves across the entire range. I can help with the perl if you need help in that area. I can't help with specifics of HPs, I've never even seen one in real life. On 12/06/2015 17:35, Jim P wrote: > SOLVED! (sort of). Someone may beat me with a hose for this but this is > what I did (for those curious) > > Until I find the proper way to do this, I cheated and changed the hlogin > script a bit. For those curious I changed this part... > > this is TOTALLY wrong, but turning -autoenable on or -noenable on simply > was not working > > --------------------------------------------- > # Figure out prompt. > # Since autoenable is off by default, if we have it defined, it > # was done on the command line. If it is not specifically set on the > # command line, check the password file. > if $avautoenable { > set autoenable 1 > set enable 0 > set prompt "#" > } else { > set ae [find autoenable $router] > if { "$ae" == "1" } { > set autoenable 1 > set enable 0 > set prompt "#" > } else { > set autoenable 0 > set enable $avenable > set prompt ">" (switched that are > stacked indicate with at the end which triggers this) > # added this next line as a workaround > set prompt "#" (other switches hit > the SU prompt that has #, which triggers this also now) > } > } > --------------------------------------------- > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > -- Alan McKinnon alan.mckinnon at gmail.com From bbridges at easymail.us Sun Jun 14 05:03:15 2015 From: bbridges at easymail.us (Brooks Bridges) Date: Sat, 13 Jun 2015 22:03:15 -0700 Subject: [rancid] CentOS 6.6, recent upgrade, now all CatOS devices broken Message-ID: <557D0B13.6090303@easymail.us> Had a system with Rancid installed from the EPEL repos. All switches were configured and everything worked great. Someone ran a yum update on the system yesterday, and it upgraded the package to "rancid-3.2-1.el6.x86_64", which broke all kinds of crap. The first indication was the Socket module bug, which I got corrected, however now all CatOS devices in the network are "down" and cannot get the configs pulled from them. After adding a bit of debugging, the logs show: smfits1.domain.com: missed cmd(s): write term all,show port ifindex,show module,dir sup-microcode:,dir sup-bootflash:,dir bootflash:,dir slot0:,show flash,show running-config,write term,show boot,dir slot1:,show inventory raw smfits1.domain.com - Clean_run is: 0 <--- added debugging statement smfits1.domain.com - found_end is: 0 <--- added debugging statement smfits1.domain.com: End of run not found After many hours of digging, I've determined that the issue appears to be that clogin is not properly recognizing the end of the output of the commands. Debug log can be viewed at http://pastebin.ca/3027707 showing this behavior when running "show version", where it gets to the end of the output from the command and then just hangs there. It appears that none of the regexes are being matched when the command prompt pops back up after the command completes (perhaps it's only looking for a 'more' prompt?). Since the FTP site still doesn't let you download anything from the .old directory (and doesn't show any indication that it's going to be fixed anytime soon) I can't get my hands on the old version to compare it against. My lack of perl, tcl, and expect skills are quite an obstacle here as well. Any pointers in how to hammer this thing back into submission? -- -Brooks Bridges From bbridges at easymail.us Sun Jun 14 04:51:08 2015 From: bbridges at easymail.us (Brooks Bridges) Date: Sat, 13 Jun 2015 21:51:08 -0700 Subject: [rancid] CentOS 6.6, recent upgrade, now all CatOS devices broken Message-ID: <557D083C.9070503@easymail.us> Had a system with Rancid installed from the EPEL repos. All switches were configured and everything worked great. Someone ran a yum update on the system yesterday, and it upgraded the package to "rancid-3.2-1.el6.x86_64", which broke all kinds of crap. The first indication was the Socket module bug, which I got corrected, however now all CatOS devices in the network are "down" and cannot get the configs pulled from them. After adding a bit of debugging, the logs show: smfits1.domain.com: missed cmd(s): write term all,show port ifindex,show module,dir sup-microcode:,dir sup-bootflash:,dir bootflash:,dir slot0:,show flash,show running-config,write term,show boot,dir slot1:,show inventory raw smfits1.domain.com - Clean_run is: 0 <--- added debugging statement smfits1.domain.com - found_end is: 0 <--- added debugging statement smfits1.domain.com: End of run not found After many hours of digging, I've determined that the issue appears to be that clogin is not properly recognizing the end of the output of the commands. Debug log is attached showing this behavior when running "show version", where it gets to the end of the output from the command and then just hangs there. It appears that none of the regexes are being matched when the command prompt pops back up after the command completes (perhaps it's only looking for a 'more' prompt?). Since the FTP site still doesn't let you download anything from the .old directory (and doesn't show any indication that it's going to be fixed anytime soon) I can't get my hands on the old version to compare it against. My lack of perl, tcl, and expect skills are quite an obstacle here as well. Any pointers in how to hammer this thing back into submission? -- -Brooks Bridges -------------- next part -------------- smfits1.domain.com spawn telnet smfits1.domain.com parent: waiting for sync byte parent: telling child to go ahead parent: now unsynchronized from child spawn: returns {9195} Gate keeper glob pattern for '^<-+ More -+>[^ ]*' is '<* More *>*'. Activating booster. Gate keeper glob pattern for '(Connection refused|Secure connection [^ ]+ refused)' is ''. Not usable, disabling the performance booster. Gate keeper glob pattern for '(Connection closed by|Connection to [^ ]+ closed)' is ''. Not usable, disabling the performance booster. Gate keeper glob pattern for '(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?' is ''. Not usable, disabling the performance booster. Gate keeper glob pattern for 'HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?' is 'HOST IDENTIFICATION HAS CHANGED* (yes/no)\?'. Activating booster. Gate keeper glob pattern for 'HOST IDENTIFICATION HAS CHANGED[^ ]+' is 'HOST IDENTIFICATION HAS CHANGED*'. Activating booster. Gate keeper glob pattern for 'Offending key for .* \(yes/no\)\?' is 'Offending key for * (yes/no)\?'. Activating booster. Gate keeper glob pattern for '(denied|Sorry)' is ''. Not usable, disabling the performance booster. Gate keeper glob pattern for '% (Bad passwords|Authentication failed)' is ''. Not usable, disabling the performance booster. Gate keeper glob pattern for 'Enter Selection: ' is 'Enter Selection: '. Activating booster. Gate keeper glob pattern for 'Last login:' is 'Last login:'. Activating booster. Gate keeper glob pattern for 'Press the key [^ ]+[ ]+' is 'Press the key *'. Activating booster. Gate keeper glob pattern for '@[^ ]+ ([Pp]assword|passwd|Enter password for [^ :]+):' is ''. Not usable, disabling the performance booster. Gate keeper glob pattern for 'Enter passphrase.*: ' is 'Enter passphrase*: '. Activating booster. Gate keeper glob pattern for '([Uu]sername|Login|login|user name|User):' is ''. Not usable, disabling the performance booster. Gate keeper glob pattern for '([Pp]assword|passwd|Enter password for [^ :]+):' is ''. Not usable, disabling the performance booster. Gate keeper glob pattern for '(>|#| \(enable\))' is ''. Not usable, disabling the performance booster. Gate keeper glob pattern for '[^ ]*[ ]+' is ''. Not usable, disabling the performance booster. expect: does "" (spawn_id exp4) match regular expression "^<-+ More -+>[^\n\r]*"? Gate "<* More *>*"? gate=no "(Connection refused|Secure connection [^\n\r]+ refused)"? (No Gate, RE only) gate=yes re=no "(Connection closed by|Connection to [^\n\r]+ closed)"? (No Gate, RE only) gate=yes re=no expect: does "" (spawn_id exp4) match glob pattern "unknown host\r"? no expect: does "" (spawn_id exp4) match glob pattern "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes re=no "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no "(denied|Sorry)"? (No Gate, RE only) gate=yes re=no "Login failed"? no "% (Bad passwords|Authentication failed)"? (No Gate, RE only) gate=yes re=no "Press any key to continue"? no "Enter Selection: "? Gate "Enter Selection: "? gate=no "Last login:"? Gate "Last login:"? gate=no "Press the key [^\r\n]+[\r\n]+"? Gate "Press the key *"? gate=no "@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no "([Uu]sername|Login|login|user name|User):"? (No Gate, RE only) gate=yes re=no "([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no "(>|#| \(enable\))"? (No Gate, RE only) gate=yes re=no "Login invalid"? no "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no Trying 123.123.123.123... Connected to smfits1.domain.com. Escape character is '^]'. Cisco Systems Console *************************************************************************** WARNING This network device is a private property of O1 Communications. Unauthorized access is strictly prohibited and subject to prosecution under international, state, federal and local statutes. This device is subject to monitoring. If you are unauthorized or do not consent to O1 Communications monitoring of usage, disconnect NOW. **************************************************************************** Username: expect: does "Trying 123.123.123.123...\r\r\nConnected to smfits1.domain.com.\r\r\nEscape character is '^]'.\r\r\n\r\n\r\nCisco Systems Console\r\n\r\n\r\n\r\n\r\n***************************************************************************\r\n WARNING\r\n This network device is a private property of O1 Communications.\r\n Unauthorized access is strictly prohibited and subject to\r\n prosecution under international, state, federal and local\r\n statutes. This device is subject to monitoring. If you\r\n are unauthorized or do not consent to O1 Communications\r\n monitoring of usage, disconnect NOW.\r\n\r\n****************************************************************************\r\n\r\n\r\n\r\nUsername: " (spawn_id exp4) match regular expression "^<-+ More -+>[^\n\r]*"? Gate "<* More *>*"? gate=no "(Connection refused|Secure connection [^\n\r]+ refused)"? (No Gate, RE only) gate=yes re=no "(Connection closed by|Connection to [^\n\r]+ closed)"? (No Gate, RE only) gate=yes re=no expect: does "Trying 123.123.123.123...\r\r\nConnected to smfits1.domain.com.\r\r\nEscape character is '^]'.\r\r\n\r\n\r\nCisco Systems Console\r\n\r\n\r\n\r\n\r\n***************************************************************************\r\n WARNING\r\n This network device is a private property of O1 Communications.\r\n Unauthorized access is strictly prohibited and subject to\r\n prosecution under international, state, federal and local\r\n statutes. This device is subject to monitoring. If you\r\n are unauthorized or do not consent to O1 Communications\r\n monitoring of usage, disconnect NOW.\r\n\r\n****************************************************************************\r\n\r\n\r\n\r\nUsername: " (spawn_id exp4) match glob pattern "unknown host\r"? no expect: does "Trying 123.123.123.123...\r\r\nConnected to smfits1.domain.com.\r\r\nEscape character is '^]'.\r\r\n\r\n\r\nCisco Systems Console\r\n\r\n\r\n\r\n\r\n***************************************************************************\r\n WARNING\r\n This network device is a private property of O1 Communications.\r\n Unauthorized access is strictly prohibited and subject to\r\n prosecution under international, state, federal and local\r\n statutes. This device is subject to monitoring. If you\r\n are unauthorized or do not consent to O1 Communications\r\n monitoring of usage, disconnect NOW.\r\n\r\n****************************************************************************\r\n\r\n\r\n\r\nUsername: " (spawn_id exp4) match glob pattern "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes re=no "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no "(denied|Sorry)"? (No Gate, RE only) gate=yes re=no "Login failed"? no "% (Bad passwords|Authentication failed)"? (No Gate, RE only) gate=yes re=no "Press any key to continue"? no "Enter Selection: "? Gate "Enter Selection: "? gate=no "Last login:"? Gate "Last login:"? gate=no "Press the key [^\r\n]+[\r\n]+"? Gate "Press the key *"? gate=no "@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no "([Uu]sername|Login|login|user name|User):"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "Username:" expect: set expect_out(1,string) "Username" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "Trying 123.123.123.123...\r\r\nConnected to smfits1.domain.com.\r\r\nEscape character is '^]'.\r\r\n\r\n\r\nCisco Systems Console\r\n\r\n\r\n\r\n\r\n***************************************************************************\r\n WARNING\r\n This network device is a private property of O1 Communications.\r\n Unauthorized access is strictly prohibited and subject to\r\n prosecution under international, state, federal and local\r\n statutes. This device is subject to monitoring. If you\r\n are unauthorized or do not consent to O1 Communications\r\n monitoring of usage, disconnect NOW.\r\n\r\n****************************************************************************\r\n\r\n\r\n\r\nUsername:" send: sending "rancid\r" to { exp4 } expect: continuing expect expect: does " " (spawn_id exp4) match regular expression "^<-+ More -+>[^\n\r]*"? Gate "<* More *>*"? gate=no "(Connection refused|Secure connection [^\n\r]+ refused)"? (No Gate, RE only) gate=yes re=no "(Connection closed by|Connection to [^\n\r]+ closed)"? (No Gate, RE only) gate=yes re=no expect: does " " (spawn_id exp4) match glob pattern "unknown host\r"? no expect: does " " (spawn_id exp4) match glob pattern "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes re=no "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no "(denied|Sorry)"? (No Gate, RE only) gate=yes re=no "Login failed"? no "% (Bad passwords|Authentication failed)"? (No Gate, RE only) gate=yes re=no "Press any key to continue"? no "Enter Selection: "? Gate "Enter Selection: "? gate=no "Last login:"? Gate "Last login:"? gate=no "Press the key [^\r\n]+[\r\n]+"? Gate "Press the key *"? gate=no "@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no "([Uu]sername|Login|login|user name|User):"? (No Gate, RE only) gate=yes re=no "([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no "(>|#| \(enable\))"? (No Gate, RE only) gate=yes re=no "Login invalid"? no "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no rancid Password: expect: does " rancid\r\r\n\r\nPassword: " (spawn_id exp4) match regular expression "^<-+ More -+>[^\n\r]*"? Gate "<* More *>*"? gate=no "(Connection refused|Secure connection [^\n\r]+ refused)"? (No Gate, RE only) gate=yes re=no "(Connection closed by|Connection to [^\n\r]+ closed)"? (No Gate, RE only) gate=yes re=no expect: does " rancid\r\r\n\r\nPassword: " (spawn_id exp4) match glob pattern "unknown host\r"? no expect: does " rancid\r\r\n\r\nPassword: " (spawn_id exp4) match glob pattern "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes re=no "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no "(denied|Sorry)"? (No Gate, RE only) gate=yes re=no "Login failed"? no "% (Bad passwords|Authentication failed)"? (No Gate, RE only) gate=yes re=no "Press any key to continue"? no "Enter Selection: "? Gate "Enter Selection: "? gate=no "Last login:"? Gate "Last login:"? gate=no "Press the key [^\r\n]+[\r\n]+"? Gate "Press the key *"? gate=no "@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no "([Uu]sername|Login|login|user name|User):"? (No Gate, RE only) gate=yes re=no "([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "Password:" expect: set expect_out(1,string) "Password" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " rancid\r\r\n\r\nPassword:" send: sending "XXXXXXXXXX\r" to { exp4 } expect: continuing expect expect: does " " (spawn_id exp4) match regular expression "^<-+ More -+>[^\n\r]*"? Gate "<* More *>*"? gate=no "(Connection refused|Secure connection [^\n\r]+ refused)"? (No Gate, RE only) gate=yes re=no "(Connection closed by|Connection to [^\n\r]+ closed)"? (No Gate, RE only) gate=yes re=no expect: does " " (spawn_id exp4) match glob pattern "unknown host\r"? no expect: does " " (spawn_id exp4) match glob pattern "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes re=no "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no "(denied|Sorry)"? (No Gate, RE only) gate=yes re=no "Login failed"? no "% (Bad passwords|Authentication failed)"? (No Gate, RE only) gate=yes re=no "Press any key to continue"? no "Enter Selection: "? Gate "Enter Selection: "? gate=no "Last login:"? Gate "Last login:"? gate=no "Press the key [^\r\n]+[\r\n]+"? Gate "Press the key *"? gate=no "@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no "([Uu]sername|Login|login|user name|User):"? (No Gate, RE only) gate=yes re=no "([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no "(>|#| \(enable\))"? (No Gate, RE only) gate=yes re=no "Login invalid"? no "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no expect: does " \r" (spawn_id exp4) match regular expression "^<-+ More -+>[^\n\r]*"? Gate "<* More *>*"? gate=no "(Connection refused|Secure connection [^\n\r]+ refused)"? (No Gate, RE only) gate=yes re=no "(Connection closed by|Connection to [^\n\r]+ closed)"? (No Gate, RE only) gate=yes re=no expect: does " \r" (spawn_id exp4) match glob pattern "unknown host\r"? no expect: does " \r" (spawn_id exp4) match glob pattern "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes re=no "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no "(denied|Sorry)"? (No Gate, RE only) gate=yes re=no "Login failed"? no "% (Bad passwords|Authentication failed)"? (No Gate, RE only) gate=yes re=no "Press any key to continue"? no "Enter Selection: "? Gate "Enter Selection: "? gate=no "Last login:"? Gate "Last login:"? gate=no "Press the key [^\r\n]+[\r\n]+"? Gate "Press the key *"? gate=no "@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no "([Uu]sername|Login|login|user name|User):"? (No Gate, RE only) gate=yes re=no "([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no "(>|#| \(enable\))"? (No Gate, RE only) gate=yes re=no "Login invalid"? no "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) " \r" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " \r" expect: continuing expect expect: does "" (spawn_id exp4) match regular expression "^<-+ More -+>[^\n\r]*"? Gate "<* More *>*"? gate=no "(Connection refused|Secure connection [^\n\r]+ refused)"? (No Gate, RE only) gate=yes re=no "(Connection closed by|Connection to [^\n\r]+ closed)"? (No Gate, RE only) gate=yes re=no expect: does "" (spawn_id exp4) match glob pattern "unknown host\r"? no expect: does "" (spawn_id exp4) match glob pattern "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes re=no "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no "(denied|Sorry)"? (No Gate, RE only) gate=yes re=no "Login failed"? no "% (Bad passwords|Authentication failed)"? (No Gate, RE only) gate=yes re=no "Press any key to continue"? no "Enter Selection: "? Gate "Enter Selection: "? gate=no "Last login:"? Gate "Last login:"? gate=no "Press the key [^\r\n]+[\r\n]+"? Gate "Press the key *"? gate=no "@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no "([Uu]sername|Login|login|user name|User):"? (No Gate, RE only) gate=yes re=no "([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no "(>|#| \(enable\))"? (No Gate, RE only) gate=yes re=no "Login invalid"? no "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no expect: does "\r\n" (spawn_id exp4) match regular expression "^<-+ More -+>[^\n\r]*"? Gate "<* More *>*"? gate=no "(Connection refused|Secure connection [^\n\r]+ refused)"? (No Gate, RE only) gate=yes re=no "(Connection closed by|Connection to [^\n\r]+ closed)"? (No Gate, RE only) gate=yes re=no expect: does "\r\n" (spawn_id exp4) match glob pattern "unknown host\r"? no expect: does "\r\n" (spawn_id exp4) match glob pattern "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes re=no "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no "(denied|Sorry)"? (No Gate, RE only) gate=yes re=no "Login failed"? no "% (Bad passwords|Authentication failed)"? (No Gate, RE only) gate=yes re=no "Press any key to continue"? no "Enter Selection: "? Gate "Enter Selection: "? gate=no "Last login:"? Gate "Last login:"? gate=no "Press the key [^\r\n]+[\r\n]+"? Gate "Press the key *"? gate=no "@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no "([Uu]sername|Login|login|user name|User):"? (No Gate, RE only) gate=yes re=no "([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no "(>|#| \(enable\))"? (No Gate, RE only) gate=yes re=no "Login invalid"? no "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "\r\n" expect: continuing expect expect: does "" (spawn_id exp4) match regular expression "^<-+ More -+>[^\n\r]*"? Gate "<* More *>*"? gate=no "(Connection refused|Secure connection [^\n\r]+ refused)"? (No Gate, RE only) gate=yes re=no "(Connection closed by|Connection to [^\n\r]+ closed)"? (No Gate, RE only) gate=yes re=no expect: does "" (spawn_id exp4) match glob pattern "unknown host\r"? no expect: does "" (spawn_id exp4) match glob pattern "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes re=no "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no "(denied|Sorry)"? (No Gate, RE only) gate=yes re=no "Login failed"? no "% (Bad passwords|Authentication failed)"? (No Gate, RE only) gate=yes re=no "Press any key to continue"? no "Enter Selection: "? Gate "Enter Selection: "? gate=no "Last login:"? Gate "Last login:"? gate=no "Press the key [^\r\n]+[\r\n]+"? Gate "Press the key *"? gate=no "@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no "([Uu]sername|Login|login|user name|User):"? (No Gate, RE only) gate=yes re=no "([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no "(>|#| \(enable\))"? (No Gate, RE only) gate=yes re=no "Login invalid"? no "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no S expect: does "S" (spawn_id exp4) match regular expression "^<-+ More -+>[^\n\r]*"? Gate "<* More *>*"? gate=no "(Connection refused|Secure connection [^\n\r]+ refused)"? (No Gate, RE only) gate=yes re=no "(Connection closed by|Connection to [^\n\r]+ closed)"? (No Gate, RE only) gate=yes re=no expect: does "S" (spawn_id exp4) match glob pattern "unknown host\r"? no expect: does "S" (spawn_id exp4) match glob pattern "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes re=no "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no "(denied|Sorry)"? (No Gate, RE only) gate=yes re=no "Login failed"? no "% (Bad passwords|Authentication failed)"? (No Gate, RE only) gate=yes re=no "Press any key to continue"? no "Enter Selection: "? Gate "Enter Selection: "? gate=no "Last login:"? Gate "Last login:"? gate=no "Press the key [^\r\n]+[\r\n]+"? Gate "Press the key *"? gate=no "@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no "([Uu]sername|Login|login|user name|User):"? (No Gate, RE only) gate=yes re=no "([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no "(>|#| \(enable\))"? (No Gate, RE only) gate=yes re=no "Login invalid"? no "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no MFITS1> (enable) expect: does "SMFITS1> (enable) " (spawn_id exp4) match regular expression "^<-+ More -+>[^\n\r]*"? Gate "<* More *>*"? gate=no "(Connection refused|Secure connection [^\n\r]+ refused)"? (No Gate, RE only) gate=yes re=no "(Connection closed by|Connection to [^\n\r]+ closed)"? (No Gate, RE only) gate=yes re=no expect: does "SMFITS1> (enable) " (spawn_id exp4) match glob pattern "unknown host\r"? no expect: does "SMFITS1> (enable) " (spawn_id exp4) match glob pattern "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes re=no "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no "(denied|Sorry)"? (No Gate, RE only) gate=yes re=no "Login failed"? no "% (Bad passwords|Authentication failed)"? (No Gate, RE only) gate=yes re=no "Press any key to continue"? no "Enter Selection: "? Gate "Enter Selection: "? gate=no "Last login:"? Gate "Last login:"? gate=no "Press the key [^\r\n]+[\r\n]+"? Gate "Press the key *"? gate=no "@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no "([Uu]sername|Login|login|user name|User):"? (No Gate, RE only) gate=yes re=no "([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no "(>|#| \(enable\))"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) ">" expect: set expect_out(1,string) ">" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "SMFITS1>" send: sending "\r" to { exp4 } Gate keeper glob pattern for '[ ]+' is ''. Not usable, disabling the performance booster. Gate keeper glob pattern for '^(.+[:.])1 ((>|#| \(enable\)))' is ''. Not usable, disabling the performance booster. Gate keeper glob pattern for '^.+(>|#| \(enable\))' is ''. Not usable, disabling the performance booster. expect: does " (enable) " (spawn_id exp4) match regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=no "^(.+[:.])1 ((>|#| \(enable\)))"? (No Gate, RE only) gate=yes re=no "^.+(>|#| \(enable\))"? (No Gate, RE only) gate=yes re=no expect: does " (enable) \r" (spawn_id exp4) match regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " (enable) \r" expect: continuing expect expect: does "" (spawn_id exp4) match regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=no "^(.+[:.])1 ((>|#| \(enable\)))"? (No Gate, RE only) gate=yes re=no "^.+(>|#| \(enable\))"? (No Gate, RE only) gate=yes re=no SMFITS1> (enable) expect: does "\r\nSMFITS1> (enable) " (spawn_id exp4) match regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "\r\n" expect: continuing expect expect: does "SMFITS1> (enable) " (spawn_id exp4) match regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=no "^(.+[:.])1 ((>|#| \(enable\)))"? (No Gate, RE only) gate=yes re=no "^.+(>|#| \(enable\))"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "SMFITS1> (enable)" expect: set expect_out(1,string) " (enable)" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "SMFITS1> (enable)" send: sending "set length 0\r" to { exp4 } Gate keeper glob pattern for 'SMFITS1> \(enable\)' is 'SMFITS1> (enable)'. Activating booster. expect: does " " (spawn_id exp4) match regular expression "SMFITS1> \(enable\)"? Gate "SMFITS1> (enable)"? gate=no s expect: does " s" (spawn_id exp4) match regular expression "SMFITS1> \(enable\)"? Gate "SMFITS1> (enable)"? gate=no et length 0 Screen length for this session set to 0. SMFITS1> (enable) expect: does " set length 0\r\r\nScreen length for this session set to 0.\r\nSMFITS1> (enable) " (spawn_id exp4) match regular expression "SMFITS1> \(enable\)"? Gate "SMFITS1> (enable)"? gate=yes re=yes expect: set expect_out(0,string) "SMFITS1> (enable)" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " set length 0\r\r\nScreen length for this session set to 0.\r\nSMFITS1> (enable)" send: sending "set width 132\r" to { exp4 } Gate keeper glob pattern for 'SMFITS1> \(enable\)' is 'SMFITS1> (enable)'. Activating booster. expect: does " " (spawn_id exp4) match regular expression "SMFITS1> \(enable\)"? Gate "SMFITS1> (enable)"? gate=no s expect: does " s" (spawn_id exp4) match regular expression "SMFITS1> \(enable\)"? Gate "SMFITS1> (enable)"? gate=no et width 132 Unknown command "set width". Use 'set help' for more info. SMFITS1> (enable) expect: does " set width 132\r\r\nUnknown command "set width". Use 'set help' for more info.\r\nSMFITS1> (enable) " (spawn_id exp4) match regular expression "SMFITS1> \(enable\)"? Gate "SMFITS1> (enable)"? gate=yes re=yes expect: set expect_out(0,string) "SMFITS1> (enable)" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " set width 132\r\r\nUnknown command "set width". Use 'set help' for more info.\r\nSMFITS1> (enable)" send: sending "set logging session disable\r" to { exp4 } Gate keeper glob pattern for 'SMFITS1> \(enable\)' is 'SMFITS1> (enable)'. Activating booster. expect: does " " (spawn_id exp4) match regular expression "SMFITS1> \(enable\)"? Gate "SMFITS1> (enable)"? gate=no s expect: does " s" (spawn_id exp4) match regular expression "SMFITS1> \(enable\)"? Gate "SMFITS1> (enable)"? gate=no et logging session disable System logging messages will not be sent to the current login session. SMFITS1> (enable) expect: does " set logging session disable\r\r\nSystem logging messages will not be sent to the current login session.\r\nSMFITS1> (enable) " (spawn_id exp4) match regular expression "SMFITS1> \(enable\)"? Gate "SMFITS1> (enable)"? gate=yes re=yes expect: set expect_out(0,string) "SMFITS1> (enable)" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " set logging session disable\r\r\nSystem logging messages will not be sent to the current login session.\r\nSMFITS1> (enable)" send: sending "show version\r" to { exp4 } Gate keeper glob pattern for '+' is ''. Not usable, disabling the performance booster. Gate keeper glob pattern for '^[^ *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?' is '*SMFITS1> (enable)*'. Activating booster. Gate keeper glob pattern for '^[^ ]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?.' is '*SMFITS1> (enable)*'. Activating booster. Gate keeper glob pattern for '^--More--[ ]+' is '--More--*'. Activating booster. Gate keeper glob pattern for '[^ ]*[ ]+' is ''. Not usable, disabling the performance booster. Gate keeper glob pattern for '[^ ]*Press to cont[^ ]*' is '*Press to cont*'. Activating booster. Gate keeper glob pattern for '^ *--More--[^ ]*' is '*--More--*'. Activating booster. Gate keeper glob pattern for '^<-+ More -+>[^ ]*' is '<* More *>*'. Activating booster. expect: does " " (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=no "[^\r\n]*Press to cont[^\r\n]*"? Gate "*Press to cont*"? gate=no "^ *--More--[^\n\r]*"? Gate "*--More--*"? gate=no "^<-+ More -+>[^\n\r]*"? Gate "<* More *>*"? gate=no expect: does " s" (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=no "[^\r\n]*Press to cont[^\r\n]*"? Gate "*Press to cont*"? gate=no "^ *--More--[^\n\r]*"? Gate "*--More--*"? gate=no "^<-+ More -+>[^\n\r]*"? Gate "<* More *>*"? gate=no expect: does " show version\r\r\n" (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) " show version\r\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " show version\r\r\n" show version expect: continuing expect expect: does "" (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=no "[^\r\n]*Press to cont[^\r\n]*"? Gate "*Press to cont*"? gate=no "^ *--More--[^\n\r]*"? Gate "*--More--*"? gate=no "^<-+ More -+>[^\n\r]*"? Gate "<* More *>*"? gate=no expect: does "\r\nWARNING: This product contains cryptographic features and is subject to United\r\nStates and local country laws governing import, export, transfer and use.\r\nDelivery of Cisco cryptographic products does not imply third-party authority\r\nto import, export, distribute or use encryption. Importers, exporters,\r\ndistributors and users are responsible for compliance with U.S. and local\r\ncountry laws. By using this product you agree to comply with applicable\r\nlaws and regulations. If you are unable to comply with U.S. and local laws,\r\nreturn this product immediately.\r\n\r\nWS-C6509 Software, Version NmpSW: 7.6(4)\r\nCopyright (c) 1995-2003 by Cisco Systems\r\nNMP S/W compiled on Nov 4 2003, 20:34:11\r\n\r\nSystem Bootstrap Version: 7.1(1)\r\nSystem Web Interface Version: Engine Version: 5.3.4 ADP Device: Cat6000 ADP Version: 2.0 ADK: 40\r\nSystem Boot Image File is 'bootflash:cat6000-sup2cvk9.7-6-4.bin'\r\nSystem Configuration register is 0x2102\r\n\r\nHardware Version: 3.0 Model: WS-C6509 Serial #: SAL0744NXYY\r\n\r\nPS1 Module: WS-CAC-1300W Serial #: ACP03040024\r\nPS2 Module: WS-CAC-1300W Serial #: SON05010444\r\n\r\nMod Port Model Serial # Versions\r\n--- ---- ------------------- ----------- --------------------------------------\r\n1 2 WS-X6K-SUP2-2GE SAL0751R1G8 Hw : 5.0\r\n Fw : 7.1(1)\r\n Fw1: 6.1(3)\r\n Sw : 7.6(4)\r\n " (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "\r\n" expect: continuing expect expect: does "WARNING: This product contains cryptographic features and is subject to United\r\nStates and local country laws governing import, export, transfer and use.\r\nDelivery of Cisco cryptographic products does not imply third-party authority\r\nto import, export, distribute or use encryption. Importers, exporters,\r\ndistributors and users are responsible for compliance with U.S. and local\r\ncountry laws. By using this product you agree to comply with applicable\r\nlaws and regulations. If you are unable to comply with U.S. and local laws,\r\nreturn this product immediately.\r\n\r\nWS-C6509 Software, Version NmpSW: 7.6(4)\r\nCopyright (c) 1995-2003 by Cisco Systems\r\nNMP S/W compiled on Nov 4 2003, 20:34:11\r\n\r\nSystem Bootstrap Version: 7.1(1)\r\nSystem Web Interface Version: Engine Version: 5.3.4 ADP Device: Cat6000 ADP Version: 2.0 ADK: 40\r\nSystem Boot Image File is 'bootflash:cat6000-sup2cvk9.7-6-4.bin'\r\nSystem Configuration register is 0x2102\r\n\r\nHardware Version: 3.0 Model: WS-C6509 Serial #: SAL0744NXYY\r\n\r\nPS1 Module: WS-CAC-1300W Serial #: ACP03040024\r\nPS2 Module: WS-CAC-1300W Serial #: SON05010444\r\n\r\nMod Port Model Serial # Versions\r\n--- ---- ------------------- ----------- --------------------------------------\r\n1 2 WS-X6K-SUP2-2GE SAL0751R1G8 Hw : 5.0\r\n Fw : 7.1(1)\r\n Fw1: 6.1(3)\r\n Sw : 7.6(4)\r\n " (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "WARNING: This product contains cryptographic features and is subject to United\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "WARNING: This product contains cryptographic features and is subject to United\r\n" WARNING: This product contains cryptographic features and is subject to United expect: continuing expect expect: does "States and local country laws governing import, export, transfer and use.\r\nDelivery of Cisco cryptographic products does not imply third-party authority\r\nto import, export, distribute or use encryption. Importers, exporters,\r\ndistributors and users are responsible for compliance with U.S. and local\r\ncountry laws. By using this product you agree to comply with applicable\r\nlaws and regulations. If you are unable to comply with U.S. and local laws,\r\nreturn this product immediately.\r\n\r\nWS-C6509 Software, Version NmpSW: 7.6(4)\r\nCopyright (c) 1995-2003 by Cisco Systems\r\nNMP S/W compiled on Nov 4 2003, 20:34:11\r\n\r\nSystem Bootstrap Version: 7.1(1)\r\nSystem Web Interface Version: Engine Version: 5.3.4 ADP Device: Cat6000 ADP Version: 2.0 ADK: 40\r\nSystem Boot Image File is 'bootflash:cat6000-sup2cvk9.7-6-4.bin'\r\nSystem Configuration register is 0x2102\r\n\r\nHardware Version: 3.0 Model: WS-C6509 Serial #: SAL0744NXYY\r\n\r\nPS1 Module: WS-CAC-1300W Serial #: ACP03040024\r\nPS2 Module: WS-CAC-1300W Serial #: SON05010444\r\n\r\nMod Port Model Serial # Versions\r\n--- ---- ------------------- ----------- --------------------------------------\r\n1 2 WS-X6K-SUP2-2GE SAL0751R1G8 Hw : 5.0\r\n Fw : 7.1(1)\r\n Fw1: 6.1(3)\r\n Sw : 7.6(4)\r\n " (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "States and local country laws governing import, export, transfer and use.\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "States and local country laws governing import, export, transfer and use.\r\n" States and local country laws governing import, export, transfer and use. expect: continuing expect expect: does "Delivery of Cisco cryptographic products does not imply third-party authority\r\nto import, export, distribute or use encryption. Importers, exporters,\r\ndistributors and users are responsible for compliance with U.S. and local\r\ncountry laws. By using this product you agree to comply with applicable\r\nlaws and regulations. If you are unable to comply with U.S. and local laws,\r\nreturn this product immediately.\r\n\r\nWS-C6509 Software, Version NmpSW: 7.6(4)\r\nCopyright (c) 1995-2003 by Cisco Systems\r\nNMP S/W compiled on Nov 4 2003, 20:34:11\r\n\r\nSystem Bootstrap Version: 7.1(1)\r\nSystem Web Interface Version: Engine Version: 5.3.4 ADP Device: Cat6000 ADP Version: 2.0 ADK: 40\r\nSystem Boot Image File is 'bootflash:cat6000-sup2cvk9.7-6-4.bin'\r\nSystem Configuration register is 0x2102\r\n\r\nHardware Version: 3.0 Model: WS-C6509 Serial #: SAL0744NXYY\r\n\r\nPS1 Module: WS-CAC-1300W Serial #: ACP03040024\r\nPS2 Module: WS-CAC-1300W Serial #: SON05010444\r\n\r\nMod Port Model Serial # Versions\r\n--- ---- ------------------- ----------- --------------------------------------\r\n1 2 WS-X6K-SUP2-2GE SAL0751R1G8 Hw : 5.0\r\n Fw : 7.1(1)\r\n Fw1: 6.1(3)\r\n Sw : 7.6(4)\r\n " (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "Delivery of Cisco cryptographic products does not imply third-party authority\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "Delivery of Cisco cryptographic products does not imply third-party authority\r\n" Delivery of Cisco cryptographic products does not imply third-party authority expect: continuing expect expect: does "to import, export, distribute or use encryption. Importers, exporters,\r\ndistributors and users are responsible for compliance with U.S. and local\r\ncountry laws. By using this product you agree to comply with applicable\r\nlaws and regulations. If you are unable to comply with U.S. and local laws,\r\nreturn this product immediately.\r\n\r\nWS-C6509 Software, Version NmpSW: 7.6(4)\r\nCopyright (c) 1995-2003 by Cisco Systems\r\nNMP S/W compiled on Nov 4 2003, 20:34:11\r\n\r\nSystem Bootstrap Version: 7.1(1)\r\nSystem Web Interface Version: Engine Version: 5.3.4 ADP Device: Cat6000 ADP Version: 2.0 ADK: 40\r\nSystem Boot Image File is 'bootflash:cat6000-sup2cvk9.7-6-4.bin'\r\nSystem Configuration register is 0x2102\r\n\r\nHardware Version: 3.0 Model: WS-C6509 Serial #: SAL0744NXYY\r\n\r\nPS1 Module: WS-CAC-1300W Serial #: ACP03040024\r\nPS2 Module: WS-CAC-1300W Serial #: SON05010444\r\n\r\nMod Port Model Serial # Versions\r\n--- ---- ------------------- ----------- --------------------------------------\r\n1 2 WS-X6K-SUP2-2GE SAL0751R1G8 Hw : 5.0\r\n Fw : 7.1(1)\r\n Fw1: 6.1(3)\r\n Sw : 7.6(4)\r\n " (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "to import, export, distribute or use encryption. Importers, exporters,\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "to import, export, distribute or use encryption. Importers, exporters,\r\n" to import, export, distribute or use encryption. Importers, exporters, expect: continuing expect expect: does "distributors and users are responsible for compliance with U.S. and local\r\ncountry laws. By using this product you agree to comply with applicable\r\nlaws and regulations. If you are unable to comply with U.S. and local laws,\r\nreturn this product immediately.\r\n\r\nWS-C6509 Software, Version NmpSW: 7.6(4)\r\nCopyright (c) 1995-2003 by Cisco Systems\r\nNMP S/W compiled on Nov 4 2003, 20:34:11\r\n\r\nSystem Bootstrap Version: 7.1(1)\r\nSystem Web Interface Version: Engine Version: 5.3.4 ADP Device: Cat6000 ADP Version: 2.0 ADK: 40\r\nSystem Boot Image File is 'bootflash:cat6000-sup2cvk9.7-6-4.bin'\r\nSystem Configuration register is 0x2102\r\n\r\nHardware Version: 3.0 Model: WS-C6509 Serial #: SAL0744NXYY\r\n\r\nPS1 Module: WS-CAC-1300W Serial #: ACP03040024\r\nPS2 Module: WS-CAC-1300W Serial #: SON05010444\r\n\r\nMod Port Model Serial # Versions\r\n--- ---- ------------------- ----------- --------------------------------------\r\n1 2 WS-X6K-SUP2-2GE SAL0751R1G8 Hw : 5.0\r\n Fw : 7.1(1)\r\n Fw1: 6.1(3)\r\n Sw : 7.6(4)\r\n " (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "distributors and users are responsible for compliance with U.S. and local\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "distributors and users are responsible for compliance with U.S. and local\r\n" distributors and users are responsible for compliance with U.S. and local expect: continuing expect expect: does "country laws. By using this product you agree to comply with applicable\r\nlaws and regulations. If you are unable to comply with U.S. and local laws,\r\nreturn this product immediately.\r\n\r\nWS-C6509 Software, Version NmpSW: 7.6(4)\r\nCopyright (c) 1995-2003 by Cisco Systems\r\nNMP S/W compiled on Nov 4 2003, 20:34:11\r\n\r\nSystem Bootstrap Version: 7.1(1)\r\nSystem Web Interface Version: Engine Version: 5.3.4 ADP Device: Cat6000 ADP Version: 2.0 ADK: 40\r\nSystem Boot Image File is 'bootflash:cat6000-sup2cvk9.7-6-4.bin'\r\nSystem Configuration register is 0x2102\r\n\r\nHardware Version: 3.0 Model: WS-C6509 Serial #: SAL0744NXYY\r\n\r\nPS1 Module: WS-CAC-1300W Serial #: ACP03040024\r\nPS2 Module: WS-CAC-1300W Serial #: SON05010444\r\n\r\nMod Port Model Serial # Versions\r\n--- ---- ------------------- ----------- --------------------------------------\r\n1 2 WS-X6K-SUP2-2GE SAL0751R1G8 Hw : 5.0\r\n Fw : 7.1(1)\r\n Fw1: 6.1(3)\r\n Sw : 7.6(4)\r\n " (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "country laws. By using this product you agree to comply with applicable\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "country laws. By using this product you agree to comply with applicable\r\n" country laws. By using this product you agree to comply with applicable expect: continuing expect expect: does "laws and regulations. If you are unable to comply with U.S. and local laws,\r\nreturn this product immediately.\r\n\r\nWS-C6509 Software, Version NmpSW: 7.6(4)\r\nCopyright (c) 1995-2003 by Cisco Systems\r\nNMP S/W compiled on Nov 4 2003, 20:34:11\r\n\r\nSystem Bootstrap Version: 7.1(1)\r\nSystem Web Interface Version: Engine Version: 5.3.4 ADP Device: Cat6000 ADP Version: 2.0 ADK: 40\r\nSystem Boot Image File is 'bootflash:cat6000-sup2cvk9.7-6-4.bin'\r\nSystem Configuration register is 0x2102\r\n\r\nHardware Version: 3.0 Model: WS-C6509 Serial #: SAL0744NXYY\r\n\r\nPS1 Module: WS-CAC-1300W Serial #: ACP03040024\r\nPS2 Module: WS-CAC-1300W Serial #: SON05010444\r\n\r\nMod Port Model Serial # Versions\r\n--- ---- ------------------- ----------- --------------------------------------\r\n1 2 WS-X6K-SUP2-2GE SAL0751R1G8 Hw : 5.0\r\n Fw : 7.1(1)\r\n Fw1: 6.1(3)\r\n Sw : 7.6(4)\r\n " (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "laws and regulations. If you are unable to comply with U.S. and local laws,\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "laws and regulations. If you are unable to comply with U.S. and local laws,\r\n" laws and regulations. If you are unable to comply with U.S. and local laws, expect: continuing expect expect: does "return this product immediately.\r\n\r\nWS-C6509 Software, Version NmpSW: 7.6(4)\r\nCopyright (c) 1995-2003 by Cisco Systems\r\nNMP S/W compiled on Nov 4 2003, 20:34:11\r\n\r\nSystem Bootstrap Version: 7.1(1)\r\nSystem Web Interface Version: Engine Version: 5.3.4 ADP Device: Cat6000 ADP Version: 2.0 ADK: 40\r\nSystem Boot Image File is 'bootflash:cat6000-sup2cvk9.7-6-4.bin'\r\nSystem Configuration register is 0x2102\r\n\r\nHardware Version: 3.0 Model: WS-C6509 Serial #: SAL0744NXYY\r\n\r\nPS1 Module: WS-CAC-1300W Serial #: ACP03040024\r\nPS2 Module: WS-CAC-1300W Serial #: SON05010444\r\n\r\nMod Port Model Serial # Versions\r\n--- ---- ------------------- ----------- --------------------------------------\r\n1 2 WS-X6K-SUP2-2GE SAL0751R1G8 Hw : 5.0\r\n Fw : 7.1(1)\r\n Fw1: 6.1(3)\r\n Sw : 7.6(4)\r\n " (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "return this product immediately.\r\n\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "return this product immediately.\r\n\r\n" return this product immediately. expect: continuing expect expect: does "WS-C6509 Software, Version NmpSW: 7.6(4)\r\nCopyright (c) 1995-2003 by Cisco Systems\r\nNMP S/W compiled on Nov 4 2003, 20:34:11\r\n\r\nSystem Bootstrap Version: 7.1(1)\r\nSystem Web Interface Version: Engine Version: 5.3.4 ADP Device: Cat6000 ADP Version: 2.0 ADK: 40\r\nSystem Boot Image File is 'bootflash:cat6000-sup2cvk9.7-6-4.bin'\r\nSystem Configuration register is 0x2102\r\n\r\nHardware Version: 3.0 Model: WS-C6509 Serial #: SAL0744NXYY\r\n\r\nPS1 Module: WS-CAC-1300W Serial #: ACP03040024\r\nPS2 Module: WS-CAC-1300W Serial #: SON05010444\r\n\r\nMod Port Model Serial # Versions\r\n--- ---- ------------------- ----------- --------------------------------------\r\n1 2 WS-X6K-SUP2-2GE SAL0751R1G8 Hw : 5.0\r\n Fw : 7.1(1)\r\n Fw1: 6.1(3)\r\n Sw : 7.6(4)\r\n " (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "WS-C6509 Software, Version NmpSW: 7.6(4)\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "WS-C6509 Software, Version NmpSW: 7.6(4)\r\n" WS-C6509 Software, Version NmpSW: 7.6(4) expect: continuing expect expect: does "Copyright (c) 1995-2003 by Cisco Systems\r\nNMP S/W compiled on Nov 4 2003, 20:34:11\r\n\r\nSystem Bootstrap Version: 7.1(1)\r\nSystem Web Interface Version: Engine Version: 5.3.4 ADP Device: Cat6000 ADP Version: 2.0 ADK: 40\r\nSystem Boot Image File is 'bootflash:cat6000-sup2cvk9.7-6-4.bin'\r\nSystem Configuration register is 0x2102\r\n\r\nHardware Version: 3.0 Model: WS-C6509 Serial #: SAL0744NXYY\r\n\r\nPS1 Module: WS-CAC-1300W Serial #: ACP03040024\r\nPS2 Module: WS-CAC-1300W Serial #: SON05010444\r\n\r\nMod Port Model Serial # Versions\r\n--- ---- ------------------- ----------- --------------------------------------\r\n1 2 WS-X6K-SUP2-2GE SAL0751R1G8 Hw : 5.0\r\n Fw : 7.1(1)\r\n Fw1: 6.1(3)\r\n Sw : 7.6(4)\r\n " (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "Copyright (c) 1995-2003 by Cisco Systems\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "Copyright (c) 1995-2003 by Cisco Systems\r\n" Copyright (c) 1995-2003 by Cisco Systems expect: continuing expect expect: does "NMP S/W compiled on Nov 4 2003, 20:34:11\r\n\r\nSystem Bootstrap Version: 7.1(1)\r\nSystem Web Interface Version: Engine Version: 5.3.4 ADP Device: Cat6000 ADP Version: 2.0 ADK: 40\r\nSystem Boot Image File is 'bootflash:cat6000-sup2cvk9.7-6-4.bin'\r\nSystem Configuration register is 0x2102\r\n\r\nHardware Version: 3.0 Model: WS-C6509 Serial #: SAL0744NXYY\r\n\r\nPS1 Module: WS-CAC-1300W Serial #: ACP03040024\r\nPS2 Module: WS-CAC-1300W Serial #: SON05010444\r\n\r\nMod Port Model Serial # Versions\r\n--- ---- ------------------- ----------- --------------------------------------\r\n1 2 WS-X6K-SUP2-2GE SAL0751R1G8 Hw : 5.0\r\n Fw : 7.1(1)\r\n Fw1: 6.1(3)\r\n Sw : 7.6(4)\r\n " (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "NMP S/W compiled on Nov 4 2003, 20:34:11\r\n\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "NMP S/W compiled on Nov 4 2003, 20:34:11\r\n\r\n" NMP S/W compiled on Nov 4 2003, 20:34:11 expect: continuing expect expect: does "System Bootstrap Version: 7.1(1)\r\nSystem Web Interface Version: Engine Version: 5.3.4 ADP Device: Cat6000 ADP Version: 2.0 ADK: 40\r\nSystem Boot Image File is 'bootflash:cat6000-sup2cvk9.7-6-4.bin'\r\nSystem Configuration register is 0x2102\r\n\r\nHardware Version: 3.0 Model: WS-C6509 Serial #: SAL0744NXYY\r\n\r\nPS1 Module: WS-CAC-1300W Serial #: ACP03040024\r\nPS2 Module: WS-CAC-1300W Serial #: SON05010444\r\n\r\nMod Port Model Serial # Versions\r\n--- ---- ------------------- ----------- --------------------------------------\r\n1 2 WS-X6K-SUP2-2GE SAL0751R1G8 Hw : 5.0\r\n Fw : 7.1(1)\r\n Fw1: 6.1(3)\r\n Sw : 7.6(4)\r\n " (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "System Bootstrap Version: 7.1(1)\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "System Bootstrap Version: 7.1(1)\r\n" System Bootstrap Version: 7.1(1) expect: continuing expect expect: does "System Web Interface Version: Engine Version: 5.3.4 ADP Device: Cat6000 ADP Version: 2.0 ADK: 40\r\nSystem Boot Image File is 'bootflash:cat6000-sup2cvk9.7-6-4.bin'\r\nSystem Configuration register is 0x2102\r\n\r\nHardware Version: 3.0 Model: WS-C6509 Serial #: SAL0744NXYY\r\n\r\nPS1 Module: WS-CAC-1300W Serial #: ACP03040024\r\nPS2 Module: WS-CAC-1300W Serial #: SON05010444\r\n\r\nMod Port Model Serial # Versions\r\n--- ---- ------------------- ----------- --------------------------------------\r\n1 2 WS-X6K-SUP2-2GE SAL0751R1G8 Hw : 5.0\r\n Fw : 7.1(1)\r\n Fw1: 6.1(3)\r\n Sw : 7.6(4)\r\n " (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "System Web Interface Version: Engine Version: 5.3.4 ADP Device: Cat6000 ADP Version: 2.0 ADK: 40\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "System Web Interface Version: Engine Version: 5.3.4 ADP Device: Cat6000 ADP Version: 2.0 ADK: 40\r\n" System Web Interface Version: Engine Version: 5.3.4 ADP Device: Cat6000 ADP Version: 2.0 ADK: 40 expect: continuing expect expect: does "System Boot Image File is 'bootflash:cat6000-sup2cvk9.7-6-4.bin'\r\nSystem Configuration register is 0x2102\r\n\r\nHardware Version: 3.0 Model: WS-C6509 Serial #: SAL0744NXYY\r\n\r\nPS1 Module: WS-CAC-1300W Serial #: ACP03040024\r\nPS2 Module: WS-CAC-1300W Serial #: SON05010444\r\n\r\nMod Port Model Serial # Versions\r\n--- ---- ------------------- ----------- --------------------------------------\r\n1 2 WS-X6K-SUP2-2GE SAL0751R1G8 Hw : 5.0\r\n Fw : 7.1(1)\r\n Fw1: 6.1(3)\r\n Sw : 7.6(4)\r\n " (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "System Boot Image File is 'bootflash:cat6000-sup2cvk9.7-6-4.bin'\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "System Boot Image File is 'bootflash:cat6000-sup2cvk9.7-6-4.bin'\r\n" System Boot Image File is 'bootflash:cat6000-sup2cvk9.7-6-4.bin' expect: continuing expect expect: does "System Configuration register is 0x2102\r\n\r\nHardware Version: 3.0 Model: WS-C6509 Serial #: SAL0744NXYY\r\n\r\nPS1 Module: WS-CAC-1300W Serial #: ACP03040024\r\nPS2 Module: WS-CAC-1300W Serial #: SON05010444\r\n\r\nMod Port Model Serial # Versions\r\n--- ---- ------------------- ----------- --------------------------------------\r\n1 2 WS-X6K-SUP2-2GE SAL0751R1G8 Hw : 5.0\r\n Fw : 7.1(1)\r\n Fw1: 6.1(3)\r\n Sw : 7.6(4)\r\n " (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "System Configuration register is 0x2102\r\n\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "System Configuration register is 0x2102\r\n\r\n" System Configuration register is 0x2102 expect: continuing expect expect: does "Hardware Version: 3.0 Model: WS-C6509 Serial #: SAL0744NXYY\r\n\r\nPS1 Module: WS-CAC-1300W Serial #: ACP03040024\r\nPS2 Module: WS-CAC-1300W Serial #: SON05010444\r\n\r\nMod Port Model Serial # Versions\r\n--- ---- ------------------- ----------- --------------------------------------\r\n1 2 WS-X6K-SUP2-2GE SAL0751R1G8 Hw : 5.0\r\n Fw : 7.1(1)\r\n Fw1: 6.1(3)\r\n Sw : 7.6(4)\r\n " (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "Hardware Version: 3.0 Model: WS-C6509 Serial #: SAL0744NXYY\r\n\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "Hardware Version: 3.0 Model: WS-C6509 Serial #: SAL0744NXYY\r\n\r\n" Hardware Version: 3.0 Model: WS-C6509 Serial #: SAL0744NXYY expect: continuing expect expect: does "PS1 Module: WS-CAC-1300W Serial #: ACP03040024\r\nPS2 Module: WS-CAC-1300W Serial #: SON05010444\r\n\r\nMod Port Model Serial # Versions\r\n--- ---- ------------------- ----------- --------------------------------------\r\n1 2 WS-X6K-SUP2-2GE SAL0751R1G8 Hw : 5.0\r\n Fw : 7.1(1)\r\n Fw1: 6.1(3)\r\n Sw : 7.6(4)\r\n " (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "PS1 Module: WS-CAC-1300W Serial #: ACP03040024\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "PS1 Module: WS-CAC-1300W Serial #: ACP03040024\r\n" PS1 Module: WS-CAC-1300W Serial #: ACP03040024 expect: continuing expect expect: does "PS2 Module: WS-CAC-1300W Serial #: SON05010444\r\n\r\nMod Port Model Serial # Versions\r\n--- ---- ------------------- ----------- --------------------------------------\r\n1 2 WS-X6K-SUP2-2GE SAL0751R1G8 Hw : 5.0\r\n Fw : 7.1(1)\r\n Fw1: 6.1(3)\r\n Sw : 7.6(4)\r\n " (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "PS2 Module: WS-CAC-1300W Serial #: SON05010444\r\n\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "PS2 Module: WS-CAC-1300W Serial #: SON05010444\r\n\r\n" PS2 Module: WS-CAC-1300W Serial #: SON05010444 expect: continuing expect expect: does "Mod Port Model Serial # Versions\r\n--- ---- ------------------- ----------- --------------------------------------\r\n1 2 WS-X6K-SUP2-2GE SAL0751R1G8 Hw : 5.0\r\n Fw : 7.1(1)\r\n Fw1: 6.1(3)\r\n Sw : 7.6(4)\r\n " (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "Mod Port Model Serial # Versions\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "Mod Port Model Serial # Versions\r\n" Mod Port Model Serial # Versions expect: continuing expect expect: does "--- ---- ------------------- ----------- --------------------------------------\r\n1 2 WS-X6K-SUP2-2GE SAL0751R1G8 Hw : 5.0\r\n Fw : 7.1(1)\r\n Fw1: 6.1(3)\r\n Sw : 7.6(4)\r\n " (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "--- ---- ------------------- ----------- --------------------------------------\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "--- ---- ------------------- ----------- --------------------------------------\r\n" --- ---- ------------------- ----------- -------------------------------------- expect: continuing expect expect: does "1 2 WS-X6K-SUP2-2GE SAL0751R1G8 Hw : 5.0\r\n Fw : 7.1(1)\r\n Fw1: 6.1(3)\r\n Sw : 7.6(4)\r\n " (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "1 2 WS-X6K-SUP2-2GE SAL0751R1G8 Hw : 5.0\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "1 2 WS-X6K-SUP2-2GE SAL0751R1G8 Hw : 5.0\r\n" 1 2 WS-X6K-SUP2-2GE SAL0751R1G8 Hw : 5.0 expect: continuing expect expect: does " Fw : 7.1(1)\r\n Fw1: 6.1(3)\r\n Sw : 7.6(4)\r\n " (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) " Fw : 7.1(1)\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " Fw : 7.1(1)\r\n" Fw : 7.1(1) expect: continuing expect expect: does " Fw1: 6.1(3)\r\n Sw : 7.6(4)\r\n " (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) " Fw1: 6.1(3)\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " Fw1: 6.1(3)\r\n" Fw1: 6.1(3) expect: continuing expect expect: does " Sw : 7.6(4)\r\n " (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) " Sw : 7.6(4)\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " Sw : 7.6(4)\r\n" Sw : 7.6(4) expect: continuing expect expect: does " " (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=no "[^\r\n]*Press to cont[^\r\n]*"? Gate "*Press to cont*"? gate=no "^ *--More--[^\n\r]*"? Gate "*--More--*"? gate=no "^<-+ More -+>[^\n\r]*"? Gate "<* More *>*"? gate=no expect: does " Sw1: 7.6(4)\r\n WS-X6K-SUP2-2GE SAL0751R1G8 Hw : 5.0 \r\n Sw : \r\n2 8 WS-X6408A-GBIC SAD041904EA Hw : 2.1\r\n Fw : 5.4(2)\r\n Sw : 7.6(4)\r\n3 48 WS-X6548-RJ-45 SAD05260569 Hw : 1.1\r\n Fw : 6.3(1)\r\n Sw : 7.6(4)\r\n6 16 WS-X6516-GE-TX SAL0712AH58 Hw : 2.5\r\n Fw : 6.3(1)\r\n Sw : 7.6(4)\r\n" (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) " Sw1: 7.6(4)\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " Sw1: 7.6(4)\r\n" Sw1: 7.6(4) expect: continuing expect expect: does " WS-X6K-SUP2-2GE SAL0751R1G8 Hw : 5.0 \r\n Sw : \r\n2 8 WS-X6408A-GBIC SAD041904EA Hw : 2.1\r\n Fw : 5.4(2)\r\n Sw : 7.6(4)\r\n3 48 WS-X6548-RJ-45 SAD05260569 Hw : 1.1\r\n Fw : 6.3(1)\r\n Sw : 7.6(4)\r\n6 16 WS-X6516-GE-TX SAL0712AH58 Hw : 2.5\r\n Fw : 6.3(1)\r\n Sw : 7.6(4)\r\n" (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) " WS-X6K-SUP2-2GE SAL0751R1G8 Hw : 5.0 \r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " WS-X6K-SUP2-2GE SAL0751R1G8 Hw : 5.0 \r\n" WS-X6K-SUP2-2GE SAL0751R1G8 Hw : 5.0 expect: continuing expect expect: does " Sw : \r\n2 8 WS-X6408A-GBIC SAD041904EA Hw : 2.1\r\n Fw : 5.4(2)\r\n Sw : 7.6(4)\r\n3 48 WS-X6548-RJ-45 SAD05260569 Hw : 1.1\r\n Fw : 6.3(1)\r\n Sw : 7.6(4)\r\n6 16 WS-X6516-GE-TX SAL0712AH58 Hw : 2.5\r\n Fw : 6.3(1)\r\n Sw : 7.6(4)\r\n" (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) " Sw : \r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " Sw : \r\n" Sw : expect: continuing expect expect: does "2 8 WS-X6408A-GBIC SAD041904EA Hw : 2.1\r\n Fw : 5.4(2)\r\n Sw : 7.6(4)\r\n3 48 WS-X6548-RJ-45 SAD05260569 Hw : 1.1\r\n Fw : 6.3(1)\r\n Sw : 7.6(4)\r\n6 16 WS-X6516-GE-TX SAL0712AH58 Hw : 2.5\r\n Fw : 6.3(1)\r\n Sw : 7.6(4)\r\n" (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "2 8 WS-X6408A-GBIC SAD041904EA Hw : 2.1\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "2 8 WS-X6408A-GBIC SAD041904EA Hw : 2.1\r\n" 2 8 WS-X6408A-GBIC SAD041904EA Hw : 2.1 expect: continuing expect expect: does " Fw : 5.4(2)\r\n Sw : 7.6(4)\r\n3 48 WS-X6548-RJ-45 SAD05260569 Hw : 1.1\r\n Fw : 6.3(1)\r\n Sw : 7.6(4)\r\n6 16 WS-X6516-GE-TX SAL0712AH58 Hw : 2.5\r\n Fw : 6.3(1)\r\n Sw : 7.6(4)\r\n" (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) " Fw : 5.4(2)\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " Fw : 5.4(2)\r\n" Fw : 5.4(2) expect: continuing expect expect: does " Sw : 7.6(4)\r\n3 48 WS-X6548-RJ-45 SAD05260569 Hw : 1.1\r\n Fw : 6.3(1)\r\n Sw : 7.6(4)\r\n6 16 WS-X6516-GE-TX SAL0712AH58 Hw : 2.5\r\n Fw : 6.3(1)\r\n Sw : 7.6(4)\r\n" (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) " Sw : 7.6(4)\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " Sw : 7.6(4)\r\n" Sw : 7.6(4) expect: continuing expect expect: does "3 48 WS-X6548-RJ-45 SAD05260569 Hw : 1.1\r\n Fw : 6.3(1)\r\n Sw : 7.6(4)\r\n6 16 WS-X6516-GE-TX SAL0712AH58 Hw : 2.5\r\n Fw : 6.3(1)\r\n Sw : 7.6(4)\r\n" (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "3 48 WS-X6548-RJ-45 SAD05260569 Hw : 1.1\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "3 48 WS-X6548-RJ-45 SAD05260569 Hw : 1.1\r\n" 3 48 WS-X6548-RJ-45 SAD05260569 Hw : 1.1 expect: continuing expect expect: does " Fw : 6.3(1)\r\n Sw : 7.6(4)\r\n6 16 WS-X6516-GE-TX SAL0712AH58 Hw : 2.5\r\n Fw : 6.3(1)\r\n Sw : 7.6(4)\r\n" (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) " Fw : 6.3(1)\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " Fw : 6.3(1)\r\n" Fw : 6.3(1) expect: continuing expect expect: does " Sw : 7.6(4)\r\n6 16 WS-X6516-GE-TX SAL0712AH58 Hw : 2.5\r\n Fw : 6.3(1)\r\n Sw : 7.6(4)\r\n" (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) " Sw : 7.6(4)\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " Sw : 7.6(4)\r\n" Sw : 7.6(4) expect: continuing expect expect: does "6 16 WS-X6516-GE-TX SAL0712AH58 Hw : 2.5\r\n Fw : 6.3(1)\r\n Sw : 7.6(4)\r\n" (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "6 16 WS-X6516-GE-TX SAL0712AH58 Hw : 2.5\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "6 16 WS-X6516-GE-TX SAL0712AH58 Hw : 2.5\r\n" 6 16 WS-X6516-GE-TX SAL0712AH58 Hw : 2.5 expect: continuing expect expect: does " Fw : 6.3(1)\r\n Sw : 7.6(4)\r\n" (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) " Fw : 6.3(1)\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " Fw : 6.3(1)\r\n" Fw : 6.3(1) expect: continuing expect expect: does " Sw : 7.6(4)\r\n" (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) " Sw : 7.6(4)\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " Sw : 7.6(4)\r\n" Sw : 7.6(4) expect: continuing expect expect: does "" (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=no "[^\r\n]*Press to cont[^\r\n]*"? Gate "*Press to cont*"? gate=no "^ *--More--[^\n\r]*"? Gate "*--More--*"? gate=no "^<-+ More -+>[^\n\r]*"? Gate "<* More *>*"? gate=no expect: does "\r" (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "\r" expect: continuing expect expect: does "" (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=no "[^\r\n]*Press to cont[^\r\n]*"? Gate "*Press to cont*"? gate=no "^ *--More--[^\n\r]*"? Gate "*--More--*"? gate=no "^<-+ More -+>[^\n\r]*"? Gate "<* More *>*"? gate=no expect: does "\n DRAM FLASH NVRAM\r\nModule Total Used Free Total Used Free Total Used Free\r\n------ ------- ------- ------- ------- ------- ------- ----- ----- -----\r\n1 131072K 68696K 62376K 32768K 13566K 19202K 512K 321K 191K\r\n\r\nUptime is 345 days, 20 hours, 14 minutes\r\nSMFITS1> (enable) " (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=yes re=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=yes re=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "\n" expect: continuing expect expect: does " DRAM FLASH NVRAM\r\nModule Total Used Free Total Used Free Total Used Free\r\n------ ------- ------- ------- ------- ------- ------- ----- ----- -----\r\n1 131072K 68696K 62376K 32768K 13566K 19202K 512K 321K 191K\r\n\r\nUptime is 345 days, 20 hours, 14 minutes\r\nSMFITS1> (enable) " (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=yes re=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=yes re=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) " DRAM FLASH NVRAM\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " DRAM FLASH NVRAM\r\n" DRAM FLASH NVRAM expect: continuing expect expect: does "Module Total Used Free Total Used Free Total Used Free\r\n------ ------- ------- ------- ------- ------- ------- ----- ----- -----\r\n1 131072K 68696K 62376K 32768K 13566K 19202K 512K 321K 191K\r\n\r\nUptime is 345 days, 20 hours, 14 minutes\r\nSMFITS1> (enable) " (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=yes re=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=yes re=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "Module Total Used Free Total Used Free Total Used Free\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "Module Total Used Free Total Used Free Total Used Free\r\n" Module Total Used Free Total Used Free Total Used Free expect: continuing expect expect: does "------ ------- ------- ------- ------- ------- ------- ----- ----- -----\r\n1 131072K 68696K 62376K 32768K 13566K 19202K 512K 321K 191K\r\n\r\nUptime is 345 days, 20 hours, 14 minutes\r\nSMFITS1> (enable) " (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=yes re=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=yes re=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "------ ------- ------- ------- ------- ------- ------- ----- ----- -----\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "------ ------- ------- ------- ------- ------- ------- ----- ----- -----\r\n" ------ ------- ------- ------- ------- ------- ------- ----- ----- ----- expect: continuing expect expect: does "1 131072K 68696K 62376K 32768K 13566K 19202K 512K 321K 191K\r\n\r\nUptime is 345 days, 20 hours, 14 minutes\r\nSMFITS1> (enable) " (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=yes re=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=yes re=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "1 131072K 68696K 62376K 32768K 13566K 19202K 512K 321K 191K\r\n\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "1 131072K 68696K 62376K 32768K 13566K 19202K 512K 321K 191K\r\n\r\n" 1 131072K 68696K 62376K 32768K 13566K 19202K 512K 321K 191K expect: continuing expect expect: does "Uptime is 345 days, 20 hours, 14 minutes\r\nSMFITS1> (enable) " (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=yes re=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=yes re=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "Uptime is 345 days, 20 hours, 14 minutes\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "Uptime is 345 days, 20 hours, 14 minutes\r\n" Uptime is 345 days, 20 hours, 14 minutes expect: continuing expect expect: does "SMFITS1> (enable) " (spawn_id exp4) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no "^[^\n\r *]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*SMFITS1> (enable)*"? gate=yes re=no "^[^\n\r]*SMFITS1> \(enable\)([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?."? Gate "*SMFITS1> (enable)*"? gate=yes re=no "^--More--[\r\n]+"? Gate "--More--*"? gate=no "[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=no "[^\r\n]*Press to cont[^\r\n]*"? Gate "*Press to cont*"? gate=no "^ *--More--[^\n\r]*"? Gate "*--More--*"? gate=no "^<-+ More -+>[^\n\r]*"? Gate "<* More *>*"? gate=no expect: timed out Error: TIMEOUT reached From jhb at clemson.edu Sun Jun 14 16:42:13 2015 From: jhb at clemson.edu (Joseph Bernard) Date: Sun, 14 Jun 2015 16:42:13 +0000 Subject: [rancid] CentOS 6.6, recent upgrade, now all CatOS devices broken In-Reply-To: <557D083C.9070503@easymail.us> References: <557D083C.9070503@easymail.us> Message-ID: <3CCD3A4281B1DE4389199E6110356E86812D8DB9@EXCH10MBX03.CAMPUS.CU.CLEMSON.EDU> What version were you using previously? Thanks, Joseph B. -----Original Message----- From: Rancid-discuss [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Brooks Bridges Sent: Sunday, June 14, 2015 12:51 AM To: rancid-discuss at shrubbery.net Subject: [rancid] CentOS 6.6, recent upgrade, now all CatOS devices broken Had a system with Rancid installed from the EPEL repos. All switches were configured and everything worked great. Someone ran a yum update on the system yesterday, and it upgraded the package to "rancid-3.2-1.el6.x86_64", which broke all kinds of crap. The first indication was the Socket module bug, which I got corrected, however now all CatOS devices in the network are "down" and cannot get the configs pulled from them. After adding a bit of debugging, the logs show: smfits1.domain.com: missed cmd(s): write term all,show port ifindex,show module,dir sup-microcode:,dir sup-bootflash:,dir bootflash:,dir slot0:,show flash,show running-config,write term,show boot,dir slot1:,show inventory raw smfits1.domain.com - Clean_run is: 0 <--- added debugging statement smfits1.domain.com - found_end is: 0 <--- added debugging statement smfits1.domain.com: End of run not found After many hours of digging, I've determined that the issue appears to be that clogin is not properly recognizing the end of the output of the commands. Debug log is attached showing this behavior when running "show version", where it gets to the end of the output from the command and then just hangs there. It appears that none of the regexes are being matched when the command prompt pops back up after the command completes (perhaps it's only looking for a 'more' prompt?). Since the FTP site still doesn't let you download anything from the .old directory (and doesn't show any indication that it's going to be fixed anytime soon) I can't get my hands on the old version to compare it against. My lack of perl, tcl, and expect skills are quite an obstacle here as well. Any pointers in how to hammer this thing back into submission? -- -Brooks Bridges From bbridges at easymail.us Sun Jun 14 16:45:15 2015 From: bbridges at easymail.us (Brooks Bridges) Date: Sun, 14 Jun 2015 09:45:15 -0700 Subject: [rancid] CentOS 6.6, recent upgrade, now all CatOS devices broken In-Reply-To: <3CCD3A4281B1DE4389199E6110356E86812D8DB9@EXCH10MBX03.CAMPUS.CU.CLEMSON.EDU> References: <557D083C.9070503@easymail.us> <3CCD3A4281B1DE4389199E6110356E86812D8DB9@EXCH10MBX03.CAMPUS.CU.CLEMSON.EDU> Message-ID: That's the thing, I don't really remember and I can't seem to find anything in the EPEL repo that says what the previous version was. -Brooks Bridges On June 14, 2015 9:42:13 AM PDT, Joseph Bernard wrote: >What version were you using previously? > >Thanks, >Joseph B. > >-----Original Message----- >From: Rancid-discuss [mailto:rancid-discuss-bounces at shrubbery.net] On >Behalf Of Brooks Bridges >Sent: Sunday, June 14, 2015 12:51 AM >To: rancid-discuss at shrubbery.net >Subject: [rancid] CentOS 6.6, recent upgrade, now all CatOS devices >broken > >Had a system with Rancid installed from the EPEL repos. All switches >were configured and everything worked great. Someone ran a yum update >on the system yesterday, and it upgraded the package to >"rancid-3.2-1.el6.x86_64", which broke all kinds of crap. > >The first indication was the Socket module bug, which I got corrected, >however now all CatOS devices in the network are "down" and cannot get >the configs pulled from them. After adding a bit of debugging, the >logs >show: > >smfits1.domain.com: missed cmd(s): write term all,show port >ifindex,show module,dir sup-microcode:,dir sup-bootflash:,dir >bootflash:,dir slot0:,show flash,show running-config,write term,show >boot,dir slot1:,show inventory raw >smfits1.domain.com - Clean_run is: 0 <--- added debugging statement >smfits1.domain.com - found_end is: 0 <--- added debugging statement >smfits1.domain.com: End of run not found > >After many hours of digging, I've determined that the issue appears to >be that clogin is not properly recognizing the end of the output of the >commands. Debug log is attached showing this behavior when running >"show version", where it gets to the end of the output from the command >and then just hangs there. It appears that none of the regexes are >being matched when the command prompt pops back up after the command >completes (perhaps it's only looking for a 'more' prompt?). > >Since the FTP site still doesn't let you download anything from the >.old directory (and doesn't show any indication that it's going to be >fixed anytime soon) I can't get my hands on the old version to compare >it against. My lack of perl, tcl, and expect skills are quite an >obstacle here as well. > >Any pointers in how to hammer this thing back into submission? > >-- >-Brooks Bridges > >_______________________________________________ >Rancid-discuss mailing list >Rancid-discuss at shrubbery.net >http://www.shrubbery.net/mailman/listinfo/rancid-discuss -------------- next part -------------- An HTML attachment was scrubbed... URL: From rancid at gheek.net Sun Jun 14 17:00:22 2015 From: rancid at gheek.net (Lance Vermilion) Date: Sun, 14 Jun 2015 10:00:22 -0700 Subject: [rancid] CentOS 6.6, recent upgrade, now all CatOS devices broken In-Reply-To: References: <557D083C.9070503@easymail.us> <3CCD3A4281B1DE4389199E6110356E86812D8DB9@EXCH10MBX03.CAMPUS.CU.CLEMSON.EDU> Message-ID: http://www.cyberciti.biz/faq/yum-history-command/ That should help you to figure out what was installed. Yum history package-list rancid Then Yum history info # On Jun 14, 2015 9:45 AM, "Brooks Bridges" wrote: > That's the thing, I don't really remember and I can't seem to find > anything in the EPEL repo that says what the previous version was. > > > -Brooks Bridges > > > On June 14, 2015 9:42:13 AM PDT, Joseph Bernard wrote: >> >> What version were you using previously? >> >> Thanks, >> Joseph B. >> >> -----Original Message----- >> From: Rancid-discuss [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Brooks Bridges >> Sent: Sunday, June 14, 2015 12:51 AM >> To: rancid-discuss at shrubbery.net >> Subject: [rancid] CentOS 6.6, recent upgrade, now all CatOS devices broken >> >> Had a system with Rancid installed from the EPEL repos. All switches were configured and everything worked great. Someone ran a yum update on the system yesterday, and it upgraded the package to "rancid-3.2-1.el6.x86_64", which broke all kinds of crap. >> >> The first indication was the Socket module bug, which I got corrected, however now all CatOS devices in the network are "down" and cannot get the configs pulled from them. After adding a bit of debugging, the logs >> show: >> >> smfits1.domain.com: missed cmd(s): write term >> all,show port ifindex,show module,dir sup-microcode:,dir sup-bootflash:,dir bootflash:,dir slot0:,show flash,show running-config,write term,show boot,dir slot1:,show inventory raw >> smfits1.domain.com - Clean_run is: 0 <--- added debugging statement >> smfits1.domain.com - found_end is: 0 <--- added debugging statement >> smfits1.domain.com: End of run not found >> >> After many hours of digging, I've determined that the issue appears to be that clogin is not properly recognizing the end of the output of the commands. Debug log is attached showing this behavior when running "show version", where it gets to the end of the output from the command and then just hangs there. It appears that none of the regexes are being matched when the command prompt pops back up after the command completes (perhaps it's only looking for a 'more' prompt?). >> >> Since the FTP site still doesn't let you download anything from the .old directory (and doesn't show any indication that it's going to be fixed anytime soon) I can't get my hands on the old version to compare it against. My lack of perl, tcl, and expect skills are quite an obstacle here as well. >> >> Any pointers in how to hammer this thing back into submission? >> >> -- >> -Brooks Bridges >> >> ------------------------------ >> >> Rancid-discuss mailing list >> Rancid-discuss at shrubbery.net >> http://www.shrubbery.net/mailman/listinfo/rancid-discuss >> >> > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jhb at clemson.edu Sun Jun 14 17:08:47 2015 From: jhb at clemson.edu (Joseph Bernard) Date: Sun, 14 Jun 2015 17:08:47 +0000 Subject: [rancid] CentOS 6.6, recent upgrade, now all CatOS devices broken In-Reply-To: References: <557D083C.9070503@easymail.us> <3CCD3A4281B1DE4389199E6110356E86812D8DB9@EXCH10MBX03.CAMPUS.CU.CLEMSON.EDU> Message-ID: <3CCD3A4281B1DE4389199E6110356E86812D9272@EXCH10MBX03.CAMPUS.CU.CLEMSON.EDU> I think this was the previous version: https://kojipkgs.fedoraproject.org/packages/rancid/3.1/3.el6/x86_64/ Thanks, Joseph B. From: Rancid-discuss [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Brooks Bridges Sent: Sunday, June 14, 2015 12:45 PM To: rancid-discuss at shrubbery.net Subject: Re: [rancid] CentOS 6.6, recent upgrade, now all CatOS devices broken That's the thing, I don't really remember and I can't seem to find anything in the EPEL repo that says what the previous version was. -Brooks Bridges On June 14, 2015 9:42:13 AM PDT, Joseph Bernard > wrote: What version were you using previously? Thanks, Joseph B. -----Original Message----- From: Rancid-discuss [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Brooks Bridges Sent: Sunday, June 14, 2015 12:51 AM To: rancid-discuss at shrubbery.net Subject: [rancid] CentOS 6.6, recent upgrade, now all CatOS devices broken Had a system with Rancid installed from the EPEL repos. All switches were configured and everything worked great. Someone ran a yum update on the system yesterday, and it upgraded the package to "rancid-3.2-1.el6.x86_64", which broke all kinds of crap. The first indication was the Socket module bug, which I got corrected, however now all CatOS devices in the network are "down" and cannot get the configs pulled from them. After adding a bit of debugging, the logs show: smfits1.domain.com: missed cmd(s): write te! rm all,show port ifindex,show module,dir sup-microcode:,dir sup-bootflash:,dir bootflash:,dir slot0:,show flash,show running-config,write term,show boot,dir slot1:,show inventory raw smfits1.domain.com - Clean_run is: 0 <--- added debugging statement smfits1.domain.com - found_end is: 0 <--- added debugging statement smfits1.domain.com: End of run not found After many hours of digging, I've determined that the issue appears to be that clogin is not properly recognizing the end of the output of the commands. Debug log is attached showing this behavior when running "show version", where it gets to the end of the output from the command and then just hangs there. It appears that none of the regexes are being matched when the command prompt pops back up after the command completes (perhaps it's only looking for a 'more' prom! pt?). Since the FTP site still doesn't let you download anything from the .old directory (and doesn't show any indication that it's going to be fixed anytime soon) I can't get my hands on the old version to compare it against. My lack of perl, tcl, and expect skills are quite an obstacle here as well. Any pointers in how to hammer this thing back into submission? -- -Brooks Bridges ________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo/rancid-discuss -------------- next part -------------- An HTML attachment was scrubbed... URL: From bbridges at easymail.us Sun Jun 14 17:16:42 2015 From: bbridges at easymail.us (Brooks Bridges) Date: Sun, 14 Jun 2015 10:16:42 -0700 Subject: [rancid] CentOS 6.6, recent upgrade, now all CatOS devices broken In-Reply-To: References: <557D083C.9070503@easymail.us> <3CCD3A4281B1DE4389199E6110356E86812D8DB9@EXCH10MBX03.CAMPUS.CU.CLEMSON.EDU> Message-ID: <557DB6FA.2020509@easymail.us> TIL about yum history. Neat. Thanks! So yeah, rancid-3.1-3.el6.x86_64 was the previous version. I'll grab that version from Joseph's link and diff it against the current one and see what I can find. -Brooks Bridges On 6/14/2015 10:00 AM, Lance Vermilion wrote: > > http://www.cyberciti.biz/faq/yum-history-command/ > > That should help you to figure out what was installed. > > Yum history package-list rancid > > Then > > Yum history info # > > On Jun 14, 2015 9:45 AM, "Brooks Bridges" > wrote: > > That's the thing, I don't really remember and I can't seem to find > anything in the EPEL repo that says what the previous version was. > > > -Brooks Bridges > > > On June 14, 2015 9:42:13 AM PDT, Joseph Bernard > wrote: > > What version were you using previously? > > Thanks, > Joseph B. > > -----Original Message----- > From: Rancid-discuss [mailto:rancid-discuss-bounces at shrubbery.net > ] On Behalf Of Brooks Bridges > Sent: Sunday, June 14, 2015 12:51 AM > To:rancid-discuss at shrubbery.net > Subject: [rancid] CentOS 6.6, recent upgrade, now all CatOS devices broken > > Had a system with Rancid installed from the EPEL repos. All switches were configured and everything worked great. Someone ran a yum update on the system yesterday, and it upgraded the package to "rancid-3.2-1.el6.x86_64", which broke all kinds of crap. > > The first indication was the Socket module bug, which I got corrected, however now all CatOS devices in the network are "down" and cannot get the configs pulled from them. After adding a bit of debugging, the logs > show: > > smfits1.domain.com : missed cmd(s): write term > all,show port ifindex,show module,dir sup-microcode:,dir sup-bootflash:,dir bootflash:,dir slot0:,show flash,show running-config,write term,show boot,dir slot1:,show inventory raw > smfits1.domain.com - Clean_run is: 0 <--- added debugging statement > smfits1.domain.com - found_end is: 0 <--- added debugging statement > smfits1.domain.com : End of run not found > > After many hours of digging, I've determined that the issue appears to be that clogin is not properly recognizing the end of the output of the commands. Debug log is attached showing this behavior when running "show version", where it gets to the end of the output from the command and then just hangs there. It appears that none of the regexes are being matched when the command prompt pops back up after the command completes (perhaps it's only looking for a 'more' prompt?). > > Since the FTP site still doesn't let you download anything from the .old directory (and doesn't show any indication that it's going to be fixed anytime soon) I can't get my hands on the old version to compare it against. My lack of perl, tcl, and expect skills are quite an obstacle here as well. > > Any pointers in how to hammer this thing back into submission? > > -- > -Brooks Bridges > > ------------------------------------------------------------------------ > > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > > _______________________________________________ Rancid-discuss > mailing list Rancid-discuss at shrubbery.net > > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bbridges at easymail.us Sun Jun 14 17:21:45 2015 From: bbridges at easymail.us (Brooks Bridges) Date: Sun, 14 Jun 2015 10:21:45 -0700 Subject: [rancid] CentOS 6.6, recent upgrade, now all CatOS devices broken In-Reply-To: <557DB6FA.2020509@easymail.us> References: <557D083C.9070503@easymail.us> <3CCD3A4281B1DE4389199E6110356E86812D8DB9@EXCH10MBX03.CAMPUS.CU.CLEMSON.EDU> <557DB6FA.2020509@easymail.us> Message-ID: <557DB829.5070804@easymail.us> Yeah, there's definitely some pretty significant changes in how the prompt is being handled. From 3.1-3.el6.x86_64: # match cisco config mode prompts too, such as router(config-if)#, # but catalyst does not change in this fashion. regsub -all {^(.{1,11}).*([#>])$} $prompt {\1([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?} reprompt } else { set reprompt $prompt } From 3.2-1.el6.x86_64: # match cisco config mode prompts too, such as router(config-if)#, # but catalyst does not change in this fashion. regsub -lineanchor -- {^(.{1,11}).*([#>])$} $prompt {\1} reprompt regsub -all -- {[\\]$} $reprompt {} reprompt append reprompt {([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?} } else { set reprompt $prompt } Now we're into "Hell if I know regex well enough to figure that out" territory. Anyone care to take a crack at it? I'm more than happy to be the guinea pig. -Brooks Bridges On 6/14/2015 10:16 AM, Brooks Bridges wrote: > TIL about yum history. Neat. Thanks! > > So yeah, rancid-3.1-3.el6.x86_64 was the previous version. I'll grab > that version from Joseph's link and diff it against the current one > and see what I can find. > -Brooks Bridges > On 6/14/2015 10:00 AM, Lance Vermilion wrote: >> >> http://www.cyberciti.biz/faq/yum-history-command/ >> >> That should help you to figure out what was installed. >> >> Yum history package-list rancid >> >> Then >> >> Yum history info # >> >> On Jun 14, 2015 9:45 AM, "Brooks Bridges" > > wrote: >> >> That's the thing, I don't really remember and I can't seem to >> find anything in the EPEL repo that says what the previous >> version was. >> >> >> -Brooks Bridges >> >> >> On June 14, 2015 9:42:13 AM PDT, Joseph Bernard > > wrote: >> >> What version were you using previously? >> >> Thanks, >> Joseph B. >> >> -----Original Message----- >> From: Rancid-discuss [mailto:rancid-discuss-bounces at shrubbery.net >> ] On Behalf Of Brooks Bridges >> Sent: Sunday, June 14, 2015 12:51 AM >> To:rancid-discuss at shrubbery.net >> >> Subject: [rancid] CentOS 6.6, recent upgrade, now all CatOS devices broken >> >> Had a system with Rancid installed from the EPEL repos. All switches were configured and everything worked great. Someone ran a yum update on the system yesterday, and it upgraded the package to "rancid-3.2-1.el6.x86_64", which broke all kinds of crap. >> >> The first indication was the Socket module bug, which I got corrected, however now all CatOS devices in the network are "down" and cannot get the configs pulled from them. After adding a bit of debugging, the logs >> show: >> >> smfits1.domain.com : missed cmd(s): write term >> all,show port ifindex,show module,dir sup-microcode:,dir sup-bootflash:,dir bootflash:,dir slot0:,show flash,show running-config,write term,show boot,dir slot1:,show inventory raw >> smfits1.domain.com - Clean_run is: 0 <--- added debugging statement >> smfits1.domain.com - found_end is: 0 <--- added debugging statement >> smfits1.domain.com : End of run not found >> >> After many hours of digging, I've determined that the issue appears to be that clogin is not properly recognizing the end of the output of the commands. Debug log is attached showing this behavior when running "show version", where it gets to the end of the output from the command and then just hangs there. It appears that none of the regexes are being matched when the command prompt pops back up after the command completes (perhaps it's only looking for a 'more' prompt?). >> >> Since the FTP site still doesn't let you download anything from the .old directory (and doesn't show any indication that it's going to be fixed anytime soon) I can't get my hands on the old version to compare it against. My lack of perl, tcl, and expect skills are quite an obstacle here as well. >> >> Any pointers in how to hammer this thing back into submission? >> >> -- >> -Brooks Bridges >> >> ------------------------------------------------------------------------ >> >> Rancid-discuss mailing list >> Rancid-discuss at shrubbery.net >> >> http://www.shrubbery.net/mailman/listinfo/rancid-discuss >> >> _______________________________________________ Rancid-discuss >> mailing list Rancid-discuss at shrubbery.net >> >> http://www.shrubbery.net/mailman/listinfo/rancid-discuss >> > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss -------------- next part -------------- An HTML attachment was scrubbed... URL: From jabbyjim at gmail.com Mon Jun 15 15:21:51 2015 From: jabbyjim at gmail.com (Jim P) Date: Mon, 15 Jun 2015 11:21:51 -0400 Subject: [rancid] hlogin timing out Message-ID: FIXED / SOLVED So I found out what I was doing wrong. I was using autoenable improperly in the .cloginrc file I had no idea that you needed to add a "1" or a "0" for it to actually happen. It makes sense now to test with the clogin / hlogin scripts. Once I got it working there (which everyone was telling me to do multiple times) it was easy to take care of. Thanks for all of your help. I hope to pay it forward soon! -------------- next part -------------- An HTML attachment was scrubbed... URL: From bradleymcwilliams1 at gmail.com Wed Jun 17 13:13:30 2015 From: bradleymcwilliams1 at gmail.com (Brad M) Date: Wed, 17 Jun 2015 08:13:30 -0500 Subject: [rancid] CVS Message-ID: I had emailed yesterday and got the example of how to create a diff using svn. I use cvs and tried replacing the svn for cvs and get an error. cvs diff -r{2015-05-01}:{2015-05-30} | mail rancid-Public but getting "Can't parse date/time" The goal is to run a report for last month. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lee.e.rian at census.gov Wed Jun 17 18:26:14 2015 From: lee.e.rian at census.gov (Lee Rian (CENSUS/TCO FED)) Date: Wed, 17 Jun 2015 18:26:14 +0000 Subject: [rancid] CVS In-Reply-To: References: Message-ID: ?The man page is your friend: -D date_spec Use the most recent revision no later than date_spec. date_spec is a single argument, a date description specifying a date in the past. Office 365 however is not my friend. My apologies for whatever weird formatting comes across Try something like: cvs diff -D "1 month ago" -U 5 yourDeviceName which gives you a cumulative what's changed between then & now. Regards, Lee ________________________________ From: Rancid-discuss on behalf of Brad M Sent: Wednesday, June 17, 2015 9:13 AM To: rancid-discuss at shrubbery.net Subject: [rancid] CVS I had emailed yesterday and got the example of how to create a diff using svn. I use cvs and tried replacing the svn for cvs and get an error. cvs diff -r{2015-05-01}:{2015-05-30} | mail rancid-Public but getting "Can't parse date/time" The goal is to run a report for last month. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bha.Qaqish at NITC.gov.jo Tue Jun 23 09:45:44 2015 From: bha.Qaqish at NITC.gov.jo (bha Qaqish) Date: Tue, 23 Jun 2015 09:45:44 +0000 Subject: [rancid] ASR problem In-Reply-To: <20150612164743.GC71403@shrubbery.net> References: <20150612164743.GC71403@shrubbery.net> Message-ID: I did not alter any line Just routers.db -----Original Message----- From: heasley [mailto:heas at shrubbery.net] Sent: Friday, June 12, 2015 7:48 PM To: bha Qaqish Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] ASR problem Fri, Jun 12, 2015 at 07:35:06AM +0000, bha Qaqish: > Dear > am running rancid 2.3.2 and everything was oki , until I had added a new ASR 1k router , every time rancid run it send to me notification change for this router . > this is sample of the changes > + ........... /bootflash/tracelogs/inst_cleanup........ > > What is the problem , and how could I resolve it . is that the actual output or have you altered the line for some reason? perhaps provide a little more context around that line. From jeff at terida.com Tue Jun 23 19:13:25 2015 From: jeff at terida.com (Jeff MacDonald) Date: Tue, 23 Jun 2015 16:13:25 -0300 Subject: [rancid] Stuck on a fresh install.. empty logs etc. Message-ID: <916430B6-1226-4483-9261-0FF9E67C3773@terida.com> Hi, I actually installed Rancid over 5 years ago? and its time for a fresh install. It?s still beats me up pretty bad :) I?m installing from source on Ubuntu Trusty. I?m trying to configure this for a Dell Power Connect 5448 and a Juniper SSG-5. I recalled in the past that drancid was needed. Going without that assumption this time. Here is my .cloginrc ======= add user firewall1.toronto.terida.net rancid add password firewall1.toronto.terida.net BEEFCAKE add method firewall1.toronto.terida.net ssh add user switch1.toronto.terida.net rancid add password switch1.toronto.terida.net BEEFCAKE add method switch1.toronto.terida.net telnet add autoenable switch1.toronto.terida.net {1} ======== And here is my router.db switch1.toronto.terida.net:smc:up firewall1.toronto.terida.net:netscreen:up ========= rancid at default-ubuntu-1404:/usr/local/rancid/var$ rm logs/*;rancid-run rancid at default-ubuntu-1404:/usr/local/rancid/var$ vim logs/terida.20150623.185731 starting: Tue Jun 23 18:57:31 UTC 2015 ending: Tue Jun 23 18:57:31 UTC 2015 ========== my rancid.conf is pretty plain right now. I setup a LIST_OF_GROUPS and left the rest as default for now. Cool eh? Not sure next steps. ? Jeff MacDonald -------------- next part -------------- An HTML attachment was scrubbed... URL: From lind108 at hotmail.com Tue Jun 23 22:40:33 2015 From: lind108 at hotmail.com (lind108 at hotmail.com) Date: Tue, 23 Jun 2015 22:40:33 +0000 Subject: [rancid] Stuck on a fresh install.. empty logs etc. In-Reply-To: <916430B6-1226-4483-9261-0FF9E67C3773@terida.com> References: <916430B6-1226-4483-9261-0FF9E67C3773@terida.com> Message-ID: If you installed the latest and greatest (3.x+), your router.db needs updated to use the proper delimiters (semicolons now instead of colons to allow for IPv6 addresses). Example: Hostname;cisco;up -----Original Message----- From: Jeff MacDonald Sender: "Rancid-discuss" Date: Tue, 23 Jun 2015 16:13:25 To: Subject: [rancid] Stuck on a fresh install.. empty logs etc. _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo/rancid-discuss From jeff at terida.com Wed Jun 24 11:50:33 2015 From: jeff at terida.com (Jeff MacDonald) Date: Wed, 24 Jun 2015 08:50:33 -0300 Subject: [rancid] Stuck on a fresh install.. empty logs etc. In-Reply-To: References: <916430B6-1226-4483-9261-0FF9E67C3773@terida.com> Message-ID: Yup. That was it everyone. Thanks muchly. Frustrating.. but simple :) the Juniper started working right away. I have some issues with the dell but I?ll make a separate thread about that once i do some debuggin. ? Jeff MacDonald > On Jun 23, 2015, at 7:40 PM, wrote: > > If you installed the latest and greatest (3.x+), your router.db needs updated to use the proper delimiters (semicolons now instead of colons to allow for IPv6 addresses). > > Example: > Hostname;cisco;up > > > -----Original Message----- > From: Jeff MacDonald > Sender: "Rancid-discuss" > Date: Tue, 23 Jun 2015 16:13:25 > To: > Subject: [rancid] Stuck on a fresh install.. empty logs etc. > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Josten at hs-niederrhein.de Thu Jun 25 07:35:01 2015 From: Michael.Josten at hs-niederrhein.de (Josten, Michael) Date: Thu, 25 Jun 2015 09:35:01 +0200 Subject: [rancid] fresh rancid 3.2 install Message-ID: <9BDA0B754D62C64FBE6B0CFFA429C47A3CC314B29B@prometheus> Hello everyone, I did a fresh rancid 3.2 install on a test machine before upgrading our productive system from 2.3.8 to 3.2. We use many Brocade switches ( FCX, ICX, MLX, RX, SX Series ) and some ProCurves. I already read through the mailing list to find someone with similar problems and NO, my router.db file doesn't contain ":" as separator :P OS is Ubuntu 14.04. Rancid compiled with default options. Logfile says sth. like this ---------------------------------------------- Trying to get all of the configs. mlxkr01: missed cmd(s): all commands mlxkr01 flogin error: Error: TIMEOUT reached mlxkr01: End of run not found ! ===================================== Getting missed routers: round 1. mlxkr01: missed cmd(s): all commands mlxkr01 flogin error: Error: TIMEOUT reached mlxkr01: End of run not found ! ===================================== Getting missed routers: round 2. mlxkr01: missed cmd(s): all commands mlxkr01 flogin error: Error: TIMEOUT reached mlxkr01: End of run not found ---------------------------------------------- Clogin works on all devices. flogin also works, BUT when I try to send a command while being logged in with flogin the dreadfull "TIMEOUT reached" occurs which doesn't happen when I am logged in via clogin. Files and folders should all have correct rights and flags With best regards Michael Josten -------------- next part -------------- An HTML attachment was scrubbed... URL: From alan.mckinnon at gmail.com Thu Jun 25 07:46:33 2015 From: alan.mckinnon at gmail.com (Alan McKinnon) Date: Thu, 25 Jun 2015 09:46:33 +0200 Subject: [rancid] fresh rancid 3.2 install In-Reply-To: <9BDA0B754D62C64FBE6B0CFFA429C47A3CC314B29B@prometheus> References: <9BDA0B754D62C64FBE6B0CFFA429C47A3CC314B29B@prometheus> Message-ID: <558BB1D9.2090005@gmail.com> On 25/06/2015 09:35, Josten, Michael wrote: > Hello everyone, > > > > I did a fresh rancid 3.2 install on a test machine before upgrading our > productive system from 2.3.8 to 3.2. > We use many Brocade switches ( FCX, ICX, MLX, RX, SX Series ) and some > ProCurves. I already read through the mailing list > to find someone with similar problems and NO, my router.db file doesn?t > contain ?:? as separator :P > OS is Ubuntu 14.04. Rancid compiled with default options. Logfile says > sth. like this > > > > ---------------------------------------------- > > > > Trying to get all of the configs. > > mlxkr01: missed cmd(s): all commands > > mlxkr01 flogin error: Error: TIMEOUT reached > > mlxkr01: End of run not found > > ! > > ===================================== > > Getting missed routers: round 1. > > mlxkr01: missed cmd(s): all commands > > mlxkr01 flogin error: Error: TIMEOUT reached > > mlxkr01: End of run not found > > ! > > ===================================== > > Getting missed routers: round 2. > > mlxkr01: missed cmd(s): all commands > > mlxkr01 flogin error: Error: TIMEOUT reached > > mlxkr01: End of run not found > > ---------------------------------------------- > > > > Clogin works on all devices. > flogin also works, BUT when I try to send a command while being logged > in with flogin the dreadfull ?TIMEOUT reached? occurs > which doesn?t happen when I am logged in via clogin. > > > Files and folders should all have correct rights and flags Michael, "dreadful" is the right word :-) All the errors you post are rancid-speak for "something went wrong", but the code is in no position to give you any clues. First: did the faulty devices work OK on 2.3.8? are the problem devices all of one type? (i.e. something like all your Ciscos still work great, but all the HPs now fail, or similar?) You probably need to run the *rancid scripts individually on each device using the -d debug flag, then go through the output line by line seeing exactly where it went wrong. Considering how kit works and what rancid has to do to get the job done, there's a huge numnber of places where the process can bork. -- Alan McKinnon alan.mckinnon at gmail.com From Michael.Josten at hs-niederrhein.de Thu Jun 25 09:27:17 2015 From: Michael.Josten at hs-niederrhein.de (Josten, Michael) Date: Thu, 25 Jun 2015 11:27:17 +0200 Subject: [rancid] fresh rancid 3.2 install In-Reply-To: <558BB1D9.2090005@gmail.com> References: <9BDA0B754D62C64FBE6B0CFFA429C47A3CC314B29B@prometheus> <558BB1D9.2090005@gmail.com> Message-ID: <9BDA0B754D62C64FBE6B0CFFA429C47A3CC314B29C@prometheus> -----Urspr?ngliche Nachricht----- Von: Rancid-discuss [mailto:rancid-discuss-bounces at shrubbery.net] Im Auftrag von Alan McKinnon Gesendet: Donnerstag, 25. Juni 2015 09:47 An: rancid-discuss at shrubbery.net Betreff: Re: [rancid] fresh rancid 3.2 install On 25/06/2015 09:35, Josten, Michael wrote: > Hello everyone, > > > > I did a fresh rancid 3.2 install on a test machine before upgrading > our productive system from 2.3.8 to 3.2. > We use many Brocade switches ( FCX, ICX, MLX, RX, SX Series ) and some > ProCurves. I already read through the mailing list to find someone > with similar problems and NO, my router.db file doesn't contain ":" as > separator :P OS is Ubuntu 14.04. Rancid compiled with default options. > Logfile says sth. like this > > > > ---------------------------------------------- > > > > Trying to get all of the configs. > > mlxkr01: missed cmd(s): all commands > > mlxkr01 flogin error: Error: TIMEOUT reached > > mlxkr01: End of run not found > > ! > > ===================================== > > Getting missed routers: round 1. > > mlxkr01: missed cmd(s): all commands > > mlxkr01 flogin error: Error: TIMEOUT reached > > mlxkr01: End of run not found > > ! > > ===================================== > > Getting missed routers: round 2. > > mlxkr01: missed cmd(s): all commands > > mlxkr01 flogin error: Error: TIMEOUT reached > > mlxkr01: End of run not found > > ---------------------------------------------- > > > > Clogin works on all devices. > flogin also works, BUT when I try to send a command while being logged > in with flogin the dreadfull "TIMEOUT reached" occurs which doesn't > happen when I am logged in via clogin. > > > Files and folders should all have correct rights and flags Michael, "dreadful" is the right word :-) All the errors you post are rancid-speak for "something went wrong", but the code is in no position to give you any clues. First: did the faulty devices work OK on 2.3.8? are the problem devices all of one type? (i.e. something like all your Ciscos still work great, but all the HPs now fail, or similar?) You probably need to run the *rancid scripts individually on each device using the -d debug flag, then go through the output line by line seeing exactly where it went wrong. Considering how kit works and what rancid has to do to get the job done, there's a huge numnber of places where the process can bork. -- Alan McKinnon alan.mckinnon at gmail.com Hello Alan, yes the devices work fine on 2.3.8. I checked devices of several types on version 3.2. Running the script in debug mode fixed one problem so far. I forgot to add "add autoenable * 1" to my .cloginrc file. However we have a new problem now ;) This is the log for "rancid-run" on a Brocade ICX6610 switch stack running on ironware 8.x ===================================== Trying to get all of the configs. icxdckr02: found unexpected command - "write term" icxdckr02: missed cmd(s): show running-config icxdckr02: End of run not found ! ===================================== I wondered why rancid needs the command "write term" for brocade devices ( which don't support the command ) so I looked up /usr/local/rancid/etc/rancid.types.base and commented out all foundry commands and added foundry;command;foundry::ShowRun;show running-config Which resulted in Trying to get all of the configs. icxdckr02: missed cmd(s): all commands icxdckr02: End of run not found ! ===================================== Getting missed routers: round 1. icxdckr02: missed cmd(s): all commands icxdckr02: End of run not found ! ===================================== Getting missed routers: round 2. icxdckr02: missed cmd(s): all commands icxdckr02: End of run not found ! Writing "show running" via flogin is no problem. Best regards Michael From jeff at terida.com Thu Jun 25 12:43:47 2015 From: jeff at terida.com (Jeff MacDonald) Date: Thu, 25 Jun 2015 09:43:47 -0300 Subject: [rancid] Dell power connect 5448 - Debugging. Message-ID: Right now I've tried both SMC and DELL for the router type in router.db and It tells me that telnet connection is refused. I suspect this is because the login prompts are not quite what those scripts expect. So I'm digging around a bit to see what is up. Below is both the outputs when trying SMC vs Dell for types.. DELL : Trying to get all of the configs. switch1.toronto.terida.net : missed cmd(s): all commands switch1.toronto.terida.net dllogin error: Error: Connection closed (telnet): switch1.toronto.terida.net switch1.toronto.terida.net : End of run not found SMC: Trying to get all of the configs. switch1.toronto.terida.net : missed cmd(s): all commands switch1.toronto.terida.net hlogin error: Error: Connection Refused (telnet) 0: found end switch1.toronto.terida.net : End of run not found ! I know that telnet works cause I can copy and paste my creds from .cloginrc and I get in just fine. My router.db uses semicolons, so that is good. And I have it configured with a Juniper SSG device which works fine. If you could point me at some debugging tips that would be great. Thanks Jeff. ? Jeff MacDonald -------------- next part -------------- An HTML attachment was scrubbed... URL: From alan.mckinnon at gmail.com Thu Jun 25 13:18:35 2015 From: alan.mckinnon at gmail.com (Alan McKinnon) Date: Thu, 25 Jun 2015 15:18:35 +0200 Subject: [rancid] fresh rancid 3.2 install In-Reply-To: <9BDA0B754D62C64FBE6B0CFFA429C47A3CC314B29C@prometheus> References: <9BDA0B754D62C64FBE6B0CFFA429C47A3CC314B29B@prometheus> <558BB1D9.2090005@gmail.com> <9BDA0B754D62C64FBE6B0CFFA429C47A3CC314B29C@prometheus> Message-ID: <558BFFAB.1000109@gmail.com> On 25/06/2015 11:27, Josten, Michael wrote: > > > -----Urspr?ngliche Nachricht----- > Von: Rancid-discuss [mailto:rancid-discuss-bounces at shrubbery.net] Im Auftrag von Alan McKinnon > Gesendet: Donnerstag, 25. Juni 2015 09:47 > An: rancid-discuss at shrubbery.net > Betreff: Re: [rancid] fresh rancid 3.2 install > > On 25/06/2015 09:35, Josten, Michael wrote: >> Hello everyone, >> >> >> >> I did a fresh rancid 3.2 install on a test machine before upgrading >> our productive system from 2.3.8 to 3.2. >> We use many Brocade switches ( FCX, ICX, MLX, RX, SX Series ) and some >> ProCurves. I already read through the mailing list to find someone >> with similar problems and NO, my router.db file doesn't contain ":" as >> separator :P OS is Ubuntu 14.04. Rancid compiled with default options. >> Logfile says sth. like this >> >> >> >> ---------------------------------------------- >> >> >> >> Trying to get all of the configs. >> >> mlxkr01: missed cmd(s): all commands >> >> mlxkr01 flogin error: Error: TIMEOUT reached >> >> mlxkr01: End of run not found >> >> ! >> >> ===================================== >> >> Getting missed routers: round 1. >> >> mlxkr01: missed cmd(s): all commands >> >> mlxkr01 flogin error: Error: TIMEOUT reached >> >> mlxkr01: End of run not found >> >> ! >> >> ===================================== >> >> Getting missed routers: round 2. >> >> mlxkr01: missed cmd(s): all commands >> >> mlxkr01 flogin error: Error: TIMEOUT reached >> >> mlxkr01: End of run not found >> >> ---------------------------------------------- >> >> >> >> Clogin works on all devices. >> flogin also works, BUT when I try to send a command while being logged >> in with flogin the dreadfull "TIMEOUT reached" occurs which doesn't >> happen when I am logged in via clogin. >> >> >> Files and folders should all have correct rights and flags > > Michael, > > "dreadful" is the right word :-) > > All the errors you post are rancid-speak for "something went wrong", but the code is in no position to give you any clues. First: > > did the faulty devices work OK on 2.3.8? > are the problem devices all of one type? (i.e. something like all your Ciscos still work great, but all the HPs now fail, or similar?) > > You probably need to run the *rancid scripts individually on each device using the -d debug flag, then go through the output line by line seeing exactly where it went wrong. Considering how kit works and what rancid has to do to get the job done, there's a huge numnber of places where the process can bork. > > > > > -- > Alan McKinnon > alan.mckinnon at gmail.com > > > Hello Alan, > > yes the devices work fine on 2.3.8. I checked devices of several types on version 3.2. > Running the script in debug mode fixed one problem so far. I forgot to add "add autoenable * 1" to my .cloginrc file. > However we have a new problem now ;) > > This is the log for "rancid-run" on a Brocade ICX6610 switch stack running on ironware 8.x > ===================================== > Trying to get all of the configs. > icxdckr02: found unexpected command - "write term" > icxdckr02: missed cmd(s): show running-config > icxdckr02: End of run not found > ! > ===================================== > > I wondered why rancid needs the command "write term" for brocade devices ( which don't support the command ) > so I looked up /usr/local/rancid/etc/rancid.types.base and commented out all foundry commands and added > > foundry;command;foundry::ShowRun;show running-config > > Which resulted in > > > Trying to get all of the configs. > icxdckr02: missed cmd(s): all commands > icxdckr02: End of run not found > ! > ===================================== > Getting missed routers: round 1. > icxdckr02: missed cmd(s): all commands > icxdckr02: End of run not found > ! > ===================================== > Getting missed routers: round 2. > icxdckr02: missed cmd(s): all commands > icxdckr02: End of run not found > ! > > Writing "show running" via flogin is no problem. Based on experience with getting kit to play nicely with rancid, I'd say there's something wrong with your prompt, as rancid can't identify the line that starts the "show running-config" output. Do you get the normal "PROMPT FOUND" output in debug mode? Any clues in the output around the area where it searches for command output? These problems often turn out to be regex-related. -- Alan McKinnon alan.mckinnon at gmail.com From Michael.Josten at hs-niederrhein.de Fri Jun 26 05:20:19 2015 From: Michael.Josten at hs-niederrhein.de (Josten, Michael) Date: Fri, 26 Jun 2015 07:20:19 +0200 Subject: [rancid] fresh rancid 3.2 install In-Reply-To: <558BFFAB.1000109@gmail.com> References: <9BDA0B754D62C64FBE6B0CFFA429C47A3CC314B29B@prometheus> <558BB1D9.2090005@gmail.com> <9BDA0B754D62C64FBE6B0CFFA429C47A3CC314B29C@prometheus> <558BFFAB.1000109@gmail.com> Message-ID: <9BDA0B754D62C64FBE6B0CFFA429C47A3CC314B29D@prometheus> Based on experience with getting kit to play nicely with rancid, I'd say there's something wrong with your prompt, as rancid can't identify the line that starts the "show running-config" output. Do you get the normal "PROMPT FOUND" output in debug mode? Any clues in the output around the area where it searches for command output? These problems often turn out to be regex-related. -- Alan McKinnon alan.mckinnon at gmail.com Good morning, i did some testing with flogin and a brocade ICX6610 device. The script seems to struggle when the returned output exceeds one page. Command output with lots of output don't work, just as "show run". If I got this right, this might explain the "end of run not found" in my rancid logs. Instead of returning to user prompt flogin repeats spawn id exp0 sent < > spawn id exp6 sent < > I just try to make my best guess here. cheerio Michael From alan.mckinnon at gmail.com Fri Jun 26 06:09:02 2015 From: alan.mckinnon at gmail.com (Alan McKinnon) Date: Fri, 26 Jun 2015 08:09:02 +0200 Subject: [rancid] fresh rancid 3.2 install In-Reply-To: <9BDA0B754D62C64FBE6B0CFFA429C47A3CC314B29D@prometheus> References: <9BDA0B754D62C64FBE6B0CFFA429C47A3CC314B29B@prometheus> <558BB1D9.2090005@gmail.com> <9BDA0B754D62C64FBE6B0CFFA429C47A3CC314B29C@prometheus> <558BFFAB.1000109@gmail.com> <9BDA0B754D62C64FBE6B0CFFA429C47A3CC314B29D@prometheus> Message-ID: <558CEC7E.8000404@gmail.com> On 26/06/2015 07:20, Josten, Michael wrote: > Based on experience with getting kit to play nicely with rancid, I'd say there's something wrong with your prompt, as rancid can't identify the line that starts the "show running-config" output. > > Do you get the normal "PROMPT FOUND" output in debug mode? > Any clues in the output around the area where it searches for command output? > > These problems often turn out to be regex-related. > > > -- > Alan McKinnon > alan.mckinnon at gmail.com > > > > Good morning, > > i did some testing with flogin and a brocade ICX6610 device. The script seems to struggle when the returned output exceeds one page. Command output > with lots of output don't work, just as "show run". If I got this right, this might explain the "end of run not found" in my rancid logs. > Instead of returning to user prompt flogin repeats > > spawn id exp0 sent < > > spawn id exp6 sent < > > > I just try to make my best guess here. That makes a lot of sense actually, expect is getting confused. I don't have access to any brocade devices at all or your device output, so it's hard to help further with specifics. I'm assuming flogin manages the login portion OK, and runs the command properly. Have you checked for end-of-page markers (eg <--more-->)? You should also be able to run flogin with -c to check that it gives back the correct output. Compare with what you get logging in manually and typing commands directly. -- Alan McKinnon alan.mckinnon at gmail.com From bha.Qaqish at NITC.gov.jo Fri Jun 26 10:30:41 2015 From: bha.Qaqish at NITC.gov.jo (bha Qaqish) Date: Fri, 26 Jun 2015 10:30:41 +0000 Subject: [rancid] ASR problem In-Reply-To: References: <20150612164743.GC71403@shrubbery.net> Message-ID: Dear Any one have this issue in ASR -----Original Message----- From: Rancid-discuss [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of bha Qaqish Sent: Tuesday, June 23, 2015 12:46 PM To: heasley Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] ASR problem I did not alter any line Just routers.db -----Original Message----- From: heasley [mailto:heas at shrubbery.net] Sent: Friday, June 12, 2015 7:48 PM To: bha Qaqish Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] ASR problem Fri, Jun 12, 2015 at 07:35:06AM +0000, bha Qaqish: > Dear > am running rancid 2.3.2 and everything was oki , until I had added a new ASR 1k router , every time rancid run it send to me notification change for this router . > this is sample of the changes > + ........... /bootflash/tracelogs/inst_cleanup........ > > What is the problem , and how could I resolve it . is that the actual output or have you altered the line for some reason? perhaps provide a little more context around that line. _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo/rancid-discuss From delmiroc at gmail.com Sat Jun 27 19:50:32 2015 From: delmiroc at gmail.com (Delmiro Campelo) Date: Sat, 27 Jun 2015 14:50:32 -0500 Subject: [rancid] Dell 5524 switch Message-ID: Hello guys, I'm running into a little issue when trying to run rancid against a Dell 5524 switch, it simply gets stuck, and the run doesn't ever complete. Have you run into a similar issue? maybe a log I can look into? There is a suggestion to clear the systemname in link below, is this a good approach? and where would you do this from? is it modifying the dell script in rancid or some other place? http://en.community.dell.com/support-forums/network-switches/f/866/t/19450014 Thanks for your help as always. -------------- next part -------------- An HTML attachment was scrubbed... URL: From wilby at wilbysanchez.com Tue Jun 30 07:21:15 2015 From: wilby at wilbysanchez.com (Wilby Sanchez) Date: Tue, 30 Jun 2015 09:21:15 +0200 Subject: [rancid] HP Switch HP-E2620-24 Message-ID: Hello everyone, i had installed CENTOS 7, rancid 3.1.4 from EPEL repo, someone know where i can use the command of the switch -- Wilby S?nchez Tejada http://www.wilbysanchez.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From wilby at wilbysanchez.com Tue Jun 30 07:54:10 2015 From: wilby at wilbysanchez.com (Wilby Sanchez) Date: Tue, 30 Jun 2015 09:54:10 +0200 Subject: [rancid] HP Switch HP-E2620-24 In-Reply-To: References: Message-ID: Also, when i tray to sent the command happed that: # ./clogin -t 90 -c "show version" 192.168.100.85 HP-E2620-24-PoEP# HP-E2620-24-PoEP# terminal length 0 Invalid input: 0 P.D.: i add the command in "rancid.types.base" hp;script;hrancid hp;login;hlogin hp;show version 2015-06-30 9:21 GMT+02:00 Wilby Sanchez : > Hello everyone, > > i had installed CENTOS 7, rancid 3.1.4 from EPEL repo, someone know where > i can use the command of the switch > > > > > -- > > > Wilby S?nchez Tejada > http://www.wilbysanchez.com > -- Wilby S?nchez Tejada http://www.wilbysanchez.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ml at netfence.it Tue Jun 30 08:52:33 2015 From: ml at netfence.it (Andrea Venturoli) Date: Tue, 30 Jun 2015 10:52:33 +0200 Subject: [rancid] HP 1920 Message-ID: <559258D1.6070709@netfence.it> Hello. I've got a couple of HP 1920 switches I'd like Rancid to connect to. However what I get is: > /usr/local/libexec/rancid/clogin switch-ufficio.xxxxxxx > switch-ufficio.xxxxxxx > spawn telnet switch-ufficio.xxxxxxx > Trying 192.168.110.10... > Connected to switch-ufficio.xxxxxxx. > Escape character is '^]'. > > ****************************************************************************** > * Copyright (c) 2010-2015 Hewlett-Packard Development Company, L.P. * > * Without the owner's prior written consent, * > * no decompiling or reverse-engineering shall be allowed. * > ****************************************************************************** > > > Login authentication > > > Username:admin > Password: > enable > ^ > % Unrecognized command found at '^' position. > ^C$ I believe the command "enable" has to be substituted with "_cmdline-mode on", but found no driver implementing this. Does such a driver exist? Anyone using this switch (or any similar one)? bye & Thanks av. From jethro.binks at strath.ac.uk Tue Jun 30 09:36:05 2015 From: jethro.binks at strath.ac.uk (Jethro R Binks) Date: Tue, 30 Jun 2015 10:36:05 +0100 (BST) Subject: [rancid] HP 1920 In-Reply-To: <559258D1.6070709@netfence.it> References: <559258D1.6070709@netfence.it> Message-ID: I've done some experimental work on this with rancid 3, at the moment it relies on some changes to core rancid which I need to think through and feedback to the project, and I haven't looked at it in a while. I know I won't get a chance to do so for a while yet either unfortunately. For the record, this is an HP Comware switch, but is one of a set of models that has a fairly useless limited CLI, unless you enter the secret command and magic code to enable access to the full CLI, which requires the special handling. Jethro. On Tue, 30 Jun 2015, Andrea Venturoli wrote: > Hello. > > I've got a couple of HP 1920 switches I'd like Rancid to connect to. > > However what I get is: > > /usr/local/libexec/rancid/clogin switch-ufficio.xxxxxxx > > switch-ufficio.xxxxxxx > > spawn telnet switch-ufficio.xxxxxxx > > Trying 192.168.110.10... > > Connected to switch-ufficio.xxxxxxx. > > Escape character is '^]'. > > > > ****************************************************************************** > > * Copyright (c) 2010-2015 Hewlett-Packard Development Company, L.P. > > * > > * Without the owner's prior written consent, > > * > > * no decompiling or reverse-engineering shall be allowed. > > * > > ****************************************************************************** > > > > > > Login authentication > > > > > > Username:admin > > Password: > > enable > > ^ > > % Unrecognized command found at '^' position. > > ^C$ > > I believe the command "enable" has to be substituted with "_cmdline-mode on", > but found no driver implementing this. > > Does such a driver exist? > Anyone using this switch (or any similar one)? > > bye & Thanks > av. > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > . . . . . . . . . . . . . . . . . . . . . . . . . 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 ml at netfence.it Tue Jun 30 09:42:50 2015 From: ml at netfence.it (Andrea Venturoli) Date: Tue, 30 Jun 2015 11:42:50 +0200 Subject: [rancid] HP 1920 In-Reply-To: References: <559258D1.6070709@netfence.it> Message-ID: <5592649A.8060503@netfence.it> On 06/30/15 11:31, Wilby Sanchez wrote: > Andrea, > > Can you try: > /usr/libexec/rancid/./clogin -t 90 -c "show version" IP_ADDRESS > > only to see it's working proper I had to change the command a bit, but I don't think that matters; however it doesn't work: > $ /usr/local/libexec/rancid/clogin -t 90 -c "show version" switch-ufficio.xxxxxxx > switch-ufficio.xxxxxxx > spawn telnet switch-ufficio.xxxxxxx > Trying 192.168.110.10... > Connected to switch-ufficio.xxxxxxx. > Escape character is '^]'. > > ****************************************************************************** > * Copyright (c) 2010-2015 Hewlett-Packard Development Company, L.P. * > * Without the owner's prior written consent, * > * no decompiling or reverse-engineering shall be allowed. * > ****************************************************************************** > > > Login authentication > > > Username:admin > Password: > enable > ^ > % Unrecognized command found at '^' position. > Please, let me know if you want me to try anything else. bye & Thanks av. From ml at netfence.it Tue Jun 30 09:55:31 2015 From: ml at netfence.it (Andrea Venturoli) Date: Tue, 30 Jun 2015 11:55:31 +0200 Subject: [rancid] HP 1920 In-Reply-To: References: <559258D1.6070709@netfence.it> Message-ID: <55926793.80504@netfence.it> On 06/30/15 11:36, Jethro R Binks wrote: > I've done some experimental work on this with rancid 3, at the moment it > relies on some changes to core rancid which I need to think through and > feedback to the project, and I haven't looked at it in a while. I know I > won't get a chance to do so for a while yet either unfortunately. Thanks anyway. Please let me know if you make any step ahead. > For the record, this is an HP Comware switch, but is one of a set of > models that has a fairly useless limited CLI, unless you enter the secret > command and magic code to enable access to the full CLI, which requires > the special handling. Exactly. It's supposed to be this way by default, but I read you should be able to delete the magic code and then get into the full CLI as soon as you login. I've been unsuccesful on this however. bye & Thanks av. From jethro.binks at strath.ac.uk Tue Jun 30 11:07:35 2015 From: jethro.binks at strath.ac.uk (Jethro R Binks) Date: Tue, 30 Jun 2015 12:07:35 +0100 (BST) Subject: [rancid] HP 1920 In-Reply-To: <55926793.80504@netfence.it> References: <559258D1.6070709@netfence.it> <55926793.80504@netfence.it> Message-ID: On Tue, 30 Jun 2015, Andrea Venturoli wrote: > Exactly. > It's supposed to be this way by default, but I read you should be able to > delete the magic code and then get into the full CLI as soon as you login. > I've been unsuccesful on this however. I've never seen that information! Not sure I believe it. 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 electric at multihost.no Tue Jun 30 17:04:03 2015 From: electric at multihost.no (Fredrik Lund) Date: Tue, 30 Jun 2015 19:04:03 +0200 Subject: [rancid] Problem with configs name when using IP instead of DNS in .cloginrc/router.db file Message-ID: <3d6ab1cbd5ff597d0ca89a8922e164f3@multihost.no> Hi, I am setting up RANCID and so far so good, but we have a large amount of switches, routers etc in our net. So im trying to categorize them, so that it would make sense to search after a backup when we need it. I have understood that Expect doesnt support RegEx, so i have to use wildcard(*) loosely. I coudnt figure out glob any how. Lets say i have a naming standard on our nodes something as: node.location.number.domain, is it possible to make clogin do something like: node*.location.number*.domain? Or is it possible to use ip ranges? Something like 10.0.0.1-75 or 10.0.1.0-10.0.2.30 I could ofcourse just do: add user 10.0.* {foo} add password 10.0.* {bar} add method 10.0.* {foobar} And make router.db something like: 10.0.4.25;cisco;up 10.0.0.39;cisco;up But when i run rancid-run and the specific group, the saved ouput under ../../rancid/GROUP/configs will be the IP and NOT the DNS. Is it possible to make RANCID save the config output as the DNS name? Hope ive made my questions clear. Thanks in forward. From heas at shrubbery.net Tue Jun 30 18:42:06 2015 From: heas at shrubbery.net (heasley) Date: Tue, 30 Jun 2015 18:42:06 +0000 Subject: [rancid] Problem with configs name when using IP instead of DNS in .cloginrc/router.db file In-Reply-To: <3d6ab1cbd5ff597d0ca89a8922e164f3@multihost.no> References: <3d6ab1cbd5ff597d0ca89a8922e164f3@multihost.no> Message-ID: <20150630184206.GB51241@shrubbery.net> Tue, Jun 30, 2015 at 07:04:03PM +0200, Fredrik Lund: > Hi, > > I am setting up RANCID and so far so good, but we have a large amount > of switches, routers etc in our net. > So im trying to categorize them, so that it would make sense to search > after a backup when we need it. > > I have understood that Expect doesnt support RegEx, so i have to use > wildcard(*) loosely. I coudnt figure out glob any how. man 7 glob > Lets say i have a naming standard on our nodes something as: > node.location.number.domain, is it possible to make clogin do something > like: node*.location.number*.domain? Or is it possible to use ip ranges? > Something like 10.0.0.1-75 or 10.0.1.0-10.0.2.30 > > I could ofcourse just do: > add user 10.0.* {foo} > add password 10.0.* {bar} > add method 10.0.* {foobar} it does not support ranges like that. See the manpage for glob. > And make router.db something like: > 10.0.4.25;cisco;up > 10.0.0.39;cisco;up > > But when i run rancid-run and the specific group, the saved ouput under > ../../rancid/GROUP/configs will be the IP and NOT the DNS. Is it > possible to make RANCID save the config output as the DNS name? only by using the name in the router.db. We discussed the idea of having another router.db field that defined the filename, but have not added this feature. > Hope ive made my questions clear. > Thanks in forward. > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss From heas at shrubbery.net Tue Jun 30 18:56:07 2015 From: heas at shrubbery.net (heasley) Date: Tue, 30 Jun 2015 18:56:07 +0000 Subject: [rancid] HP Switch HP-E2620-24 In-Reply-To: References: Message-ID: <20150630185607.GD51241@shrubbery.net> Tue, Jun 30, 2015 at 09:54:10AM +0200, Wilby Sanchez: > Also, when i tray to sent the command happed that: > > # ./clogin -t 90 -c "show version" 192.168.100.85 > > HP-E2620-24-PoEP# > HP-E2620-24-PoEP# terminal length 0 > Invalid input: 0 hlogin for hp. > P.D.: i add the command in "rancid.types.base" > > hp;script;hrancid > hp;login;hlogin > hp;show version Please do not change rancid.types.base. if you wish to change a definition, create a new one in rancid.types.conf under a new name. and, that last line is not the correct syntax, and hp is does not support adding commands like this in rancid 3.1. > > > 2015-06-30 9:21 GMT+02:00 Wilby Sanchez : > > > Hello everyone, > > > > i had installed CENTOS 7, rancid 3.1.4 from EPEL repo, someone know where > > i can use the command of the switch I do not understand this question. From jeff at terida.com Tue Jun 30 19:28:36 2015 From: jeff at terida.com (Jeff MacDonald) Date: Tue, 30 Jun 2015 16:28:36 -0300 Subject: [rancid] Git.. first time config Message-ID: <66A0C0B5-0488-4C4A-BD25-763E93E96869@terida.com> Hi, I find the docs? lacking and I?m trying to set rancid up with git. Do I just - ensure all ssh keys are in place - do a clone of a repo I?ve already created and then point CVSROOT to the .git directory inside my clone - set RCSSYS to git - run rancid-cvs ? ? Jeff MacDonald -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Tue Jun 30 19:36:09 2015 From: heas at shrubbery.net (heasley) Date: Tue, 30 Jun 2015 19:36:09 +0000 Subject: [rancid] Git.. first time config In-Reply-To: <66A0C0B5-0488-4C4A-BD25-763E93E96869@terida.com> References: <66A0C0B5-0488-4C4A-BD25-763E93E96869@terida.com> Message-ID: <20150630193609.GF51241@shrubbery.net> Tue, Jun 30, 2015 at 04:28:36PM -0300, Jeff MacDonald: > Hi, > > I find the docs? lacking and I?m trying to set rancid up with git. > > Do I just > > - ensure all ssh keys are in place > - do a clone of a repo I?ve already created and then point CVSROOT to the .git directory inside my clone create empty and git add router.db and dir configs > - set RCSSYS to git > - run rancid-cvs this won't do anything; it does not support remote repos.