Forum Discussion
Nick_T_68319
Nimbostratus
May 19, 2010whereis, how to list all states
Is it possible to list all the state names for the whereis irule?
3 Replies
- hoolio
Cirrostratus
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 - Nick_T_68319
Nimbostratus
I just wanted to confirm they had DC as an abbrev. - hoolio
Cirrostratus
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
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects