Sometimes, it may be necessary to restart the agent on a server or VM. This requires administrative/sudo privileges. The below commands show how to restart the agent, both when running locally or remotely.
Linux
Linux - Locally
Use the following commands to manage service
sudo service zasad restart
Linux - Remotely
ssh {computername} "sudo service zasad restart"
Windows
Windows - Locally
Option 1 - From PowerShell - Run as Administrator
restart-service -name zasa -force
Option 2 - From Task Manager
Under Details tab of the Task Manager, right click on zasa.exe, click "End task". This will stop and automatically start the agent process with a new PID.
Windows - Remotely
From a PowerShell (Run as Administrator) on a management machine:
Get-Service -ComputerName {computername} -Name zasa | Restart-Service -Force
NOTE - You will be prompted for credentials for the remote Administrator
NOTE - The remote machine may require the enablement of PowerShell remote management, which can be enabled through command such as below:
Enable-PSRemoting
Comments
0 comments
Please sign in to leave a comment.