Forum Discussion

Paul_Schmidt_70's avatar
Paul_Schmidt_70
Icon for Nimbostratus rankNimbostratus
Apr 10, 2007

SSN scrubber example errors

What version of the BigIP is the SSN scrubber written for?

 

 

I wanted to use it as a starting point for a rule and I got the following errors on BigIP v9.1.1:

 

 

01070151:3: Rule [bi-rewrite] error:

 

line 1: [undefined procedure: class] [class scrub_uris {

 

"/cgi-bin",

 

"/account"

 

}]

 

line 34: ["\d" has no meaning. Did you mean "\\d" or "d"?] [{\d{3}-\d{2}-\d{4}}]

 

line 34: ["\d" has no meaning. Did you mean "\\d" or "d"?] [{\d{3}-\d{2}-\d{4}}]

 

line 34: ["\d" has no meaning. Did you mean "\\d" or "d"?] [{\d{3}-\d{2}-\d{4}}]

 

 

I'm guessing that \d should be \\d, but is there a way to keep the functionality of the class scrub_uris? That would keep my code much cleaner.

 

 

1 Reply

  • The class declaration is not part of the iRule (although the codeshare section makes it look that way. A "class" is another name for "Data Group". You'll need to either add a String Data Group named "scrub_uris" with the listed strings, or enter what's shown in the codeshare sample directly in the /config/bigip.conf and then issue a "bigpipe load". Then just omit the "class scrubs_uris {...}" from the iRule and you should be all set.

     

     

    -Joe