# otBorderAgentCounters Struct Reference

# otBorderAgentCounters


`#include <openthread/border_agent.h>`

Defines Border Agent counters.

## Summary

The `mEpskc` related counters require `OPENTHREAD_CONFIG_BORDER_AGENT_EPHEMERAL_KEY_ENABLE`.

| ### Public attributes ||
|---|---|
| `https://openthread.io/reference/struct/ot-border-agent-counters#structot_border_agent_counters_1a6af6ddad105823aac42e32df3447da29` | `uint32_t` The number of ePSKc activations. |
| `https://openthread.io/reference/struct/ot-border-agent-counters#structot_border_agent_counters_1a380458cc0c663e8cbe0e4d433d60d5e8` | `uint32_t` The number of successful commissioner petitions with ePSKc. |
| `https://openthread.io/reference/struct/ot-border-agent-counters#structot_border_agent_counters_1a1ff1e3e75497a5b7d7448686bc2faa86` | `uint32_t` The number of ePSKc deactivations via API. |
| `https://openthread.io/reference/struct/ot-border-agent-counters#structot_border_agent_counters_1ad8d8dc3c3165cfbb31d86d190127abdb` | `uint32_t` The number of ePSKc deactivations due to commissioner disconnected. |
| `https://openthread.io/reference/struct/ot-border-agent-counters#structot_border_agent_counters_1a797557738faca947c0f8404afc170611` | `uint32_t` The number of ePSKc deactivations due to reached max attempts. |
| `https://openthread.io/reference/struct/ot-border-agent-counters#structot_border_agent_counters_1ae8c9ccedc86810473b70c4ef8b601f49` | `uint32_t` The number of ePSKc deactivations due to timeout. |
| `https://openthread.io/reference/struct/ot-border-agent-counters#structot_border_agent_counters_1a5a584e0b7637cd5c180ee6fea8eacfe8` | `uint32_t` The number of invalid args errors at ePSKc activation. |
| `https://openthread.io/reference/struct/ot-border-agent-counters#structot_border_agent_counters_1a319fb2bf2bb8fb5f1ed7d4ededa27e24` | `uint32_t` The number of invalid border agent state errors at ePSKc activation. |
| `https://openthread.io/reference/struct/ot-border-agent-counters#structot_border_agent_counters_1aa89a728371d91e1457900a6ec972f18c` | `uint32_t` The number of failed secure sessions with ePSKc. |
| `https://openthread.io/reference/struct/ot-border-agent-counters#structot_border_agent_counters_1ae36904abc3c48a0dc98495c153ff90bb` | `uint32_t` The number of established secure sessions with ePSKc. |
| `https://openthread.io/reference/struct/ot-border-agent-counters#structot_border_agent_counters_1a4ff96e1d7bb223fe3ec46d3d27610faf` | `uint32_t` The number of start secure session errors at ePSKc activation. |
| `https://openthread.io/reference/struct/ot-border-agent-counters#structot_border_agent_counters_1a290765c1aea0e62af6fa942b41891019` | `uint32_t` The number of MGMT_ACTIVE_GET.req sent over secure sessions. |
| `https://openthread.io/reference/struct/ot-border-agent-counters#structot_border_agent_counters_1a2646f2328a2fc7c4e767455dc5cb2f7a` | `uint32_t` The number of MGMT_PENDING_GET.req sent over secure sessions. |
| `https://openthread.io/reference/struct/ot-border-agent-counters#structot_border_agent_counters_1aafa866bedd37fbfc80b6c80b74c62801` | `uint32_t` The number of successful commissioner petitions with PSKc. |
| `https://openthread.io/reference/struct/ot-border-agent-counters#structot_border_agent_counters_1a251109af20a5706d1aa41b0e452402db` | `uint32_t` The number of failed secure sessions with PSKc. |
| `https://openthread.io/reference/struct/ot-border-agent-counters#structot_border_agent_counters_1ad0b6b8477f6523d2152083e6289014f3` | `uint32_t` The number of established secure sessions with PSKc. |

## Public attributes

### mEpskcActivations

```
uint32_t otBorderAgentCounters::mEpskcActivations
```
The number of ePSKc activations.

### mEpskcCommissionerPetitions

```
uint32_t otBorderAgentCounters::mEpskcCommissionerPetitions
```
The number of successful commissioner petitions with ePSKc.

### mEpskcDeactivationClears

```
uint32_t otBorderAgentCounters::mEpskcDeactivationClears
```
The number of ePSKc deactivations via API.

### mEpskcDeactivationDisconnects

```
uint32_t otBorderAgentCounters::mEpskcDeactivationDisconnects
```
The number of ePSKc deactivations due to commissioner disconnected.

### mEpskcDeactivationMaxAttempts

```
uint32_t otBorderAgentCounters::mEpskcDeactivationMaxAttempts
```
The number of ePSKc deactivations due to reached max attempts.

### mEpskcDeactivationTimeouts

```
uint32_t otBorderAgentCounters::mEpskcDeactivationTimeouts
```
The number of ePSKc deactivations due to timeout.

### mEpskcInvalidArgsErrors

```
uint32_t otBorderAgentCounters::mEpskcInvalidArgsErrors
```
The number of invalid args errors at ePSKc activation.

### mEpskcInvalidBaStateErrors

```
uint32_t otBorderAgentCounters::mEpskcInvalidBaStateErrors
```
The number of invalid border agent state errors at ePSKc activation.

### mEpskcSecureSessionFailures

```
uint32_t otBorderAgentCounters::mEpskcSecureSessionFailures
```
The number of failed secure sessions with ePSKc.

### mEpskcSecureSessionSuccesses

```
uint32_t otBorderAgentCounters::mEpskcSecureSessionSuccesses
```
The number of established secure sessions with ePSKc.

### mEpskcStartSecureSessionErrors

```
uint32_t otBorderAgentCounters::mEpskcStartSecureSessionErrors
```
The number of start secure session errors at ePSKc activation.

### mMgmtActiveGets

```
uint32_t otBorderAgentCounters::mMgmtActiveGets
```
The number of MGMT_ACTIVE_GET.req sent over secure sessions.

### mMgmtPendingGets

```
uint32_t otBorderAgentCounters::mMgmtPendingGets
```
The number of MGMT_PENDING_GET.req sent over secure sessions.

### mPskcCommissionerPetitions

```
uint32_t otBorderAgentCounters::mPskcCommissionerPetitions
```
The number of successful commissioner petitions with PSKc.

### mPskcSecureSessionFailures

```
uint32_t otBorderAgentCounters::mPskcSecureSessionFailures
```
The number of failed secure sessions with PSKc.

### mPskcSecureSessionSuccesses

```
uint32_t otBorderAgentCounters::mPskcSecureSessionSuccesses
```
The number of established secure sessions with PSKc.

## Resources

OpenThread API Reference topics originate from the source code, available
on [GitHub](https://github.com/openthread/openthread/tree/main/include/openthread).
For more information, or to contribute to our documentation, refer to
[Resources](https://openthread.io/resources).