[rancid] Foundry backup never complete

Gerhard Mourani gmourani at gmail.com
Fri Sep 20 17:44:42 UTC 2019


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 <daniel.schmidt at wyo.gov> wrote:
> 
> Switch model?
> 
> On Thu, Sep 19, 2019 at 11:45 AM Gerhard Mourani <gmourani at gmail.com> 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.



More information about the Rancid-discuss mailing list