[rancid] assistance with removing pager from Dell script

Deny IP Any Any denyipanyany at gmail.com
Mon Oct 5 15:23:02 UTC 2009


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?


-- 
deny ip any any (4393649193 matches)


More information about the Rancid-discuss mailing list