Skip to main content
4-Participant
November 14, 2022
Question

schedule restart

  • November 14, 2022
  • 1 reply
  • 1769 views

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

1 reply

19-Tanzanite
November 15, 2022

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)

4-Participant
November 15, 2022

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

Wayne

8-Gravel
November 30, 2022

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