---
title: dhconfig serviceregistry
sidebar_label: Service Registry
---

The `serviceregistry` (or `registry`) configuration data type of the [dhconfig](./overview.md) tool is used to work with the service registry configuration.

```text
dhconfig serviceregistry [list|help] [arguments]
```

`serviceregistry` has only one action: `list`, which lists service registry configurations to a file or to `stdout`.

The `--help` argument:

```bash
dhconfig serviceregistry list --help
```

...provides detailed information on `list`'s available arguments, as well as usage examples.

```text
usage: dhconfig serviceregistry list [--configfile <arg>] [--diskprops] [--etcd] [-f <arg>] [-h] [-k <arg> | -user
       <arg>] [-pf <arg>] [--process <arg>]  [-v]
List service registry configurations to a file or stdout
```

## `list` examples

List all registered services (the service registry configuration):

```bash
/usr/illumon/latest/bin/dhconfig registry list
```

Export service registry configuration to `/tmp/registry.txt`:

```bash
/usr/illumon/latest/bin/dhconfig registry list --file /tmp/registry.txt
```

Show all service configurations for one process (`db_dis`):

```bash
/usr/illumon/latest/bin/dhconfig registry list --process db_dis
```

```bash
/usr/illumon/latest/bin/dhconfig registry list db_dis
```

Show all service configurations for multiple processes (`db_dis` and `db_rta`):

```bash
/usr/illumon/latest/bin/dhconfig registry list --process db_dis --process db_rta
```

```bash
/usr/illumon/latest/bin/dhconfig registry list db_dis db_rta
```

Export individual or multiple service registry configurations to `/tmp/registry.txt`:

```bash
/usr/illumon/latest/bin/dhconfig registry list --process db_dis --file /tmp/registry.txt
```

```bash
/usr/illumon/latest/bin/dhconfig registry list db_dis --file /tmp/registry.txt
```

```bash
/usr/illumon/latest/bin/dhconfig registry list --process db_dis --process db_rta --file /tmp/registry.txt
```

```bash
/usr/illumon/latest/bin/dhconfig registry list db_dis db_rta --file /tmp/registry.txt
```

## Related documentation

- [dhconfig overview](./overview.md)
