# OpcServerState Enum

<dl class="api-definition">
<dt>Namespace</dt>
<dd><a href="../namespaces/opc.uafx">Opc.UaFx</a></dd>
<dt>Assembly</dt>
<dd>Opc.UaFx.Advanced.dll</dd>
<dt>Package</dt>
<dd>Opc.UaFx.Advanced v2.59.0</dd>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

Specifies the state of a server, as defined by the ServerState enumeration of OPC UA.

## Syntax

<div class="api-signature" data-lang="csharp">

```csharp
public enum OpcServerState
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Enum OpcServerState
```

</div>

## Inheritance

[Object](https://learn.microsoft.com/dotnet/api/system.object) → [ValueType](https://learn.microsoft.com/dotnet/api/system.valuetype) → [Enum](https://learn.microsoft.com/dotnet/api/system.enum) → **OpcServerState**

## Remarks

A client receives the state of the server using [ServerState](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclientkeepalive/members#serverstate).

## Fields

| Name | Value | Description |
|---|---|---|
| <a id="communicationfault"></a>`CommunicationFault` | `6` | The server is running, but has difficulty accessing data from its data sources. |
| <a id="failed"></a>`Failed` | `1` | A vendor-specific fatal error has occurred within the server and the server is no longer functioning. |
| <a id="noconfiguration"></a>`NoConfiguration` | `2` | The server is running, but has no configuration loaded and therefore does not transfer data. |
| <a id="running"></a>`Running` | `0` | The server is running normally. |
| <a id="shutdown"></a>`Shutdown` | `4` | The server has shut down or is shutting down. |
| <a id="suspended"></a>`Suspended` | `3` | The server has been temporarily suspended and is not receiving or sending data. |
| <a id="test"></a>`Test` | `5` | The server is in test mode: its outputs are disconnected from the real hardware, but it behaves normally otherwise. |
| <a id="unknown"></a>`Unknown` | `7` | The state of the server is not known. |

## Applies to

| Package | Versions |
|---|---|
| Opc.UaFx.Advanced | v2.5–v2.59 |
