> For the complete documentation index, see [llms.txt](https://documentation.atempo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.atempo.com/tina-4.9.5/tina-4.9.5-en/administration-guide/deduplication/additional-information.md). Agents can also search and read this documentation through its [MCP server](https://documentation.atempo.com/~gitbook/mcp).

# Additional Information

This chapter provides additional information about HyperStream Server.

## Backup and Restore Scenarios

This section describes the possible backup and restore scenarios.

### Scenario 1 - Central Site (no remote offices)

The diagram (Figure 11) illustrates HyperStream Server with a central site and no remote offices.

**Backup Solutions**

* Add a second HyperStream Server (failover) to ensure optimum protection.
* Add a tape library so data can be duplicated and taken off site.

**Restore Scenarios**

Check the following situations and the according restore process (Table 12):

| Situation            | Restore Process                                                                                                                                                                                                                                           |
| -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ADE database crashes | Use the repair tool or the snapshot. See Repair Tools and Back up and Restore the ADE Server with Snapshots.                                                                                                                                              |
| Disk Array fails     | Add new disk and re-install the product. If replication is enabled, use the repair tool and then the replication. See Protect HyperStream Server.                                                                                                         |
| Tina Server crashes  | <ul><li>Restore the Tina catalog (before the last HyperStream backup).</li><li>Launch the command <code>tina\_dedup -report -repair</code> on the HyperStream Server to ensure consistency between the Tina catalog and the HyperStream Server.</li></ul> |

*Table 12: Restore scenarios overview*

### Scenario 2 - Central Site with Remote Offices backing up to a Data Center

The diagram (Figure 12) illustrates HyperStream Server in a backup configuration in which remote offices perform backups to a data center.

**Backup Solutions**

* Use the dedicated Application to back up the HyperStream data, blocks and streams to VLS.
* Duplicate the HyperStream media to tape for long term storage using either the command line or VLSA.

**Restore Scenarios**

Check the following situations and the according restore process (Table 13):

| Situation                 | Restore Process                                                                                                                                   |
| ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| Metadata database crashes | Use the repair tool or the snapshot. See Repair Tools and Back up and Restore the ADE Server with Snapshots.                                      |
| Disk Array fails          | Add new disk and re-install the product. If replication is enabled, use the repair tool and then the replication. See Protect HyperStream Server. |
| Tina Server crashes       | Restore the Tina catalog (before the last HyperStream backup).                                                                                    |

*Table 13: Restore processes in scenario 2*

### Scenario 3 - Restore of a Damaged Mirror

This diagram (Figure 13) illustrates HyperStream Server when restoring a damaged mirror.

<figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2Fgit-blob-d8b28393d2649d75cf644e2b6fd9a921351331b7%2Fhss-scenario-3-damaged-mirror.png?alt=media" alt=""><figcaption><p><strong>Figure 13</strong>: Scenario 3</p></figcaption></figure>

**Prerequisites**

* Both HyperStream Servers must have the same hardware, the same operating system and the same HyperStream installation path.
* Do not run any Tina backups during the restore.

**Hypothesis**

* Mirrored configuration: `HyperStream_A` to and from `HyperStream_B`.
* `HyperStream_B` is lost.

**Procedure**

1. Stop `HyperStream_A`.
2. If available, from `HyperStream_B`, secure a copy of the `conf/config.xml` file.
3. Overwrite `HyperStream_B` with a full copy of `HyperStream_A` (installation path + all repositories + all streams).
4. Replace the file `config.xml` in the `Conf` directory of `HyperStream_B` with the one copied in step 2. If the file is not available, you will find a copy of `config.xml` in the first repository.
5. Start `HyperStream_B`.
6. Start `HyperStream_A`.

**Verification**

Use the `resync_hss` command to display the number of streams to send or get. If the mirrors are synchronized, there should be no stream to send or get.

### Scenario 4 - Restore of a Damaged Replica (locally)

The diagram (Figure 14) illustrates HyperStream Server when restoring a damaged replica.

<figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2Fgit-blob-349b9308a2dcef0d7b341dc8b942e4ac99aa09b7%2Fhss-scenario-4-damaged-replica-locally.png?alt=media" alt=""><figcaption><p><strong>Figure 14</strong>: Scenario 4</p></figcaption></figure>

**Prerequisites**

* Do not run any Tina backups during the restore.

**Hypothesis**

* `HyperStream_B` replicated to `HyperStream_A`.
* Replication can be comprised of several HyperStream Servers, and `HyperStream_A` can receive streams from another source (part of the replica ring); we must not assume that `HyperStream_A=HyperStream_B`.

**Procedure**

1. If `HyperStream_B` is still running, stop `HyperStream_B`.
2. Recreate `HyperStream_B`:

   ```
   ade_server --reset --force
   ```

   This command totally removes all data.
3. If step 2 fails, for instance if the database cannot be recovered, launch this command:

   ```
   ade_server --recover <config_backup_path> --force
   ```
4. Start `HyperStream_B`.

At this point, `HyperStream_B` will be empty but will be populated by the replication resync operation. Streams will start to return from `HyperStream_A`. The logs will show this activity.

{% hint style="info" %}
This procedure may take some time, especially if A and B are using a WAN connection.
{% endhint %}

### Scenario 5 - Restore of a Damaged Replicated HyperStream Server (over the WAN)

The diagram (Figure 15) illustrates the restore of a damaged replicated HyperStream Server.

<figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2Fgit-blob-e1ef7742d0fec164d6ef84d6adf70a2e0aa999bc%2Fhss-scenario-5-damaged-replicated-server-wan.png?alt=media" alt=""><figcaption><p><strong>Figure 15</strong>: Scenario 5</p></figcaption></figure>

**Hypothesis**

The HyperStream server on the remote site, which has been replicated to the consolidated HyperStream server in the datacenter, can be rebuilt on the datacenter site should an issue arise.

**Procedure**

1. Follow the same procedure as explained in [Scenario 4 - Restore of a Damaged Replica (locally)](#scenario-4-restore-of-a-damaged-replica-locally).
2. Copy (HOME of `HyperStream_B#` + Repository) on tapes/disk (`tar`) onto `HyperStream_B`.
3. Stop `HyperStream_B#`.
4. Start `HyperStream_B`.
5. If the damage to `HyperStream_B` is due to a filesystem corruption or to a block index database corruption, and if the connection between the replicated servers goes through a slow network such as a WAN, you may want to run a repair rather than resynchronizing the entire database from the replicated server. The repair is run on `HyperStream_B` with the information contained in `HyperStream_B`. It does not entail any data transfer between `HyperStream_A` and `HyperStream_B`. Once the repair is finished, which could last a long time, the replication will resume and the few missing blocks, if any, will be resynchronized from `Server_A` to `Server_B`. Use the following repair command:

   ```
   ade_server --repair <path>
   ```

   Where `<path>` is a directory where the current database is temporarily copied during the repair.

### Scenario 6 - Remote Sites backing up locally and replicating to the Central Site

The diagram (Figure 16) illustrates the local backup process of remote sites and their replication to the central site.

<figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2Fgit-blob-b000cee93b26a0cea062fc49a09e66c9c853bc57%2Fhss-scenario-6-remote-sites-central-site.png?alt=media" alt=""><figcaption><p><strong>Figure 16</strong>: Scenario 6</p></figcaption></figure>

Securing the environment is managed by:

1. Replicating remote office HyperStream Server(s) to the central site to prevent data loss.
2. Remote HyperStream Servers are also protected by stopping the HyperStream Server and taking a snapshot.
3. The central HyperStream Server is secured by mirroring to another HyperStream Server (this is known as failover).
4. The central HyperStream Server is backed up through a script and a snapshot (supported by the disk array) to prevent HyperStream Server corruption.

**Procedure**

Check for each scenario the according restore process (Table 14):

| Scenario                                                                                                                                                                                                                                                                    | Restore Process                                                                                                                                                                |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Remote HyperStream Server crashes (data loss). A spare server will be rebuilt at the datacenter; once the process is completed, this new HyperStream server will be shipped to the remote site. Backup and restore will be possible through the central HyperStream server. | See [Scenario 5 - Restore of a Damaged Replicated HyperStream Server (over the WAN)](#scenario-5-restore-of-a-damaged-replicated-hyperstream-server-over-the-wan) for details. |
| Remote HyperStream Server is corrupt. Use local snapshot to restore a viable version of the database.                                                                                                                                                                       | Technical Assistance of Professional Services is required.                                                                                                                     |
| Central HyperStream Server crashes (data loss). Failover HyperStream Server is automatically available for backup and restore. The central HyperStream Server can then be rebuilt.                                                                                          | See [Scenario 3 - Restore of a Damaged Mirror](#scenario-3-restore-of-a-damaged-mirror) for details.                                                                           |
| Central HyperStream Server is corrupt. Rebuild from the disk array snapshot by restoring a viable version of the database.                                                                                                                                                  | Technical Assistance of Professional Services is required.                                                                                                                     |

*Table 14: Restore processes in scenario 6*

## Perform Maintenance

This section details the most common maintenance operations that you may have to perform while using HyperStream Server.

### Ensure Database and Block Repository Consistency

The product reliability depends on its database and block repository consistency. To ensure that you run a consistent system, a set of tools is provided to check, repair, and clean up your data.

If a HyperStream Server restore process fails and reports missing or corrupted blocks, it is possible that your system suffers from hardware issues or file system corruption. A hard drive failure of the disk where the block files are stored, or a file system corruption, may lead to missing or corrupted blocks.

{% hint style="warning" %}
Ensure that your system is completely healthy and that the server has enough free space prior to going through the maintenance steps described in this section. The necessary amount of free space must be at least equal to the size of your database.
{% endhint %}

### Repair Tools

You can run the procedure described in [Repair and Clean Up Missing or Corrupted Blocks](#repair-and-clean-up-missing-or-corrupted-blocks) if:

* A restore process fails and reports missing or corrupted blocks.
* You checked your system health (hardware issues or file system corruption).

This section describes the available repair tools used in the procedure to check, repair, and clean up your data in case of missing or corrupted blocks.

#### Run the Repair Tool

The repair tool performs these operations:

* A complete in-depth check of each block's validity, and a reset of the counters keeping track of the number of occurrences of each block.
* Each HyperStream Server stream is then checked, and for every listed block of every known file, the related counter is incremented, even if the block does not exist.
* When a file has at least one missing block, this file is labeled as erroneous.
* When a stream has at least one erroneous file, this database is reported for a reload. This operation does not hide erroneous files, which are still displayed for browsing and restore purposes.
* When the repair operation is over, every reference counter is correct and the status of missing blocks is updated on ADE.
* If an erroneous file is still under protection on an active agent, the file is sent to the server again, giving an opportunity to retrieve the missing block. The last version of the file is fixed. There is a very high probability of fixing most, if not all, previous file versions.

**To run the repair tool**

1. Run this command in the `bin` directory of the installation directory:

   ```
   ade_server --repair <path>
   ```

   Where `<path>` is the location where your database is copied before the modifications take place.
2. When the repair process ends, start the ADE service.

{% hint style="warning" %}
You must run the repair tool prior to upgrading from a version earlier than 1.2.9. The procedure is described in Upgrade the HyperStream Server.
{% endhint %}

#### Run the Counter Tool

The counter tool resets the reference counters only, scans all objects, rebuilds the reference counters, and finally tags files with missing blocks.

**To run the counter tool**

Run this command in the `bin` directory of the installation directory:

```
ade_server --repair COUNTER
```

#### Run the Recheck Tool

The recheck tool browses only through error-tagged items, and checks their error status.

**To run the recheck tool**

Run this command in the `bin` directory of the installation directory:

```
ade_server --repair RECHECK
```

#### Run the Cleanup Tool

The cleanup tool removes all inconsistent data from your database and repositories. It browses only through error-labeled items, checks their error status. If the error status of an item is correct, the cleanup tool deletes the item.

**To run the cleanup tool**

Launch this command in the `bin` directory of the installation directory:

```
ade_server --repair CLEANUP
```

### Repair and Clean Up Missing or Corrupted Blocks

To fix missing or corrupted blocks, you must apply the repair procedure.

{% hint style="info" %}
The replication operation does not replicate missing or corrupted blocks: the replication of the agent stops when encountering such blocks, and it generates this log: "Error reading block".
{% endhint %}

Apply the repair and cleanup procedure to fix the block issue.

#### Step 1: Repair the Corrupted Blocks

1. Ensure that your system does not encounter any hardware or system issue.
2. Stop the ADE service.
3. Run this command in the `bin` directory of the installation directory:

   ```
   ade_server --repair <path>
   ```

   Where `<path>` is the location where your database is copied before the modifications take place.

   The repair tool checks the block files consistency and browses through the client database or streams to identify which files refer to missing or corrupted blocks. A file referring to one or more missing or corrupted blocks is referred to as erroneous.

   If an erroneous file is still under protection on an active agent, the file is entirely sent to the server again, giving an opportunity to retrieve the missing block. The last version of the file is fixed, and there is a very high probability of fixing many, if not all, previous file versions.
4. When the repair process ends, start the ADE service.

#### (Optional) Step 2: Recheck the Corrupted Blocks

On an optional basis, you can periodically check whether erroneous files get fixed by running the recheck operation.

Run this command in the `bin` directory of the installation directory when you want to know the number of remaining files to fix:

```
ade_server --repair RECHECK
```

#### (Optional) Step 3: Clean Up the Corrupted Blocks

If no missing block can be retrieved, you can clean up the system by running the cleanup process. This may also free additional space, in case the blocks presenting problems are stored along with expired data.

Run this command in the `bin` directory of the installation directory:

```
ade_server --repair CLEANUP
```

### Import and Export Blocks from an ADE Server

The import and export procedure copies blocks from one server to another. This procedure can be useful in a replication context, or when performing an initial seeding.

The following procedure describes how to perform an incremental blocks export and import:

#### Step 1: Retrieve the abr\_dump.txt File from the Source and Target Servers

1. Stop the ADE service on both the source and target servers.
2. Run this command on the source server to generate a file called `abr_dump.txt` located in `<path>`:

   ```
   ade_server -Z 13 --dump <path>
   ```
3. Run this command on the target server to generate a file called `abr_dump.txt` located in `<path>`:

   ```
   ade_server -Z 13 --dump <path>
   ```
4. Restart the ADE service on both the source and target servers.

#### Step 2: Replace the abr\_dump.txt File on the Source Server

1. Copy `abr_dump.txt` from the target server to the source server.
2. Rename the file to `abr_dest.txt`, and move it to `<path2>` (`<path2>` can be identical to `<path1>`).
3. On the source server, run the command:

   ```
   ade_admin -N --cmd "digest_diff <path1>/abr_dump.txt <path2>/abr_dest.txt <diff_file>"
   ```

   The missing digests are stored in `<diff_file>`.

#### (Optional) Step 3: Generate the Export File

1. (Optional) This step can be run on a Linux system only. It may be used to increase performance for the next step. If you use Windows servers but still have access to a Linux system, you can copy the file to the Linux system and run the command. The result file can then be copied back to your Windows server for the next step. Run the command:

   ```bash
   sort -k 4,4 -k 5,5 --numeric-sort /tmp/<diff_file> > /tmp/<result_file>
   ```
2. Run this command to create the export file:

   ```
   ade_admin -p <password> --cmd "export_block_by_list <result_file> <export_folder> <max_file_size>"
   ```

   Example:

   ```
   ade_admin -p admin --cmd "export_block_by_list diff.txt d:\export 64G"
   ```
3. Move this folder (and all the files it includes) to the target server. Exported file names look like: `exported_block_0000.exp`.

#### Step 4: Edit the compact.delay Tunable

1. On the target server, set the tunable `compact.delay` to `1000` days. The tunable avoids block files replicated from other sources from being compacted if they are not older than `compact.delay` days.
2. Connect to `ade_admin` on the local ADE server.
3. On the target server, run the command:

   ```
   ade_admin -p <password> --cmd "import_block <exported_file>"
   ```

   Do this for every file to import. If everything goes right, this file is removed at the end of the import (avoiding mistakes such as removing the wrong files).

   Example:

   ```
   ade_admin -p admin --cmd "import_block u:\exported_block_0017.exp"
   ```
4. Remove the dump and delta files.
5. Check the replication lag value.
6. When the replication lag decreases and stabilizes between 0 and 7 days, set the tunable `compact.delay` to `7` days.

## Integration Using REST API

This topic describes the Representational State Transfer (REST) API that you can use to perform operations in your production environment.

{% hint style="info" %}
The information in this topic is intended for developers who are familiar with REST APIs.
{% endhint %}

### Overview

HyperStream Server objects and functions are exposed through a comprehensive REST API. This API can be used to create custom interfaces or automate operations.

### REST API URLs

* The HyperStream Server REST API is available over HTTP and/or HTTPS, depending on your configuration.

{% hint style="info" %}
For security reasons, it is recommended to use the REST API through the HTTPS protocol.
{% endhint %}

### Access the API Documentation Using a Hyperlink

Open a web browser and go to:

```
https://<your_server_name>:8181/api/
```

`<your_server_name>` is the network name of your server, and `8181` is the port used to access the Administration interface.

### Access the API Documentation Using the ADE administration interface

1. Log into the ADE administration interface.
2. In the upper-right corner of the window, click your user's initials, then `Help and resources` > `Documentation`.

In the Documentation homepage, you will find a list of API documentation.

## Troubleshooting

This section gives all the necessary information about troubleshooting.

### Advanced Environment Reporter

The Advanced Environment Reporter (AER) tool enables you to collect technical information on your backup or archiving architecture. This comprehensive debug and troubleshooting tool gathers all technical data about your operating system and Atempo software configuration into one file that you can send to Atempo Customer Support through email or the AER upload portal.

You can upload an Advanced Environment Report using:

* The Lina administration interface.
* A Command Line Interface.

**Best Practice**

To improve the processing time of your calls, you must generate and send an environment report whenever you log an incident. The report is formatted in such a way that it can be rapidly machine-read and imported into a database by Atempo Customer Support.

**Confidentiality**

{% hint style="info" %}
`advanced_env_report` does not extract any information of a confidential nature, and Atempo will not disclose any information collected by `advanced_env_report` to any other party.
{% endhint %}

#### Upload an Advanced Environment Report Using the Lina Administration Interface

Uploading an Advanced Environment Report in the Lina administration interface:

* Only requires a site ID for the upload.
* Automatically retrieves technical information on your backup or archiving architecture.

**To upload an Advanced Environment Report in the Lina administration interface**

1. In the Lina administration interface, go to `Server` > `Environment report`. The environment report sheet displays.
2. Enter a site ID. A site ID contains 9 digits. When a site ID is entered, it is saved for future environment reports. You can also modify the site ID in `Settings` > `Preferences` > `Site ID`.
3. (Optional) Enter a case ID if you contacted the Customer Support team prior to uploading the environment report. A case ID contains 5 to 8 digits.
4. (Optional) Replace the proxy URL used to upload the Environment Report:

   1. Click `Use the following proxy`.
   2. Enter a proxy server and a port number.
   3. Enter a proxy user and a password.

   You can also modify the proxy URL in `Settings` > `Preferences` > `Proxy`.
5. (Optional) If log events are included in the report, select a time range to use. You can go back a few hours, days, weeks or months in time. For instance, if you select a timeframe of 1 week, log events from the last week will be included in the report. To remove log events from the report, click `Add log events in the report`.
6. Click `Upload environment report`. Your environment report is automatically generated and uploaded to the Atempo upload server.

#### Upload an Advanced Environment Report Using a Command Line Interface

This section explains how to upload an Advanced Environment Report using a command line interface.

**Location of the Advanced Environment Reporter**

The Advanced Environment Reporter is installed with HyperStream Server and/or Lina Server in the appropriate directory (Table 15):

<table><thead><tr><th width="174.6666259765625">OS</th><th>Directory</th></tr></thead><tbody><tr><td>Windows</td><td><code>Drive_letter:\Atempo\AtempoDedupEngine\environment_name</code>. By default: <code>C:\Program Files\Atempo\AtempoDedupEngine\default\bin\</code></td></tr><tr><td>Unix</td><td><code>/Install_directory/AtempoDedupEngine/environment_name/bin</code>. By default: <code>/usr/Atempo/AtempoDedupEngine/default/bin</code></td></tr></tbody></table>

*Table 15: AER directories per OS*

**Configure the Advanced Environment Reporter on macOS and Unix**

This section explains how to use the Advanced Environment Reporter on macOS and Unix.

**Step 1: Launch the Advanced Environment Reporter**

{% hint style="info" %}
Before launching this procedure, be aware that information gathering can be a lengthy process. At any time during this process, you can use the key combination `CTRL+C` to cancel the report.
{% endhint %}

Navigate to the directory where the Environment Reporter is installed, and run the Environment Reporter from a shell on the server:

```bash
# ./advanced_env_report.sh
```

If needed, enter the root user password.

**Step 2: Configure the Advanced Environment Reporter**

Under macOS and Unix, `advanced_env_report` does not have a graphic interface. When you launch the shell, all Atempo software environments present on your system are detected and presented as numbered options. These are all the Atempo software environments that the shell can detect (Table 16):

```
[root@tonga Linux-X64]# /opt/Atempo/HN/bin/advanced_env_report.sh
Advanced Environment Report Script x.xx
1) ALN (ALNLinuxAgent) ()
2) _Aws (_AWS)
3) _FlexLM (ALM)
4) HyperStream.alnjuju (HSS) (2.1 SP3 P4626)
5) tina5b10 (tina)
your choice:4
```

*Table 16: Numbered options of Atempo software environments*

When you have selected the software environment on which to run the report, a list of options (preset to their defaults) opens. These options are described in full under [Step 3: Define the Report Description Options on macOS or Linux](#step-3-define-the-report-description-options-on-macos-or-linux) (Table 17):

```
----------------------------------
Environment Hyperstream.default (HSS) selected
-Step 3: Define the Report Description Options on macOS or Linux---------------------------------
1) Generate config only: No
2) Generate a compressed file: Yes ( using gzip )
3) Split the resulting file after 1900KB: No
0) Run Report !
your choice (0)
```

*Table 17: Option descriptions*

Selecting any option toggles between the default and the alternative value (e.g., selecting option 1 sets it to `Yes`, whereas selecting option 1 again sets it back to `No`).

{% hint style="info" %}
If you want to exit the Environment Reporter without running it, press `CTRL+C` on the command line.
{% endhint %}

**Step 3: Define the Report Description Options on macOS or Linux**

### Option 1: Generate Configuration Only

If you specify option 1 at the prompt:

```
your choice (0)1
```

only files related to the system configuration are collected. No information on your Atempo software is collected. The default is `No`.

### Option 2: Generate a Compressed File

This option, set by default to `Yes`, causes the Environment Report to be compressed into a gzip file on generation. This action reduces the report size significantly and makes it easier to send or upload.

### Option 3: Split the Resulting File

If your file is so large that you must send it in several parts, specify this option to split the Environment Report into segments of 1,900 KB. The default is `No`.

**Step 4: Generate the Report in Command Mode on macOS or Linux**

**To generate the report in command mode**

1. After configuring `advanced_env_report`, start generation by entering option `0` at the choice prompt:

   ```
   your choice (0)0
   ```

   As the report is generated, the list of files being collected and copied scrolls on the screen. This process can take some time. Finally, you will see a message similar to this one:

   ```
   Please send the following files to the email address
   "support@atempo.com" :
   /Applications/Atempo/TimeNavigator/Adm/AER_aria.local.tar.gz
   (size : 216 KB)
   (Do not forget to specify your Call Number)
   ```
2. Send the report files to `support@atempo.com`.

You can also upload these files when you open an inquiry. For more details, see [Send the Advanced Environment Report to the Support Team](#send-the-advanced-environment-report-to-the-support-team).

**Configure the Advanced Environment Reporter on Windows**

This section explains how to use the Advanced Environment Reporter on Windows.

**Step 1: Launch the Advanced Environment Reporter**

{% hint style="info" %}
Before launching this procedure, be aware that information gathering can be a lengthy process.
{% endhint %}

1. On the server of your product, select:

   * `C:\Program Files\Atempo\AtempoDedupEngine\default\bin\advanced_env_report.exe`.

   Or

   * Double-click the `advanced_env_report.exe` file to run the Environment Reporter.
2. (UAC only) Run the Advanced Environment Reporter in administration mode.

The Environment Reporter interface opens (Figure 17). It contains:

* A pane in the upper-left part of the window that displays the names of all Atempo software environments detected on the system.
* Three read-only text fields in the upper-right corner that display information on the selected service (Table 18).
* A second, empty pane in the middle of the window that is not applicable to your product and can be ignored.
* Several buttons and an option that may be selected for advanced configuration (Table 18).

<figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2Fgit-blob-471be939e8d8a63c61b1d1552ea977718085a50c%2Fhss-environment-reporter-interface.png?alt=media" alt=""><figcaption><p><strong>Figure 17</strong>: Environment Reporter interface</p></figcaption></figure>

**Step 2: Set Your Report Configuration**

Select your environment, then set your configuration options (Table 18):

| Item                                      | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| ----------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Status Service                            | The value can be `Running`, `Stopped`, or `Does not exist`. When used with a HyperStream Server, the Status Service field is not used and shows `NA` (Not Applicable).                                                                                                                                                                                                                                                                                               |
| Host Name                                 | Name of the machine hosting the server of the selected software environment.                                                                                                                                                                                                                                                                                                                                                                                         |
| Version                                   | Version and patch of the selected software environment.                                                                                                                                                                                                                                                                                                                                                                                                              |
| Generate a report with configuration ONLY | Option that collects files related to the system configuration only. No information on your software is collected.                                                                                                                                                                                                                                                                                                                                                   |
| Set User and Password                     | Button that replaces the default user credentials with another user's credentials.                                                                                                                                                                                                                                                                                                                                                                                   |
| Options                                   | <p>Button that offers various choices on report packaging and secure report service:</p><ul><li><strong>Generate a zip file</strong>: Select this option to compress the Advanced Environment Report into a zip file upon generation. Since the compression significantly reduces the file size, this option is selected by default.</li><li><strong>Remove IP Addresses</strong>: Select this option to remove your network IP addresses from the report.</li></ul> |

*Table 18: Items in the Environment Reporter interface*

**Step 3: Generate a Report**

1. Click `Generate Report` in the lower middle of the window. A read-only field under the button specifies the path where you can find reports once they have been generated.

   The report generation can take some time. As it runs, different messages might warn you that some commands have exceeded their timeout, and provide you the option to abort the current command.
2. Wait a few minutes before clicking again. When the report generation is finished, a message box displays a list of names and paths for the generated files and instructions on how to send an Advanced Environment Report to the Atempo Customer Support team.
3. Click `Close`. You are returned to the previous window, on which the `Cancel` button is now replaced by the `Close` and `Split Result` buttons.

   The `Split Result` button is used to split the Environment Report into segments of the desired size. Smaller file sizes accelerate the transmission of the report to Atempo, so this option has a default size of 2 MB.
4. See [Send the Advanced Environment Report to the Support Team](#send-the-advanced-environment-report-to-the-support-team) for details on sending the report through the AER upload portal.

**Send the Advanced Environment Report to the Support Team**

An Advanced Environment Report (AER) can be sent manually to the Atempo Support team when it is generated on your workstation. This file contains information used to identify the cause of a reported issue, such as log or configuration files. To upload the file:

1. Upload your Advanced Environment Report file.
2. Notify the Atempo Support team of the file upload.

**Upload an AER File in Graphical Mode**

1. Go to <https://upload.atempo.com/>.
2. Enter your case ID, then attach your AER file.
3. Click `Upload`.
4. Notify the Atempo Support team of the file upload.

**Upload an AER File in Command Mode**

1. In a command prompt, enter the following `cURL` command, then replace the case ID and the file name values:

   ```
   curl -X POST https://upload.atempo.com/api/v2/Upload -F CaseId=<CaseId> -F file=@<FileName>
   ```
2. Press `Enter`. The file upload may take some time.
3. Notify the Atempo Support team of the file upload.

### Export Logs to Syslog Server

Syslog is a Message Logging Standard used to secure and centralize logging data. This is useful for administrators because they can access data from one location and oversee important events. To export logs, you need to configure the Syslog server in the ADE administration interface.

1. Select `All tenants` in the list of tenants at the top of the page.

{% hint style="info" %}
The Syslog server cannot be configured at a tenant level.
{% endhint %}

2. Select `Settings` > `Preferences`.
3. Go to `Syslog`, then enable the Syslog feature.

{% hint style="info" %}
A Syslog server configuration is not deleted when disabled.
{% endhint %}

4. Select a protocol (`TLS`, `TCP` or `UDP`).
5. Select the message format:

   * `3164` for the default RFC 3164 format.

   Or

   * `5424` for the RFC 5424 format.
6. Enter the Syslog server name.
7. Enter the port number corresponding to the protocol.
   * `TLS` or `TCP`: By default, the TCP port number is `6514`.
   * `UDP`: By default, the UDP port number is `514`.
8. Click `Apply syslog configuration`.
9. Close the window.

Logs are then sent to the Syslog server. The mapping between severities in Syslog and the severity of ADE logs is as follows:

* `INFO`: user-level/Informational.
* `WARN`: user-level/Warning.
* `DEBUG`: user-level/Debug.
* `ERR`: user-level/Error.
* `FATAL`: user-level/Emergency.

### About Health Check Messages

Within the server view, the health check verifies a series of parameters on your server and, where applicable, provides recommendations to optimize your server. The available messages are described below, sorted by severity.

#### Error Messages

The following error messages can be displayed in the health check (Table 19):

**Table 19**: Description of error health messages

| Name                                                                                 | Description                                                                                                                                                                                                                                 |
| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Required configuration level is C\[0-4]. Database must be stored on an SSD.          | To find out the list of supported configurations, see Sizing Recommendations. Some configurations require SSD devices.                                                                                                                      |
| This configuration level is not supported.                                           | This configuration is no longer supported because it does not fit the requirements enumerated in Configuration Types. Contact your customer support for further assistance.                                                                 |
| Repositories are full.                                                               | No more blocks can be added. You must add new repositories to back up additional data. Contact your customer support if you cannot add more free space.                                                                                     |
| Estimate: Repositories will be full in X days.                                       | Add free space to avoid the Repositories are full issue.                                                                                                                                                                                    |
| Repository `<path>` is located on a remote volume.                                   | It is recommended to use an ext4 file system on Linux servers and NTFS on Windows servers.                                                                                                                                                  |
| Repository `<path>` is not on a journaling file system.                              | It is recommended to use an ext4 file system on Linux servers and NTFS on Windows servers.                                                                                                                                                  |
| Repository `<path>` has no pre-allocation feature.                                   | The ext4 file system can pre-allocate disk space for a file. If you are using an ext4 file system, check that the partition has the Extents extension enabled.                                                                              |
| The database is stored in a remote location.                                         | To ensure optimum reliability and performance, the database must be stored on a local disk. It is recommended to use an SSD device.                                                                                                         |
| Index page size is too big. Perform a shrink operation to avoid excessive RAM usage. | Index page size has changed following a server upgrade from 2.x to 3.x. It is recommended to perform a shrink operation, as described in Upgrade the HyperStream Server.                                                                    |
| Repair was not totally finished: reference counters are fuzzy.                       | A repair operation was running and has been aborted. Reference counters are not reliable. Run the counter tool to rebuild reference counters, as described in Repair Tools. The compact service is stopped until the operation is complete. |
| HSS product is not enabled on destination, so HSS replication is denied.             | Enable HSS to allow the source replication server to send data.                                                                                                                                                                             |
| The `hss.min_space_left` tunable is below the minimum requirement of X.              | To prevent a full repository, this tunable should not be set to less than 64 GB. This amount of free space is enough to run a compact task.                                                                                                 |
| DB disk is almost full.                                                              | The ADE Database disk is almost full. Add free space or move the database to another SSD with more space.                                                                                                                                   |
| There are X missing blocks in block files.                                           | Run the `ade_server --repair COUNTER` command to fix this issue. See Repair Tools for details.                                                                                                                                              |
| X records cannot be removed (inconsistent reference counter).                        | Run the `ade_server --repair` command to fix this issue. See Repair Tools for details.                                                                                                                                                      |
| New important release available.                                                     | Download and install the new release.                                                                                                                                                                                                       |

#### Warning Messages

The following warning messages can be displayed in the health check (Table 20):

**Table 20**: Description of health warning messages

| Name                                                                                                                                                         | Description                                                                                                                                                                                                 |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ADE Server running on a virtualized server.                                                                                                                  | On virtual platforms, performance cannot be exactly determined, since resources are shared with other virtual machines. For maximum performance, use a dedicated physical server.                           |
| Hot backup mode has been running for X minutes.                                                                                                              | The hot backup is in progress.                                                                                                                                                                              |
| ADE Server is not backed up nor snapshotted.                                                                                                                 | Snapshots and backups are important to recover your server in case of trouble. This warning is not displayed on mirrored configurations.                                                                    |
| ADE Server has been backed up X days ago.                                                                                                                    | You should verify why the last server backup took place so long ago.                                                                                                                                        |
| Database and block repositories should be stored on separate volumes for optimal performance.                                                                | Since the database should be stored on SSD, having both the database and the repositories on the same volume is probably a configuration error.                                                             |
| Using self-signed SSL certificate.                                                                                                                           | ADE generates and self-signs an SSL certificate. For improved security, you should replace it by your own certificate.                                                                                      |
| Replication source `<host:port>` is on the same host as the server. Be careful with this configuration: hardware failure could damage both ADE Servers.      | Replication mainly aims at protecting data using redundancy on another location. Thus, having both mirrors on the same host, or storing data on the same disk array, is not recommended.                    |
| Replication destination `<host:port>` is on the same host as the server. Be careful with this configuration: hardware failure could damage both ADE Servers. | Replication mainly aims at protecting data using redundancy on another location. Thus, having both mirrors on the same host, or storing data on the same disk array, is not recommended.                    |
| SSD does not support the TRIM command.                                                                                                                       | TRIM is essential to guarantee constant SSD performance and reliability over the years. This message indicates that your device does not support the feature.                                               |
| Database commits are too long (average is X seconds). Please move the core database to SSD.                                                                  | The seek time of an SSD device is much faster than the seek time of a usual hard drive. It is mandatory to move the database to an SSD device, since database usage follows a mostly random access pattern. |
| Evaluation license (X days remaining) / License expires in X days / Expired license.                                                                         | Please contact your reseller to get a new license file.                                                                                                                                                     |
| Fail to determine license info.                                                                                                                              | Check that the license server is running.                                                                                                                                                                   |
| CPU power scheme is set to `<mode>` instead of "Performance" mode.                                                                                           | On heavy load, a CPU set to performance mode performs more DB operations per second.                                                                                                                        |
| Snapshot not supported (LVM not installed) / Snapshot not supported (old LVM version).                                                                       | Please install LVM2 with version 2.02.95 or higher.                                                                                                                                                         |
| Snapshot not supported (some paths cannot be protected).                                                                                                     | All paths must be located on a volume that can be snapshotted.                                                                                                                                              |
| Snapshot not supported.                                                                                                                                      | Check your file system and configuration.                                                                                                                                                                   |
| Some repositories share the same volume (performance issue).                                                                                                 | Les fichiers blocs doivent être stockés sur des volumes séparés afin d'augmenter les performances. Having several repositories pointing to the same volume is probably a configuration error.               |
| Check SSD configuration. System considers it as a Disk, not an SSD.                                                                                          | The system is not correctly configured, or the disk controller firmware is not aware of SSD or does not fully support SSD.                                                                                  |
| Unable to check if an update is available.                                                                                                                   | ADE fails to contact the server to check for updates. Check the firewall or disable the notification about new releases from the ADE administration interface.                                              |
| New release available (only available for version X and above).                                                                                              | A new release is available, but ADE must be upgraded to version X before upgrading to the latest version.                                                                                                   |
| New optional release available.                                                                                                                              | A new release is available. Download and install the new release.                                                                                                                                           |

{% hint style="info" %}
The "Some repositories share the same volume (performance issue)" message is reproduced above exactly as it appears in the ADE administration interface, including an untranslated French sentence present in the original product text.
{% endhint %}

#### Information Messages

The following information messages can be displayed in the health check (Table 21):

**Table 21**: Description of health check information messages

| Name                                            | Description                                                                                                                                                  |
| ----------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Required configuration level is C\[0-4].        | To find out the list of supported configurations, see Sizing Recommendations. Some configurations require SSD devices.                                       |
| Database size: X GB. RAM installed: Y GB.       | The amount of RAM must be enough to cache a significant part of the database. Database size can be smaller if using a bigger block size (256 KB by default). |
| You have X of free space in the repositories.   | Information on the current available free space.                                                                                                             |
| Hot backup mode running for the past X minutes. | Information on hot backup progress.                                                                                                                          |
| Enabled product(s): `<product list>`.           | Information on the list of enabled products.                                                                                                                 |

#### Redirect Verification Messages

You can monitor verification messages without using the Administration interface, and redirect them to a text file.

**To redirect messages to a text file on a Windows system**

1. Open a Command Prompt from the Start menu.
2. Go to the `bin` folder of the ADE installation directory.
3. To write the current messages to a file, run the command:

   ```
   ade_admin.exe -u <user> -p <password> -A req > <file>
   ```

   Example:

   ```
   ade_admin.exe -u admin -p admin -A req > C:\messages.txt
   ```

**To redirect messages to a text file on a Linux system**

1. Open a Terminal.
2. Browse to the `bin` folder of the ADE installation directory.
3. To write the current messages to the `/home/user/mess.txt` file, run the command:

   ```
   ade_admin -u <user> -p <password> -A req > <file>
   ```

   Example:

   ```
   ade_admin -u admin -p admin -A req > /home/user/mess.txt
   ```

## Initial Backup Seeding

This topic describes how to perform the initial backup of an agent connected through a slow link to a HyperStream repository (i.e., seeding).

The initial backup of a remote agent consists of:

* Backing up the remote agent to a temporary HyperStream Server directly connected to the same LAN.
* Moving the HyperStream Server to the central site, and replicating it to the main HyperStream Server.
* Re-running a full backup from the remote agents so that appropriate metadata is recorded in the Tina catalog.

**To perform the initial backup of a remote agent**

1. Install a HyperStream Server on a mobile machine (named B).
2. Configure the replication on B to replicate any new stream to the main HyperStream Server (named A) in the central site. See Simple and Hierarchical Replication for details.
3. Stop the replication service on B (to prevent any new stream on B from being copied onto A while server B is away).
4. Create a new HyperStream drive on the Tina server and set it to connect to HyperStream Server B.
5. Create a new media pool and link it to the newly created HyperStream drive connected to HyperStream Server B.
6. Create a new strategy for every remote host agent to be backed up, using the newly created HyperStream drive.
7. Go to the remote site and connect the mobile HyperStream Server B to the local LAN. At this point, the host(s) to be backed up and B are on the same LAN.
8. Perform the first full backup of the host(s) located on the current LAN using the strategy you created, and observe the new streams getting created on HyperStream Server B.
9. Repeat step 7 and step 8 for every remote site.
10. Bring the mobile HyperStream Server B back onto the main LAN where HyperStream Server A is connected.
11. Start the replication service on server B so that all the streams previously created on it are copied onto server A.
12. Create a new media pool and associate it with the HyperStream drive(s) connected to HyperStream Server A.
13. Modify the strategy created earlier on all the remote host agents to use the media pool created in step 12.
14. Perform a new full backup for every remote agent.
15. Remove HyperStream Server B from the loop and delete the HyperStream drive associated with HyperStream Server B, as well as the media pool associated with this drive.

{% hint style="info" %}
After seeding, for subsequent backups of remote agents on a slow connection, enable the Use WAN mode option in \[option location]. This option is compatible with network encryption: you can keep both enabled, with or without a VPN.
{% endhint %}

## Create a Thin Volume on Linux

This sample shows how to create a thin volume:

1. First, create the partition and the volume group:

   ```bash
   pvcreate /dev/sdd3
   vgcreate vg1 /dev/sdd3
   ```
2. Create a thin pool of 1 TB:

   ```bash
   lvcreate -L 1T -T vg1/thinpool
   ```
3. Create a thin volume named `lv1`. It is a virtual volume; you can store blocks in this volume, for example:

   ```bash
   lvcreate -V 1T -T vg1/thinpool -n lv1
   ```
4. Create a snapshot named `snap1` (use `snap_create` in `ade_admin`):

   ```bash
   lvcreate -s -n snap1 vg1/lv1
   lvdisplay -C --noheadings -o vg_name,lv_name,lv_attr
   ```

   ```
   vg1 lv1 Vwi-a-tz
   vg1 thinpool twi-a-tz
   ```

The bold "V" shows that you have successfully created a Thin Provisioned logical volume.

{% hint style="warning" %}
You must put all your data on this kind of volume.
{% endhint %}

## Environment Command Prompt

This topic describes the Environment Command Prompt that you can use to execute commands online.

You can obtain documentation on the options of:

* `ade_server` using `ade_server -h`
* `ade_admin` using `ade_admin -h`

These are the available options (Table 22):

| Option                       | Description                                                                                                                                                                                                                                                                                   |
| ---------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `-P`, `--port`               | Displays the TCP port number (`23232` by default).                                                                                                                                                                                                                                            |
| `-W`, `--http_port`          | Displays the embedded HTTP port number (`8181` by default).                                                                                                                                                                                                                                   |
| `-c`, `--create`             | Creates or overwrites any existing database, using the default parameters.                                                                                                                                                                                                                    |
| `-e`, `--reset`              | Creates or overwrites any existing database, using the current parameters.                                                                                                                                                                                                                    |
| `-3`, `--repair`             | Creates a database (Disaster Recovery procedure), using configuration files from the given path.                                                                                                                                                                                              |
| `-f`, `--force`              | Overwrites/resets the current database.                                                                                                                                                                                                                                                       |
| `-r`, `--repository_path`    | Sets the repository path. This command applies to new files only and does not move existing files (see the `--mv_blockfile` option).                                                                                                                                                          |
| `-S`, `--stream_path`        | Sets a stream path and moves all existing stream files to this destination.                                                                                                                                                                                                                   |
| `-b`, `--base_path`          | Sets a location for the core database (index) (SSD recommended).                                                                                                                                                                                                                              |
| `-L`, `--log_path`           | Sets a location for the core database logs (SSD recommended).                                                                                                                                                                                                                                 |
| `-M`, `--mv_blockfiles_dest` | Moves the destination of block files. All files are moved if no source is specified.                                                                                                                                                                                                          |
| `-B`, `--mv_blockfiles`      | Moves a block file.                                                                                                                                                                                                                                                                           |
| `-x`, `--update_repository`  | Updates the database with all possible locations where block files can be found. This command must be used after manually moving block files (`-B`, `--mv_blockfile`), and is not required if all files were moved at once (`-M`, `--mv_blockfiles_dest`). Example: `-x "path1;path2;path3"`. |
| `-X`, `--shrink`             | Shrinks the database. When this command is used, a path is required to store the database.                                                                                                                                                                                                    |
| `-v`, `--version`            | Shows the version of the ADE server.                                                                                                                                                                                                                                                          |
| `-V`, `--all_version`        | Shows all versions of third-party components.                                                                                                                                                                                                                                                 |

*Table 22: List of command mode options*

## Network Ports

HyperStream Server uses different ports to connect to hardware, virtual devices, and networks. This topic summarizes network ports and their connection directions.

| Purpose                                                                                                                          | Port        | Direction                                                   | Configuration notes                                                                                                                                                       |
| -------------------------------------------------------------------------------------------------------------------------------- | ----------- | ----------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ADE Server Web Administration Interface — Web Supervision Machine connection to ADE Server                                       | `8181/TCP`  | Incoming on ADE server, outgoing on Web Supervision Machine | Configurable during ADE installation, as well as in the ADE Graphic User Interface and Command Line Interface.                                                            |
| Configuration assistance (HSS setup/drive) — Bonjour Service on Time Navigator Server                                            | `5353/UDP`  | Incoming on Time Navigator Server                           | —                                                                                                                                                                         |
| Time Navigator HSS Drive to use ADE deduplication — Time Navigator Agent connection to ADE Server (for Time Navigator HSS Drive) | `23232/TCP` | Incoming on ADE Server, outgoing on Time Navigator Agent    | Configurable during ADE installation, as well as in the Graphic User Interface and ADE Command Line Interface. For Time Navigator, in the HSS drive file through the GUI. |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://documentation.atempo.com/tina-4.9.5/tina-4.9.5-en/administration-guide/deduplication/additional-information.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
