Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

primary-data-record-fields

Syntax

Hierarchy Level

Description

Configure which IPFIX information elements (IEs) to include in the primary data record, which is exported by the data path and contains the specific properties seen by the data path, either from the sampled packet or the packet notification header or context. With this statement, each inline-monitoring instance can export IPFIX packets using a different, customized data template, resulting in a custom set of IEs in the IPFIX packets for each instance. The fields are encoded using one or more Common Properties IDs. As per RFC 5473, the primary data record is exported using the IPFIX data template.

Default

datalink-frame-section—Datalink Frame Section (IE 315) is always included in the primary data record.

IEs 10, 14, 61, and 312 are included in the primary data record when the export-by-asic and the primary-data-fields statements are not configured.

For the PTX10002-36QDD router, to configure fields in the primary data record, use the export-by-asic statement instead. Fields configured using the primary-data-record-fields statement are ignored. The system reports IEs as listed in IE fields reported when you configure the export-by-asic statement.

Options

name

Configure which IPFIX information elements (IEs) to include in the primary data record. Per RFC 5102, the Common Properties ID (CPID) is an identifier of a set of common properties that is locally unique per observation domain and transport session.

  • cpid-state-byte—(Junos OS Evolved only) CPID State Byte (IE 137)

  • auxiliary_egnh_id—(Junos OS Evolved only) Auxiliary Egress Nexthop ID

  • timestamp_low—(Junos OS Evolved only) Reports seconds since 1970 Jan 01.

  • timestamp_high—(Junos OS Evolved only) Reports nano-seconds relative to the current second.

  • cpid-lookup-type-trapcode—(Junos OS Evolved only) CPID Lookup Type Trapcode (IE 137)

  • cpid-layer3-vpn—(Junos OS Evolved only) CPID Layer 3 VPN (IE 137)

  • cpid-egress-nexthop-id—(Junos OS Evolved only) CPID Egress Nexthop ID (IE 137)

  • observation-time-nano-sec—(Junos OS Evolved only) CPID Observation Time Nano Seconds (IE 325)

  • cpid-egress-interface-index—CPID Egress Interface Index (IE 137); reports zero value when ingress monitoring

  • cpid-forwarding-class-drop-priority—CPID Forwarding Class Drop Priority (IE 137)

  • cpid-forwarding-exception-code—CPID Forwarding Exception Code (IE 137)

  • cpid-forwarding-nexthop-id—(Junos OS only) CPID Forwarding Nexthop ID (IE 137)

  • cpid-ingress-interface-index—CPID Ingress Interface Index (IE 137)

  • cpid-underlying-ingress-interface-index—(Junos OS only) CPID Underlying Ingress Interface Index (IE 137); reports a zero value when egress monitoring or if this value is not available in the data path.

  • datalink-frame-size—(Junos OS only) Datalink Frame Size (IE 312)

  • direction—Flow direction (IE 61)

  • egress-interface-snmp-id—Egress Interface SNMP ID (IE 14); reports zero value when ingress monitoring

  • ingress-interface-snmp-id—Ingress Interface SNMP ID (IE 10)

Additional Information

Table 1: Values Reported for Aggregated Ethernet (AE) Interfaces
CPID Ingress on AE Interface Egress on AE Interface
ingressInterfaceIndex Logical interface index of the AE interface Logical interface index of the AE interface
underlyingIngressInterfaceIndex (Junos OS only) Logical interface index of member link 0
egressInterfaceIndex 0 Logical interface index of member link
Table 2: Values Reported for IRB Interfaces
CPID Ingress on IRB Interface Egress on IRB interface
ingressInterfaceIndex Logical interface index of the IRB interface Logical interface index of ingress interface
underlyingIngressInterfaceIndex (Junos OS only) Logical interface index of vlan-bridge encapsulated interface 0
egressInterfaceIndex 0 Logical interface index of vlan-bridge encapsulated interface

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 21.2R1.

Statement introduced in Junos Evolved OS Release 22.2R1.

cpid-state-byte, auxiliary_egnh_id, timestamp_low, timestamp_high, cpid-lookup-type-trapcode, cpid-layer3-vpn, cpid-egress-nexthop-id, and observation-time-nano-sec options introduced in Junos OS Evolved Release 24.4R1.