Skip to main content

UniAgent Commands

CentOS 7 and Above

  • Check UniAgent status: sudo systemctl status tingyun-oneagent

  • Start UniAgent: sudo systemctl start tingyun-oneagent

  • Stop UniAgent: sudo systemctl stop tingyun-oneagent

    After stopping, already injected processes will continue to collect data, but newly started processes will not be injected.

  • Restart UniAgent: sudo systemctl restart tingyun-oneagent

CentOS 7 and Below

  • Check UniAgent status: sudo service tingyun-oneagent status

  • Start UniAgent: sudo service tingyun-oneagent start

  • Stop UniAgent: sudo service tingyun-oneagent stop

    After stopping, already injected processes will continue to collect data, but newly started processes will not be injected.

  • Restart UniAgent: sudo service tingyun-oneagent restart

If the system does not have systemctl or service commands, try the following

  • Start /etc/init.d/tingyun-oneagent start Stop /etc/init.d/tingyun-oneagent stop

  • Start /sbin/init.d/tingyun-oneagent start Stop /sbin/init.d/tingyun-oneagent stop

  • Start /etc/rc.d/tingyun-oneagent start Stop /etc/rc.d/tingyun-oneagent stop