[rancid] Rancid not backing up some HP switches but can login to them

Remsik,Robert Robert.Remsik at colostate.edu
Tue Oct 18 14:28:46 UTC 2016


No, it's not actually LOGIN, I have to scrub the output a little to remove identifying information, IPs, Logins, Passwords before posting it online.


*checks*

The .cloginrc file has the correct login information.




Robert Remsik

ACNS

Desk Phone: 970 491 7120

Robert.Remsik at colostate.edu


________________________________
From: Rancid-discuss <rancid-discuss-bounces at shrubbery.net> on behalf of Doug Hughes <doug.hughes at keystonenap.com>
Sent: Monday, October 17, 2016 1:15 PM
To: rancid-discuss at shrubbery.net
Subject: Re: [rancid] Rancid not backing up some HP switches but can login to them


Your prompt is LOGIN at ... but the regexp is looking for Login


Is your username really 'LOGIN' ? ssh seems to think so. I'd check your .cloginrc to make sure the username is correct.


On 10/17/2016 2:48 PM, Remsik,Robert wrote:
Hello!

I'm having trouble getting rancid to backup some HP switches.  Debugging as per the FAQ with NOPIPE=yes set, the hlogin file appears to have no issues logging in running commands.  It's only when I add the 't' tag to save the file does hlogin fail to login and time out.  I'm guessing it's something to do with the formatting of the prompt (as other HP switches do work), but I don't know what the difference would be.  I'm hoping you guys can help point out what the issue might be.

Thank you again for your swift and responsive emails!
Robert,

(I apologize for the length of this email - expect is a little verbose!  :))
-----

.:: Base SSH ::.

rancid at truck:~/bin$ ssh  LOGIN at x.y.121.146<mailto:LOGIN at 10.100.121.146>

We'd like to keep you up to date about:

  * Software feature updates

  * New product announcements

  * Special events




Please register your products now at:  www.ProCurve.com<https://word-edit.officeapps.live.com/we/www.ProCurve.com>



LOGIN at x.y.121.146<mailto:LOGIN at 10.100.121.146>'s password:



.:: Test using the –t flag (it does not work) ::.

rancid at truck:~/bin$ ./hlogin  -t test -c 'show ip' -f /opt/rancid-3.4.99/.cloginrc x.y.121.146

x.y.121.146

spawn /opt/rancid-3.4.99/bin/hpuifilter -- ssh -x -l LOGIN x.y.121.146



Error: TIMEOUT reached

.:: Test using the –t flag and the –d flag (it does not work) ::.

rancid at truck:~/bin$ ./hlogin -d -t test -c 'show ip' -f /opt/rancid-3.4.99/.cloginrc x.y.121.146

x.y.121.146

spawn /opt/rancid-3.4.99/bin/hpuifilter -- ssh -x -l LOGIN x.y.121.146

parent: waiting for sync byte

parent: telling child to go ahead

parent: now unsynchronized from child

spawn: returns {64435}

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\)\?' 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 '^warning: remote host denied authentication agent forwarding.' is 'warning: remote host denied authentication agent forwarding?'. Activating booster.

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 performance booster.

Gate keeper glob pattern for '([Pp]assword|passwd):' is ''. Not usable, disabling the performance booster.

Gate keeper glob pattern for '[^

]*[

]+' 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 glob pattern "Press any key to continue"? no

"Enter switch number to connect to or <CR>:"? no

"(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes re=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



expect: does "" (spawn_id exp4) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no

"unknown host\r"? no



expect: does "" (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=no

"[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no

"(>|#) ?"? (No Gate, RE only) gate=yes re=no

"denied"? no

"% Bad passwords"? no

expect: timed out



Error: TIMEOUT reached

.:: Test using the –d flag (it works) ::.

rancid at truck:~/bin$ ./hlogin -d -c 'show ip' -f /opt/rancid-3.4.99/.cloginrc x.y.121.146

x.y.121.146

spawn /opt/rancid-3.4.99/bin/hpuifilter -- ssh -x -l LOGIN x.y.121.146

parent: waiting for sync byte

parent: telling child to go ahead

parent: now unsynchronized from child

spawn: returns {64443}

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\)\?' 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 '^warning: remote host denied authentication agent forwarding.' is 'warning: remote host denied authentication agent forwarding?'. Activating booster.

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 performance booster.

