[rancid] Cisco 1900 configuration retrieval issue

Laker Netman laker_netman at yahoo.com
Wed Jan 10 21:41:58 UTC 2007


Hello.

I am having trouble retrieving the configuration from a Cisco (Catalyst) 1900 switch.

After reviewing the archives, I found and read a thread from 3/24/06 which details the issue I appear to be experiencing.  I could not find a follow-up detailing a fix or workaround.

I am running RANCID 2.3.2a3, Expect 5.43.0 on Fedora Core 4 Linux.

I have included the output from "expect -d /path/to/clogin -c 'show running' hostname > log 2>&1" below.

Suggestions?

Thanks,
Laker


expect version 5.43.0
argv[0] = expect  argv[1] = -d  argv[2] = bin/clogin  argv[3] = -c  argv[4] = show running  argv[5] = 192.168.20.211  
set argc 3
set argv0 "bin/clogin"
set argv "-c {show running} 192.168.20.211"
executing commands from command file bin/clogin
192.168.20.211
spawn telnet 192.168.20.211
parent: waiting for sync byte
parent: telling child to go ahead
parent: now unsynchronized from child
spawn: returns {4698}

expect: does "" (spawn_id exp4) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does "" (spawn_id exp4) match glob pattern "unknown host\r"? no

expect: does "" (spawn_id exp4) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no
"HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no
"Offending key for .* (yes/no)?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue."? no
"Enter Selection: "? no
"@[^\r\n]+ ([Pp]assword|passwd):"? no
"(Username|Login|login|user name):"? no
"([Pp]assword|passwd):"? no
">"? no
"Login invalid"? no
Trying 192.168.20.211...

Connected to 192.168.20.211 (192.168.20.211).

Escape character is '^]'.


expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n" (spawn_id exp4) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n" (spawn_id exp4) match glob pattern "unknown host\r"? no

expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n" (spawn_id exp4) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no
"HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no
"Offending key for .* (yes/no)?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue."? no
"Enter Selection: "? no
"@[^\r\n]+ ([Pp]assword|passwd):"? no
"(Username|Login|login|user name):"? no
"([Pp]assword|passwd):"? no
">"? no
"Login invalid"? no


expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n\r\n" (spawn_id exp4) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n\r\n" (spawn_id exp4) match glob pattern "unknown host\r"? no

expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n\r\n" (spawn_id exp4) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no
"HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no
"Offending key for .* (yes/no)?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue."? no
"Enter Selection: "? no
"@[^\r\n]+ ([Pp]assword|passwd):"? no
"(Username|Login|login|user name):"? no
"([Pp]assword|passwd):"? no
">"? no
"Login invalid"? no


































Catalyst 1900 Management Console
Copyright (c) Cisco Systems, Inc.  1993-1999
All rights reserved.
Enterprise Edition Software
Ethernet Address:      00-30-94-B7-DA-40

PCA Number:            73-3121-04
PCA Serial Number:     FAB034637LN
Model Number:          WS-C1924-EN
System Serial Number:  FAB0346R0M1
Power Supply S/N:      PHI033008AT
PCB Serial Number:     FAB034637LN,73-3121-04
-------------------------------------------------

1 user(s) now active on Management Console.

expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nCatalyst 1900 Management Console\r\nCopyright (c) Cisco Systems, Inc.  1993-1999\r\nAll rights reserved.\r\nEnterprise Edition Software\r\nEthernet Address:      00-30-94-B7-DA-40\r\n\r\nPCA Number:            73-3121-04\r\nPCA Serial Number:     FAB034637LN\r\nModel Number:          WS-C1924-EN\r\nSystem Serial Number:  FAB0346R0M1\r\nPower Supply S/N:      PHI033008AT\r\nPCB Serial Number:     FAB034637LN,73-3121-04\r\n-------------------------------------------------\r\n\r\n1 user(s) now active on Management Console.\r\n" (spawn_id exp4) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nCatalyst 1900 Management Console\r\nCopyright (c) Cisco Systems, Inc.  1993-1999\r\nAll rights reserved.\r\nEnterprise Edition Software\r\nEthernet Address:      00-30-94-B7-DA-40\r\n\r\nPCA Number:            73-3121-04\r\nPCA Serial Number:     FAB034637LN\r\nModel Number:          WS-C1924-EN\r\nSystem Serial Number:  FAB0346R0M1\r\nPower Supply S/N:      PHI033008AT\r\nPCB Serial Number:     FAB034637LN,73-3121-04\r\n-------------------------------------------------\r\n\r\n1 user(s) now active on Management Console.\r\n" (spawn_id exp4) match glob pattern "unknown host\r"? no

expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nCatalyst 1900 Management Console\r\nCopyright (c) Cisco Systems, Inc.  1993-1999\r\nAll rights reserved.\r\nEnterprise Edition Software\r\nEthernet Address:      00-30-94-B7-DA-40\r\n\r\nPCA Number:            73-3121-04\r\nPCA Serial Number:     FAB034637LN\r\nModel Number:          WS-C1924-EN\r\nSystem Serial Number:  FAB0346R0M1\r\nPower Supply S/N:      PHI033008AT\r\nPCB Serial Number:     FAB034637LN,73-3121-04\r\n-------------------------------------------------\r\n\r\n1 user(s) now active on Management Console.\r\n" (spawn_id exp4) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no
"HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no
"Offending key for .* (yes/no)?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue."? no
"Enter Selection: "? no
"@[^\r\n]+ ([Pp]assword|passwd):"? no
"(Username|Login|login|user name):"? no
"([Pp]assword|passwd):"? no
">"? no
"Login invalid"? no

        User Interface Menu

     [M] Menus
     [K] Command Line

Enter Selection:  
expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nCatalyst 1900 Management Console\r\nCopyright (c) Cisco Systems, Inc.  1993-1999\r\nAll rights reserved.\r\nEnterprise Edition Software\r\nEthernet Address:      00-30-94-B7-DA-40\r\n\r\nPCA Number:            73-3121-04\r\nPCA Serial Number:     FAB034637LN\r\nModel Number:          WS-C1924-EN\r\nSystem Serial Number:  FAB0346R0M1\r\nPower Supply S/N:      PHI033008AT\r\nPCB Serial Number:     FAB034637LN,73-3121-04\r\n-------------------------------------------------\r\n\r\n1 user(s) now active on Management Console.\r\n\r\n        User Interface Menu\r\n\r\n     [M] Menus\r\n     [K] Command Line\r\n\r\nEnter Selection:  " (spawn_id exp4) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nCatalyst 1900 Management Console\r\nCopyright (c) Cisco Systems, Inc.  1993-1999\r\nAll rights reserved.\r\nEnterprise Edition Software\r\nEthernet Address:      00-30-94-B7-DA-40\r\n\r\nPCA Number:            73-3121-04\r\nPCA Serial Number:     FAB034637LN\r\nModel Number:          WS-C1924-EN\r\nSystem Serial Number:  FAB0346R0M1\r\nPower Supply S/N:      PHI033008AT\r\nPCB Serial Number:     FAB034637LN,73-3121-04\r\n-------------------------------------------------\r\n\r\n1 user(s) now active on Management Console.\r\n\r\n        User Interface Menu\r\n\r\n     [M] Menus\r\n     [K] Command Line\r\n\r\nEnter Selection:  " (spawn_id exp4) match glob pattern "unknown host\r"? no

expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nCatalyst 1900 Management Console\r\nCopyright (c) Cisco Systems, Inc.  1993-1999\r\nAll rights reserved.\r\nEnterprise Edition Software\r\nEthernet Address:      00-30-94-B7-DA-40\r\n\r\nPCA Number:            73-3121-04\r\nPCA Serial Number:     FAB034637LN\r\nModel Number:          WS-C1924-EN\r\nSystem Serial Number:  FAB0346R0M1\r\nPower Supply S/N:      PHI033008AT\r\nPCB Serial Number:     FAB034637LN,73-3121-04\r\n-------------------------------------------------\r\n\r\n1 user(s) now active on Management Console.\r\n\r\n        User Interface Menu\r\n\r\n     [M] Menus\r\n     [K] Command Line\r\n\r\nEnter Selection:  " (spawn_id exp4) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no
"HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no
"Offending key for .* (yes/no)?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue."? no
"Enter Selection: "? yes
expect: set expect_out(0,string) "Enter Selection: "
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nCatalyst 1900 Management Console\r\nCopyright (c) Cisco Systems, Inc.  1993-1999\r\nAll rights reserved.\r\nEnterprise Edition Software\r\nEthernet Address:      00-30-94-B7-DA-40\r\n\r\nPCA Number:            73-3121-04\r\nPCA Serial Number:     FAB034637LN\r\nModel Number:          WS-C1924-EN\r\nSystem Serial Number:  FAB0346R0M1\r\nPower Supply S/N:      PHI033008AT\r\nPCB Serial Number:     FAB034637LN,73-3121-04\r\n-------------------------------------------------\r\n\r\n1 user(s) now active on Management Console.\r\n\r\n        User Interface Menu\r\n\r\n     [M] Menus\r\n     [K] Command Line\r\n\r\nEnter Selection: "
send: sending "K\r" to { exp4 }
expect: continuing expect

