We all know how to install it ? How to restart a cloud agent on a windows machine from the command prompt
The Cloud Agent is an NT Service. This means you have the following options for starting the Agent -
1) (Administrator) Command Prompt: sc start QualysAgent2) (Administrator) Command Prompt: net start QualysAgent
3) From the GUI -
a) Run services.msc from the start menu or a command prompt
b) Locate Qualys Cloud Agent in the list view
c) Right click the list view item and select "Start" from the context menu
Similarly, you can also issue sc/net stop commands to control the service if a stop/restart is what you want. These all require Administrator credentials.
In addition to Patrick's useful comments, you can open Windows Task Manager > Processes, locate QualysAgent > right click > End Process
Respectfully, I recommend against terminating processes via Task Manager unless absolutely necessary - here's why:
Terminating any process via task manager tells the system to immediately terminate all threads owned by that process. These threads may be in the middle of updating files on disk, storing data in the registry, or have many other operations that require the threads to go through proper cleanup code such as decrementing dll share counts (which may have system-wide effects).
The Agent is pretty fault tolerant in case of power loss - but I would only consider this option as a last resort and only if I'm shutting down or rebooting the system. Think of the scenario where you're patching the system with a service pack and the power goes out when half completed. The same risk applies to terminating processes via task manager.
There are a few cases when the Cloud Agent may require several seconds to shut down; namely, if it is in the middle of resolving proxy information from the network and establishing a connection to the server. If a shutdown request is received during these times the Agent will complete its operation and then return. If you find that the Cloud Agent is not responsive to shutdown requests please contact Support with a scenario to reproduce the issue.
Thanks for the feedback Patrick, it's good to know!
Retrieving data ...