

Die vorliegende Übersetzung wurde maschinell erstellt. Im Falle eines Konflikts oder eines Widerspruchs zwischen dieser übersetzten Fassung und der englischen Fassung (einschließlich infolge von Verzögerungen bei der Übersetzung) ist die englische Fassung maßgeblich.

# Den Agenten verwalten
<a name="managing-agent"></a>

 Der AWS Ground Station Agent bietet die folgenden Funktionen zum Konfigurieren, Starten, Stoppen, Aktualisieren, Herabstufen und Deinstallieren des Agenten mithilfe der integrierten Linux-Befehlstools. 

**Topics**
+ [AWS Ground Station Konfiguration des Agenten](#gs-agent-configuration)
+ [AWS Ground Station Der Agent wird gestartet](#gs-agent-start)
+ [AWS Ground Station Der Agent wird gestoppt](#gs-agent-stop)
+ [AWS Ground Station Agenten-Upgrade](#gs-agent-upgrade)
+ [AWS Ground Station Herabstufung des Agenten](#gs-agent-downgrade)
+ [AWS Ground Station Deinstallation des Agenten](#gs-agent-uninstall)
+ [AWS Ground Station Status des Agenten](#gs-agent-status)
+ [AWS Ground Station RPM-Informationen des Agenten](#gs-agent-rpm-info)

## AWS Ground Station Konfiguration des Agenten
<a name="gs-agent-configuration"></a>

 Navigieren Sie zu`/opt/aws/groundstation/etc`, das eine einzelne Datei namens aws-gs-agent-config .json enthalten sollte. Siehe [Agenten-Konfigurationsdatei](configuring-agent.md#agent-config-file) 

## AWS Ground Station Der Agent wird gestartet
<a name="gs-agent-start"></a>

```
#start
sudo systemctl start aws-groundstation-agent

#check status
systemctl status aws-groundstation-agent
```

Sollte eine Ausgabe erzeugen, die zeigt, dass der Agent **aktiv** ist.

```
aws-groundstation-agent.service - aws-groundstation-agent
Loaded: loaded (/usr/lib/systemd/system/aws-groundstation-agent.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2023-03-14 00:39:08 UTC; 1 day 13h ago
Docs: https://aws.amazon.com/ground-station/
Main PID: 8811 (aws-gs-agent)
CGroup: /system.slice/aws-groundstation-agent.service
└─8811 /opt/aws/groundstation/bin/aws-gs-agent production
```

## AWS Ground Station Der Agent wird gestoppt
<a name="gs-agent-stop"></a>

```
#stop
sudo systemctl stop aws-groundstation-agent

#check status
systemctl status aws-groundstation-agent
```

 Sollte eine Ausgabe erzeugen, die zeigt, dass der Agent **inaktiv** (gestoppt) ist. 

```
aws-groundstation-agent.service - aws-groundstation-agent
Loaded: loaded (/usr/lib/systemd/system/aws-groundstation-agent.service; enabled; vendor preset: disabled)
Active: inactive (dead) since Thu 2023-03-09 15:35:08 UTC; 6min ago
Docs: https://aws.amazon.com/ground-station/
Process: 84182 ExecStart=/opt/aws/groundstation/bin/launch-aws-gs-agent (code=exited, status=0/SUCCESS)
Main PID: 84182 (code=exited, status=0/SUCCESS)
```

## AWS Ground Station Agenten-Upgrade
<a name="gs-agent-upgrade"></a>

1. Laden Sie die neueste Version des Agenten herunter. Siehe [Laden Sie den Agenten herunter](installing-the-agent.md#download-agent).

1. Beenden des -Agenten.

   ```
   #stop
   sudo systemctl stop aws-groundstation-agent
   
   #confirm inactive (stopped) state
   systemctl status aws-groundstation-agent
   ```

1. Aktualisieren Sie den Agenten.

   ```
   sudo yum update ${MY_RPM_FILE_PATH}
   
   # check the new version has been installed correctly by comparing the agent version with the starting agent version
   yum info aws-groundstation-agent
   
   # reload the systemd configuration
   sudo systemctl daemon-reload
   
   # restart the agent
   sudo systemctl restart aws-groundstation-agent
   
   # check agent status
   systemctl status aws-groundstation-agent
   ```

## AWS Ground Station Herabstufung des Agenten
<a name="gs-agent-downgrade"></a>

1. Laden Sie die benötigte Agentenversion herunter. Siehe [Laden Sie den Agenten herunter](installing-the-agent.md#download-agent).

1. Führen Sie ein Downgrade des Agenten durch.

   ```
   # get the starting agent version
   yum info aws-groundstation-agent
   
   # stop the agent service
   sudo systemctl stop aws-groundstation-agent
   
   # downgrade the rpm
   sudo yum downgrade ${MY_RPM_FILE_PATH}
   
   # check the new version has been installed correctly by comparing the agent version with the starting agent version
   yum info aws-groundstation-agent
   
   # reload the systemd configuration
   sudo systemctl daemon-reload
   
   # restart the agent
   sudo systemctl restart aws-groundstation-agent
   
   # check agent status
   systemctl status aws-groundstation-agent
   ```

## AWS Ground Station Deinstallation des Agenten
<a name="gs-agent-uninstall"></a>

 Bei der Deinstallation des Agenten wird/opt/aws/groundstation/etc/aws-gs-agent-config.json to /opt/aws/groundstation/etc/aws- gs-agent-config .json.rpmsave umbenannt. Wenn Sie den Agenten erneut auf derselben Instance installieren, werden Standardwerte für aws-gs-agent-config .json geschrieben und müssen mit den richtigen Werten aktualisiert werden, die Ihren AWS-Ressourcen entsprechen. Siehe [Agenten-Konfigurationsdatei](configuring-agent.md#agent-config-file). 

```
sudo yum remove aws-groundstation-agent
```

## AWS Ground Station Status des Agenten
<a name="gs-agent-status"></a>

 Der Agentenstatus ist entweder **aktiv** (Agent läuft) oder **inaktiv** (Agent ist gestoppt). 

```
systemctl status aws-groundstation-agent
```

 Eine Beispielausgabe zeigt, dass der Agent installiert, **inaktiv** (gestoppt) und **aktiviert** (Dienst beim Booten starten) ist. 

```
aws-groundstation-agent.service - aws-groundstation-agent
Loaded: loaded (/usr/lib/systemd/system/aws-groundstation-agent.service; enabled; vendor preset: disabled)
Active: inactive (dead) since Thu 2023-03-09 15:35:08 UTC; 6min ago
Docs: https://aws.amazon.com/ground-station/
Process: 84182 ExecStart=/opt/aws/groundstation/bin/launch-aws-gs-agent (code=exited, status=0/SUCCESS)
Main PID: 84182 (code=exited, status=0/SUCCESS)
```

## AWS Ground Station RPM-Informationen des Agenten
<a name="gs-agent-rpm-info"></a>

```
yum info aws-groundstation-agent
```

 Die Ausgabe sieht wie folgt aus: 

**Anmerkung**  
Die „Version“ kann je nach der zuletzt vom Agenten veröffentlichten Version unterschiedlich sein.

```
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Installed Packages
Name        : aws-groundstation-agent
Arch        : x86_64
Version     : 1.0.2677.0
Release     : 1
Size        : 51 M
Repo        : installed
Summary     : Client software for AWS Ground Station
URL         : https://aws.amazon.com/ground-station/
License     : Proprietary
Description : This package provides client applications for use with AWS Ground Station
```