expect: does " " (spawn_id exp4) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does " " (spawn_id exp4) match glob pattern "unknown host\r"? no

expect: does " " (spawn_id exp4) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no
"HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no
"Offending key for .* (yes/no)?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue."? no
"Enter Selection: "? no
"@[^\r\n]+ ([Pp]assword|passwd):"? no
"(Username|Login|login|user name):"? no
"([Pp]assword|passwd):"? no
">"? no
"Login invalid"? no
K


      CLI session with the switch is open.
      To end the CLI session, enter [Exit].

frk1924>
expect: does " K\r\n\r\n\r\n      CLI session with the switch is open.\r\n      To end the CLI session, enter [Exit].\r\n\r\nfrk1924>" (spawn_id exp4) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does " K\r\n\r\n\r\n      CLI session with the switch is open.\r\n      To end the CLI session, enter [Exit].\r\n\r\nfrk1924>" (spawn_id exp4) match glob pattern "unknown host\r"? no

expect: does " K\r\n\r\n\r\n      CLI session with the switch is open.\r\n      To end the CLI session, enter [Exit].\r\n\r\nfrk1924>" (spawn_id exp4) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no
"HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no
"Offending key for .* (yes/no)?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue."? no
"Enter Selection: "? no
"@[^\r\n]+ ([Pp]assword|passwd):"? no
"(Username|Login|login|user name):"? no
"([Pp]assword|passwd):"? no
">"? yes
expect: set expect_out(0,string) ">"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) " K\r\n\r\n\r\n      CLI session with the switch is open.\r\n      To end the CLI session, enter [Exit].\r\n\r\nfrk1924>"
send: sending "enable\r" to { exp4 }

expect: does "" (spawn_id exp4) match regular expression "(Username|Login|login|user name):"? no
"[Pp]assword:"? no
"#"? no
"(enable)"? no
"(denied|Sorry|Incorrect)"? no
"% Error in authentication"? no
"% Bad passwords"? no
enable

Enter password:  
expect: does "enable\n\rEnter password:  " (spawn_id exp4) match regular expression "(Username|Login|login|user name):"? no
"[Pp]assword:"? yes
expect: set expect_out(0,string) "password:"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) "enable\n\rEnter password:"
send: sending "XXXXXXXX\r" to { exp4 }
expect: continuing expect

expect: does "  " (spawn_id exp4) match regular expression "(Username|Login|login|user name):"? no
"[Pp]assword:"? no
"#"? no
"(enable)"? no
"(denied|Sorry|Incorrect)"? no
"% Error in authentication"? no
"% Bad passwords"? no
*****

expect: does "  *****\r\n" (spawn_id exp4) match regular expression "(Username|Login|login|user name):"? no
"[Pp]assword:"? no
"#"? no
"(enable)"? no
"(denied|Sorry|Incorrect)"? no
"% Error in authentication"? no
"% Bad passwords"? no
frk1924#
expect: does "  *****\r\nfrk1924#" (spawn_id exp4) match regular expression "(Username|Login|login|user name):"? no
"[Pp]assword:"? no
"#"? yes
expect: set expect_out(0,string) "#"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) "  *****\r\nfrk1924#"
send: sending "\r" to { exp4 }

expect: does "" (spawn_id exp4) match regular expression "[\r\n]+"? no
"^(.+:)1 #"? no
"^.+#"? no
"^.+> \(enable\)"? no


expect: does "\n" (spawn_id exp4) match regular expression "[\r\n]+"? yes
expect: set expect_out(0,string) "\n"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) "\n"
expect: continuing expect

expect: does "" (spawn_id exp4) match regular expression "[\r\n]+"? no
"^(.+:)1 #"? no
"^.+#"? no
"^.+> \(enable\)"? no

frk1924#
expect: does "\rfrk1924#" (spawn_id exp4) match regular expression "[\r\n]+"? yes
expect: set expect_out(0,string) "\r"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) "\r"
expect: continuing expect

