Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Logging, SNMP, and Telemetry

Learn to enable system logging, SNMP, and telemetry services on the QFX5220, QFX5230, QFX5240, and QFX5241 Switches in your network.

System Logging (Syslog)

You can configure system logging (syslog) to maintain network stability, security, and performance. The syslog configuration enables network administrators to monitor, troubleshoot, and audit the device activities.

To configure syslog locally on a switch:

To configure remote syslog server (sending logs to an external syslog server):

To configure the source IP address used for syslog traffic:

SNMP

SNMP monitor network devices such as switches, routers, and other IP-based devices from a single management host. By default, SNMP is not enabled on a QFX Series Switch. However, the operating system running on these switches, Junos OS Evolved, supports SNMPv1, SNMPv2c, and SNMPv3.

To enable SNMP, you need to add the configuration statements at the [edit] hierarchy level. The minimum configuration you can enable for SNMP is SNMP polling.

To define an SNMP community and sets its permissions.

For example:

To configure basic SNMP identity:

To limit SNMP queries to trusted management ports:

For example:

To configure SNMP traps:

For example:

To verify whether SNMP is running after configuration, run the following command in operational mode:

Telemetry

Like other Juniper devices, the QFX5220, QFX5230, QFX5240, and QFX5241 switches support Junos telemetry for monitoring network performance, security events, application management, and network capacity planning. For more information about Junos telemetry, see Understanding Junos Telemetry.

You can explore and compare various OpenConfig and Native data model attributes of Junos telemetry using Junos YANG Data Model Explorer. This application enables you to view all the supported resource paths, their corresponding leaves, and the device platforms that supports them. Use the filter option based on the software release number or product to view the list of resource paths and sensors on each platform.

For example, the QFX5220-128C and QFX5220-32CD switches support the interface burst monitoring feature of Junos telemetry. This feature tracks short‑duration traffic bursts (not micro bursts) on physical interfaces (that are up) using millisecond‑level sampling and exports the data through streaming telemetry (gRPC). You cannot enable this feature using standard CLI. You need to subscribe to a specific telemetry sensor path /junos/system/linecard/bmon-sw/ through gRPC.

To enable any telemetry feature, you need to ensure that:

  • Junos telemetry interface (JTI) is available.

  • gRPC service is available.

  • OpenConfig for Junos OS Evolved is installed.

Configure gRPC for Junos Telemetry Interface

The remote procedure call developed by Google, gRPC, is an open-source framework that provides secure and reliable transport of data. The QFX5220, QFX5230, QFX5240, and QFX5241 Switches support gRPC primarily through the Junos telemetry interface (JTI) for streaming telemetry data using services such as gRPC Network Management Interface (gNMI). gRPC enables secure programmatic data export. For example, sensors in Google protocol buffer (GPB) format over SSL-encrypted channels.

To configure your device for gRPC services, specify the API connection setting based on Transport Layer Security (TLS) technology, and then specify a local-certificate name. For example:

In the first command shown in this example, extension-service request-response grpc enables the gRPC interface under the extension service framework, used for APIs such as JTI or third-party integrations. The client issues a request and waits for a response from the Junos OS Evolved server.

Verify gRPC Configuration on QFX Series Switches

To verify gRPC configuration, run the following command on all the leaf and spine node devices:

To validate connectivity between the telemetry collectors:

To verify that the collectors are actively pulling data through gRPC/gNMI:

To verify the status of sensors: