2 Replies Latest reply on Apr 19, 2011 3:19 AM by 1joabasc

    How to stop an agent

    1joabasc

      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
          jayshaughnessy

          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
            1joabasc

            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...