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

ThingWorx Navigate is now Windchill Navigate Learn More

Translate the entire conversation x

How to get the result of windows service running status on thingworx?

HemapradhapN
4-Participant

How to get the result of windows service running status on thingworx?

I am trying to show the windows services status (running or stopped) on thingworx? can someone please suggest how it can be done?

2 REPLIES 2

Hello,

 

For that you'll need to write a server-side extension (take a look at ThingWorx Extension SDK). In this extension you will use Java's Runtime.exec() to execute command line "sc query", parse its result and wrap it in an INFOTABLE.

 

Regards,
Constantine


Vilia (my company) | GitHub | LinkedIn

@HemapradhapN I quickly hacked a working example, feel free to reuse it: https://github.com/vilia-fr/twxscext

It requires Windows SDK, please read description carefully before using it.


Vilia (my company) | GitHub | LinkedIn
Announcements


Top Tags