[rancid] Extreme 200-series switches

heasley heas at shrubbery.net
Sun Mar 24 16:38:03 UTC 2019


Fri, Mar 15, 2019 at 02:01:43PM +0800, James Andrewartha:
> On 13/03/19 04:42, heasley wrote:
> > Fri, Mar 01, 2019 at 06:29:23PM +0800, James Andrewartha:
> >> These switches are Broadcom FASTPATH based, like Ubiquiti EdgeMAX
> >> switches, however using the edgemax config doesn't quite work. One thing
> >> is you need to use quit instead of exit in clogin - it seems to be
> >> detected as an Extreme switch, but it's not really. If I change this
> >> code (line 841 of clogin r3943 from Debian stretch backports 3.9-1~bpo9+1)
> >>
> >>     if { [string compare "extreme" "$platform"] } {
> >>     send -h "exit\r"
> >>     } else {
> >>     send -h "quit\r"
> >>     }
> >>
> >> to send -h "quit\r" then it quits ok, although it then doesn't detect
> >> end of run. I don't really understand the Extreme platform detection,
> >> particularly since ExtremeXOS uses xlogin anyway. Any thoughts on how to
> >> get this model to work?
> > 
> > I can't seem to find an example of the config, just commands.  it does
> > not seem to be like an edgemax, but i could be wrong.  Perhaps show us
> > the equivalent of show config and a login/logout sequence.  it seem to
> > have netconf support too.
> 
> Here you go (with a bit of line-wrapping unfortunately). As mentioned,
> you have to use quit to disconnect. exit will leave enable but won't
> disconnect.
> 
> aludra:~# ssh admin at 10.40.21.117
> admin at 10.40.21.117's password:
	...

Perhaps this

Index: bin/clogin.in
===================================================================
--- bin/clogin.in	(revision 3966)
+++ bin/clogin.in	(working copy)
@@ -452,6 +452,12 @@
 						  send -h "quit\r"
 						  exp_continue;
 						}
+	-re "^\% Invalid input detected at "	{
+						  # Broadcom Fastpath based
+						  # Extreme 200 series
+						  send -h "quit\r"
+						  exp_continue;
+						}
 	"The system has unsaved changes"	{ # Force10 SFTOS
 						  if {$do_saveconfig} {
 						    catch {send "y\r"}



More information about the Rancid-discuss mailing list