2 Replies Latest reply: Apr 19, 2011 3:19 AM by Jose Luis Abascal RSS

How to stop an agent

Jose Luis Abascal Newbie

Hi all,

when I want to stop an agent I use:

     rhq-agent.bat -n

     exit

Is there any other way to stop the agent?

 

Thanks and regards

  • 1. How to stop an agent
    jay shaughnessy Apprentice

    For an interactive agent you can use the 'quit' prompt command. 

     

    You can also stop agent that are in inventory via an operation on the RHQ Agent resource.   In this way you can also shut down several agents by placing them in a resource group of all the target agents and executing the operation on the group.

  • 2. How to stop an agent
    Jose Luis Abascal Newbie

    Hello,

    I want to create a script for the agent start up and shut down.

    Is there anything like "rhq-agent.sh stop" ? or something to be executed from the command prompt...