<div dir="ltr"><div>I have a # in my login banner and I'm hoping someone could be so kind to assist me in adjusting clogin to accept the hash character in banner.  I am hoping to remove the hash character from the banner in future, but right now I cannot.  Below is the debug output. I'm using 2.3.6 on 12.0.4 Ubuntu apt-get package.  I read though several posts and attempted  to apply the patch from thread <a href="http://www.shrubbery.net/pipermail/rancid-discuss/2013-November/007277.html">http://www.shrubbery.net/pipermail/rancid-discuss/2013-November/007277.html</a> without luck. Looks like the patch is for 2.3.8, which may be an option if 2.3.6 isn't going to fly.  Any assistance is greatly appreciated.</div>
<div><br></div><div>-Chip</div><div>   <br></div><div><br></div><div><div><br></div><div>rancid@rancid-server:/var/lib/rancid/bin$ ./clogin -d 10.2.200.2</div><div>10.2.200.2</div><div>spawn ssh -c 3des -x -l rancid-user 10.2.200.2</div>
<div>parent: waiting for sync byte</div><div>parent: telling child to go ahead</div><div>parent: now unsynchronized from child</div><div>spawn: returns {13962}</div><div>Gate keeper glob pattern for '(Connection refused|Secure connection [^</div>
<div>]+ refused)' is ''. Not usable, disabling the performance booster.</div><div>Gate keeper glob pattern for '(Connection closed by|Connection to [^</div><div>]+ closed)' is ''. Not usable, disabling the performance booster.</div>
<div>Gate keeper glob pattern for '(Host key not found |The authenticity of host .* be established).*(yes/no)?' is ''. Not usable, disabling the performance booster.</div><div>Gate keeper glob pattern for 'HOST IDENTIFICATION HAS CHANGED.* (yes/no)?' is 'HOST IDENTIFICATION HAS CHANGED* *'. Activating booster.</div>
<div>Gate keeper glob pattern for 'Offending key for .* (yes/no)?' is 'Offending key for * *'. Activating booster.</div><div>Gate keeper glob pattern for '(denied|Sorry)' is ''. Not usable, disabling the performance booster.</div>
<div>Gate keeper glob pattern for '% (Bad passwords|Authentication failed)' is ''. Not usable, disabling the performance booster.</div><div>Gate keeper glob pattern for 'Enter Selection: ' is 'Enter Selection: '. Activating booster.</div>
<div>Gate keeper glob pattern for 'Last login:' is 'Last login:'. Activating booster.</div><div>Gate keeper glob pattern for '@[^</div><div>]+ ([Pp]assword|passwd|Enter password for [^ :]+):' is ''. Not usable, disabling the performance booster.</div>
<div>Gate keeper glob pattern for 'Enter passphrase.*: ' is 'Enter passphrase*: '. Activating booster.</div><div>Gate keeper glob pattern for '(Username|Login|login|user name|User):' is ''. Not usable, disabling the performance booster.</div>
<div>Gate keeper glob pattern for '([Pp]assword|passwd|Enter password for [^ :]+):' is ''. Not usable, disabling the performance booster.</div><div>Gate keeper glob pattern for '(>|#| \(enable\))' is ''. Not usable, disabling the performance booster.</div>
<div><br></div><div>expect: does "" (spawn_id exp6) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? (No Gate, RE only) gate=yes re=no</div><div>"(Connection closed by|Connection to [^\n\r]+ closed)"? (No Gate, RE only) gate=yes re=no</div>
<div><br></div><div>expect: does "" (spawn_id exp6) match glob pattern "unknown host\r"? no</div><div><br></div><div>expect: does "" (spawn_id exp6) match glob pattern "Host is unreachable"? no</div>
<div>"No address associated with name"? no</div><div>"(Host key not found |The authenticity of host .* be established).*(yes/no)?"? (No Gate, RE only) gate=yes re=no</div><div>"HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? Gate "HOST IDENTIFICATION HAS CHANGED* *"? gate=no</div>
<div>"Offending key for .* (yes/no)?"? Gate "Offending key for * *"? gate=no</div><div>"(denied|Sorry)"? (No Gate, RE only) gate=yes re=no</div><div>"Login failed"? no</div><div>"% (Bad passwords|Authentication failed)"? (No Gate, RE only) gate=yes re=no</div>
<div>"Press any key to continue"? no</div><div>"Enter Selection: "? Gate "Enter Selection: "? gate=no</div><div>"Last login:"? Gate "Last login:"? gate=no</div><div>"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no</div>
<div>"Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no</div><div>"(Username|Login|login|user name|User):"? (No Gate, RE only) gate=yes re=no</div><div>"([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no</div>
<div>"(>|#| \(enable\))"? (No Gate, RE only) gate=yes re=no</div><div>"Login invalid"? no</div><div><br></div><div>##############</div><div># Rev 3(1-5) #</div><div>##############</div><div><br></div>
<div>expect: does "\r\r\n##############\r\r\n# Rev 3(1-5) #\r\r\n##############\r\r\n" (spawn_id exp6) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? (No Gate, RE only) gate=yes re=no</div>
<div>"(Connection closed by|Connection to [^\n\r]+ closed)"? (No Gate, RE only) gate=yes re=no</div><div><br></div><div>expect: does "\r\r\n##############\r\r\n# Rev 3(1-5) #\r\r\n##############\r\r\n" (spawn_id exp6) match glob pattern "unknown host\r"? no</div>
<div><br></div><div>expect: does "\r\r\n##############\r\r\n# Rev 3(1-5) #\r\r\n##############\r\r\n" (spawn_id exp6) match glob pattern "Host is unreachable"? no</div><div>"No address associated with name"? no</div>
<div>"(Host key not found |The authenticity of host .* be established).*(yes/no)?"? (No Gate, RE only) gate=yes re=no</div><div>"HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? Gate "HOST IDENTIFICATION HAS CHANGED* *"? gate=no</div>
<div>"Offending key for .* (yes/no)?"? Gate "Offending key for * *"? gate=no</div><div>"(denied|Sorry)"? (No Gate, RE only) gate=yes re=no</div><div>"Login failed"? no</div><div>"% (Bad passwords|Authentication failed)"? (No Gate, RE only) gate=yes re=no</div>
<div>"Press any key to continue"? no</div><div>"Enter Selection: "? Gate "Enter Selection: "? gate=no</div><div>"Last login:"? Gate "Last login:"? gate=no</div><div>"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no</div>
<div>"Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no</div><div>"(Username|Login|login|user name|User):"? (No Gate, RE only) gate=yes re=no</div><div>"([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no</div>
<div>"(>|#| \(enable\))"? (No Gate, RE only) gate=yes re=yes</div><div>expect: set expect_out(0,string) "#"</div><div>expect: set expect_out(1,string) "#"</div><div>expect: set expect_out(spawn_id) "exp6"</div>
<div>expect: set expect_out(buffer) "\r\r\n#"</div><div>send: sending "\r" to { exp6 }</div><div>Gate keeper glob pattern for '[</div><div>]+' is ''. Not usable, disabling the performance booster.</div>
<div>Gate keeper glob pattern for '^(.+[:.])1 ((>|#| \(enable\)))' is ''. Not usable, disabling the performance booster.</div><div>Gate keeper glob pattern for '^.+(>|#| \(enable\))' is ''. Not usable, disabling the performance booster.</div>
<div><br></div><div>expect: does "#############\r\r\n# Rev 3(1-5) #\r\r\n##############\r\r\n" (spawn_id exp6) match regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=yes</div><div>expect: set expect_out(0,string) "\r\r\n"</div>
<div>expect: set expect_out(spawn_id) "exp6"</div><div>expect: set expect_out(buffer) "#############\r\r\n"</div><div>expect: continuing expect</div><div><br></div><div>expect: does "# Rev 3(1-5) #\r\r\n##############\r\r\n" (spawn_id exp6) match regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=yes</div>
<div>expect: set expect_out(0,string) "\r\r\n"</div><div>expect: set expect_out(spawn_id) "exp6"</div><div>expect: set expect_out(buffer) "# Rev 3(1-5) #\r\r\n"</div><div>expect: continuing expect</div>
<div><br></div><div>expect: does "##############\r\r\n" (spawn_id exp6) match regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=yes</div><div>expect: set expect_out(0,string) "\r\r\n"</div>
<div>expect: set expect_out(spawn_id) "exp6"</div><div>expect: set expect_out(buffer) "##############\r\r\n"</div><div>expect: continuing expect</div><div><br></div><div>expect: does "" (spawn_id exp6) match regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=no</div>
<div>"^(.+[:.])1 ((>|#| \(enable\)))"? (No Gate, RE only) gate=yes re=no</div><div>"^.+(>|#| \(enable\))"? (No Gate, RE only) gate=yes re=no</div><div><br></div><div><br></div><div>expect: does "\r\n" (spawn_id exp6) match regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=yes</div>
<div>expect: set expect_out(0,string) "\r\n"</div><div>expect: set expect_out(spawn_id) "exp6"</div><div>expect: set expect_out(buffer) "\r\n"</div><div>expect: continuing expect</div><div><br>
</div><div>expect: does "" (spawn_id exp6) match regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=no</div><div>"^(.+[:.])1 ((>|#| \(enable\)))"? (No Gate, RE only) gate=yes re=no</div>
<div>"^.+(>|#| \(enable\))"? (No Gate, RE only) gate=yes re=no</div><div>Password: </div><div>expect: does "Password: " (spawn_id exp6) match regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=no</div>
<div>"^(.+[:.])1 ((>|#| \(enable\)))"? (No Gate, RE only) gate=yes re=no</div><div>"^.+(>|#| \(enable\))"? (No Gate, RE only) gate=yes re=no</div><div>expect: timed out</div><div><br></div><div>Error: TIMEOUT reached</div>
</div></div>