Skip to main content
5-Regular Member
Nov 14, 2022 4:34 PM UTC
Question

schedule restart

I'm trying to get Thingworx to issue a schedule to restart a client PC. Is this possible either through the client or as a Javascript set of commands?

Thanks

5 replies

19-Tanzanite
Nov 15, 2022 7:27 AM UTC

It is possible, but you need to have an agent deployed on the remote client, or, if it's linux, you can issue a restart through SSH (and for SSH you need an extension)

Translate
5-Regular Member
Nov 15, 2022 3:08 PM UTC

Yes, we have the clients installed. I just have to discover this method. Any hints, lol?

Wayne

Translate
8-Gravel
Nov 30, 2022 1:24 PM UTC

you write a script that sends the ssh command for restart

 

Depending of the kind of ssh authorization you might need to specify username / password or keys here

 

Example commands for restart

Windows: shutdown -r

Linux: sudo reboot

 

 

Translate