---
title: AsterNOS Exporter
slug: aidc/asternos-exporter
createdAt: 2025-12-01T11:11:10.000Z
---

## <font color="#1d50a2">Exporter View</font>

<font color="#1d05a2">Table 1 Exporter View</font>

| **Command**       | **Purpose**                    |
| ----------------- | ------------------------------ |
| **show exporter** | Display exporter configuration |

### <font color="#1d50a2">show exporter</font>

**\[Command]**
**show exporter**

**\[Purpose]**
Display exporter configuration

**\[View]**
Privileged User View

**\[Use Cases]**

```plaintext
sonic# show exporter
exporter cache duration:
 - bgp: default
 - device: default
 - evpn: default
 - sag: default
 - mclag: default
 - ntp: default
 - interface: default
 - roce_stats: default
exporter capture interval:
 - bgp: default
 - device: default
 - evpn: default
 - sag: default
 - mclag: default
 - ntp: default
```

## <font color="#1d50a2">Exporter Config</font>

<font color="#1d05a2">Table 2 Exporter Config</font>

| **Command**                                                                                      | **Purpose**                                                          |
| ------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------- |
| **exporter cache-duration \{bgp\|device\|evpn\|sag\|mclag\|ntp\|roce\_stats\|interface}** *time* | Configure the cache duration of each module in the exporter.         |
| **exporter capture-interval \{bgp\|device\|evpn\|sag\|mclag\|ntp}** *time*                       | Configure the capture time interval for each module of the exporter. |
| **exporter millisecond\_level\_monitoring enable**                                               | Activate exporter millisecond data collection function.              |

### <font color="#1d50a2">exporter cache-duration \{bgp|device|evpn|sag|mclag|ntp|roce\_stats|interface\} time</font>

**\[Command]**
**exporter cache-duration \{bgp|device|evpn|sag|mclag|ntp|roce\_stats|interface}** *time*

**\[Purpose]**
Configure the cache duration of each module in the exporter

**\[Parameters]**

| **Parameter** | **Description**               |
| ------------- | ----------------------------- |
| *time*        | Cache duration, range 1-60 s. |

**\[View]**
Global Configuration View

**\[Notes]**
Run command **no exporter cache-duration \{bgp|device|evpn|sag|mclag|ntp|roce\_stats|interface}** to delete the cache duration configuration of each module and restore the default configuration. The default values for each module are as follows:
bgp、evpn、sag ：25-30s
device、mclag、ntp：15s
roce\_stats、interface：1s

**\[Use Cases]**

```plaintext
sonic# configure
sonic(config)# exporter cache-duration bgp 15
```

### <font color="#1d50a2">exporter capture-interval \{bgp|device|evpn|sag|mclag|ntp\} time</font>

**\[Command]**
**exporter capture-interval \{bgp|device|evpn|sag|mclag|ntp}** *time*

**\[Purpose]**
Configure the capture time interval for each module of the exporter

**\[Parameters]**

| **Parameter** | **Description**                      |
| ------------- | ------------------------------------ |
| *time*        | Capture time interval, range 1-60 s. |

**\[View]**
Global Configuration View

**\[Notes]**
Run command **no exporter capture-interval \{bgp|device|evpn|sag|mclag|ntp}** to delete the capture time interval configuration of each module and restore the default configuration. The default value for all modules is 30s.

**\[Use Cases]**

```plaintext
sonic# configure
sonic(config)# exporter capture-interval bgp 15
```

### <font color="#1d50a2">exporter millisecond\_level\_monitoring enable</font>

**\[Command]**
**exporter millisecond\_level\_monitoring enable**

**\[Purpose]**
Activate exporter millisecond data collection function

**\[View]**
Global Configuration View

**\[Notes]**
Enable the millisecond-level data acquisition function for the interface and RoCE modules only, with an interval of 500 ms.
Run command **no exporter millisecond\_level\_monitoring** to turn off the millisecond-level data collection function.

**\[Use Cases]**

```plaintext
sonic# configure
sonic(config)# exporter millisecond_level_monitoring enable
```

