[rancid] Re: Success Monitoring with Extreme XOS 11.3.4.5 on BD8810

john heasley heas at shrubbery.net
Fri Aug 18 23:30:47 UTC 2006


Fri, Aug 18, 2006 at 02:48:36PM -0400, chen_daniel at emc.com:
> John,
> 
> Good and Bad news.
> 
> XOS SSH access is fine and very stable compared with telnet.
> 
> I made some modifications to allow Rancid to monitor Extreme XOS
> 11.3.4.5 on BD8810.
> 1) Prompt recognition; Since XOS changed the prompt's look from
> <hostname>:<sequence> to <hostname>.<sequence>; xrancid didn't recognize
> when each command finished
> 
> $prompt =~ s/[:.](\d+ ?)#/.\\d+ ?#/;

I believe this was fixed already.  please try 2.3.2a5.

> 2) Since there is no tag line like "End of Configuration" in XOS as
> there was in ExtremeWare; my change unfortunately eliminates the
> detection of VRRP differences as this is the last section of the
> configuration file. As a customer of Extreme, I have asked the Systems
> Engineer to make the change in the way 'show config' ends the display of
> the configuration. 
> 
>         if (/^# Module vrrp configuration./i) {
> 
> Alternatively, the end of configuration detection for Extreme XOS rancid
> could be disabled temporarily until Extreme changes their 'show config'
> lack of "end of configuration" statement.

Juniper, unfortunately, does not have a definitive end of configuration tag
either.  Cribbing from jrancid, does this patch work for XOS (the name I
find comical, "[e]X-O/S") and Extreme OS?

Index: xrancid.in
===================================================================
RCS file: /home/rancid/.CVS/rancid/bin/xrancid.in,v
retrieving revision 1.40
diff -d -u -r1.40 xrancid.in
--- xrancid.in	28 May 2006 16:38:53 -0000	1.40
+++ xrancid.in	18 Aug 2006 21:58:01 -0000
@@ -269,6 +269,7 @@
 
 # This routine processes a "write term"
 sub WriteTerm {
+    my($lines) = 0;
     print STDERR "    In WriteTerm: $_" if ($debug);
     my($comment) = 1;	# strip extra comments, esp to preserve chassis type
 
@@ -296,6 +297,7 @@
 	} else {
 	   $comment = 0;
 	}
+	$lines++;
 
 	# Dog gone Cool matches to process the rest of the config
 	# some chassis report their chassis type in show diag...oh, but
@@ -367,6 +369,13 @@
 	    return(0);
 	}
     }
+
+    if ($lines < 3) {
+	printf(STDERR "ERROR: $host configuration appears to be truncated.\n");
+	$found_end = 0;
+	return(-1);
+    }
+
     return(0);
 }
 




More information about the Rancid-discuss mailing list