[rancid] Rancid and Netgear switches

on at LEFerguson.com on at LEFerguson.com
Thu May 17 02:28:20 UTC 2018

Thanks.  I ended up patching the dllogin.pm and dllogin scripts, mostly to localize my changes.

The issue I found that made me do it a bit differently is that it appears these switches are instantly disconnecting, without echoing the logout command or showing a prompt, so I just treat eof as OK if the command completes OK.

I think I have it running, I just did a show config, hopefully everything is really in there.

Appreciate the pointers.


-----Original Message-----
From: heasley [mailto:heas at shrubbery.net] 
Sent: Wednesday, May 16, 2018 9:14 PM
To: on at LEFerguson.com
Cc: Alex DEKKER <rancid at ale.cx>; rancid-discuss at shrubbery.net
Subject: Re: [rancid] Rancid and Netgear switches

Wed, May 16, 2018 at 05:08:04PM +0000, on at LEFerguson.com:
> > Looks a lot like a Ubiquiti EdgeMAX so presumably Ubiquiti and Netgear are buying the design from the same place.
> > You're in luck:
> > #  edgemax.pm - Ubiquity ("UBNT") EdgeMAX switch rancid procedures
> > 
> Real close but it uses exit not logout.  exit won't actually log off, it just loops forever.  Doing a site turn-up now so cannot experiment much more until later today or evening.  Not sure if that part is in clogin or the module edgemax.
> Thanks, getting closer. 
> Linwood

i'd added this for f5 v13, perhaps something similar would work for ulogin.

Index: bin/clogin.in
--- bin/clogin.in	(revision 3786)
+++ bin/clogin.in	(working copy)
@@ -440,6 +440,11 @@
 						  send -h "exit\r"
+	-re "^\[^\n\r *]*Use .quit. to end"	{
+						  # the F5 >=11 uses quit
+						  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