expect: does "frk1924#" (spawn_id exp4) match regular expression "[\r\n]+"? no
"^(.+:)1 #"? no
"^.+#"? yes
expect: set expect_out(0,string) "frk1924#"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) "frk1924#"
send: sending "term length 0\r" to { exp4 }

expect: does "" (spawn_id exp4) match regular expression "frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no
"[\n\r]+"? no
term length 0

             ^
% Invalid input detected at '^' marker.

expect: does "term length 0\n\r             ^\r\n% Invalid input detected at '^' marker.\r\n" (spawn_id exp4) match regular expression "frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no
"[\n\r]+"? yes
expect: set expect_out(0,string) "\n\r"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) "term length 0\n\r"
expect: continuing expect

expect: does "             ^\r\n% Invalid input detected at '^' marker.\r\n" (spawn_id exp4) match regular expression "frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no
"[\n\r]+"? yes
expect: set expect_out(0,string) "\r\n"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) "             ^\r\n"
expect: continuing expect

expect: does "% Invalid input detected at '^' marker.\r\n" (spawn_id exp4) match regular expression "frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no
"[\n\r]+"? yes
expect: set expect_out(0,string) "\r\n"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) "% Invalid input detected at '^' marker.\r\n"
expect: continuing expect

expect: does "" (spawn_id exp4) match regular expression "frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no
"[\n\r]+"? no
frk1924#
expect: does "frk1924#" (spawn_id exp4) match regular expression "frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? yes
expect: set expect_out(0,string) "frk1924#"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) "frk1924#"
send: sending "show running\r" to { exp4 }

expect: does "" (spawn_id exp4) match regular expression "\u0008+"? no
"^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no
"^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no
"[\n\r]+"? no
"[^\r\n]*Press <SPACE> to cont[^\r\n]*"? no
"^ *--More--[^\n\r]*"? no
"^<-+ More -+>[^\n\r]*"? no

expect: does "show running\n\rBuilding configuration...\r\nCurrent configuration:\r\n!\r\n!\r\n!\r\nno cgmp\r\n!\r\n!\r\n!\r\n!\r\nhostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no
"^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no
"^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no
"[\n\r]+"? yes
expect: set expect_out(0,string) "\n\r"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) "show running\n\r"
show running

expect: continuing expect

expect: does "Building configuration...\r\nCurrent configuration:\r\n!\r\n!\r\n!\r\nno cgmp\r\n!\r\n!\r\n!\r\n!\r\nhostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no
"^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no
"^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no
"[\n\r]+"? yes
expect: set expect_out(0,string) "\r\n"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) "Building configuration...\r\n"
Building configuration...
expect: continuing expect

expect: does "Current configuration:\r\n!\r\n!\r\n!\r\nno cgmp\r\n!\r\n!\r\n!\r\n!\r\nhostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no
"^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no
"^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no
"[\n\r]+"? yes
expect: set expect_out(0,string) "\r\n"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) "Current configuration:\r\n"
Current configuration:
expect: continuing expect

expect: does "!\r\n!\r\n!\r\nno cgmp\r\n!\r\n!\r\n!\r\n!\r\nhostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no
"^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no
"^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no
"[\n\r]+"? yes
expect: set expect_out(0,string) "\r\n"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) "!\r\n"
!
expect: continuing expect

expect: does "!\r\n!\r\nno cgmp\r\n!\r\n!\r\n!\r\n!\r\nhostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no
"^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no
"^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no
"[\n\r]+"? yes
expect: set expect_out(0,string) "\r\n"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) "!\r\n"
!
expect: continuing expect

expect: does "!\r\nno cgmp\r\n!\r\n!\r\n!\r\n!\r\nhostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no
"^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no
"^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no
"[\n\r]+"? yes
expect: set expect_out(0,string) "\r\n"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) "!\r\n"
!
expect: continuing expect

expect: does "no cgmp\r\n!\r\n!\r\n!\r\n!\r\nhostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no
"^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no
"^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no
"[\n\r]+"? yes
expect: set expect_out(0,string) "\r\n"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) "no cgmp\r\n"
no cgmp
expect: continuing expect

expect: does "!\r\n!\r\n!\r\n!\r\nhostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no
"^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no
"^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no
"[\n\r]+"? yes
expect: set expect_out(0,string) "\r\n"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) "!\r\n"
!
expect: continuing expect

