Skip to main content
Solved

Pinging IP Address


moataz_kilany
Participant
Forum|alt.badge.img+1

Greetings,

I’m writing FME workspace that should be able to scan a list of IP Addresses for modems. The result will have reachable:yes/No attribute to determine the IP address is reachable or not.

First thing to think of is using python caller to invoke the ping tool of OS. I did it that way and it’s working. However, the client policy demands workflows that are only built-in. No custom coding, and I want to make sure that there is no built-in transformer that may do the task?

Is there a built-in transformer that can check if a networked IP Address is reachable or not. Is there one that can be tweaked to do so ?

Thank you

-Moataz.

Best answer by hkingsbury

The PythonCaller is ‘built in’. There is no external python script and python itself is part of FME.
Another alternative could be SystemCaller, but i’d argue (to a degree) that this functions the same as the PythonCaller - in that it calls an external scripting language, in the case of the SystemCaller, CMD/Bash depending on your system

View original
Did this help you find an answer to your question?

3 replies

hkingsbury
Celebrity
Forum|alt.badge.img+53
  • Celebrity
  • Best Answer
  • March 26, 2024

The PythonCaller is ‘built in’. There is no external python script and python itself is part of FME.
Another alternative could be SystemCaller, but i’d argue (to a degree) that this functions the same as the PythonCaller - in that it calls an external scripting language, in the case of the SystemCaller, CMD/Bash depending on your system


moataz_kilany
Participant
Forum|alt.badge.img+1

The system caller did the job for IP pinging, thank you. I will push it a bit further. 

Is there a way to make this system caller (IP Pinging) work on multiple features in parallel? It currently consumes feature by feature which takes quite some time.


hkingsbury
Celebrity
Forum|alt.badge.img+53
  • Celebrity
  • April 2, 2024
moataz_kilany wrote:

The system caller did the job for IP pinging, thank you. I will push it a bit further. 

Is there a way to make this system caller (IP Pinging) work on multiple features in parallel? It currently consumes feature by feature which takes quite some time.


Yes, you could embed it in a custom transform and enable parallel processing, but the overhead of doing that will negate any benefits of running multiple at once. It will be faster to do one by one.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings