Sysdig Agent: Update & Uninstall

Version Check

You can easily check the version of the Sysdig Cloud agent with the following commands depending on if the containerized agent is deployed or a native Linux host version is installed:

If the agent is installed as a service you can run

/opt/draios/bin/dragent --version

For a containerized agent you can run a command similar to

docker exec sysdig-agent /opt/draios/bin/dragent --version

Other Methods:

Debian / Ubuntu:

dpkg -l | grep draios-agent

Redhat / Fedora:

rpm -qa | grep draios-agent

Container:

docker exec sysdig-agent dpkg -l | grep draios-agent

The agent version can also be found in the agent log file: /opt/draios/logs/draios.log, look for the "Agent starting" message which is logged whenever the agent restarts.

 

Update

Update the containerized agent version as you normally update any container, the basic steps are below. Use the full run command as shown in the web interface > Settings > Agent Installation tab of your account. CoreOS users can use the fleet script also shown on the Agent Installation tab.

Container Installation - Basic Steps:

docker stop sysdig-agent 
docker rm sysdig-agent
docker pull sysdig/agent
docker run . . .
# As per Settings -> Agent Installation

To install a specific version of the Sysdig Monitor agent append a colon and the complete version string to the container name (e.g. sysdig-agent:0.58.0). To see which agent versions are available see this link.  

For native Linux agent installations, updates are installed as part of the normal system upgrade available with `apt-get` and `yum`. If you want to force an update, use the appropriate instructions below for your distribution.

Native Host Installation

Debian, Ubuntu 

apt-get update
apt-get -y install draios-agent

CentOS, RHEL, Fedora, Amazon Linux

yum clean expire-cache
yum -y install draios-agent

 

Uninstall

Here are the instructions to remove the agent for native Linux installations:

Debian, Ubuntu

apt-get remove draios-agent sysdig

CentOS, RHEL, Fedora, Amazon Linux

yum erase draios-agent sysdig
Have more questions? Submit a request