expect: does "!\r\n!\r\n!\r\nhostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no
"^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no
"^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no
"[\n\r]+"? yes
expect: set expect_out(0,string) "\r\n"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) "!\r\n"
!
expect: continuing expect

expect: does "!\r\n!\r\nhostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no
"^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no
"^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no
"[\n\r]+"? yes
expect: set expect_out(0,string) "\r\n"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) "!\r\n"
!
expect: continuing expect

expect: does "!\r\nhostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no
"^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no
"^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no
"[\n\r]+"? yes
expect: set expect_out(0,string) "\r\n"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) "!\r\n"
!
expect: continuing expect

expect: does "hostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no
"^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no
"^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no
"[\n\r]+"? yes
expect: set expect_out(0,string) "\r\n"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) "hostname "frk1924"\r\n"
hostname "frk1924"
expect: continuing expect

expect: does "!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no
"^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no
"^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no
"[\n\r]+"? yes
expect: set expect_out(0,string) "\r\n"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) "!\r\n"
!
expect: continuing expect

expect: does "!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no
"^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no
"^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no
"[\n\r]+"? yes
expect: set expect_out(0,string) "\r\n"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) "!\r\n"
!
expect: continuing expect

expect: does "!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no
"^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no
"^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no
"[\n\r]+"? yes
expect: set expect_out(0,string) "\r\n"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) "!\r\n"
!
expect: continuing expect

expect: does "monitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no
"^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no
"^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no
"[\n\r]+"? yes
expect: set expect_out(0,string) "\r\n"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) "monitor-port monitored 0/1\r\n"
monitor-port monitored 0/1
expect: continuing expect

expect: does "monitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no
"^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no
"^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no
"[\n\r]+"? yes
expect: set expect_out(0,string) "\r\n"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) "monitor-port monitored 0/2\r\n"
monitor-port monitored 0/2
expect: continuing expect

expect: does "monitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no
"^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no
"^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no
"[\n\r]+"? yes
expect: set expect_out(0,string) "\r\n"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) "monitor-port monitored 0/3\r\n"
monitor-port monitored 0/3
expect: continuing expect

expect: does "monitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no
"^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no
"^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no
"[\n\r]+"? yes
expect: set expect_out(0,string) "\r\n"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) "monitor-port monitored 0/4\r\n"
monitor-port monitored 0/4
expect: continuing expect

expect: does "monitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no
"^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no
"^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no
"[\n\r]+"? yes
expect: set expect_out(0,string) "\r\n"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) "monitor-port monitored 0/5\r\n"
monitor-port monitored 0/5
expect: continuing expect

expect: does "monitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no
"^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no
"^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no
"[\n\r]+"? yes
expect: set expect_out(0,string) "\r\n"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) "monitor-port monitored 0/6\r\n"
monitor-port monitored 0/6
expect: continuing expect

expect: does "monitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no
"^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no
"^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no
"[\n\r]+"? yes
expect: set expect_out(0,string) "\r\n"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) "monitor-port monitored 0/7\r\n"
monitor-port monitored 0/7
expect: continuing expect

expect: does "monitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no
"^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no
"^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no
"[\n\r]+"? yes
expect: set expect_out(0,string) "\r\n"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) "monitor-port monitored 0/8\r\n"
monitor-port monitored 0/8
expect: continuing expect

expect: does "monitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no
"^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no
"^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no
"[\n\r]+"? yes
expect: set expect_out(0,string) "\r\n\r\n"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) "monitor-port monitored 0/9\r\n\r\n"
monitor-port monitored 0/9

expect: continuing expect

expect: does "--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no
"^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no
"^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no
"[\n\r]+"? yes
expect: set expect_out(0,string) "\r\n"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) "--More--\r\n"
--More--
expect: continuing expect

expect: does "" (spawn_id exp4) match regular expression "\u0008+"? no
"^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no
"^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no
"[\n\r]+"? no
"[^\r\n]*Press <SPACE> to cont[^\r\n]*"? no
"^ *--More--[^\n\r]*"? no
"^<-+ More -+>[^\n\r]*"? no
expect: timed out

Error: TIMEOUT reached
write() failed to write anything - will sleep(1) and retry...





 
____________________________________________________________________________________
Want to start your own business?
Learn how on Yahoo! Small Business.
http://smallbusiness.yahoo.com/r-index



More information about the Rancid-discuss mailing list