Mar 27, 2026 - For details about updated CVE-2025-53521 (BIG-IP APM vulnerability), refer to K000156741.

Forum Discussion

Nick_T_68319's avatar
Nick_T_68319
Icon for Nimbostratus rankNimbostratus
May 19, 2010

whereis, how to list all states

Is it possible to list all the state names for the whereis irule?

 

3 Replies

  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    Hi Nick,

     

     

    Is there one state name you're particularly interested in/unsure about? If so, you could search online to get an example IP address from that state and see what [whereis $ip state] returns for it.

     

     

    Regardless, I would imagine it would be easier to use [whereis $ip abbrev] to get the two letter state code anyhow.

     

     

    Aaron
  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    DC is an abbreviation in the GeoIP data from Quova:

    
    when RULE_INIT {
       set ip "138.145.4.3"
       log local0. "whereis \$ip abbrev, state: [whereis $ip abbrev], [whereis $ip state]"
    }
    

    Log output:

    : whereis $ip abbrev, state: DC, District of Columbia

    Aaron