cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

ping an IP address

JWayda
4-Participant

ping an IP address

I am working on a mashup and one of the things we would like to display is if a factory floor machine is up. We would like to determine this by pinging the IP address of the machine. We would also like to use this process to check the status for other devices that are on the factory floor.

 

Is there any way to have a mashup ping an IP address? If so, where can I find information on how to do this. If not, what are some options people have used to try to determine if a machine / device is reachable? 

 

I don't have much Thingworx experience and apologize if this is something that has been answered before.

 

Thanks,

John

 

 

 

 

 

 

 

ACCEPTED SOLUTION

Accepted Solutions
jensc
17-Peridot
(To:JWayda)

Hello,

 

I realize this isn't much, but there is a support article related to this here.

It was all I could find. But perhaps someone else will have more information. 

 

Regards,

Jens

 

 

View solution in original post

6 REPLIES 6
jensc
17-Peridot
(To:JWayda)

Hello,

 

I realize this isn't much, but there is a support article related to this here.

It was all I could find. But perhaps someone else will have more information. 

 

Regards,

Jens

 

 

JWayda
4-Participant
(To:jensc)

Thanks for the links. I am going to work on a custom extension for what we are looking to do.

I believe, you can develop your own custom extension with ping request. Sample code in Java.

 

JWayda
4-Participant
(To:Sathishkumar_C)

Thanks for this link, This was something that I had seen and am using as a guide for the custom extension I am working on. 

This might be helpful for you.

https://github.com/sathishkumarc14/TWX_PingRequest

 

geva
15-Moonstone
(To:JWayda)

Many people accomplish this sort of use case by simply having a heartbeat tag in the PLC that is communicated through Kepware to ThingWorx.  You can then monitor this tag from ThingWorx and watch when it last arrived, what the time drift is, if it is reporting up-to-date or catching up old data.  I made a video about this including some ThingWorx resources you'll find in the video description.

 

Ideally you should have as much of your ThingWorx application function with data that it already has, as any request like this will take time and have scalability and maintenance considerations.  For example if your I.T. all of a sudden blocks ICMP, your pings will stop working and you'll think that you PLCs are down.  This is why I'm monitoring the PLCs using the telemetry channel as any sort of breakdown of that channel will mean that ThingWorx can fire an alarm.  With a ping, you could still have a Kepware configuration problem which wouldn't tell you that the communication to that PLC had stopped flowing.

 

We also advise the use of extensions to be thoughtfully reflected as they will then need to be tested and managed overtime as you upgrade the platform.

Announcements


Top Tags