From Nati.Danan at 888holdings.com Mon Sep 2 15:45:28 2019 From: Nati.Danan at 888holdings.com (Nati Danan) Date: Mon, 2 Sep 2019 15:45:28 +0000 Subject: [rancid] Rancid upgrade 3.2 to 3.9 Message-ID: Hello I am using Rancid for the last 3 years and would like to upgrade it now to latest version which is 3.9. Current version is 3.2.99 after upgrade of my colleague a year ago I believe. my Expect version is 5.44.1.15 if it helps. I've downloaded the last tar.gz file to the box and read the UPGRADE file which wasn't very straight forward for base version of 3.2.x. Would you please advise about upgrade process and what files should be backed up as we did some tweaks for some vendor files. Thanks Nati Nati Danan Prod. Network Engineer [cid:image001.png at 01D561BD.F4E577D0] 85A Medinat Hayehudim st. Herzliya Pituach, Israel P.O.Box 4127 Phone: +972.732.889.492 Mobile: +972.50.2264554 Email: Nati.Danan at 888holdings.com Web: www.888.com [cid:image005.png at 01D561BD.F4E577D0] [cid:image006.png at 01D561BD.F4E577D0] [cid:image007.png at 01D561BD.F4E577D0] This email message and its attachments are for the sole use of the intended recipient(s) and may not be shared with any other party. They may contain confidential information of 888 Holdings plc or its direct and indirect subsidiaries (together, the "888 Group") and are to be regarded as confidential information under any non-disclosure agreement. Any review, use, disclosure or distribution by persons or entities other than the intended recipient(s) is prohibited. Nothing in this message is capable of or intended to create any legally binding obligation. The 888 Group will only ever assume a legally binding obligation where recorded in a written agreement duly executed by the authorized signatories of the relevant 888 Group company. The 888 Group accepts no liability for any personal views expressed in this message. If you are not the intended recipient, please contact the sender by return and destroy all copies of the original message and its attachments. Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 4646 bytes Desc: image001.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.jpg Type: image/jpeg Size: 655 bytes Desc: image002.jpg URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image005.png Type: image/png Size: 1311 bytes Desc: image005.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image006.png Type: image/png Size: 1114 bytes Desc: image006.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image007.png Type: image/png Size: 1413 bytes Desc: image007.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image008.png Type: image/png Size: 587 bytes Desc: image008.png URL: From heas at shrubbery.net Tue Sep 3 23:05:27 2019 From: heas at shrubbery.net (john heasley) Date: Tue, 3 Sep 2019 23:05:27 +0000 Subject: [rancid] Rancid upgrade 3.2 to 3.9 In-Reply-To: References: Message-ID: <20190903230527.GO12489@shrubbery.net> Mon, Sep 02, 2019 at 03:45:28PM +0000, Nati Danan: > Hello > > I am using Rancid for the last 3 years and would like to upgrade it now to latest version which is 3.9. > Current version is 3.2.99 after upgrade of my colleague a year ago I believe. > my Expect version is 5.44.1.15 if it helps. > > I've downloaded the last tar.gz file to the box and read the UPGRADE file which wasn't very straight forward for base version of 3.2.x. > Would you please advise about upgrade process and what files should be backed up as we did some tweaks for some vendor files. Fair. I've added some text; lmk if I've missed the mark. diff --git a/UPGRADING b/UPGRADING index b33f5ace..633bdac4 100644 --- a/UPGRADING +++ b/UPGRADING @@ -1,10 +1,27 @@ +RANCiD 2.3 to >2.3 +Assuming that no other specifics in the sections below apply to your +installation or environment, then upgrades should be straight-forward. + - review the CHANGES file for anything that may affect you, + - backup your current installation, + - optionally disable rancid's cron jobs and waiting for running + collections to finish. + - follow the quick installation instructions in the README, using the + same arguments to configure that were used for the previous version + (if any), and installing the new directly over the previous. + - it may be necessary to merge new .conf files (rancd.conf, lg.conf, + rancid.types.conf) with the existing files, which will not have been + over-written. + - re-enable rancid's cron jobs I did not comment specifically about files to backup, as I feel that one could be extra careful by backing-up everything or one could backup only the files are locally customized (.conf & router.db files). From LukeS at coloradovalley.com Mon Sep 9 19:16:00 2019 From: LukeS at coloradovalley.com (Luke Smith) Date: Mon, 9 Sep 2019 19:16:00 +0000 Subject: [rancid] [EXTERNAL] - Re: Tellabs equipment In-Reply-To: <20190826230221.GB67324@shrubbery.net> References: <20190826230221.GB67324@shrubbery.net> Message-ID: Thanks for the response John, >> I'm new to configuring Rancid, so forgive me if I'm not asking the right questions. I've turned up a rancid server, I can get Cisco, Adtran, and Foundry no issues. I'm moving over to my Tellabs now and I've found a rancid-ssi github that I was able to find a tlrancid.in file on the commands needed and clogin works fine to get me into the device, but when I actually start a run, it doesn't get into the device, what happens in the logs I get the following error: >> >> Trying to get all of the configs. >> exec(tlrancid) failed router manufacturer tellabs: No such file or >> directory >> >> I went ahead and in the rancid.types.base I added the following: >I recommend using rancid.types.conf instead; see the comment at the top of .base. I get what you mean for .conf instead of .base ... I put in base as that was the file location I had saved in my notes. >> # Tellabs >> tellabs;script;tlrancid >> tellabs;login;clogin >> >> If I manually run the tlrancid or clogin command, it gets in just fine. However, I don't actually get the scripts to run ... so I'm assuming I'm missing a correlation between files. Any help would be appreciated. >> > make sure that tlrancid is executable, has the correct interpretter as its first line and it in rancid's path according to rancid.conf:PATH or make it a FQPN in the rancid.types.conf entry. I have this as the first couple of lines, is this what you mean? #! /bin/expect -- ## ## $Id: clogin.in 3943 2019-01-18 16:18:34Z heas $ ## Confidentiality Notice: The information herein transmitted or attached is intended only for the person or entity to which this e-mail is addressed and may contain confidential and/or legally privileged material. Any review, retransmission, dissemination, other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender immediately and delete the material from any and all computers, servers, and e-mail programs. Any views or opinions presented are solely those of the author and do not necessarily represent those of the company. From jm+rancid at roth.lu Wed Sep 11 06:36:15 2019 From: jm+rancid at roth.lu (jm+rancid at roth.lu) Date: Wed, 11 Sep 2019 08:36:15 +0200 Subject: [rancid] FTP: unable to download files from .old Message-ID: <613a6a25-dce6-d947-6991-a63b002acb4e@roth.lu> Hi there, Just wanted to let you know that files can't be downloaded from the ".old" directory: ftp> get rancid-3.3.0.tar.gz local: rancid-3.3.0.tar.gz remote: rancid-3.3.0.tar.gz 550 rancid-3.3.0.tar.gz: Permission denied. Also, the symlink in the main directory does not actually point to the latest version which is 3.9 ;-) lrwxr-xr-x? 1 7053? rancid?????? 17 Nov 12? 2017 rancid-latest.tar.gz -> rancid-3.7.tar.gz Best regards, Marki From gmourani at gmail.com Thu Sep 19 17:44:16 2019 From: gmourani at gmail.com (Gerhard Mourani) Date: Thu, 19 Sep 2019 13:44:16 -0400 Subject: [rancid] Foundry backup never complete Message-ID: <5B1D40A9-419E-4312-B725-D422C4A9B811@gmail.com> Hello, I?ve Rancid version 3.7.6 installed on Linux and try to run the backup on one of my Foundry switch with IP 10.105.224.10 without success. 1 - SSH directly into the switch with credential worked. 2 - su rancid -c "clogin 10.105.224.10? worked. 3 - su rancid -c "flogin 10.105.224.10? worked. 4 - su rancid -c "clogin -c 'show version' 10.105.224.10? worked. 5 - su - rancid -c "rancid-run foundry? doesn?t work and stay forever. A ps ax | grep rancid command return only the following all the time (no par .. line after the control_rancid): 11538 pts/5 S+ 0:00 su rancid -c rancid-run foundry 11539 ? Ss 0:00 /bin/sh /usr/bin/rancid-run foundry 11543 ? S 0:00 /bin/sh /usr/bin/rancid-run foundry 11548 ? S 0:00 /bin/sh /usr/bin/control_rancid foundry Here the output the the su rancid -c "flogin -d 10.105.224.10? command: su rancid -c "flogin -d 10.105.224.10" 10.105.224.10 spawn ssh -x -l admin 10.105.224.10 parent: waiting for sync byte parent: telling child to go ahead parent: now unsynchronized from child spawn: returns {32165} 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 'Telnet server disabled' is 'Telnet server disabled'. Activating booster. Gate keeper glob pattern for '(Host key not found |The authenticity of host .* be established)' is ''. Not usable, disabling the performance 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 ' is 'Offending key for '. Activating booster. Gate keeper glob pattern for '^warning: remote host denied authentication agent forwarding.' is 'warning: remote host denied authentication agent forwarding?'. 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 '@[^ ]+ ([Pp]assword):' is '@* ?assword:'. Activating booster. Gate keeper glob pattern for 'Enter passphrase.*: ' is 'Enter passphrase*: '. Activating booster. Gate keeper glob pattern for 'User' is 'User'. Activating booster. Gate keeper glob pattern for '([Pp]assword):' is '?assword:'. Activating booster. expect: does "" (spawn_id exp3) match regular expression "(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 "Telnet server disabled"? Gate "Telnet server disabled"? gate=no expect: does "" (spawn_id exp3) match glob pattern "unknown host\r"? no expect: does "" (spawn_id exp3) match glob pattern "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established)"? (No Gate, RE only) gate=yes re=no "HOST IDENTIFICATION HAS CHANGED"? Gate "HOST IDENTIFICATION HAS CHANGED"? gate=no "Offending key for "? Gate "Offending key for "? gate=no expect: does "" (spawn_id exp3) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no expect: does "" (spawn_id exp3) match regular expression "(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 "@[^\r\n]+ ([Pp]assword):"? Gate "@* ?assword:"? gate=no "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no "User"? Gate "User"? gate=no "([Pp]assword):"? Gate "?assword:"? gate=no ">"? no "Login invalid"? no Password: expect: does "Password:" (spawn_id exp3) match regular expression "(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 "Telnet server disabled"? Gate "Telnet server disabled"? gate=no expect: does "Password:" (spawn_id exp3) match glob pattern "unknown host\r"? no expect: does "Password:" (spawn_id exp3) match glob pattern "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established)"? (No Gate, RE only) gate=yes re=no "HOST IDENTIFICATION HAS CHANGED"? Gate "HOST IDENTIFICATION HAS CHANGED"? gate=no "Offending key for "? Gate "Offending key for "? gate=no expect: does "Password:" (spawn_id exp3) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no expect: does "Password:" (spawn_id exp3) match regular expression "(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 "@[^\r\n]+ ([Pp]assword):"? Gate "@* ?assword:"? gate=no "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no "User"? Gate "User"? gate=no "([Pp]assword):"? Gate "?assword:"? gate=yes re=yes expect: set expect_out(0,string) "Password:" expect: set expect_out(1,string) "Password" expect: set expect_out(spawn_id) "exp3" expect: set expect_out(buffer) "Password:" send: sending ?uhgfyrtradT$\r" to { exp3 human_write: avg_arr=0.200000/0.100000 1/shape=2.500000 min=0.200000 max=1.000000 } expect: continuing expect expect: does "" (spawn_id exp3) match regular expression "(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 "Telnet server disabled"? Gate "Telnet server disabled"? gate=no expect: does "" (spawn_id exp3) match glob pattern "unknown host\r"? no expect: does "" (spawn_id exp3) match glob pattern "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established)"? (No Gate, RE only) gate=yes re=no "HOST IDENTIFICATION HAS CHANGED"? Gate "HOST IDENTIFICATION HAS CHANGED"? gate=no "Offending key for "? Gate "Offending key for "? gate=no expect: does "" (spawn_id exp3) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no expect: does "" (spawn_id exp3) match regular expression "(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 "@[^\r\n]+ ([Pp]assword):"? Gate "@* ?assword:"? gate=no "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no "User"? Gate "User"? gate=no "([Pp]assword):"? Gate "?assword:"? gate=no ">"? no "Login invalid"? no expect: does "\r\n" (spawn_id exp3) match regular expression "(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 "Telnet server disabled"? Gate "Telnet server disabled"? gate=no expect: does "\r\n" (spawn_id exp3) match glob pattern "unknown host\r"? no expect: does "\r\n" (spawn_id exp3) match glob pattern "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established)"? (No Gate, RE only) gate=yes re=no "HOST IDENTIFICATION HAS CHANGED"? Gate "HOST IDENTIFICATION HAS CHANGED"? gate=no "Offending key for "? Gate "Offending key for "? gate=no expect: does "\r\n" (spawn_id exp3) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no expect: does "\r\n" (spawn_id exp3) match regular expression "(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 "@[^\r\n]+ ([Pp]assword):"? Gate "@* ?assword:"? gate=no "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no "User"? Gate "User"? gate=no "([Pp]assword):"? Gate "?assword:"? gate=no ">"? no "Login invalid"? no SSH at GKER-SW-1515-10-105-224-10> expect: does "\r\nSSH at GKER-SW-1515-10-105-224-10>" (spawn_id exp3) match regular expression "(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 "Telnet server disabled"? Gate "Telnet server disabled"? gate=no expect: does "\r\nSSH at GKER-SW-1515-10-105-224-10>" (spawn_id exp3) match glob pattern "unknown host\r"? no expect: does "\r\nSSH at GKER-SW-1515-10-105-224-10>" (spawn_id exp3) match glob pattern "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established)"? (No Gate, RE only) gate=yes re=no "HOST IDENTIFICATION HAS CHANGED"? Gate "HOST IDENTIFICATION HAS CHANGED"? gate=no "Offending key for "? Gate "Offending key for "? gate=no expect: does "\r\nSSH at GKER-SW-1515-10-105-224-10>" (spawn_id exp3) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no expect: does "\r\nSSH at GKER-SW-1515-10-105-224-10>" (spawn_id exp3) match regular expression "(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 "@[^\r\n]+ ([Pp]assword):"? Gate "@* ?assword:"? gate=no "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no "User"? Gate "User"? gate=no "([Pp]assword):"? Gate "?assword:"? gate=no ">"? yes expect: set expect_out(0,string) ">" expect: set expect_out(spawn_id) "exp3" expect: set expect_out(buffer) "\r\nSSH at GKER-SW-1515-10-105-224-10>" send: sending "enable\r" to { exp3 human_write: avg_arr=0.200000/0.100000 1/shape=2.500000 min=0.200000 max=1.000000 } Gate keeper glob pattern for 'User' is 'User'. Activating booster. Gate keeper glob pattern for '[Pp]assword:' is '?assword:'. Activating booster. expect: does "" (spawn_id exp3) match regular expression "User"? Gate "User"? gate=no "[Pp]assword:"? Gate "?assword:"? gate=no "#"? no "(enable)"? no "denied"? no "Incorrect username or password"? no "% Bad passwords"? no enable expect: does "enable" (spawn_id exp3) match regular expression "User"? Gate "User"? gate=no "[Pp]assword:"? Gate "?assword:"? gate=no "#"? no "(enable)"? no "denied"? no "Incorrect username or password"? no "% Bad passwords"? no User Name: expect: does "enable\r\nUser Name:" (spawn_id exp3) match regular expression "User"? Gate "User"? gate=yes re=yes expect: set expect_out(0,string) "User" expect: set expect_out(spawn_id) "exp3" expect: set expect_out(buffer) "enable\r\nUser" send: sending "admin\r" to { exp3 human_write: avg_arr=0.200000/0.100000 1/shape=2.500000 min=0.200000 max=1.000000 } expect: continuing expect expect: does " Name:" (spawn_id exp3) match regular expression "User"? Gate "User"? gate=no "[Pp]assword:"? Gate "?assword:"? gate=no "#"? no "(enable)"? no "denied"? no "Incorrect username or password"? no "% Bad passwords"? no admin expect: does " Name:admin" (spawn_id exp3) match regular expression "User"? Gate "User"? gate=no "[Pp]assword:"? Gate "?assword:"? gate=no "#"? no "(enable)"? no "denied"? no "Incorrect username or password"? no "% Bad passwords"? no Password: expect: does " Name:admin\r\nPassword:" (spawn_id exp3) match regular expression "User"? Gate "User"? gate=no "[Pp]assword:"? Gate "?assword:"? gate=yes re=yes expect: set expect_out(0,string) "Password:" expect: set expect_out(spawn_id) "exp3" expect: set expect_out(buffer) " Name:admin\r\nPassword:" send: sending "uhgfyrtradT$\r" to { exp3 human_write: avg_arr=0.200000/0.100000 1/shape=2.500000 min=0.200000 max=1.000000 } expect: continuing expect expect: does "" (spawn_id exp3) match regular expression "User"? Gate "User"? gate=no "[Pp]assword:"? Gate "?assword:"? gate=no "#"? no "(enable)"? no "denied"? no "Incorrect username or password"? no "% Bad passwords"? no SSH at GKER-SW-1515-10-105-224-10# expect: does "\r\nSSH at GKER-SW-1515-10-105-224-10#" (spawn_id exp3) match regular expression "User"? Gate "User"? gate=no "[Pp]assword:"? Gate "?assword:"? gate=no "#"? yes expect: set expect_out(0,string) "#" expect: set expect_out(spawn_id) "exp3" expect: set expect_out(buffer) "\r\nSSH at GKER-SW-1515-10-105-224-10#" send: sending "\r" to { exp3 human_write: avg_arr=0.200000/0.100000 1/shape=2.500000 min=0.200000 max=1.000000 } Gate keeper glob pattern for '[ ]+' is ''. Not usable, disabling the performance booster. Gate keeper glob pattern for '^.+#' is '*#'. Activating booster. expect: does "" (spawn_id exp3) match regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=no "^.+#"? Gate "*#"? gate=no SSH at GKER-SW-1515-10-105-224-10# expect: does "\r\nSSH at GKER-SW-1515-10-105-224-10#" (spawn_id exp3) 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) "exp3" expect: set expect_out(buffer) "\r\n" expect: continuing expect expect: does "SSH at GKER-SW-1515-10-105-224-10#" (spawn_id exp3) match regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=no "^.+#"? Gate "*#"? gate=yes re=yes expect: set expect_out(0,string) "SSH at GKER-SW-1515-10-105-224-10#" expect: set expect_out(spawn_id) "exp3" expect: set expect_out(buffer) "SSH at GKER-SW-1515-10-105-224-10#? Regards, From Wayne.Eisenberg at CarolinasIT.com Fri Sep 20 15:05:11 2019 From: Wayne.Eisenberg at CarolinasIT.com (Wayne Eisenberg) Date: Fri, 20 Sep 2019 15:05:11 +0000 Subject: [rancid] exit.. no, logout Message-ID: Hi, I am dealing with a Dell 6224 switch that has an interesting quirk. The powerconnect and cisco-sb types both do the job of logging in and retrieving information, however at the very end when rancid is trying to logout, it leaves enabled mode with "exit", and then tries to logoff the switch completely with "exit" - except that that command does not exist in disabled mode, only 'quit' and 'logout'. The result is that rancid gets stuck in a loop issuing the 'exit' command, gets a 'command doesn't exist' response and never successfully logs out. Where and how can I modify this so that rancid tries the 'quit' and 'logout' commands as well as 'exit'? Some info that may be helpful: #show system System Description: Dell Ethernet Switch System Object ID: 1.3.6.1.4.1.674.10895.3010 System Model ID: PCT6224 Machine Type: Dell 24 Port Gigabit Ethernet #show version Image Descriptions image1 : default image image2 : Images currently available on Flash -------------------------------------------------------------------- unit image1 image2 current-active next-active -------------------------------------------------------------------- 1 2.1.0.13 2.1.0.13 image1 image1 Thanks, Wayne From daniel.schmidt at wyo.gov Fri Sep 20 17:35:14 2019 From: daniel.schmidt at wyo.gov (Daniel Schmidt) Date: Fri, 20 Sep 2019 11:35:14 -0600 Subject: [rancid] Foundry backup never complete In-Reply-To: <5B1D40A9-419E-4312-B725-D422C4A9B811@gmail.com> References: <5B1D40A9-419E-4312-B725-D422C4A9B811@gmail.com> Message-ID: Switch model? On Thu, Sep 19, 2019 at 11:45 AM Gerhard Mourani wrote: > > > Hello, > > I?ve Rancid version 3.7.6 installed on Linux and try to run the backup on one of my Foundry switch with IP 10.105.224.10 without success. > > 1 - SSH directly into the switch with credential worked. > 2 - su rancid -c "clogin 10.105.224.10? worked. > 3 - su rancid -c "flogin 10.105.224.10? worked. > 4 - su rancid -c "clogin -c 'show version' 10.105.224.10? worked. > > 5 - su - rancid -c "rancid-run foundry? doesn?t work and stay forever. > > A ps ax | grep rancid command return only the following all the time (no par .. line after the control_rancid): > > 11538 pts/5 S+ 0:00 su rancid -c rancid-run foundry > 11539 ? Ss 0:00 /bin/sh /usr/bin/rancid-run foundry > 11543 ? S 0:00 /bin/sh /usr/bin/rancid-run foundry > 11548 ? S 0:00 /bin/sh /usr/bin/control_rancid foundry > > Here the output the the su rancid -c "flogin -d 10.105.224.10? command: > > su rancid -c "flogin -d 10.105.224.10" > 10.105.224.10 > spawn ssh -x -l admin 10.105.224.10 > parent: waiting for sync byte > parent: telling child to go ahead > parent: now unsynchronized from child > spawn: returns {32165} > 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 'Telnet server disabled' is 'Telnet server disabled'. Activating booster. > Gate keeper glob pattern for '(Host key not found |The authenticity of host .* be established)' is ''. Not usable, disabling the performance 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 ' is 'Offending key for '. Activating booster. > Gate keeper glob pattern for '^warning: remote host denied authentication agent forwarding.' is 'warning: remote host denied authentication agent forwarding?'. 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 '@[^ > ]+ ([Pp]assword):' is '@* ?assword:'. Activating booster. > Gate keeper glob pattern for 'Enter passphrase.*: ' is 'Enter passphrase*: '. Activating booster. > Gate keeper glob pattern for 'User' is 'User'. Activating booster. > Gate keeper glob pattern for '([Pp]assword):' is '?assword:'. Activating booster. > > expect: does "" (spawn_id exp3) match regular expression "(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 > "Telnet server disabled"? Gate "Telnet server disabled"? gate=no > > expect: does "" (spawn_id exp3) match glob pattern "unknown host\r"? no > > expect: does "" (spawn_id exp3) match glob pattern "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established)"? (No Gate, RE only) gate=yes re=no > "HOST IDENTIFICATION HAS CHANGED"? Gate "HOST IDENTIFICATION HAS CHANGED"? gate=no > "Offending key for "? Gate "Offending key for "? gate=no > > expect: does "" (spawn_id exp3) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no > > expect: does "" (spawn_id exp3) match regular expression "(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 > "@[^\r\n]+ ([Pp]assword):"? Gate "@* ?assword:"? gate=no > "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no > "User"? Gate "User"? gate=no > "([Pp]assword):"? Gate "?assword:"? gate=no > ">"? no > "Login invalid"? no > Password: > expect: does "Password:" (spawn_id exp3) match regular expression "(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 > "Telnet server disabled"? Gate "Telnet server disabled"? gate=no > > expect: does "Password:" (spawn_id exp3) match glob pattern "unknown host\r"? no > > expect: does "Password:" (spawn_id exp3) match glob pattern "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established)"? (No Gate, RE only) gate=yes re=no > "HOST IDENTIFICATION HAS CHANGED"? Gate "HOST IDENTIFICATION HAS CHANGED"? gate=no > "Offending key for "? Gate "Offending key for "? gate=no > > expect: does "Password:" (spawn_id exp3) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no > > expect: does "Password:" (spawn_id exp3) match regular expression "(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 > "@[^\r\n]+ ([Pp]assword):"? Gate "@* ?assword:"? gate=no > "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no > "User"? Gate "User"? gate=no > "([Pp]assword):"? Gate "?assword:"? gate=yes re=yes > expect: set expect_out(0,string) "Password:" > expect: set expect_out(1,string) "Password" > expect: set expect_out(spawn_id) "exp3" > expect: set expect_out(buffer) "Password:" > send: sending ?uhgfyrtradT$\r" to { exp3 human_write: avg_arr=0.200000/0.100000 1/shape=2.500000 min=0.200000 max=1.000000 > } > expect: continuing expect > > expect: does "" (spawn_id exp3) match regular expression "(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 > "Telnet server disabled"? Gate "Telnet server disabled"? gate=no > > expect: does "" (spawn_id exp3) match glob pattern "unknown host\r"? no > > expect: does "" (spawn_id exp3) match glob pattern "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established)"? (No Gate, RE only) gate=yes re=no > "HOST IDENTIFICATION HAS CHANGED"? Gate "HOST IDENTIFICATION HAS CHANGED"? gate=no > "Offending key for "? Gate "Offending key for "? gate=no > > expect: does "" (spawn_id exp3) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no > > expect: does "" (spawn_id exp3) match regular expression "(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 > "@[^\r\n]+ ([Pp]assword):"? Gate "@* ?assword:"? gate=no > "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no > "User"? Gate "User"? gate=no > "([Pp]assword):"? Gate "?assword:"? gate=no > ">"? no > "Login invalid"? no > > > expect: does "\r\n" (spawn_id exp3) match regular expression "(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 > "Telnet server disabled"? Gate "Telnet server disabled"? gate=no > > expect: does "\r\n" (spawn_id exp3) match glob pattern "unknown host\r"? no > > expect: does "\r\n" (spawn_id exp3) match glob pattern "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established)"? (No Gate, RE only) gate=yes re=no > "HOST IDENTIFICATION HAS CHANGED"? Gate "HOST IDENTIFICATION HAS CHANGED"? gate=no > "Offending key for "? Gate "Offending key for "? gate=no > > expect: does "\r\n" (spawn_id exp3) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no > > expect: does "\r\n" (spawn_id exp3) match regular expression "(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 > "@[^\r\n]+ ([Pp]assword):"? Gate "@* ?assword:"? gate=no > "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no > "User"? Gate "User"? gate=no > "([Pp]assword):"? Gate "?assword:"? gate=no > ">"? no > "Login invalid"? no > SSH at GKER-SW-1515-10-105-224-10> > expect: does "\r\nSSH at GKER-SW-1515-10-105-224-10>" (spawn_id exp3) match regular expression "(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 > "Telnet server disabled"? Gate "Telnet server disabled"? gate=no > > expect: does "\r\nSSH at GKER-SW-1515-10-105-224-10>" (spawn_id exp3) match glob pattern "unknown host\r"? no > > expect: does "\r\nSSH at GKER-SW-1515-10-105-224-10>" (spawn_id exp3) match glob pattern "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established)"? (No Gate, RE only) gate=yes re=no > "HOST IDENTIFICATION HAS CHANGED"? Gate "HOST IDENTIFICATION HAS CHANGED"? gate=no > "Offending key for "? Gate "Offending key for "? gate=no > > expect: does "\r\nSSH at GKER-SW-1515-10-105-224-10>" (spawn_id exp3) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no > > expect: does "\r\nSSH at GKER-SW-1515-10-105-224-10>" (spawn_id exp3) match regular expression "(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 > "@[^\r\n]+ ([Pp]assword):"? Gate "@* ?assword:"? gate=no > "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no > "User"? Gate "User"? gate=no > "([Pp]assword):"? Gate "?assword:"? gate=no > ">"? yes > expect: set expect_out(0,string) ">" > expect: set expect_out(spawn_id) "exp3" > expect: set expect_out(buffer) "\r\nSSH at GKER-SW-1515-10-105-224-10>" > send: sending "enable\r" to { exp3 human_write: avg_arr=0.200000/0.100000 1/shape=2.500000 min=0.200000 max=1.000000 > } > Gate keeper glob pattern for 'User' is 'User'. Activating booster. > Gate keeper glob pattern for '[Pp]assword:' is '?assword:'. Activating booster. > > expect: does "" (spawn_id exp3) match regular expression "User"? Gate "User"? gate=no > "[Pp]assword:"? Gate "?assword:"? gate=no > "#"? no > "(enable)"? no > "denied"? no > "Incorrect username or password"? no > "% Bad passwords"? no > enable > expect: does "enable" (spawn_id exp3) match regular expression "User"? Gate "User"? gate=no > "[Pp]assword:"? Gate "?assword:"? gate=no > "#"? no > "(enable)"? no > "denied"? no > "Incorrect username or password"? no > "% Bad passwords"? no > > User Name: > expect: does "enable\r\nUser Name:" (spawn_id exp3) match regular expression "User"? Gate "User"? gate=yes re=yes > expect: set expect_out(0,string) "User" > expect: set expect_out(spawn_id) "exp3" > expect: set expect_out(buffer) "enable\r\nUser" > send: sending "admin\r" to { exp3 human_write: avg_arr=0.200000/0.100000 1/shape=2.500000 min=0.200000 max=1.000000 > } > expect: continuing expect > > expect: does " Name:" (spawn_id exp3) match regular expression "User"? Gate "User"? gate=no > "[Pp]assword:"? Gate "?assword:"? gate=no > "#"? no > "(enable)"? no > "denied"? no > "Incorrect username or password"? no > "% Bad passwords"? no > admin > expect: does " Name:admin" (spawn_id exp3) match regular expression "User"? Gate "User"? gate=no > "[Pp]assword:"? Gate "?assword:"? gate=no > "#"? no > "(enable)"? no > "denied"? no > "Incorrect username or password"? no > "% Bad passwords"? no > > Password: > expect: does " Name:admin\r\nPassword:" (spawn_id exp3) match regular expression "User"? Gate "User"? gate=no > "[Pp]assword:"? Gate "?assword:"? gate=yes re=yes > expect: set expect_out(0,string) "Password:" > expect: set expect_out(spawn_id) "exp3" > expect: set expect_out(buffer) " Name:admin\r\nPassword:" > send: sending "uhgfyrtradT$\r" to { exp3 human_write: avg_arr=0.200000/0.100000 1/shape=2.500000 min=0.200000 max=1.000000 > } > expect: continuing expect > > expect: does "" (spawn_id exp3) match regular expression "User"? Gate "User"? gate=no > "[Pp]assword:"? Gate "?assword:"? gate=no > "#"? no > "(enable)"? no > "denied"? no > "Incorrect username or password"? no > "% Bad passwords"? no > > SSH at GKER-SW-1515-10-105-224-10# > expect: does "\r\nSSH at GKER-SW-1515-10-105-224-10#" (spawn_id exp3) match regular expression "User"? Gate "User"? gate=no > "[Pp]assword:"? Gate "?assword:"? gate=no > "#"? yes > expect: set expect_out(0,string) "#" > expect: set expect_out(spawn_id) "exp3" > expect: set expect_out(buffer) "\r\nSSH at GKER-SW-1515-10-105-224-10#" > send: sending "\r" to { exp3 human_write: avg_arr=0.200000/0.100000 1/shape=2.500000 min=0.200000 max=1.000000 > } > Gate keeper glob pattern for '[ > ]+' is ''. Not usable, disabling the performance booster. > Gate keeper glob pattern for '^.+#' is '*#'. Activating booster. > > expect: does "" (spawn_id exp3) match regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=no > "^.+#"? Gate "*#"? gate=no > > SSH at GKER-SW-1515-10-105-224-10# > expect: does "\r\nSSH at GKER-SW-1515-10-105-224-10#" (spawn_id exp3) 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) "exp3" > expect: set expect_out(buffer) "\r\n" > expect: continuing expect > > expect: does "SSH at GKER-SW-1515-10-105-224-10#" (spawn_id exp3) match regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=no > "^.+#"? Gate "*#"? gate=yes re=yes > expect: set expect_out(0,string) "SSH at GKER-SW-1515-10-105-224-10#" > expect: set expect_out(spawn_id) "exp3" > expect: set expect_out(buffer) "SSH at GKER-SW-1515-10-105-224-10#? > > Regards, > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss -- E-Mail to and from me, in connection with the transaction of public business, is subject to the Wyoming Public Records Act and may be disclosed to third parties. From gmourani at gmail.com Fri Sep 20 17:44:42 2019 From: gmourani at gmail.com (Gerhard Mourani) Date: Fri, 20 Sep 2019 13:44:42 -0400 Subject: [rancid] Foundry backup never complete In-Reply-To: References: <5B1D40A9-419E-4312-B725-D422C4A9B811@gmail.com> Message-ID: <4DB8B106-7E7F-4F96-8832-C5997C064B7D@gmail.com> Never mind, I've found the problem to be related to cvs update not being able to complete because of an existing lock file. So rancid-run were not able to complete. Regards, > On Sep 20, 2019, at 1:35 PM, Daniel Schmidt wrote: > > Switch model? > > On Thu, Sep 19, 2019 at 11:45 AM Gerhard Mourani wrote: >> >> >> Hello, >> >> I?ve Rancid version 3.7.6 installed on Linux and try to run the backup on one of my Foundry switch with IP 10.105.224.10 without success. >> >> 1 - SSH directly into the switch with credential worked. >> 2 - su rancid -c "clogin 10.105.224.10? worked. >> 3 - su rancid -c "flogin 10.105.224.10? worked. >> 4 - su rancid -c "clogin -c 'show version' 10.105.224.10? worked. >> >> 5 - su - rancid -c "rancid-run foundry? doesn?t work and stay forever. >> >> A ps ax | grep rancid command return only the following all the time (no par .. line after the control_rancid): >> >> 11538 pts/5 S+ 0:00 su rancid -c rancid-run foundry >> 11539 ? Ss 0:00 /bin/sh /usr/bin/rancid-run foundry >> 11543 ? S 0:00 /bin/sh /usr/bin/rancid-run foundry >> 11548 ? S 0:00 /bin/sh /usr/bin/control_rancid foundry >> >> Here the output the the su rancid -c "flogin -d 10.105.224.10? command: >> >> su rancid -c "flogin -d 10.105.224.10" >> 10.105.224.10 >> spawn ssh -x -l admin 10.105.224.10 >> parent: waiting for sync byte >> parent: telling child to go ahead >> parent: now unsynchronized from child >> spawn: returns {32165} >> 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 'Telnet server disabled' is 'Telnet server disabled'. Activating booster. >> Gate keeper glob pattern for '(Host key not found |The authenticity of host .* be established)' is ''. Not usable, disabling the performance 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 ' is 'Offending key for '. Activating booster. >> Gate keeper glob pattern for '^warning: remote host denied authentication agent forwarding.' is 'warning: remote host denied authentication agent forwarding?'. 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 '@[^ >> ]+ ([Pp]assword):' is '@* ?assword:'. Activating booster. >> Gate keeper glob pattern for 'Enter passphrase.*: ' is 'Enter passphrase*: '. Activating booster. >> Gate keeper glob pattern for 'User' is 'User'. Activating booster. >> Gate keeper glob pattern for '([Pp]assword):' is '?assword:'. Activating booster. >> >> expect: does "" (spawn_id exp3) match regular expression "(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 >> "Telnet server disabled"? Gate "Telnet server disabled"? gate=no >> >> expect: does "" (spawn_id exp3) match glob pattern "unknown host\r"? no >> >> expect: does "" (spawn_id exp3) match glob pattern "Host is unreachable"? no >> "No address associated with name"? no >> "(Host key not found |The authenticity of host .* be established)"? (No Gate, RE only) gate=yes re=no >> "HOST IDENTIFICATION HAS CHANGED"? Gate "HOST IDENTIFICATION HAS CHANGED"? gate=no >> "Offending key for "? Gate "Offending key for "? gate=no >> >> expect: does "" (spawn_id exp3) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no >> >> expect: does "" (spawn_id exp3) match regular expression "(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 >> "@[^\r\n]+ ([Pp]assword):"? Gate "@* ?assword:"? gate=no >> "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no >> "User"? Gate "User"? gate=no >> "([Pp]assword):"? Gate "?assword:"? gate=no >> ">"? no >> "Login invalid"? no >> Password: >> expect: does "Password:" (spawn_id exp3) match regular expression "(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 >> "Telnet server disabled"? Gate "Telnet server disabled"? gate=no >> >> expect: does "Password:" (spawn_id exp3) match glob pattern "unknown host\r"? no >> >> expect: does "Password:" (spawn_id exp3) match glob pattern "Host is unreachable"? no >> "No address associated with name"? no >> "(Host key not found |The authenticity of host .* be established)"? (No Gate, RE only) gate=yes re=no >> "HOST IDENTIFICATION HAS CHANGED"? Gate "HOST IDENTIFICATION HAS CHANGED"? gate=no >> "Offending key for "? Gate "Offending key for "? gate=no >> >> expect: does "Password:" (spawn_id exp3) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no >> >> expect: does "Password:" (spawn_id exp3) match regular expression "(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 >> "@[^\r\n]+ ([Pp]assword):"? Gate "@* ?assword:"? gate=no >> "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no >> "User"? Gate "User"? gate=no >> "([Pp]assword):"? Gate "?assword:"? gate=yes re=yes >> expect: set expect_out(0,string) "Password:" >> expect: set expect_out(1,string) "Password" >> expect: set expect_out(spawn_id) "exp3" >> expect: set expect_out(buffer) "Password:" >> send: sending ?uhgfyrtradT$\r" to { exp3 human_write: avg_arr=0.200000/0.100000 1/shape=2.500000 min=0.200000 max=1.000000 >> } >> expect: continuing expect >> >> expect: does "" (spawn_id exp3) match regular expression "(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 >> "Telnet server disabled"? Gate "Telnet server disabled"? gate=no >> >> expect: does "" (spawn_id exp3) match glob pattern "unknown host\r"? no >> >> expect: does "" (spawn_id exp3) match glob pattern "Host is unreachable"? no >> "No address associated with name"? no >> "(Host key not found |The authenticity of host .* be established)"? (No Gate, RE only) gate=yes re=no >> "HOST IDENTIFICATION HAS CHANGED"? Gate "HOST IDENTIFICATION HAS CHANGED"? gate=no >> "Offending key for "? Gate "Offending key for "? gate=no >> >> expect: does "" (spawn_id exp3) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no >> >> expect: does "" (spawn_id exp3) match regular expression "(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 >> "@[^\r\n]+ ([Pp]assword):"? Gate "@* ?assword:"? gate=no >> "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no >> "User"? Gate "User"? gate=no >> "([Pp]assword):"? Gate "?assword:"? gate=no >> ">"? no >> "Login invalid"? no >> >> >> expect: does "\r\n" (spawn_id exp3) match regular expression "(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 >> "Telnet server disabled"? Gate "Telnet server disabled"? gate=no >> >> expect: does "\r\n" (spawn_id exp3) match glob pattern "unknown host\r"? no >> >> expect: does "\r\n" (spawn_id exp3) match glob pattern "Host is unreachable"? no >> "No address associated with name"? no >> "(Host key not found |The authenticity of host .* be established)"? (No Gate, RE only) gate=yes re=no >> "HOST IDENTIFICATION HAS CHANGED"? Gate "HOST IDENTIFICATION HAS CHANGED"? gate=no >> "Offending key for "? Gate "Offending key for "? gate=no >> >> expect: does "\r\n" (spawn_id exp3) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no >> >> expect: does "\r\n" (spawn_id exp3) match regular expression "(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 >> "@[^\r\n]+ ([Pp]assword):"? Gate "@* ?assword:"? gate=no >> "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no >> "User"? Gate "User"? gate=no >> "([Pp]assword):"? Gate "?assword:"? gate=no >> ">"? no >> "Login invalid"? no >> SSH at GKER-SW-1515-10-105-224-10> >> expect: does "\r\nSSH at GKER-SW-1515-10-105-224-10>" (spawn_id exp3) match regular expression "(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 >> "Telnet server disabled"? Gate "Telnet server disabled"? gate=no >> >> expect: does "\r\nSSH at GKER-SW-1515-10-105-224-10>" (spawn_id exp3) match glob pattern "unknown host\r"? no >> >> expect: does "\r\nSSH at GKER-SW-1515-10-105-224-10>" (spawn_id exp3) match glob pattern "Host is unreachable"? no >> "No address associated with name"? no >> "(Host key not found |The authenticity of host .* be established)"? (No Gate, RE only) gate=yes re=no >> "HOST IDENTIFICATION HAS CHANGED"? Gate "HOST IDENTIFICATION HAS CHANGED"? gate=no >> "Offending key for "? Gate "Offending key for "? gate=no >> >> expect: does "\r\nSSH at GKER-SW-1515-10-105-224-10>" (spawn_id exp3) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no >> >> expect: does "\r\nSSH at GKER-SW-1515-10-105-224-10>" (spawn_id exp3) match regular expression "(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 >> "@[^\r\n]+ ([Pp]assword):"? Gate "@* ?assword:"? gate=no >> "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no >> "User"? Gate "User"? gate=no >> "([Pp]assword):"? Gate "?assword:"? gate=no >> ">"? yes >> expect: set expect_out(0,string) ">" >> expect: set expect_out(spawn_id) "exp3" >> expect: set expect_out(buffer) "\r\nSSH at GKER-SW-1515-10-105-224-10>" >> send: sending "enable\r" to { exp3 human_write: avg_arr=0.200000/0.100000 1/shape=2.500000 min=0.200000 max=1.000000 >> } >> Gate keeper glob pattern for 'User' is 'User'. Activating booster. >> Gate keeper glob pattern for '[Pp]assword:' is '?assword:'. Activating booster. >> >> expect: does "" (spawn_id exp3) match regular expression "User"? Gate "User"? gate=no >> "[Pp]assword:"? Gate "?assword:"? gate=no >> "#"? no >> "(enable)"? no >> "denied"? no >> "Incorrect username or password"? no >> "% Bad passwords"? no >> enable >> expect: does "enable" (spawn_id exp3) match regular expression "User"? Gate "User"? gate=no >> "[Pp]assword:"? Gate "?assword:"? gate=no >> "#"? no >> "(enable)"? no >> "denied"? no >> "Incorrect username or password"? no >> "% Bad passwords"? no >> >> User Name: >> expect: does "enable\r\nUser Name:" (spawn_id exp3) match regular expression "User"? Gate "User"? gate=yes re=yes >> expect: set expect_out(0,string) "User" >> expect: set expect_out(spawn_id) "exp3" >> expect: set expect_out(buffer) "enable\r\nUser" >> send: sending "admin\r" to { exp3 human_write: avg_arr=0.200000/0.100000 1/shape=2.500000 min=0.200000 max=1.000000 >> } >> expect: continuing expect >> >> expect: does " Name:" (spawn_id exp3) match regular expression "User"? Gate "User"? gate=no >> "[Pp]assword:"? Gate "?assword:"? gate=no >> "#"? no >> "(enable)"? no >> "denied"? no >> "Incorrect username or password"? no >> "% Bad passwords"? no >> admin >> expect: does " Name:admin" (spawn_id exp3) match regular expression "User"? Gate "User"? gate=no >> "[Pp]assword:"? Gate "?assword:"? gate=no >> "#"? no >> "(enable)"? no >> "denied"? no >> "Incorrect username or password"? no >> "% Bad passwords"? no >> >> Password: >> expect: does " Name:admin\r\nPassword:" (spawn_id exp3) match regular expression "User"? Gate "User"? gate=no >> "[Pp]assword:"? Gate "?assword:"? gate=yes re=yes >> expect: set expect_out(0,string) "Password:" >> expect: set expect_out(spawn_id) "exp3" >> expect: set expect_out(buffer) " Name:admin\r\nPassword:" >> send: sending "uhgfyrtradT$\r" to { exp3 human_write: avg_arr=0.200000/0.100000 1/shape=2.500000 min=0.200000 max=1.000000 >> } >> expect: continuing expect >> >> expect: does "" (spawn_id exp3) match regular expression "User"? Gate "User"? gate=no >> "[Pp]assword:"? Gate "?assword:"? gate=no >> "#"? no >> "(enable)"? no >> "denied"? no >> "Incorrect username or password"? no >> "% Bad passwords"? no >> >> SSH at GKER-SW-1515-10-105-224-10# >> expect: does "\r\nSSH at GKER-SW-1515-10-105-224-10#" (spawn_id exp3) match regular expression "User"? Gate "User"? gate=no >> "[Pp]assword:"? Gate "?assword:"? gate=no >> "#"? yes >> expect: set expect_out(0,string) "#" >> expect: set expect_out(spawn_id) "exp3" >> expect: set expect_out(buffer) "\r\nSSH at GKER-SW-1515-10-105-224-10#" >> send: sending "\r" to { exp3 human_write: avg_arr=0.200000/0.100000 1/shape=2.500000 min=0.200000 max=1.000000 >> } >> Gate keeper glob pattern for '[ >> ]+' is ''. Not usable, disabling the performance booster. >> Gate keeper glob pattern for '^.+#' is '*#'. Activating booster. >> >> expect: does "" (spawn_id exp3) match regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=no >> "^.+#"? Gate "*#"? gate=no >> >> SSH at GKER-SW-1515-10-105-224-10# >> expect: does "\r\nSSH at GKER-SW-1515-10-105-224-10#" (spawn_id exp3) 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) "exp3" >> expect: set expect_out(buffer) "\r\n" >> expect: continuing expect >> >> expect: does "SSH at GKER-SW-1515-10-105-224-10#" (spawn_id exp3) match regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=no >> "^.+#"? Gate "*#"? gate=yes re=yes >> expect: set expect_out(0,string) "SSH at GKER-SW-1515-10-105-224-10#" >> expect: set expect_out(spawn_id) "exp3" >> expect: set expect_out(buffer) "SSH at GKER-SW-1515-10-105-224-10#? >> >> Regards, >> _______________________________________________ >> Rancid-discuss mailing list >> Rancid-discuss at shrubbery.net >> http://www.shrubbery.net/mailman/listinfo/rancid-discuss > > -- > > E-Mail to and from me, in connection with the transaction > of public > business, is subject to the Wyoming Public Records > Act and may be > disclosed to third parties. From heas at shrubbery.net Fri Sep 27 23:55:53 2019 From: heas at shrubbery.net (john heasley) Date: Fri, 27 Sep 2019 23:55:53 +0000 Subject: [rancid] Rancid issues In-Reply-To: <20190821144401.GF5188@shrubbery.net> References: <20190821144401.GF5188@shrubbery.net> Message-ID: <20190927235553.GB92740@shrubbery.net> Wed, Aug 21, 2019 at 02:44:01PM +0000, john heasley: > Wed, Aug 21, 2019 at 12:10:35PM +0200, Chris Knipe: > > Hi All, > > > > Rancid setup and everything's fine form what I can tell. I'm getting a > > strange error I haven't seen before: > > > > router.db: > > za-ctn-pe01;mikrotik;up > > > > bash-4.2$ ./bin/rancid -d -t mikrotik za-ctn-pe01 > > loadtype: device type mikrotik > > loadtype: found device type mikrotik in /srv/rancid/etc/rancid.types.base > > executing mtlogin -t 90 -c"" za-ctn-pe01 > > inloop is not configured for device type mikrotik at ./bin/rancid line 130. > > > > Not quite sure what is happening at this stage... > > bin/rancid does not work this way with scripts that have not been converted > to modules. It could be made to work, I just had not anticipated it. you > must run the script itself. > > mtrancid [opts] hostname > I've fixed this here: commit 4750bf3ee31cd11a299a1dfee2c8c36020f41479 rancid, rancid.pm: handle non-modulized rancid scripts in the rancid script by exec()ing the real script https://www.shrubbery.net/pipermail/rancid-discuss/2019-August/010820.html