[rancid] Re: assistance with removing pager from Dell script

john heasley heas at shrubbery.net
Mon Oct 5 15:52:00 UTC 2009


Mon, Oct 05, 2009 at 11:23:02AM -0400, Deny IP Any Any:
> I'm running rancid 2.3.2a7 on a Ubuntu intrepid virtual. I've been
> successfully gathering configs from 3 Dell 6248s via an add-on
> dlogin/drancid script.
> 
> It has worked fine for months; after making a minor change to one of
> the Dell switch's configs, now I'm occasionally seeing parts of the
> pager in my diffs:
> 
> --- ciscodevices/configs/192.168.220.10	2009/10/05 10:03:01	1.108
> +++ ciscodevices/configs/192.168.220.10	2009/10/05 14:03:11	1.109
> @@ -673,7 +673,6 @@ exit
>  interface ethernet 3/g15
>  spanning-tree portfast
>  switchport access vlan 11
> -q)uit
>  exit
>  !
>  interface ethernet 3/g16
> 
> 
> I've tried editing the dlogin script to axe this line out, but instead
> I get a nasty Expect error (couldn't compile regular expression
> pattern: quantifier operand invalid)
> 
> 
> 
>                 -re "^*q\)uit\[^\n\r]*"      {
>                                                   send " "
>                                                   exp_continue }
> 
> 
> 
> Is there a special way I need to escape the close paren in Expect?

the best way that i found was to disable log_user and send stuff that
I wanted to the terminal.  the match you have sort of implies thats
is what the rest of your script does.


More information about the Rancid-discuss mailing list