template (Inline Monitoring)
Syntax (Junos OS)
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;
suppress-periodic-export;
template-id template-id;
template-refresh-rate seconds;
template-type (ipv4-template | ipv6-template);
}
Syntax (Junos OS Evolved)
template name {
observation-domain-id observation-domain-id;
option-template-refresh-rate seconds;
primary-data-record-fields name;
suppress-periodic-export;
template-refresh-rate seconds;
}
Hierarchy Level
[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 |
(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.
|
| 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.
|
| option-template-refresh-rate seconds |
(IPFIX export format only) Option refresh rate in 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:
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
|
| template-id template-id |
(Junos OS only) Template ID. For Junos OS Evolved, the system generates the template ID.
|
| template-refresh-rate seconds |
Refresh rate in 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.