Gate keeper glob pattern for '([Pp]assword|passwd):' is ''. Not usable, disabling the performance booster.

Gate keeper glob pattern for '[^

]*[

]+' 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 glob pattern "Press any key to continue"? no

"Enter switch number to connect to or <CR>:"? no

"(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes re=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



expect: does "" (spawn_id exp4) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no

"unknown host\r"? no



expect: does "" (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=no

"[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no

"(>|#) ?"? (No Gate, RE only) gate=yes re=no

"denied"? no

"% Bad passwords"? no

We'd like to keep you up to date about:

  * Software feature updates

  * New product announcements

  * Special events



Please register your products now at:  www.ProCurve.com<https://word-edit.officeapps.live.com/we/www.ProCurve.com>



LOGIN at x.y.121.146<mailto:mAnAg3r at 10.100.121.146>'s password:

expect: does "We'd like to keep you up to date about:\r\r\n  * Software feature updates\r\r\n  * New product announcements\r\r\n  * Special events\r\r\n\r\r\nPlease register your products now at:  www.ProCurve.com\r\r\n\r\r\nLOGIN at 10.o<mailto:www.ProCurve.com%5Cr%5Cr%5Cn%5Cr%5Cr%5CnmAnAg3r at 10.o>

"Enter switch number to connect to or <CR>:"? no

"(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes re=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



expect: does "We'd like to keep you up to date about:\r\r\n  * Software feature updates\r\r\n  * New product announcements\r\r\n  * Special events\r\r\n\r\r\nPlease register your products now at:  www.ProCurve.com\r\r\n\r\r\nLOGIN at 10.o<mailto:www.ProCurve.com%5Cr%5Cr%5Cn%5Cr%5Cr%5CnmAnAg3r at 10.o>

"unknown host\r"? no



expect: does "We'd like to keep you up to date about:\r\r\n  * Software feature updates\r\r\n  * New product announcements\r\r\n  * Special events\r\r\n\r\r\nPlease register your products now at:  www.ProCurve.com\r\r\n\r\r\nLOGIN at 10.o<mailto:www.ProCurve.com%5Cr%5Cr%5Cn%5Cr%5Cr%5CnmAnAg3r at 10.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=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) "We'd like to keep you up to date about:\r\r\n  * Software feature updates\r\r\n  * New product announcements\r\r\n  * Special events\r\r\n\r\r\nPlease register your products now at:  www.ProCurve.com\r\r\<https://word-edit.officeapps.live.com/we/www.ProCurve.com/r/r/>"

send: sending "PASSWORD\r" to { exp4 }

Gate keeper glob pattern for '[Pp]assword:' is '?assword:'. Activating booster.

Gate keeper glob pattern for '(>|#) ?' 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 glob pattern "Press any key to continue"? no

"[Pp]assword:"? Gate "?assword:"? gate=no

"(>|#) ?"? (No Gate, RE only) gate=yes re=no

"[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no





expect: does " \r\r\n" (spawn_id exp4) match glob pattern "Press any key to continue"? no

"[Pp]assword:"? Gate "?assword:"? gate=no

"(>|#) ?"? (No Gate, RE only) gate=yes re=no

"[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes

expect: set expect_out(0,string) " \r\r\n"

expect: set expect_out(spawn_id) "exp4"

expect: set expect_out(buffer) " \r\r\n"

expect: continuing expect



expect: does "" (spawn_id exp4) match glob pattern "Press any key to continue"? no

"[Pp]assword:"? Gate "?assword:"? gate=no

"(>|#) ?"? (No Gate, RE only) gate=yes re=no

"[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no

ProCurve J8773A Switch 4208vl

Software revision L.11.34



Copyright (C) 1991-2011 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 "ProCurve J8773A Switch 4208vl\r\r\n\rSoftware revision L.11.34\r\r\n\r\r\r\n\rCopyright (C) 1991-2011 Hewlett-Packard Co.  All Rights Reserved.\r\n\r\r\n\r                           RESTRICTED RIGHTS LEGEND\r\n\r\r\n\r Uses

expect: set expect_out(0,string) "Press any key to continue"

expect: set expect_out(spawn_id) "exp4"

expect: set expect_out(buffer) "ProCurve J8773A Switch 4208vl\r\r\n\rSoftware revision L.11.34\r\r\n\r\r\r\n\rCopyright (C) 1991-2011 Hewlett-Packard Co.  All Rights Reserved.\r\n\r\r\n\r                           RESTRICTED RIGHTS LEGE"

send: sending " " to { exp4 }

expect: continuing expect



expect: does "" (spawn_id exp4) match glob pattern "Press any key to continue"? no

"[Pp]assword:"? Gate "?assword:"? gate=no

"(>|#) ?"? (No Gate, RE only) gate=yes re=no

"[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no

SWITCH-HOSTNAME#

expect: does "SWITCH-HOSTNAME# " (spawn_id exp4) match glob pattern "Press any key to continue"? no

"[Pp]assword:"? Gate "?assword:"? gate=no

"(>|#) ?"? (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) "SWITCH-HOSTNAME# "

send: sending "\r" to { exp4 }

send: sending "\r" to { exp4 }

Gate keeper glob pattern for '[

]+' 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 "[\r\n]+"? (No Gate, RE only) gate=yes re=no

