# list-user-connect-openvpn

The vpn list-user-connect-openvpn command retrieves a list of currently connected OpenVPN users. This command displays essential details such as Username, Virtual Address, Remote Host, Connect Time, Bytes Received, and Bytes Sent.

## Usage&#x20;

```
cldkctl vpn list-user-connect-openvpn [flags]
```

## Steps

Follow the steps below to run and view the result of this command:

1. Run the following command in your terminal:

```
cldkctl vpn list-user-connect-openvpn
```

2. Enter the VPN name in the VPN Name field. To obtain or verify it, refer to vpn list.
3. Enter the public IP address in the IP Public field.
4. Press y for Confirm or n for Cancel.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FsXkQK1ph4HosN1otUAyi%2Funknown.png?alt=media&#x26;token=0669b3c5-83dd-4a3e-a313-6dbc797c8fed" alt=""><figcaption></figcaption></figure>

5. Once successful, the terminal displays the list of connected OpenVPN users containing details such as Username, Virtual Address, Remote Host, Connect Time, Bytes Received, and Bytes Sent.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FtKPpNUs5abKSj2SSLevv%2Funknown.png?alt=media&#x26;token=e67793c9-dd40-4318-be55-bf6b48f2786a" alt=""><figcaption></figcaption></figure>

| Column       | Description                                                      |
| ------------ | ---------------------------------------------------------------- |
| Username     | Displays the OpenVPN user currently connected to the VPN server. |
| Virtual Addr | Shows the virtual IP address assigned to the connected user.     |
| Remote Host  | Displays the client’s public IP address connected to the VPN.    |
| Connect Time | Indicates the timestamp of when the connection was established.  |
| Bytess Recv  | Displays the amount of data received from the user in bytes.     |
| Bytes Sent   | Displays the amount of data sent to the user in bytes.           |

## Flags

{% hint style="info" %}
This command supports [global flags](https://docs.cloudeka.ai/cloudeka-api-list/global-flags). Refer to the Global Flags section for details.
{% endhint %}

| Flag       | Description                                 |
| ---------- | ------------------------------------------- |
| -h, --help | Help for list user connect openvpn command. |
