Zum Inhalt springen

Install the Server Agent via API

Diese Seite ist noch nicht in deiner Sprache verfügbar. Englische Seite aufrufen

To take advantage of our latest features such as ‘Run Command’, ‘Server Update Management Service’ and many more in the future, the STACKIT Server Agent must be installed on your server as a basis. The STACKIT Server Agent serves as an interface between our infrastructure and the operating system and receives and processes scripts sent remotely and executes them locally on your server, enabling you to customize your server settings as needed.

The following documentation describes the way to deploy your server fully configured with the latest STACKIT Server Agent version available by using API.

If you prefer to configure your system and manage the Run Command feature via STACKIT Portal, please refer to this documentation: Install the Server Agent via Portal.

Installing the STACKIT Server Agent on a new server via API

Section titled “Installing the STACKIT Server Agent on a new server via API”

The STACKIT Server Agent will be installed via vendor data if the provisionSTACKITserver flag is included in the API request. When deploying a server through the API, ensure this flag is set if you want the agent installed. You can set this flag either

This method of providing the STACKIT Server Agent is supported for all latest x86 versions of STACKIT public images (ARM will be supported in the future).

Also keep in mind, that if vendor_data2 (dynamic vendor data) is not supported in your OS anymore (i.e. Debian 11), you can use the user data to install the STACKIT Server Agent by injecting the installation script. For this please refer to the STACKIT Server Agent installation scripts for Linux and Windows in the following documentation: Install the Server Agent via Portal.

Verifying the STACKIT Server Agent installation

Section titled “Verifying the STACKIT Server Agent installation”

After initiating the server deployment, please check the status of your server. Once the server is available and you are able to log in, verify that the STACKIT Server Agent is properly installed by checking the status of the STACKIT Server Agent service STACKITServerAgent.

In Windows use the following PowerShell command:

Get-Service STACKITServerAgent

Alternatively check the status in the Service tab of the task manager:

Windows Services list highlighting the 'STACKITServerAgent' service with a status of 'Running'.

In Linux use the following command:

systemctl status stackit-server-agent.service

The STACKIT Server Agent is now fully configured and can be used to execute commands.

Installing the STACKIT Server Agent on an existing server

Section titled “Installing the STACKIT Server Agent on an existing server”

If you already have a running Linux or Windows server, you can install the STACKIT Server Agent manually afterwards by using the following documentation: Install the Server Agent via Portal.