"^.+(>|#) ?"? (No Gate, RE only) gate=yes re=no



SWITCH-HOSTNAME#

expect: does "\r\r\nSWITCH-HOSTNAME# " (spawn_id exp4) match regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=yes

expect: set expect_out(0,string) "\r\r\n"

expect: set expect_out(spawn_id) "exp4"

expect: set expect_out(buffer) "\r\r\n"

expect: continuing expect



expect: does "SWITCH-HOSTNAME# " (spawn_id exp4) match regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=no

"^.+(>|#) ?"? (No Gate, RE only) gate=yes re=yes

expect: set expect_out(0,string) "SWITCH-HOSTNAME# "

expect: set expect_out(1,string) "#"

expect: set expect_out(spawn_id) "exp4"

expect: set expect_out(buffer) "SWITCH-HOSTNAME# "

send: sending "no page\r" to { exp4 }

Gate keeper glob pattern for '[

]+' is ''. Not usable, disabling the performance booster.

Gate keeper glob pattern for 'Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?' is 'Xxxxxxxxxyy*'. Activating booster.



expect: does "" (spawn_id exp4) match regular expression "[\n\r]+"? (No Gate, RE only) gate=yes re=no

"Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "Xxxxxxxxxyy*"? gate=no





expect: does "\r\r\n" (spawn_id exp4) match regular expression "[\n\r]+"? (No Gate, RE only) gate=yes re=yes

expect: set expect_out(0,string) "\r\r\n"

expect: set expect_out(spawn_id) "exp4"

expect: set expect_out(buffer) "\r\r\n"

expect: continuing expect



expect: does "" (spawn_id exp4) match regular expression "[\n\r]+"? (No Gate, RE only) gate=yes re=no

"Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "Xxxxxxxxxyy*"? gate=no

SWITCH-HOSTNAME#

expect: does "SWITCH-HOSTNAME# " (spawn_id exp4) match regular expression "[\n\r]+"? (No Gate, RE only) gate=yes re=no

"Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "Xxxxxxxxxyy*"? gate=yes re=yes

expect: set expect_out(0,string) "SWITCH-HOSTNAME#"

expect: set expect_out(1,string) "yyyy"

expect: set expect_out(spawn_id) "exp4"

expect: set expect_out(buffer) "SWITCH-HOSTNAME#"

send: sending "system shell session set more off\r" to { exp4 }

Gate keeper glob pattern for '[

]+' is ''. Not usable, disabling the performance booster.

Gate keeper glob pattern for 'Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?' is 'Xxxxxxxxxyy*'. Activating booster.



expect: does " " (spawn_id exp4) match regular expression "[\n\r]+"? (No Gate, RE only) gate=yes re=no

"Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "Xxxxxxxxxyy*"? gate=no

no page

SWITCH-HOSTNAME#

expect: does " no page\r\r\nSWITCH-HOSTNAME# " (spawn_id exp4) match regular expression "[\n\r]+"? (No Gate, RE only) gate=yes re=yes

