

Le traduzioni sono generate tramite traduzione automatica. In caso di conflitto tra il contenuto di una traduzione e la versione originale in Inglese, quest'ultima prevarrà.

# Gestisci l'agente
<a name="managing-agent"></a>

 L' AWS Ground Station agente offre le seguenti funzionalità per la configurazione, l'avvio, l'arresto, l'aggiornamento, il downgrade e la disinstallazione dell'agente utilizzando gli strumenti di comando Linux integrati. 

**Argomenti**
+ [AWS Ground Station Configurazione dell'agente](#gs-agent-configuration)
+ [AWS Ground Station Inizio dell'agente](#gs-agent-start)
+ [AWS Ground Station Agente, fermati](#gs-agent-stop)
+ [AWS Ground Station Aggiornamento dell'agente](#gs-agent-upgrade)
+ [AWS Ground Station Downgrade dell'agente](#gs-agent-downgrade)
+ [AWS Ground Station Disinstallazione dell'agente](#gs-agent-uninstall)
+ [AWS Ground Station Stato dell'agente](#gs-agent-status)
+ [AWS Ground Station Informazioni sull'RPM dell'agente](#gs-agent-rpm-info)

## AWS Ground Station Configurazione dell'agente
<a name="gs-agent-configuration"></a>

 Vai a`/opt/aws/groundstation/etc`, che dovrebbe contenere un singolo file denominato aws-gs-agent-config .json. Per informazioni, consultare [File di configurazione dell'agente](configuring-agent.md#agent-config-file). 

## AWS Ground Station Inizio dell'agente
<a name="gs-agent-start"></a>

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

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

Dovrebbe produrre un output che mostri che l'agente è **attivo**.

```
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 Agente, fermati
<a name="gs-agent-stop"></a>

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

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

 Dovrebbe produrre un output che mostri che l'agente è **inattivo** (fermato). 

```
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 Aggiornamento dell'agente
<a name="gs-agent-upgrade"></a>

1. Scarica la versione più recente dell'agente. Per informazioni, consulta [Scarica l'agente](installing-the-agent.md#download-agent).

1. Arresta l'agente di .

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

1. Aggiorna l'agente.

   ```
   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 Downgrade dell'agente
<a name="gs-agent-downgrade"></a>

1. Scarica la versione per agenti di cui hai bisogno. Per informazioni, consulta [Scarica l'agente](installing-the-agent.md#download-agent).

1. Effettua il downgrade dell'agente.

   ```
   # 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 Disinstallazione dell'agente
<a name="gs-agent-uninstall"></a>

 La disinstallazione dell'agente rinominerà/opt/aws/groundstation/etc/aws-gs-agent-config.json to /opt/aws/groundstation/etc/aws- gs-agent-config .json.rpmsave. La reinstallazione dell'agente sulla stessa istanza scriverà i valori predefiniti per aws-gs-agent-config .json e dovrà essere aggiornato con i valori corretti corrispondenti alle risorse AWS. Per informazioni, consulta [File di configurazione dell'agente](configuring-agent.md#agent-config-file). 

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

## AWS Ground Station Stato dell'agente
<a name="gs-agent-status"></a>

 Lo stato dell'agente è **attivo** (l'agente è in esecuzione) o **inattivo** (l'agente è fermo). 

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

 Un esempio di output mostra che l'agente è installato, **inattivo** (interrotto) e **abilitato** (avvia il servizio all'avvio). 

```
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 Informazioni sull'RPM dell'agente
<a name="gs-agent-rpm-info"></a>

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

 L'output è il seguente: 

**Nota**  
La «versione» potrebbe essere diversa in base all'ultima versione pubblicata dall'agente.

```
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
```