---
title: "How to set up Gateway Sharing"
description: "Gateway Sharing in Geneos allows exporting and importing datasets between Gateways running version GA4.x or higher. The setup involves creating Export datasets on the source Gateway and Connection entries on the target Gateway with matching dataset names and credentials."
url: "https://docs.itrsgroup.com/docs/faq/geneos/115004030409-geneos-how-to-set-up-gateway-sharing/index.html"
---
## Prerequisites

The Gateway needs to be running version GA4.x and above. Please note, Gateway version GA4.5 added significant features on running commands, and some changes to the setup XML. Details can be found in the [Release Notes](https://docs.itrsgroup.com/docs/all/release-notes/). Users are suggested to use the same version for Export and Import gateways if possible.

## Exporting data

On the Gateway you wish to export data from, create an Export dataset (**Navigation > Exported data** **> New Data Set** in the Gateway Setup Editor). In this example, the Export dataset will be pointing to a sampler called Hardware View.

![Geneos export dataset in the Gateway Setup Editor](https://docscdn.itrsgroup.com/faq/images/geneos/geneos-export-dataset.png)

The dataset can contain anything from a single sampler to multiple instances of samplers, managed entities or similar. The lowest filtering is dataviews.

## Importing data

On the Gateway you wish to import the data into, create a Connection entry within the Imported data section (**Navigation > Imported data** **> Connection** in the Gateway Setup Editor).

![Geneos imported data in the Gateway Setup Editor](https://docscdn.itrsgroup.com/faq/images/geneos/geneos-imported-data.png)

Within the Connection entry, add the gateway credentials which will be the exporting gateway and ensure the Data set name "Hardware" defined in the Exporting Gateway matches the definition in the Importing gateway.

![Geneos hardware configuration in data sets](https://docscdn.itrsgroup.com/faq/images/geneos/geneos-hardware-dataset.png)

If your exporting gateway has authentication enabled, make sure you enter the authenticated user in the importing gateway on the advanced tab. The Prefix field allows you to add a prefix to the Netprobe and managed entity names.

![Geneos adding a prefix in advanced configuration](https://docscdn.itrsgroup.com/faq/images/geneos/geneos-prefix-field.png)

If you chose not to prefix the imported data in the gateway, it will appear native along the local managed entities. Built-in commands will not be available on imported datasets.

### Exporting Gateway entities

![Geneos export Gateway entities](https://docscdn.itrsgroup.com/faq/images/geneos/geneos-managed-entities.png)

### Exporting Gateway Dataview

![Geneos export Gateway dataview](https://docscdn.itrsgroup.com/faq/images/geneos/geneos-export-dataview.png)

### Importing Gateway entities

![Geneos export Gateway dataview](https://docscdn.itrsgroup.com/faq/images/geneos/geneos-import-entities.png)

### Importing Gateway dataview

![Geneos export Gateway dataview](https://docscdn.itrsgroup.com/faq/images/geneos/geneos-example-import-dataview.png)

Here is an example XML for exporting and importing Gateway entities:

Exporting Gateway

```
<dataSet name="Hardware"><paths><path>/geneos/gateway/directory/probe/managedEntity/sampler[(@name=&quot;Hardware View&quot;)]</path></paths></dataSet>
```

Importing Gateway

```
<connection name="nysupsvr22"><primary><hostname>192.168.2.34</hostname><port>54906</port></primary><prefix>import_</prefix><import></import><dataSets><dataSet><name>Hardware</name></dataSet></dataSets></connection>
```