expect: set expect_out(0,string) "\r\r\n"

expect: set expect_out(spawn_id) "exp4"

expect: set expect_out(buffer) " no page\r\r\n"

expect: continuing expect



expect: does "SWITCH-HOSTNAME# " (spawn_id exp4) match regular expression "[\n\r]+"? (No Gate, RE only) gate=yes re=no

"Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "Xxxxxxxxxyy*"? gate=yes re=yes

expect: set expect_out(0,string) "SWITCH-HOSTNAME#"

expect: set expect_out(1,string) "yyyy"

expect: set expect_out(spawn_id) "exp4"

expect: set expect_out(buffer) "SWITCH-HOSTNAME#"

send: sending "show ip\r" to { exp4 }

Gate keeper glob pattern for '^[^

 *]*Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?' is '*Xxxxxxxxxyy*'. Activating booster.

Gate keeper glob pattern for '^[^

]*Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))? ' is '*Xxxxxxxxxyy* '. Activating booster.

Gate keeper glob pattern for '[

]+' is ''. Not usable, disabling the performance booster.

Gate keeper glob pattern for '[^

]*Press <SPACE> to cont[^

]*' is '*Press <SPACE> to cont*'. Activating booster.

Gate keeper glob pattern for '^<-+ More -+>[^

]*' is ''. Not usable, disabling the performance booster.

Gate keeper glob pattern for '^-+ MORE -+[^

]*' is '* MORE *'. Activating booster.

Gate keeper glob pattern for '^-More-[^

-]*' is '-More-*'. Activating booster.

Gate keeper glob pattern for '^--More--[^

-]*' is '--More--*'. Activating booster.

Gate keeper glob pattern for '^---+More---+[^

]*' is '--*More--*'. Activating booster.

Gate keeper glob pattern for +' is ''. Not usable, disabling the performance booster.



expect: does " " (spawn_id exp4) match regular expression "^[^\n\r *]*Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*Xxxxxxxxxyy*"? gate=no

"^[^\n\r]*Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))? "? Gate "*Xxxxxxxxxyy* "? gate=no

"[\n\r]+"? (No Gate, RE only) gate=yes re=no

"[^\r\n]*Press <SPACE> to cont[^\r\n]*"? Gate "*Press <SPACE> to cont*"? gate=no

"^<-+ More -+>[^\n\r]*"? (No Gate, RE only) gate=yes re=no

"^-+ MORE -+[^\n\r]*"? Gate "* MORE *"? gate=no

"^-More-[^\n\r-]*"? Gate "-More-*"? gate=no

"^--More--[^\n\r-]*"? Gate "--More--*"? gate=no

"^---+More---+[^\n\r]*"? Gate "--*More--*"? gate=no

"\u0008+"? (No Gate, RE only) gate=yes re=no



expect: does " system she" (spawn_id exp4) match regular expression "^[^\n\r *]*Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*Xxxxxxxxxyy*"? gate=no

"^[^\n\r]*Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))? "? Gate "*Xxxxxxxxxyy* "? gate=no

"[\n\r]+"? (No Gate, RE only) gate=yes re=no

"[^\r\n]*Press <SPACE> to cont[^\r\n]*"? Gate "*Press <SPACE> to cont*"? gate=no

"^<-+ More -+>[^\n\r]*"? (No Gate, RE only) gate=yes re=no

"^-+ MORE -+[^\n\r]*"? Gate "* MORE *"? gate=no

"^-More-[^\n\r-]*"? Gate "-More-*"? gate=no

"^--More--[^\n\r-]*"? Gate "--More--*"? gate=no

"^---+More---+[^\n\r]*"? Gate "--*More--*"? gate=no

"\u0008+"? (No Gate, RE only) gate=yes re=no



expect: does " system shell session set more off\r\r\nInvalid input: system\r\n\rSWITCH-HOSTNAME# show ip\r\r\n\r\n\r Internet (IP) Service\r\n\r\r\n\r  IP Routing : Disabled\r\n\r\r\n\r  Default Gateway : x.y.0.1     \r\n\r  Defaulto

"^[^\n\r]*Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))? "? Gate "*Xxxxxxxxxyy* "? gate=yes re=no

