<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3132" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN
class=859381411-30112007>Hi</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=859381411-30112007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=859381411-30112007>I am having similar
issues logging on to Extreme's X450 switch using clogin (ExtremeXOS version
11.6.3.4) as mentioned in the thread "<FONT face="Times New Roman">clogin on
extreme X450"</FONT>. However in my case the login process works about 70% of
the time (but has to make two attempts) and fails after 3 attempts the rest of
the time. See output below for both cases. I suspect the issue is the
same.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=859381411-30112007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=859381411-30112007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=859381411-30112007></SPAN></FONT> </DIV>
<DIV><FONT face="Courier New" size=2><SPAN class=859381411-30112007>[alderaan]
~/deltas/SPOOL> clogin metro-sw1<BR>metro-sw1<BR>spawn telnet
metro-sw1<BR>Trying 10.10.80.11...<BR>Won't send login name and/or
authentication information.<BR>Connected to metro-sw1.<BR>Escape character is
'^]'.</SPAN></FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New" size=2><SPAN class=859381411-30112007>telnet
session telnet0 on /dev/ptyb0</SPAN></FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New" size=2><SPAN class=859381411-30112007>login:
admin<BR>password:</SPAN></FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New" size=2><SPAN class=859381411-30112007>Login
incorrect<BR>login: passwd<BR>password:</SPAN></FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New" size=2><SPAN class=859381411-30112007>Login
incorrect<BR>login: admin<BR>password:</SPAN></FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New" size=2><SPAN
class=859381411-30112007>ExtremeXOS<BR>Copyright (C) 2000-2006 Extreme Networks.
All rights reserved.<BR>Protected by US Patent Nos: 6,678,248; 6,104,700;
6,766,482; 6,618,388; 6,034,957; 6,859,438; 6,912,592; 6,954,436; 6,977,891;
6,980,550; 6,981,174; 7,003,705;
7,012,082.<BR>==============================================================================</SPAN></FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New" size=2><SPAN class=859381411-30112007>Press the
<tab> or '?' key at any time for completions.<BR>Remember to save your
configuration changes.</SPAN></FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New" size=2><SPAN class=859381411-30112007>metro-sw1:.1
#</SPAN></FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New" size=2><SPAN
class=859381411-30112007></SPAN></FONT> </DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New" size=2><SPAN
class=859381411-30112007></SPAN></FONT> </DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New" size=2><SPAN class=859381411-30112007>[alderaan]
~/deltas/SPOOL> clogin metro-sw1<BR>metro-sw1<BR>spawn telnet
metro-sw1<BR>Trying 10.252.80.11...<BR>Won't send login name and/or
authentication information.<BR>Connected to metro-sw1.<BR>Escape character is
'^]'.</SPAN></FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New" size=2><SPAN class=859381411-30112007>telnet
session telnet0 on /dev/ptyb0</SPAN></FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New" size=2><SPAN class=859381411-30112007>login:
admin<BR>password:</SPAN></FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New" size=2><SPAN class=859381411-30112007>Login
incorrect<BR>login: passwd<BR>password:</SPAN></FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New" size=2><SPAN class=859381411-30112007>Login
incorrect<BR>login: passwd<BR>password:</SPAN></FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New" size=2><SPAN class=859381411-30112007>Login
incorrect<BR>Maximum number of login attempts reached!<BR>Connection closed by
foreign host.<BR>passwd</SPAN></FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New" size=2><SPAN class=859381411-30112007>Error:
Connection Refused (telnet)<BR>[alderaan]
~/deltas/SPOOL><BR></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=859381411-30112007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=859381411-30112007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=859381411-30112007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=859381411-30112007>I tried the
suggested fix, i.e. "one way would be to change the login prompt regex to
"$u_prompt[^a-zA-Z0-9]" and the default u_prompt to "(Username|Login|login|user
name): ?"," but couldn't get it to work - kept getting a syntax error for the
"u_prompt[^a-zA-Z0-9]" bit. I'm not familiar with expect so was wondering if the
syntax given is correct. The changes I made to clogin and the error message I
get are shown below.</SPAN></FONT></DIV>
<DIV><FONT size=2><SPAN class=859381411-30112007></SPAN></FONT> </DIV>
<DIV><FONT size=2><SPAN class=859381411-30112007></SPAN></FONT> </DIV>
<DIV><FONT size=2><SPAN class=859381411-30112007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=859381411-30112007><SPAN
class=859381411-30112007>Changed these two lines</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=859381411-30112007><SPAN
class=859381411-30112007></SPAN></SPAN></FONT> </DIV>
<DIV><FONT face="Courier New" size=2><SPAN class=859381411-30112007><SPAN
class=859381411-30112007>if { "$u_prompt" == "" } { set u_prompt
"(Username|Login|login|user name): ?" }<BR></SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=859381411-30112007><FONT
face="Courier New">-re
"$u_prompt[^a-zA-Z0-9]"
{</FONT></DIV></SPAN></FONT>
<DIV><FONT face=Arial size=2><SPAN
class=859381411-30112007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=859381411-30112007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=859381411-30112007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=859381411-30112007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=859381411-30112007>Get this error
message when I run clogin</SPAN></FONT></DIV>
<DIV><FONT><SPAN class=859381411-30112007>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>%clogin metro-sw1<BR>metro-sw1<BR>spawn
telnet metro-sw1<BR>invalid command name "^a-zA-Z0-9"<BR>
while executing<BR>"^a-zA-Z0-9"<BR> invoked from
within<BR>"expect {<BR> -re
"(Connection refused|Secure connection \[^\n\r]+ refused|Connection closed by)"
{<BR> catch
{close};
wait<BR> if
..."<BR> (procedure "login" line 66)<BR>
invoked from within<BR>"login $router $ruser $userpswd $passwd $enapasswd
$cmethod $cyphertype"<BR> ("foreach" body line
94)<BR> invoked from within<BR>"foreach router [lrange $argv
$i end] {<BR> set router [string tolower
$router]<BR> send_user "$router\n"</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT size=2><FONT face="Courier New"> # Figure out
prompt.<BR> # Since autoena..."<BR> (file
"/var/local/rancid/bin/clogin" line 565)<BR><SPAN
class=859381411-30112007>%</SPAN></FONT></FONT></DIV></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=859381411-30112007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=859381411-30112007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=859381411-30112007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=859381411-30112007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=859381411-30112007>Regards</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=859381411-30112007>Bill
Curtin</SPAN></FONT></DIV><pre>
***************************************************************
The information contained in this e-mail and any files transmitted
with it is confidential and may be subject to legal professional
privilege. It is intended solely for the use of the addressee(s).
If you are not the intended recipient of this e-mail, please note
that any review, dissemination, disclosure, alteration, printing,
copying or transmission of this e-mail and/or any file transmitted
with it, is prohibited and may be unlawful.
If you have received this e-mail by mistake, please promptly
inform the sender by reply e-mail and delete the material.
Whilst this e-mail message has been swept for the presence of
computer viruses, eircom does not, except as required by law,
represent, warrant and/or guarantee that the integrity
of this communication has been maintained nor that
the communication is free of errors, viruses, interception or
interference.
eircom Limited. Private Company Limited by Shares.
Registered in Dublin. Registration Number 98789.
Registered Office - 114 St. Stephen's Green West, Dublin 2.
***************************************************************
</pre></BODY></HTML>