mkerfoot

Public IP Property Source

Recommended Posts

503 : This LogicModule is currently undergoing security review. It will be available for import only after our engineers have validated the scripted elements.
:-(

Share this post


Link to post
Share on other sites

Looks like it is working for me now, could you give it another try when time allows?

I would expect it to be available in the next few days. PM me and I can send you the XML if you would prefer.

Edited by mkerfoot

Share this post


Link to post
Share on other sites

Thanks for this, this is great.

I am only interested in the ip and org info so in the interest of de-cluttering the property source info I reduced the script output to just that. Stack Exchange (since I'm not a groovy guy) pointed me to this solution.
 

//comment out orig map iteration
//arrayInfo_map.each{ key, value -> println "$key=$value"};

def ip_addr = arrayInfo_map.find{ it.key == "ip" }?.value;
if(ip_addr)
    println "ip = ${ip_addr}";

def carrier = arrayInfo_map.find{ it.key == "org" }?.value;
if(carrier)
    println "org = ${carrier}";

I wouldn't be surprised if improvement on this is possible.

Thanks again.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.