[rancid] Dell PowerConnect

heasley heas at shrubbery.net
Tue Jun 20 22:56:30 UTC 2017


Mon, Jun 19, 2017 at 11:43:02AM -0600, Daniel Schmidt:
> AAA, Dell R1-2401.  Set to SMC, change one line, seems to work fine.
> 
> One annoyance:
> - !username admin password <removed>
> - !username sysad password <removed>
> 
> The password are no longer removed and they should be.  Thanks Heas.

Does this handle it? Or does it have an encryption type indicator?

Index: bin/srancid.in
===================================================================
--- bin/srancid.in	(revision 3660)
+++ bin/srancid.in	(working copy)
@@ -20,6 +20,7 @@
 #	DELL PowerConnect 62xx
 #	DELL PowerConnect 7048
 #	DELL 34xx (partially; configuration is incomplete)
+#	DELL R1-2401
 #
 use 5.010;
 no warnings 'uninitialized';
@@ -299,6 +300,16 @@
 	/^oob host config/i && ProcessHistory("","","","!$_") && next;
 	/^empty configuration/i && ProcessHistory("","","","!$_") && next;
 
+	if (/^username (\S+)(\s.*)? password \S+|\S+)/) {
+	    if ($filter_pwds >= 1) {
+		ProcessHistory("USER","keysort","$1",
+			       "!username $1$2 password <removed>\n");
+	    } else {
+		ProcessHistory("USER","keysort","$1","$_");
+	    }
+	    next;
+	}
+
 	if (/^password (\S+) encrypted/ && $filter_pwds > 1) {
 	    ProcessHistory("","","","!password <removed> encrypted\n");
 	    next;



More information about the Rancid-discuss mailing list