Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

template (Inline Monitoring)

Syntax (Junos OS)

Syntax (Junos OS Evolved)

Hierarchy Level

Description

Configure template for inline monitoring services.

Options

name

Name of the template.

flow-inactive-timeout seconds

(EX switches only) Configure the inactive-timeout period for a flow, in seconds, for flow-based telemetry. Once there is no active traffic for a flow, the flow is aged out after the configured inactive-timeout period.

flow-monitoring

(EX switches only) Configure flow-based telemetry. See flow-monitoring (Inline Monitoring Services) for more information.

observation-domain-id observation-domain-id

(IPFIX export format only) Significant one byte of observation domain ID used to uniquely identify the exporting process. The other three bytes are system generated and are unique within the chassis.

  • Default: 0

  • Range: 1 through 255

option-template-id option-template-id

(Junos OS only, IPFIX export format only) Option template ID. For Junos OS Evolved, the system generates the option template ID.

  • Default: 640

  • Range: 1024 through 65535

option-template-refresh-rate seconds

(IPFIX export format only) Option refresh rate in seconds.

  • Default: 600 seconds

  • Range: 10 through 600 seconds

primary-data-record-fields name

(IPFIX export format only) Configure which IPFIX information elements (IEs) to include in the primary data record for Juniper Resiliency Interface. See primary-data-record-fields for more information.

suppress-periodic-export;

(Junos OS and IPFIX export format only) Suppress the periodic export of IPFIX records. When this option is enabled, IPFIX records are exported only when:

  • The software has learned a new flow.

  • A flow has aged-out.

Suppressing periodic export allows more controlled and event-driven export of IPFIX records instead of continuous periodic transmission.

Default: Periodic export is enabled. With the default configuration, IPFIX records are exported periodically once flows are learned. This export occurs at the interval defined by the flow-export-timer, which is set to 1 second by default.

template-id template-id

(Junos OS only) Template ID. For Junos OS Evolved, the system generates the template ID.

  • Default: 384

  • Range (EX4400): 1024 through 65535

  • Range (EX4100 and EX4100-F): 32768 through 32831

template-refresh-rate seconds

Refresh rate in seconds.

  • Default: 600 seconds

  • Range: 10 through 600 seconds

template-type (ipv4-template | ipv6-template) (QFX5120 only, Junos OS only) For flow-based telemetry for VXLANs, specify that the template is for either IPv4 or IPv6 traffic.

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.

flow-inactive-timeout and flow-monitoring options introduced in Junos OS Release 21.1R1.

primary-data-record-fields option introduced in Junos OS Release 21.2R1.

Statement introduced in Junos OS Evolved Release 22.2R1 for PTX Series routers.

template-type option introduced in Junos OS Release 22.2R1.

suppress-periodic-export option introduced in Junos OS Release 26.2R1.