"[\n\r]+"? (No Gate, RE only) gate=yes re=yes

expect: set expect_out(0,string) "\r\r\n"

expect: set expect_out(spawn_id) "exp4"

expect: set expect_out(buffer) " system shell session set more off\r\r\n"

 system shell session set more off

expect: continuing expect



expect: does "Invalid input: system\r\n\rSWITCH-HOSTNAME# show ip\r\r\n\r\n\r Internet (IP) Service\r\n\r\r\n\r  IP Routing : Disabled\r\n\r\r\n\r  Default Gateway : x.y.0.1     \r\n\r  Default TTL     : 64   \r\n\r  Arp Age         o

"^[^\n\r]*Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))? "? Gate "*Xxxxxxxxxyy* "? gate=yes re=no

"[\n\r]+"? (No Gate, RE only) gate=yes re=yes

expect: set expect_out(0,string) "\r\n\r"

expect: set expect_out(spawn_id) "exp4"

expect: set expect_out(buffer) "Invalid input: system\r\n\r"

Invalid input: system

expect: continuing expect



expect: does "SWITCH-HOSTNAME# show ip\r\r\n\r\n\r Internet (IP) Service\r\n\r\r\n\r  IP Routing : Disabled\r\n\r\r\n\r  Default Gateway : x.y.0.1     \r\n\r  Default TTL     : 64   \r\n\r  Arp Age         : 20  \r\n\r  Domain Suffixs

expect: set expect_out(0,string) "SWITCH-HOSTNAME#"

expect: set expect_out(1,string) "yyyy"

expect: set expect_out(spawn_id) "exp4"

expect: set expect_out(buffer) "SWITCH-HOSTNAME#"

SWITCH-HOSTNAME#send: sending "logout\r" to { exp4 human_write: avg_arr=0.200000/0.100000  1/shape=2.500000  min=0.200000  max=1.000000

}

Gate keeper glob pattern for 'Do you want to save (the )?current configuration' is 'Do you want to save *current configuration'. Activating booster.

Gate keeper glob pattern for '[

]+' is ''. Not usable, disabling the performance booster.

Gate keeper glob pattern for '^.+>' is '*>'. Activating booster.



expect: does " show ip\r\r\n\r\n\r Internet (IP) Service\r\n\r\r\n\r  IP Routing : Disabled\r\n\r\r\n\r  Default Gateway : x.y.0.1     \r\n\r  Default TTL     : 64   \r\n\r  Arp Age         : 20  \r\n\r  Domain Suffix   :            o

"Do you wish to save "? no

"Do you want to log out"? no

"[\r\n]+"? (No Gate, RE only) gate=yes re=yes

expect: set expect_out(0,string) "\r\r\n\r\n\r"

expect: set expect_out(spawn_id) "exp4"

expect: set expect_out(buffer) " show ip\r\r\n\r\n\r"

expect: continuing expect



expect: does " Internet (IP) Service\r\n\r\r\n\r  IP Routing : Disabled\r\n\r\r\n\r  Default Gateway : x.y.0.1     \r\n\r  Default TTL     : 64   \r\n\r  Arp Age         : 20  \r\n\r  Domain Suffix   :                               \o

"Do you wish to save "? no

"Do you want to log out"? no

"[\r\n]+"? (No Gate, RE only) gate=yes re=yes

expect: set expect_out(0,string) "\r\n\r\r\n\r"

expect: set expect_out(spawn_id) "exp4"

expect: set expect_out(buffer) " Internet (IP) Service\r\n\r\r\n\r"

expect: continuing expect



expect: does "  IP Routing : Disabled\r\n\r\r\n\r  Default Gateway : x.y.0.1     \r\n\r  Default TTL     : 64   \r\n\r  Arp Age         : 20  \r\n\r  Domain Suffix   :                               \r\n\r  DNS server      :          o

"Do you wish to save "? no

"Do you want to log out"? no

"[\r\n]+"? (No Gate, RE only) gate=yes re=yes

expect: set expect_out(0,string) "\r\n\r\r\n\r"

expect: set expect_out(spawn_id) "exp4"

expect: set expect_out(buffer) "  IP Routing : Disabled\r\n\r\r\n\r"

expect: continuing expect



