Can I restart my UNIX server through Powershell or SSH activity pack
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2025 10:47 PM
I have a requirement to restart a UNIX server through workflow activity pack. How and where can I run a UNIX command to restart a server.
Kindly provide you inputs.
Best Regards,
Manjushree
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2025 03:42 AM
Hello @Manju Shree,
sudo reboot or sudo systemctl reboot. On Solaris or other Unix systems, you might use shutdown -r now. The key is to ensure the workflow has the necessary credentials (e.g., sudo access) to execute the command on the remote server. sudo rebootorsudo systemctl reboot: Commonly used on Linux systems that use systemd.shutdown -r now: Another option for restarting on Linux or Solaris.shutdown -r +0orshutdown -r HH:MM: Used to schedule a restart at a specific time (now is equivalent to +0).init 6: A less common but still valid method, particularly in older systems.
-
Choose the appropriate activity:Most workflow engines will have an "Execute Command" or "Run Command" activity.
-
Specify the target server:You'll need to configure the activity with the hostname or IP address of the Unix server.
-
Provide credentials:The activity will need credentials that have sufficient permissions to execute the restart command. This usually means using a user account with
sudorights or directly logging in as root. -
Enter the command:Input the appropriate restart command (e.g.,
sudo reboot) into the activity's command field.
- When the workflow executes the activity, it will connect to the Unix server, authenticate with the provided credentials, and then execute the command.
- The server will then begin the restart process.
If this is helpful, please hit the thumbs up button and accept the correct solution by referring to this solution in future it will be helpful to them.
Thanks & Regards,
Abbas Shaik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2025 10:48 PM
Yes, you can do it. if this is after an alert then you can use alert manamgenet rule. one flow can create incident and based on response you can write the remediation.
If not related to alert then simply you can write a flow. You will need mid server to connect to device. Look into mid server script files. Their you can create power shell script and restart the device.
