[rancid] Dell PowerConnect
Daniel Schmidt
daniel.schmidt at wyo.gov
Thu Jun 22 18:21:03 UTC 2017
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?
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20170622/29d52fbd/attachment.html>
More information about the Rancid-discuss
mailing list