# OpcServerDiagnostics Members

> Reference: Provides diagnostic summary information for the server.

<dl class="api-definition">
<dt>Type</dt>
<dd><a href="./">OpcServerDiagnostics</a></dd>
<dt>Namespace</dt>
<dd><a href="../namespaces/opc.uafx.server">Opc.UaFx.Server</a></dd>
<dt>Assembly</dt>
<dd>Opc.UaFx.Advanced.dll</dd>
<dt>Package</dt>
<dd>Opc.UaFx.Advanced v2.59.0</dd>
</dl>

## Properties

### CumulatedSessionCount

Gets the cumulative number of client sessions that have been established in the server since the server was started (or restarted). This includes the [CurrentSessionCount](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcserverdiagnostics/members#currentsessioncount).

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

```csharp
public long CumulatedSessionCount { get; }
```

</div>

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

```vbnet
Public ReadOnly Property CumulatedSessionCount As Long
```

</div>

**Property value**

[Int64](https://learn.microsoft.com/dotnet/api/system.int64)

The cumulative number of client sessions that have been established in the server since the server was started (or restarted). This includes the [CurrentSessionCount](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcserverdiagnostics/members#currentsessioncount).

### CumulatedSubscriptionCount

Gets the cumulative number of subscriptions that have been established in the server since the server was started (or restarted). This includes the [CurrentSubscriptionCount](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcserverdiagnostics/members#currentsubscriptioncount).

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

```csharp
public long CumulatedSubscriptionCount { get; }
```

</div>

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

```vbnet
Public ReadOnly Property CumulatedSubscriptionCount As Long
```

</div>

**Property value**

[Int64](https://learn.microsoft.com/dotnet/api/system.int64)

The cumulative number of subscriptions that have been established in the server since the server was started (or restarted). This includes the [CurrentSubscriptionCount](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcserverdiagnostics/members#currentsubscriptioncount).

### CurrentSessionCount

Gets the number of client sessions currently established in the server.

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

```csharp
public long CurrentSessionCount { get; }
```

</div>

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

```vbnet
Public ReadOnly Property CurrentSessionCount As Long
```

</div>

**Property value**

[Int64](https://learn.microsoft.com/dotnet/api/system.int64)

The number of client sessions currently established in the server.

### CurrentSubscriptionCount

Gets the number of subscriptions currently established in the server.

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

```csharp
public long CurrentSubscriptionCount { get; }
```

</div>

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

```vbnet
Public ReadOnly Property CurrentSubscriptionCount As Long
```

</div>

**Property value**

[Int64](https://learn.microsoft.com/dotnet/api/system.int64)

The number of subscriptions currently established in the server.

### IsEnabled

<span class="api-meta">since v2.58</span>

Gets or sets a value indicating whether the server maintains the diagnostic information of its sessions and subscriptions in the address space.

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

```csharp
public bool IsEnabled { get; set; }
```

</div>

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

```vbnet
Public Property IsEnabled As Boolean
```

</div>

**Property value**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if the diagnostic nodes of the server are updated; otherwise the value false. The default value is false.

**Remarks**

While the server runs, the value states and switches the diagnostics at once. Otherwise it is stored in the [Configuration](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcserverbase/members#configuration) and takes effect with the next start of the server.

Clients read the value from the EnabledFlag of the ServerDiagnostics of the Server object, but cannot change it: the server offers the EnabledFlag read-only, as the OPC UA Compliance Test Tool expects.

### PublishingIntervalCount

Gets the number of publishing intervals currently supported in the server.

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

```csharp
public long PublishingIntervalCount { get; }
```

</div>

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

```vbnet
Public ReadOnly Property PublishingIntervalCount As Long
```

</div>

**Property value**

[Int64](https://learn.microsoft.com/dotnet/api/system.int64)

The number of publishing intervals currently supported in the server.

### RejectedRequestsCount

Gets the number of requests that were rejected since the server was started (or restarted). This number includes the [SecurityRejectedRequestsCount](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcserverdiagnostics/members#securityrejectedrequestscount).

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

```csharp
public long RejectedRequestsCount { get; }
```

</div>

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

```vbnet
Public ReadOnly Property RejectedRequestsCount As Long
```

</div>

**Property value**

[Int64](https://learn.microsoft.com/dotnet/api/system.int64)

The number of requests that were rejected since the server was started (or restarted). This number includes the [SecurityRejectedRequestsCount](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcserverdiagnostics/members#securityrejectedrequestscount).

### RejectedSessionCount

Gets the number of client session establishment requests (ActivateSession and CreateSession) that were rejected since the server was started (or restarted). This number includes the [SecurityRejectedSessionCount](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcserverdiagnostics/members#securityrejectedsessioncount).

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

```csharp
public long RejectedSessionCount { get; }
```

</div>

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

```vbnet
Public ReadOnly Property RejectedSessionCount As Long
```

</div>

**Property value**

[Int64](https://learn.microsoft.com/dotnet/api/system.int64)

The number of client session establishment requests (ActivateSession and CreateSession) that were rejected since the server was started (or restarted). This number includes the [SecurityRejectedSessionCount](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcserverdiagnostics/members#securityrejectedsessioncount).

### SecurityRejectedRequestsCount

Gets the number of requests that were rejected due to security constraints since the server was started (or restarted).

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

```csharp
public long SecurityRejectedRequestsCount { get; }
```

</div>

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

```vbnet
Public ReadOnly Property SecurityRejectedRequestsCount As Long
```

</div>

**Property value**

[Int64](https://learn.microsoft.com/dotnet/api/system.int64)

The number of requests that were rejected due to security constraints since the server was started (or restarted).

### SecurityRejectedSessionCount

Gets the number of client session establishment requests (ActivateSession and CreateSession) that were rejected due to security constraints since the server was started (or restarted).

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

```csharp
public long SecurityRejectedSessionCount { get; }
```

</div>

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

```vbnet
Public ReadOnly Property SecurityRejectedSessionCount As Long
```

</div>

**Property value**

[Int64](https://learn.microsoft.com/dotnet/api/system.int64)

The number of client session establishment requests (ActivateSession and CreateSession) that were rejected due to security constraints since the server was started (or restarted).

### ServerViewCount

Gets the number of server-created views in the server.

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

```csharp
public long ServerViewCount { get; }
```

</div>

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

```vbnet
Public ReadOnly Property ServerViewCount As Long
```

</div>

**Property value**

[Int64](https://learn.microsoft.com/dotnet/api/system.int64)

The number of server-created views in the server.

### SessionAbortCount

Gets the number of client sessions that were closed due to errors since the server was started (or restarted).

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

```csharp
public long SessionAbortCount { get; }
```

</div>

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

```vbnet
Public ReadOnly Property SessionAbortCount As Long
```

</div>

**Property value**

[Int64](https://learn.microsoft.com/dotnet/api/system.int64)

The number of client sessions that were closed due to errors since the server was started (or restarted).

### SessionTimeoutCount

Gets the number of client sessions that were closed due to timeout since the server was started (or restarted).

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

```csharp
public long SessionTimeoutCount { get; }
```

</div>

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

```vbnet
Public ReadOnly Property SessionTimeoutCount As Long
```

</div>

**Property value**

[Int64](https://learn.microsoft.com/dotnet/api/system.int64)

The number of client sessions that were closed due to timeout since the server was started (or restarted).
