Starting and restarting DataStax agents

Commands for starting and restarting DataStax agents for each type of installation.

Procedure

  • To start the DataStax agent:
    • Installer-Services or package installations
      $ sudo service datastax-agent start
      Note: The DataStax agent starts automatically.
    • Installer-No Services or tarball installations
      $ install_location/bin/datastax-agent ##Use -f to start in the foreground.
      • Net command:
        C:\> net start DataStax_OpsCenter_Agent
      • Services menu:
        1. From Start, select Control Panel > System and Security > Administrative Tools.
        2. Select Services.
        3. Select DataStax OpsCenter Agent and right-click to stop the service.
  • To restart the DataStax agent:
    • Installer-Services or package installations
      $ sudo service datastax-agent restart
    • Installer-No Services or tarball installations
      1. Find the DataStax agent Java process ID (PID), kill the process using its PID number:
        $ ps -ef | grep datastax-agent
        $ sudo kill <pid>
      2. Start the agent:
        $ install_location/bin/datastax-agent ##Use -f to start in the foreground.
      • Net command:
        C:\> net start|stop DataStax_OpsCenter_Agent
      • Services menu:
        1. From Start, select Control Panel > System and Security > Administrative Tools.
        2. Select Services.
        3. Select DataStax OpsCenter Agent and right-click to start/stop the service.