Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?




Hierarchy Level


Configure inline monitoring services. When you enable inline monitoring, you can monitor actual IPv4 and IPv6 packets at different sampling rates, and export the actual packet up to the configured clip length. By default, Junos OS supports a maximum packet length of 126 bytes starting with the Ethernet header. The monitored packets are exported to an collector for further processing. The packets are exported in an IPFIX format, which includes information on the original packet size, and incoming or outgoing interface.


instance instance-name

Configure parameters for an inline-monitoring instance. See instance for more information.

observation-cloud-id observation-cloud-identifier

Observation cloud ID—an identifier for a particular observation cloud. An observation cloud is the largest set of observation domains. Per RFC 5101, an observation domain is the largest set of observation points for which flow information can be aggregated by a metering process. For example, a router line card may be an observation domain if it is composed of several interfaces, each of which is an observation point. The observation domain ID is unique per exporting process. Also per RFC 5101, an observation point is a location in the network where IP packets can be observed. Examples include: a line to which a probe is attached, a shared medium, such as an Ethernet-based LAN, a single port of a router, or a set of interfaces (physical or logical) of a router.

  • Range: 1 through 255

template template-name

Configure templates for inline packet monitoring. See template for more information.


(Optional) Configure traceoptions for the inline monitoring process. See traceoptions for more information.

Required Privilege Level

system—To view this statement in the configuration.

system-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Release 19.4R1.

observation-cloud-id option introduced in Junos OS Release 21.2R1.

Statement introduced in Junos OS Evolved Release 22.2R1.