Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Announcement: Try the Ask AI chatbot for answers to your technical questions about Juniper products and solutions.

close
header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents

template (Inline Monitoring)

date_range 20-Nov-23

Syntax (Junos OS)

content_copy zoom_out_map
template name {
    flow-inactive-timeout seconds;
    flow-monitoring {
        counter-profile profile-identifier;
        flow-rate kbps burst-size bytes;
        flow-limit number;
        sampling-rate bytes;
        sampling-profile profile-name;
        security-enable;
    }
    observation-domain-id observation-domain-id;
    option-template-id option-template-id;
    option-template-refresh-rate seconds;
    primary-data-record-fields name; 
    template-id template-id;
    template-refresh-rate seconds;
    template-type (ipv4-template | ipv6-template); 
}

Syntax (Junos OS Evolved)

content_copy zoom_out_map
template name {
    observation-domain-id observation-domain-id;
    option-template-refresh-rate seconds;
    primary-data-record-fields name; 
    template-refresh-rate seconds;
}

Hierarchy Level

content_copy zoom_out_map
[edit services inline-monitoring]

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

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) 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

Option refresh rate in seconds.

  • Default: 600 seconds

  • Range: 10 through 600 seconds

primary-data-record-fields name

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.

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.

footer-navigation