Forum Discussion

Andy_Bourke_497's avatar
Andy_Bourke_497
Icon for Nimbostratus rankNimbostratus
Feb 03, 2010

Geolocation iRules

Hi,

 

 

Has anyone done anything with the new quova database in version 10.1 with iRules ?

 

I havent been able to locate any documentation so far and was hoping to test out a few ideas i had.

 

I've seen some examples on a slide, but i wasnt quick enough to write it down...

 

 

Any advice would be greatly appreciated,

 

Andy

6 Replies

  • Hi Andy,

     

     

    You can use the whereis command (Click here) to look up an IP address and get the geo data.

     

     

    Aaron
  • Arie's avatar
    Arie
    Icon for Altostratus rankAltostratus
    Is Geolocation included in the latest version of the OS or does it require the purchase of another module?
  • It's included with 10.1, at least the basic portion (which is still super useful). The full version is an add-on with additional information attached to a look up result.

     

     

    -Matt
  • Hi Matt,

     

     

    Do you have any details on what data is available by default versus with an add-on license?

     

     

    I'm a bit surprised by the result from a simple test. It seems like some options return no data and (only?) one gives an error about a dat file not existing:

     

     

    [whereis $ip country]: US

     

    [whereis $ip continent]: NA

     

    [whereis $ip state]: Washington

     

    [whereis $ip abbrev]: WA

     

    [whereis $ip city]:

     

    [whereis $ip zip]:

     

    [whereis $ip area_code]: 0

     

    [whereis $ip latitude]: 0

     

    [whereis $ip longitude]: 0

     

    [whereis $ip isp]: xo communications

     

    [whereis $ip country_cf]: 0

     

    [whereis $ip state_cf]: 0

     

    [whereis $ip city_cf]: 0

     

    [whereis $ip proxy_type]: unknown

     

     

    Interestingly enough, I get a TCL error when trying to get the org:

     

     

    log local0. "\[whereis \$ip org\]: [whereis $ip org]"

     

     

    Mar 23 10:32:58 local/tmm1 err tmm1[5346]: 01220001:3: TCL error: hooleya_whereis_rule - Error: IP location database (F5GeoIPOrg.dat) not loaded invoked from within "whereis 207.155.205.23 org"

     

     

    Aaron
  • Nevermind... citizen_elah's article answers the questions:

     

     

     

    http://devcentral.f5.com/Default.aspx?tabid=63&articleType=ArticleView&articleId=1082330

     

     

    Also, if you want to use the org keyword with the whereis command, you’ll need to download the update or you’ll get an error during execution. The F5 schema supports additional data fields that are documented on the wiki page that will be available in the future. You can experiment with the commands now—it will simply return an empty string or a zero. Sub state granularity requires data not included by default on BIG-IP. Contact F5 sales if you are interested in more detailed granularity.

     

     

     

    So I assume there's an add-on license for sub-state granularity.

     

     

    Aaron