expect: does "  Default Gateway : x.y.0.1     \r\n\r  Default TTL     : 64   \r\n\r  Arp Age         : 20  \r\n\r  Domain Suffix   :                               \r\n\r  DNS server      :                \r\n\r\r\n\r  VLAN         | o

"Do you wish to save "? no

"Do you want to log out"? no

"[\r\n]+"? (No Gate, RE only) gate=yes re=yes

expect: set expect_out(0,string) "\r\n\r"

expect: set expect_out(spawn_id) "exp4"

expect: set expect_out(buffer) "  Default Gateway : x.y.0.1     \r\n\r"

expect: continuing expect



expect: does "  Default TTL     : 64   \r\n\r  Arp Age         : 20  \r\n\r  Domain Suffix   :                               \r\n\r  DNS server      :                \r\n\r\r\n\r  VLAN         | IP Config  IP Address      Subnet Mask   o

"Do you wish to save "? no

"Do you want to log out"? no

"[\r\n]+"? (No Gate, RE only) gate=yes re=yes

expect: set expect_out(0,string) "\r\n\r"

expect: set expect_out(spawn_id) "exp4"

expect: set expect_out(buffer) "  Default TTL     : 64   \r\n\r"

expect: continuing expect



expect: does "  Arp Age         : 20  \r\n\r  Domain Suffix   :                               \r\n\r  DNS server      :                \r\n\r\r\n\r  VLAN         | IP Config  IP Address      Subnet Mask    \r\n\r  ------------ + -------o

"Do you wish to save "? no

"Do you want to log out"? no

"[\r\n]+"? (No Gate, RE only) gate=yes re=yes

expect: set expect_out(0,string) "\r\n\r"

expect: set expect_out(spawn_id) "exp4"

expect: set expect_out(buffer) "  Arp Age         : 20  \r\n\r"

expect: continuing expect



expect: does "  Domain Suffix   :                               \r\n\r  DNS server      :                \r\n\r\r\n\r  VLAN         | IP Config  IP Address      Subnet Mask    \r\n\r  ------------ + ---------- --------------- ----------o

"Do you wish to save "? no

"Do you want to log out"? no

"[\r\n]+"? (No Gate, RE only) gate=yes re=yes

expect: set expect_out(0,string) "\r\n\r"

expect: set expect_out(spawn_id) "exp4"

expect: set expect_out(buffer) "  Domain Suffix   :                               \r\n\r"

expect: continuing expect



expect: does "  DNS server      :                \r\n\r\r\n\r  VLAN         | IP Config  IP Address      Subnet Mask    \r\n\r  ------------ + ---------- --------------- ---------------\r\n\r" (spawn_id exp4) match regular expression "Do

"Do you wish to save "? no

"Do you want to log out"? no

"[\r\n]+"? (No Gate, RE only) gate=yes re=yes

expect: set expect_out(0,string) "\r\n\r\r\n\r"

expect: set expect_out(spawn_id) "exp4"

expect: set expect_out(buffer) "  DNS server      :                \r\n\r\r\n\r"

expect: continuing expect



expect: does "  VLAN         | IP Config  IP Address      Subnet Mask    \r\n\r  ------------ + ---------- --------------- ---------------\r\n\r" (spawn_id exp4) match regular expression "Do you want to save (the )?current configurationo

"Do you wish to save "? no

"Do you want to log out"? no

"[\r\n]+"? (No Gate, RE only) gate=yes re=yes

expect: set expect_out(0,string) "\r\n\r"

expect: set expect_out(spawn_id) "exp4"

expect: set expect_out(buffer) "  VLAN         | IP Config  IP Address      Subnet Mask    \r\n\r"

expect: continuing expect



