[rancid@eden bin]$ ./clogin -d 172.28.0.45 172.28.0.45 spawn ssh -c 3des -x -l admin 172.28.0.45 parent: waiting for sync byte parent: telling child to go ahead parent: now unsynchronized from child spawn: returns {6678} 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 "Last login:"? no "@[^\r\n]+ ([Pp]assword|passwd):"? no "(Username|Login|login|user name|User):"? no "([Pp]assword|passwd):"? no ">"? no "Login invalid"? no admin@172.28.0.45's password: expect: does "admin@172.28.0.45's password: " (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 "admin@172.28.0.45's password: " (spawn_id exp4) match glob pattern "unknown host\r"? no expect: does "admin@172.28.0.45's password: " (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 "Last login:"? no "@[^\r\n]+ ([Pp]assword|passwd):"? yes expect: set expect_out(0,string) "@172.28.0.45's password:" expect: set expect_out(1,string) "password" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "admin@172.28.0.45's password:" send: sending "m4rksM$N\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 "Last login:"? no "@[^\r\n]+ ([Pp]assword|passwd):"? no "(Username|Login|login|user name|User):"? no "([Pp]assword|passwd):"? no ">"? no "Login invalid"? no expect: does " \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 " \r\n" (spawn_id exp4) match glob pattern "unknown host\r"? no expect: does " \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 "Last login:"? no "@[^\r\n]+ ([Pp]assword|passwd):"? no "(Username|Login|login|user name|User):"? no "([Pp]assword|passwd):"? no ">"? no "Login invalid"? no Extremeware Copyright (C) 1996-2006 Extreme Networks. All rights reserved. Protected by U.S Patent Nos 6,678,248; 6,104,700; 6,766,482; 6,618,388; 6,034,957; 6,859,438; 6,912,592; 6,914,905; 5,694,436 ============================================================================================================================= Press the key at any time for completions. Remember to save your configuration changes. * 300e48-0.45-HH-IDF:1 # expect: does " \r\n\r\nExtremeware\r\nCopyright (C) 1996-2006 Extreme Networks. All rights reserved.\r\nProtected by U.S Patent Nos 6,678,248; 6,104,700; 6,766,482; 6,618,388; 6,034,957; 6,859,438; 6,912,592; 6,914,905; 5,694,436\r\n=============================================================================================================================\r\n\r\nPress the key at any time for completions.\r\nRemember to save your configuration changes.\r\n* 300e48-0.45-HH-IDF:1 # " (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 " \r\n\r\nExtremeware\r\nCopyright (C) 1996-2006 Extreme Networks. All rights reserved.\r\nProtected by U.S Patent Nos 6,678,248; 6,104,700; 6,766,482; 6,618,388; 6,034,957; 6,859,438; 6,912,592; 6,914,905; 5,694,436\r\n=============================================================================================================================\r\n\r\nPress the key at any time for completions.\r\nRemember to save your configuration changes.\r\n* 300e48-0.45-HH-IDF:1 # " (spawn_id exp4) match glob pattern "unknown host\r"? no expect: does " \r\n\r\nExtremeware\r\nCopyright (C) 1996-2006 Extreme Networks. All rights reserved.\r\nProtected by U.S Patent Nos 6,678,248; 6,104,700; 6,766,482; 6,618,388; 6,034,957; 6,859,438; 6,912,592; 6,914,905; 5,694,436\r\n=============================================================================================================================\r\n\r\nPress the key at any time for completions.\r\nRemember to save your configuration changes.\r\n* 300e48-0.45-HH-IDF:1 # " (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 "Last login:"? no "@[^\r\n]+ ([Pp]assword|passwd):"? no "(Username|Login|login|user name|User):"? no "([Pp]assword|passwd):"? no ">"? yes expect: set expect_out(0,string) ">" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " \r\n\r\nExtremeware\r\nCopyright (C) 1996-2006 Extreme Networks. All rights reserved.\r\nProtected by U.S Patent Nos 6,678,248; 6,104,700; 6,766,482; 6,618,388; 6,034,957; 6,859,438; 6,912,592; 6,914,905; 5,694,436\r\n=============================================================================================================================\r\n\r\nPress the " send: sending "enable\r" to { exp4 } expect: does " key at any time for completions.\r\nRemember to save your configuration changes.\r\n* 300e48-0.45-HH-IDF:1 # " (spawn_id exp4) match regular expression "(Username|Login|login|user name|User):"? no "[Pp]assword:"? no "#"? yes expect: set expect_out(0,string) "#" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " key at any time for completions.\r\nRemember to save your configuration changes.\r\n* 300e48-0.45-HH-IDF:1 #" send: sending "\r" to { exp4 } expect: does " " (spawn_id exp4) match regular expression "[\r\n]+"? no "^(.+[:.])1 (#)"? no "^.+#"? no "^.+> \(enable\)"? no enable Syntax error at end of line. Next possible completions: accounting arp-learning autodst bootp bootprelay cli-config-logging cli-prompt-number clipaging cpu-dos-protect dhcp diagnostics diffserv dlcs eapol-flooding eaps edp elrp-client enhanced-dos-protect esrp esrp-aware icmp idletimeouts igmp ignore-bpdu ignore-stp inline-power ip-option ip-subnet-lookup iparp ipforwarding ipmcforwarding iproute irdp isq lbdetect learning license lldp log loopback-mode mac-lockdown-timeout expect: does " enable\r\n\r\nSyntax error at end of line.\r\n\r\nNext possible completions:\r\n\taccounting arp-learning autodst bootp bootprelay cli-config-logging \r\n\tcli-prompt-number clipaging cpu-dos-protect dhcp diagnostics diffserv \r\n\tdlcs eapol-flooding eaps edp elrp-client enhanced-dos-protect esrp \r\n\tesrp-aware icmp idletimeouts igmp ignore-bpdu ignore-stp inline-power \r\n\tip-option ip-subnet-lookup iparp ipforwarding ipmcforwarding iproute \r\n\tirdp isq lbdetect learning license lldp log loopback-mode \r\n\tmac-lockdown-timeout " (spawn_id exp4) match regular expression "[\r\n]+"? yes expect: set expect_out(0,string) "\r\n\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " enable\r\n\r\n" expect: continuing expect expect: does "Syntax error at end of line.\r\n\r\nNext possible completions:\r\n\taccounting arp-learning autodst bootp bootprelay cli-config-logging \r\n\tcli-prompt-number clipaging cpu-dos-protect dhcp diagnostics diffserv \r\n\tdlcs eapol-flooding eaps edp elrp-client enhanced-dos-protect esrp \r\n\tesrp-aware icmp idletimeouts igmp ignore-bpdu ignore-stp inline-power \r\n\tip-option ip-subnet-lookup iparp ipforwarding ipmcforwarding iproute \r\n\tirdp isq lbdetect learning license lldp log loopback-mode \r\n\tmac-lockdown-timeout " (spawn_id exp4) match regular expression "[\r\n]+"? yes expect: set expect_out(0,string) "\r\n\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "Syntax error at end of line.\r\n\r\n" expect: continuing expect expect: does "Next possible completions:\r\n\taccounting arp-learning autodst bootp bootprelay cli-config-logging \r\n\tcli-prompt-number clipaging cpu-dos-protect dhcp diagnostics diffserv \r\n\tdlcs eapol-flooding eaps edp elrp-client enhanced-dos-protect esrp \r\n\tesrp-aware icmp idletimeouts igmp ignore-bpdu ignore-stp inline-power \r\n\tip-option ip-subnet-lookup iparp ipforwarding ipmcforwarding iproute \r\n\tirdp isq lbdetect learning license lldp log loopback-mode \r\n\tmac-lockdown-timeout " (spawn_id exp4) match regular expression "[\r\n]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "Next possible completions:\r\n" expect: continuing expect expect: does "\taccounting arp-learning autodst bootp bootprelay cli-config-logging \r\n\tcli-prompt-number clipaging cpu-dos-protect dhcp diagnostics diffserv \r\n\tdlcs eapol-flooding eaps edp elrp-client enhanced-dos-protect esrp \r\n\tesrp-aware icmp idletimeouts igmp ignore-bpdu ignore-stp inline-power \r\n\tip-option ip-subnet-lookup iparp ipforwarding ipmcforwarding iproute \r\n\tirdp isq lbdetect learning license lldp log loopback-mode \r\n\tmac-lockdown-timeout " (spawn_id exp4) match regular expression "[\r\n]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "\taccounting arp-learning autodst bootp bootprelay cli-config-logging \r\n" expect: continuing expect expect: does "\tcli-prompt-number clipaging cpu-dos-protect dhcp diagnostics diffserv \r\n\tdlcs eapol-flooding eaps edp elrp-client enhanced-dos-protect esrp \r\n\tesrp-aware icmp idletimeouts igmp ignore-bpdu ignore-stp inline-power \r\n\tip-option ip-subnet-lookup iparp ipforwarding ipmcforwarding iproute \r\n\tirdp isq lbdetect learning license lldp log loopback-mode \r\n\tmac-lockdown-timeout " (spawn_id exp4) match regular expression "[\r\n]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "\tcli-prompt-number clipaging cpu-dos-protect dhcp diagnostics diffserv \r\n" expect: continuing expect expect: does "\tdlcs eapol-flooding eaps edp elrp-client enhanced-dos-protect esrp \r\n\tesrp-aware icmp idletimeouts igmp ignore-bpdu ignore-stp inline-power \r\n\tip-option ip-subnet-lookup iparp ipforwarding ipmcforwarding iproute \r\n\tirdp isq lbdetect learning license lldp log loopback-mode \r\n\tmac-lockdown-timeout " (spawn_id exp4) match regular expression "[\r\n]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "\tdlcs eapol-flooding eaps edp elrp-client enhanced-dos-protect esrp \r\n" expect: continuing expect expect: does "\tesrp-aware icmp idletimeouts igmp ignore-bpdu ignore-stp inline-power \r\n\tip-option ip-subnet-lookup iparp ipforwarding ipmcforwarding iproute \r\n\tirdp isq lbdetect learning license lldp log loopback-mode \r\n\tmac-lockdown-timeout " (spawn_id exp4) match regular expression "[\r\n]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "\tesrp-aware icmp idletimeouts igmp ignore-bpdu ignore-stp inline-power \r\n" expect: continuing expect expect: does "\tip-option ip-subnet-lookup iparp ipforwarding ipmcforwarding iproute \r\n\tirdp isq lbdetect learning license lldp log loopback-mode \r\n\tmac-lockdown-timeout " (spawn_id exp4) match regular expression "[\r\n]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "\tip-option ip-subnet-lookup iparp ipforwarding ipmcforwarding iproute \r\n" expect: continuing expect expect: does "\tirdp isq lbdetect learning license lldp log loopback-mode \r\n\tmac-lockdown-timeout " (spawn_id exp4) match regular expression "[\r\n]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "\tirdp isq lbdetect learning license lldp log loopback-mode \r\n" expect: continuing expect expect: does "\tmac-lockdown-timeout " (spawn_id exp4) match regular expression "[\r\n]+"? no "^(.+[:.])1 (#)"? no "^.+#"? no "^.+> \(enable\)"? no mac-vlan manufacturing-support mirroring nat netlogin ospf pim ports radius radius-accounting red rip rmon sharing smartredundancy snmp sntp-client source-ip-lockdown ssh2 stpd syslog syslogd system-watchdog tacacs tacacs-accounting tacacs-authorization telnet trusted-mac-address udp-echo-server udp-forwarding vrrp web wireless * 300e48-0.45-HH-IDF:2 # * 300e48-0.45-HH-IDF:2 # expect: does "\tmac-lockdown-timeout mac-vlan manufacturing-support mirroring nat \r\n\tnetlogin ospf pim ports radius radius-accounting red rip rmon sharing \r\n\tsmartredundancy snmp sntp-client source-ip-lockdown ssh2 stpd syslog \r\n\tsyslogd system-watchdog tacacs tacacs-accounting tacacs-authorization \r\n\ttelnet trusted-mac-address udp-echo-server udp-forwarding vrrp web \r\n\twireless \r\n\r\n* 300e48-0.45-HH-IDF:2 # \r\n* 300e48-0.45-HH-IDF:2 # " (spawn_id exp4) match regular expression "[\r\n]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "\tmac-lockdown-timeout mac-vlan manufacturing-support mirroring nat \r\n" expect: continuing expect expect: does "\tnetlogin ospf pim ports radius radius-accounting red rip rmon sharing \r\n\tsmartredundancy snmp sntp-client source-ip-lockdown ssh2 stpd syslog \r\n\tsyslogd system-watchdog tacacs tacacs-accounting tacacs-authorization \r\n\ttelnet trusted-mac-address udp-echo-server udp-forwarding vrrp web \r\n\twireless \r\n\r\n* 300e48-0.45-HH-IDF:2 # \r\n* 300e48-0.45-HH-IDF:2 # " (spawn_id exp4) match regular expression "[\r\n]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "\tnetlogin ospf pim ports radius radius-accounting red rip rmon sharing \r\n" expect: continuing expect expect: does "\tsmartredundancy snmp sntp-client source-ip-lockdown ssh2 stpd syslog \r\n\tsyslogd system-watchdog tacacs tacacs-accounting tacacs-authorization \r\n\ttelnet trusted-mac-address udp-echo-server udp-forwarding vrrp web \r\n\twireless \r\n\r\n* 300e48-0.45-HH-IDF:2 # \r\n* 300e48-0.45-HH-IDF:2 # " (spawn_id exp4) match regular expression "[\r\n]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "\tsmartredundancy snmp sntp-client source-ip-lockdown ssh2 stpd syslog \r\n" expect: continuing expect expect: does "\tsyslogd system-watchdog tacacs tacacs-accounting tacacs-authorization \r\n\ttelnet trusted-mac-address udp-echo-server udp-forwarding vrrp web \r\n\twireless \r\n\r\n* 300e48-0.45-HH-IDF:2 # \r\n* 300e48-0.45-HH-IDF:2 # " (spawn_id exp4) match regular expression "[\r\n]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "\tsyslogd system-watchdog tacacs tacacs-accounting tacacs-authorization \r\n" expect: continuing expect expect: does "\ttelnet trusted-mac-address udp-echo-server udp-forwarding vrrp web \r\n\twireless \r\n\r\n* 300e48-0.45-HH-IDF:2 # \r\n* 300e48-0.45-HH-IDF:2 # " (spawn_id exp4) match regular expression "[\r\n]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "\ttelnet trusted-mac-address udp-echo-server udp-forwarding vrrp web \r\n" expect: continuing expect expect: does "\twireless \r\n\r\n* 300e48-0.45-HH-IDF:2 # \r\n* 300e48-0.45-HH-IDF:2 # " (spawn_id exp4) match regular expression "[\r\n]+"? yes expect: set expect_out(0,string) "\r\n\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "\twireless \r\n\r\n" expect: continuing expect expect: does "* 300e48-0.45-HH-IDF:2 # \r\n* 300e48-0.45-HH-IDF:2 # " (spawn_id exp4) match regular expression "[\r\n]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "* 300e48-0.45-HH-IDF:2 # \r\n" expect: continuing expect expect: does "* 300e48-0.45-HH-IDF:2 # " (spawn_id exp4) match regular expression "[\r\n]+"? no "^(.+[:.])1 (#)"? no "^.+#"? yes expect: set expect_out(0,string) "* 300e48-0.45-HH-IDF:2 #" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "* 300e48-0.45-HH-IDF:2 #" tty_raw_noecho: was raw = 0 echo = 1