

Las traducciones son generadas a través de traducción automática. En caso de conflicto entre la traducción y la version original de inglés, prevalecerá la version en inglés.

# Administre el agente
<a name="managing-agent"></a>

 El AWS Ground Station agente ofrece las siguientes funciones para configurar, iniciar, detener, actualizar, degradar y desinstalar el agente mediante las herramientas de comandos integradas en Linux. 

**Temas**
+ [AWS Ground Station Configuración del agente](#gs-agent-configuration)
+ [AWS Ground Station Inicio del agente](#gs-agent-start)
+ [AWS Ground Station Agente, deténgase](#gs-agent-stop)
+ [AWS Ground Station Actualización del agente](#gs-agent-upgrade)
+ [AWS Ground Station Bajar de categoría de agente](#gs-agent-downgrade)
+ [AWS Ground Station Desinstalación del agente](#gs-agent-uninstall)
+ [AWS Ground Station Estado del agente](#gs-agent-status)
+ [AWS Ground Station Información sobre el RPM del agente](#gs-agent-rpm-info)

## AWS Ground Station Configuración del agente
<a name="gs-agent-configuration"></a>

 Navegue hasta`/opt/aws/groundstation/etc`, que debe contener un único archivo denominado aws-gs-agent-config .json. Consulte [Archivo de configuración del agente](configuring-agent.md#agent-config-file) 

## AWS Ground Station Inicio del agente
<a name="gs-agent-start"></a>

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

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

Debería producir un resultado que muestre que el agente está **activo**.

```
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, deténgase
<a name="gs-agent-stop"></a>

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

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

 Debería producir un resultado que muestre que el agente está **inactivo** (detenido). 

```
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 Actualización del agente
<a name="gs-agent-upgrade"></a>

1. Descargue la versión más reciente del agente. Consulte [Descargar el agente](installing-the-agent.md#download-agent).

1. Detenga el agente de .

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

1. Actualización del 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 Bajar de categoría de agente
<a name="gs-agent-downgrade"></a>

1. Descarga la versión de agente que necesites. Consulte [Descargar el agente](installing-the-agent.md#download-agent).

1. Descargue el 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 Desinstalación del agente
<a name="gs-agent-uninstall"></a>

 Al desinstalar el agente, se cambiará el nombre de/opt/aws/groundstation/etc/aws-gs-agent-config.json to /opt/aws/groundstation/etc/aws- gs-agent-config .json.rpmsave. Si se vuelve a instalar el agente en la misma instancia, se escribirán los valores predeterminados para aws-gs-agent-config .json y será necesario actualizarlos con los valores correctos correspondientes a sus recursos de AWS. Consulte [Archivo de configuración del agente](configuring-agent.md#agent-config-file). 

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

## AWS Ground Station Estado del agente
<a name="gs-agent-status"></a>

 El estado del agente es **activo** (el agente está en ejecución) o **inactivo** (el agente está detenido). 

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

 Un ejemplo de resultado muestra que el agente está instalado, en estado **inactivo** (detenido) y **activado** (inicia el servicio al arrancar). 

```
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 Información sobre el RPM del agente
<a name="gs-agent-rpm-info"></a>

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

 La salida es la siguiente: 

**nota**  
La versión puede variar según la última versión publicada por el 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
```