

Terjemahan disediakan oleh mesin penerjemah. Jika konten terjemahan yang diberikan bertentangan dengan versi bahasa Inggris aslinya, utamakan versi bahasa Inggris.

# Kelola agen
<a name="managing-agent"></a>

 AWS Ground Station Agen menyediakan kemampuan berikut untuk mengonfigurasi, memulai, menghentikan, meningkatkan, menurunkan versi, dan menghapus instalan agen menggunakan perkakas perintah Linux bawaan. 

**Topik**
+ [AWS Ground Station Konfigurasi agen](#gs-agent-configuration)
+ [AWS Ground Station Agen mulai](#gs-agent-start)
+ [AWS Ground Station Agen berhenti](#gs-agent-stop)
+ [AWS Ground Station Peningkatan agen](#gs-agent-upgrade)
+ [AWS Ground Station Downgrade agen](#gs-agent-downgrade)
+ [AWS Ground Station Agen uninstall](#gs-agent-uninstall)
+ [AWS Ground Station Status agen](#gs-agent-status)
+ [AWS Ground Station Info Agen RPM](#gs-agent-rpm-info)

## AWS Ground Station Konfigurasi agen
<a name="gs-agent-configuration"></a>

 Arahkan ke`/opt/aws/groundstation/etc`, yang harus berisi satu file bernama aws-gs-agent-config .json. Lihat [File konfigurasi agen](configuring-agent.md#agent-config-file) 

## AWS Ground Station Agen mulai
<a name="gs-agent-start"></a>

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

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

Harus menghasilkan output yang menunjukkan agen **aktif**.

```
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 Agen berhenti
<a name="gs-agent-stop"></a>

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

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

 Harus menghasilkan output yang menunjukkan agen **tidak aktif** (berhenti). 

```
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 Peningkatan agen
<a name="gs-agent-upgrade"></a>

1. Unduh versi terbaru agen. Lihat [Agen unduhan](installing-the-agent.md#download-agent).

1. Hentikan agennya.

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

1. Perbarui agen.

   ```
   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 agen
<a name="gs-agent-downgrade"></a>

1. Unduh versi agen yang Anda butuhkan. Lihat [Agen unduhan](installing-the-agent.md#download-agent).

1. Downgrade agen.

   ```
   # 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 Agen uninstall
<a name="gs-agent-uninstall"></a>

 Menghapus instalan agen akan mengganti nama/opt/aws/groundstation/etc/aws-gs-agent-config.json to /opt/aws/groundstation/etc/aws- gs-agent-config .json.rpmsave. Menginstal agen lagi pada instance yang sama lagi akan menulis nilai default aws-gs-agent-config untuk.json dan perlu diperbarui dengan nilai yang benar yang sesuai dengan sumber daya AWS Anda. Lihat [File konfigurasi agen](configuring-agent.md#agent-config-file). 

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

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

 Status agen **aktif** (agen sedang berjalan) atau **tidak aktif** (agen dihentikan). 

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

 Contoh output menunjukkan bahwa agen diinstal, status **tidak aktif** (berhenti) dan **diaktifkan** (mulai layanan saat boot). 

```
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 Info Agen RPM
<a name="gs-agent-rpm-info"></a>

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

 Output adalah sebagai berikut: 

**catatan**  
“Versi” mungkin berbeda berdasarkan versi terbaru yang diterbitkan agen.

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