<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi John,<br>
<br>
<blockquote cite="mid:20100506165133.GQ21825@shrubbery.net" type="cite">
<pre wrap=""><!---->
could you show the o/p of "clogin -c 'show version' host" to me? ie: the
match of the clogin -d o/p below.
</pre>
</blockquote>
<br>
Sorry it took a while, here's the output:<br>
<br>
---<br>
[rancid@stats ~]$ clogin -c 'show version' myswitch.local<br>
myswitch.local<br>
spawn telnet myswitch.local<br>
Trying 10.0.0.1..<br>
Connected to myswitch.local (10.0.0.1).<br>
Escape character is '^]'.<br>
<br>
Copyright (C) 1999 by Extreme Networks<br>
login: admin<br>
password: <br>
<br>
Press the <tab> key at any time for completions.<br>
Don't forget to save your configuration changes.<br>
* myswitch:1 # enable<br>
<br>
Syntax error at end of line.<br>
<br>
Next possible completions:<br>
autodst bootp bootprelay cli-config-logging clipaging <br>
dvmrp edp esrp gvrp icmp <br>
idletimeouts igmp ignore-stp iparp ipforwarding <br>
ipmcforwarding iproute isq ipxrip ipxsap <br>
jumbo irdp learning license log <br>
mirroring multinetting ospf pace pim-dm <br>
ports qosmonitor radius rip rmon <br>
sharing smartredundancy snmp sntp-client stpd <br>
subvlan-proxy-arp summitlink syslog telnet type20 <br>
web <spanning tree name> <br>
* myswitch:2 # couldn't compile regular expression pattern: quantifier
operand invalid<br>
while executing<br>
"expect -nobrace -re {*
myswitch([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[<br>
]+} { exp_continue }"<br>
invoked from within<br>
"expect {<br>
-re $reprompt {}<br>
-re "\[\n\r]+" { exp_continue }<br>
}"<br>
(procedure "run_commands" line 21)<br>
invoked from within<br>
"run_commands $prompt $command"<br>
("foreach" body line 155)<br>
invoked from within<br>
"foreach router [lrange $argv $i end] {<br>
set router [string tolower $router]<br>
# attempt at platform switching.<br>
set platform ""<br>
send_user ..."<br>
(file "/usr/bin/clogin" line 722)<br>
[rancid@stats ~]$<br>
---<br>
<br>
<br>
</body>
</html>