expect: does "  ------------ + ---------- --------------- ---------------\r\n\r" (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to save *current configuration"? gate=no

"Do you wish to save "? no

"Do you want to log out"? no

"[\r\n]+"? (No Gate, RE only) gate=yes re=yes

expect: set expect_out(0,string) "\r\n\r"

expect: set expect_out(spawn_id) "exp4"

expect: set expect_out(buffer) "  ------------ + ---------- --------------- ---------------\r\n\r"

expect: continuing expect



expect: does "" (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to save *current configuration"? gate=no

"Do you wish to save "? no

"Do you want to log out"? no

"[\r\n]+"? (No Gate, RE only) gate=yes re=no

"^.+>"? Gate "*>"? gate=no

  disabled     | Disabled

  MGMT    | Manual     x.y.121.146  255.255.0.0

  Subnet_121   | Manual     p.q.121.146  255.255.255.0

  ups          | Disabled

  cardkey      | Disabled





SWITCH-HOSTNAME# logout

expect: does "  disabled     | Disabled  \r\n\r  MGMT    | Manual     x.y.121.146  255.255.0.0     \r\n\r  Subnet_121   | Manual     p.q.121.146  255.255.255.0   \r\n\r  ups          | Disabled  \r\n\r  cardkey      | Disableo

"Do you wish to save "? no

"Do you want to log out"? no

"[\r\n]+"? (No Gate, RE only) gate=yes re=yes

expect: set expect_out(0,string) "\r\n\r"

expect: set expect_out(spawn_id) "exp4"

expect: set expect_out(buffer) "  disabled     | Disabled  \r\n\r"

expect: continuing expect



expect: does "  MGMT    | Manual     x.y.121.146  255.255.0.0     \r\n\r  Subnet_121   | Manual     p.q.121.146  255.255.255.0   \r\n\r  ups          | Disabled  \r\n\r  cardkey      | Disabled  \r\n\r \r\n\r\r\n\rXxxxxxxxxyyo

"Do you wish to save "? no

"Do you want to log out"? no

"[\r\n]+"? (No Gate, RE only) gate=yes re=yes

expect: set expect_out(0,string) "\r\n\r"

expect: set expect_out(spawn_id) "exp4"

expect: set expect_out(buffer) "  MGMT    | Manual     x.y.121.146  255.255.0.0     \r\n\r"

expect: continuing expect



expect: does "  Subnet_121   | Manual     p.q.121.146  255.255.255.0   \r\n\r  ups          | Disabled  \r\n\r  cardkey      | Disabled  \r\n\r \r\n\r\r\n\rSWITCH-HOSTNAME# logout" (spawn_id exp4) match regular expression "Do you wano

"Do you wish to save "? no

"Do you want to log out"? no

"[\r\n]+"? (No Gate, RE only) gate=yes re=yes

expect: set expect_out(0,string) "\r\n\r"

expect: set expect_out(spawn_id) "exp4"

expect: set expect_out(buffer) "  Subnet_121   | Manual     p.q.121.146  255.255.255.0   \r\n\r"

expect: continuing expect



expect: does "  ups          | Disabled  \r\n\r  cardkey      | Disabled  \r\n\r \r\n\r\r\n\rSWITCH-HOSTNAME# logout" (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to saveo

"Do you wish to save "? no

"Do you want to log out"? no

"[\r\n]+"? (No Gate, RE only) gate=yes re=yes

expect: set expect_out(0,string) "\r\n\r"

expect: set expect_out(spawn_id) "exp4"

expect: set expect_out(buffer) "  ups          | Disabled  \r\n\r"

expect: continuing expect



expect: does "  cardkey      | Disabled  \r\n\r \r\n\r\r\n\rSWITCH-HOSTNAME# logout" (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to save *current configuration"? gate=no

"Do you wish to save "? no

"Do you want to log out"? no

"[\r\n]+"? (No Gate, RE only) gate=yes re=yes

expect: set expect_out(0,string) "\r\n\r"

expect: set expect_out(spawn_id) "exp4"

expect: set expect_out(buffer) "  cardkey      | Disabled  \r\n\r"

expect: continuing expect



expect: does " \r\n\r\r\n\rSWITCH-HOSTNAME# logout" (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to save *current configuration"? gate=no

"Do you wish to save "? no

"Do you want to log out"? no

"[\r\n]+"? (No Gate, RE only) gate=yes re=yes

expect: set expect_out(0,string) "\r\n\r\r\n\r"

expect: set expect_out(spawn_id) "exp4"

expect: set expect_out(buffer) " \r\n\r\r\n\r"

expect: continuing expect



expect: does "SWITCH-HOSTNAME# logout" (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to save *current configuration"? gate=no

"Do you wish to save "? no

"Do you want to log out"? no

"[\r\n]+"? (No Gate, RE only) gate=yes re=no

"^.+>"? Gate "*>"? gate=no





expect: does "SWITCH-HOSTNAME# logout\r\r\n" (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to save *current configuration"? gate=no

"Do you wish to save "? no

"Do you want to log out"? no

"[\r\n]+"? (No Gate, RE only) gate=yes re=yes

expect: set expect_out(0,string) "\r\r\n"

expect: set expect_out(spawn_id) "exp4"

expect: set expect_out(buffer) "SWITCH-HOSTNAME# logout\r\r\n"

expect: continuing expect



expect: does "" (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to save *current configuration"? gate=no

"Do you wish to save "? no

"Do you want to log out"? no

"[\r\n]+"? (No Gate, RE only) gate=yes re=no

"^.+>"? Gate "*>"? gate=no

Do you want to log out [y/n]?

expect: does "Do you want to log out [y/n]? " (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to save *current configuration"? gate=no

"Do you wish to save "? no

"Do you want to log out"? yes

expect: set expect_out(0,string) "Do you want to log out"

expect: set expect_out(spawn_id) "exp4"

expect: set expect_out(buffer) "Do you want to log out"

send: sending "y\r" to { exp4 }

expect: continuing expect



expect: does " [y/n]? " (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to save *current configuration"? gate=no

"Do you wish to save "? no

"Do you want to log out"? no

"[\r\n]+"? (No Gate, RE only) gate=yes re=no

"^.+>"? Gate "*>"? gate=no

y

expect: does " [y/n]? y" (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to save *current configuration"? gate=no

"Do you wish to save "? no

"Do you want to log out"? no

"[\r\n]+"? (No Gate, RE only) gate=yes re=no

"^.+>"? Gate "*>"? gate=no





expect: does " [y/n]? y\r\r\n" (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to save *current configuration"? gate=no

"Do you wish to save "? no

"Do you want to log out"? no

"[\r\n]+"? (No Gate, RE only) gate=yes re=yes

expect: set expect_out(0,string) "\r\r\n"

expect: set expect_out(spawn_id) "exp4"

expect: set expect_out(buffer) " [y/n]? y\r\r\n"

expect: continuing expect



expect: does "" (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to save *current configuration"? gate=no

"Do you wish to save "? no

"Do you want to log out"? no

"[\r\n]+"? (No Gate, RE only) gate=yes re=no

"^.+>"? Gate "*>"? gate=no

Connection to x.y.121.146 closed.



expect: does "Connection to x.y.121.146 closed.\r\r\r\n" (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to save *current configuration"? gate=no

"Do you wish to save "? no

"Do you want to log out"? no

"[\r\n]+"? (No Gate, RE only) gate=yes re=yes

expect: set expect_out(0,string) "\r\r\r\n"

expect: set expect_out(spawn_id) "exp4"

expect: set expect_out(buffer) "Connection to x.y.121.146 closed.\r\r\r\n"

expect: continuing expect



expect: does "" (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to save *current configuration"? gate=no

"Do you wish to save "? no

"Do you want to log out"? no

"[\r\n]+"? (No Gate, RE only) gate=yes re=no

"^.+>"? Gate "*>"? gate=no

expect: read eof

expect: set expect_out(spawn_id) "exp4"

expect: set expect_out(buffer) ""

rancid at truck:~/bin$









Robert Remsik

ACNS

Desk Phone: 970 491 7120

Robert.Remsik at colostate.edu<mailto:Robert.Remsik at colostate.edu>



_______________________________________________
Rancid-discuss mailing list
Rancid-discuss at shrubbery.net<mailto:Rancid-discuss at shrubbery.net>
http://www.shrubbery.net/mailman/listinfo/rancid-discuss

--
Doug Hughes Keystone NAP Fairless Hills, PA 1.844.KEYBLOCK (539.2562)   [cid:part10.0DF86FD4.6B12183F at keystonenap.com]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20161018/2b7c6e6f/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: keystone-nap.png
Type: image/png
Size: 3476 bytes
Desc: keystone-nap.png
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20161018/2b7c6e6f/attachment-0001.png>


More information about the Rancid-discuss mailing list