[rancid] Dell PowerConnect

heasley heas at shrubbery.net
Thu Jun 22 18:48:34 UTC 2017


Thu, Jun 22, 2017 at 12:21:03PM -0600, Daniel Schmidt:
> Unmatched ) in regex; marked by <-- HERE in m/^username (\S+)(\s.*)?
> password \S+|\S+) <-- HERE / at /var/lib/rancid/bin/srancid line 336.
> 
> I really should get a book on regex, I'm no good at it.  Backslash wrong
> way?
> 

please try the last one that I sent you on Tue; or
ftp://ftp.shrubbery.net/pub/rancid/alpha/

> 
> On Tue, Jun 20, 2017 at 4:56 PM, heasley <heas at shrubbery.net> wrote:
> 
> > 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;
> >
> >
> 
> -- 
> 
> E-Mail to and from me, in connection with the transaction 
> of public business, is subject to the Wyoming Public Records 
> Act and may be disclosed to third parties.



More information about the Rancid-discuss mailing list