[rancid] rancid with hp5412 J8697A or hp5406

Per-Olof Olsson peo at chalmers.se
Wed May 3 08:17:23 UTC 2017


Hello

For info.

This patch is also needed for HP/Aruab-2920 switches running WB_16_03_0004
Possible all *_16_03_0004.


/Peo
----------------------------------------------------------
Per-Olof Olsson               Email: peo at chalmers.se
Chalmers tekniska högskola    IT-avdelningen
Arvid Hedvalls backe 6        412 96 Göteborg
Tel: 031/772 6738     Mob: 0707 88 3708
----------------------------------------------------------

On 03/24/2017 09:57 PM, Kalani Sanders wrote:
> I believe this should do it. Fixed it for me.
>
>
>
> Replaces “[?7h”, “[1L”, and “[1M” with CR.
>
>
>
> According to http://www.inwap.com/pdp10/ansicode.txt
>
>   [1L    Insert blank line at current row (shift screen down)
>
>   [1M    Delete the current line (shift screen up)
>
>   [?7h = DECAWM - AutoWrap Mode, start newline after column 80
>
>
>
>
>
>
>
> --- hpuifilter.c.ORIG   2017-03-24 13:49:49.991710473 -0700
>
> +++ hpuifilter.c        2017-03-24 13:50:35.467645620 -0700
>
> @@ -545,8 +545,8 @@
>
> filter(char *buf, int len)
>
> {
>
>      static regmatch_t  pmatch[1];
>
> -#define        N_REG           16              /* number of regexes in reg[][] */
>
> -#define        N_CRs           2               /* number of CR replacements */
>
> +#define        N_REG           19              /* number of regexes in reg[][] */
>
> +#define        N_CRs           5               /* number of CR replacements */
>
>      static regex_t     preg[N_REG];
>
>      static char                reg[N_REG][50] = {      /* vt100/220 escape codes */
>
>                                 "\x1B""7\x1B\\[1;24r\x1B""8",   /* ds */
>
> @@ -570,6 +570,9 @@
>
>                                 /* replace these with CR */
>
>                                 "\x1B\\[0m",                    /* me */
>
>                                 "\x1B""E",
>
> +                                "\x1B\\[\\?7h",
>
> +                                "\x1B\\[1L",
>
> +                                "\x1B\\[1M",
>
>                         };
>
>      char               bufstr[3] = {ESC, '\x07', '\0'},
>
>                         ebuf[256];
>
>
>
> --
> *Kalani Sanders* *| System Administrator*
> ksanders at asprack.com <mailto:ksanders at asprack.com>
> (714) 902-2019
> (714) 902-2019 Fax
> www.advancestorage.com <http://www.advancestorage.com>
> Advance
>
> *Advance Storage Products*
> 15302 Pipeline Lane
> Huntington Beach, CA 92649
>
> *Quality You Trust*
>
>
> The contents of this e-mail message and any attachments are */confidential/* and are intended solely for
> addressee.
>
>
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss
>



More information about the Rancid-discuss mailing list