Commit c7eb842c authored by Jon Kåre Hellan's avatar Jon Kåre Hellan
Browse files

Specified IPFIX elements


git-svn-id: file:///home/svn/mapi/trunk@360 8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent 8095365c
......@@ -9,86 +9,69 @@ funct_id = mapi_apply_function(fd,"FLOW_REPORT", "NETFLOW_V9", "SHMEM",
parameter 1: flow ID.
parameter 2: MAPI function: "FLOW_REPORT"
parameter 3: record type: "NETFLOW_V5" or "NETFLOW_V9"
parameter 4: transport: "SHMEM" or host:port, e.g. "127.0.0.1:2055"
parameter 4: transport: string, see below
parameter 5: key template: string, not yet in use.
paramter 6: record template string, NetFlow V9 only.
The record template for NetFlowV9 is selected by a format string,
Transport can be
"SHMEM" - shared memory
UDP host:port, e.g. "127.0.0.1:2055"
A file, "file:mapiout"
The record template for IPFIX/NetFlowV9 is selected by a format string,
e.g. "%PKTS %BYTES %TOS %IP_SRC_ADDR %IP_DST_ADDR".
Here are the supported templates:
Here are the supported IPFIX/NetFlowV9 elements:
%BYTES
%PKTS
%FLOWS
%PROT
%TOS
%TCP_FLAGS
%L4_SRC_PORT
%IP_SRC_ADDR
%SRC_MASK
%INPUT_SNMP
%L4_DST_PORT
%IP_DST_ADDR
%DST_MASK
%OUTPUT_SNMP
%IP_NEXT_HOP
%SRC_AS
%DST_AS
%BGP_NEXT_HOP
%MUL_DPKTS
%MUL_DOCTETS
%LAST_SWITCHED
%FIRST_SWITCHED
%OUT_BYTES
%OUT_PKTS (NOTE: difference v9/ipfix)
%MIN_PKT_LNGTH
%MAX_PKT_LNGTH
%IPV6_SRC_ADDR
%IPV6_DST_ADDR
%IPV6_SRC_MASK
%IPV6_DST_MASK
%FLOW_LABEL
%ICMP_TYPE
%IGMP_TYPE
%SAMPLING_INTERVAL (NOTE: not IPFIX)
%SAMPLING_ALGO (NOTE: not IPFIX)
%FLOW_ACTIVE_TIMEOUT
%FLOW_INACTIVE_TIMEOUT
%ENGINE_TYPE (NOTE: not IPFIX)
%ENGINE_ID (NOTE: not IPFIX)
%TOTAL_BYTES_EXP
%TOTAL_PKTS_EXP
%TOTAL_FLOWS_EXP
%MIN_TTL
%MAX_TTL
%IP_PROTOCOL_VERSION
%IPV6_OPTION_HEADERS
%EXPORTER_IPV4
%EXPORTER_IPV6
%FLOW_END_REASON
%TEMPLATE_ID
%FLOW_ID
%FLOW_START_SECONDS
%FLOW_END_SECONDS
%FLOW_START_MILLISECONDS
%FLOW_END_MILLISECONDS
%FLOW_START_MICROSECONDS
%FLOW_END_MICROSECONDS
%FLOW_START_NANOSECONDS
%FLOW_END_NANOSECONDS
%SYSINIT_MILLIS
%FLOW_DUR_MILLIS
%FLOW_DUR_MICROS
%NUM_FLOWS_OBSERVED
%NUM_IGNORED_PKT
%NUM_IGNORED_OCTETS
%NOTSENT_FLOWS
%NOTSENT_PKTS
%NOTSENT_OCTETS
%PKTLEN_IPV4
%PKTLEN_IPV6
%HDRLEN_IPV4
%IPV4_OPT
%TCP_OPT
%PADDING
ID LENGTH MAPI-NAME NAME (ipfix)
1 8 BYTES octetDeltaCount
2 8 PKTS packetDeltaCount
4 1 PROT protocolIdentifier
5 1 TOS classOfServiceIPv4
6 1 TCP_FLAGS tcpControlBits
7 2 L4_SRC_PORT sourceTransportPort
8 4 IP_SRC_ADDR sourceIPv4Address
10 2 INPUT_SNMP ingressInterface (stub)
11 2 L4_DST_PORT destinationTransportPort
12 4 IP_DST_ADDR destinationIPv4Address
14 2 OUTPUT_SNMP egressInterface (stub)
16 2 SRC_AS bgpSourceAsNumber
17 2 DST_AS bgpDestinationAsNumber
21 4 LAST_SWITCHED flowEndSysUpTime
22 4 FIRST_SWITCHED flowStartSysUpTime
25 2 MIN_PKT_LNGTH minimumPacketLength
26 2 MAX_PKT_LNGTH maximumPacketLength
27 16 IPV6_SRC_ADDR sourceIPv6Address
28 16 IPV6_DST_ADDR destinationIPv6Address
40 8 TOTAL_BYTES_EXP exportedOctetTotalCount
41 8 TOTAL_PKTS_EXP exportedMessageTotalCount
52 1 MIN_TTL minimumTtl
53 1 MAX_TTL maximumTtl
64 4 IPV6_OPTION_HEADERS ipv6OptionHeaders
130 4 EXPORTER_IPV4 exporterIPv4Address
131 16 EXPORTER_IPV6 exporterIPv6Address
136 1 FLOW_END_REASON flowEndReason
145 4 TEMPLATE_ID templateId
148 4 FLOW_ID flowId
150 4 FLOW_START_SECONDS flowStartSeconds
151 4 FLOW_END_SECONDS flowEndSeconds
152 8 FLOW_START_MILLISECONDS flowStartMilliSeconds
153 8 FLOW_END_MILLISECONDS flowEndMilliSeconds
154 8 FLOW_START_MICROSECONDS flowStartMicroSeconds
155 8 FLOW_END_MICROSECONDS flowEndMicroSeconds
156 8 FLOW_START_NANOSECONDS flowStartNanoSeconds
157 8 FLOW_END_NANOSECONDS flowEndNanoSeconds
160 8 SYSINIT_MLILIS systemInitTimeMilliSecond
161 8 FLOW_DUR_MILLIS flowDurationMilliSeconds
162 8 FLOW_DUR_MICROS flowDurationMicroSeconds
163 8 NUM_FLOWS_OBSERVED observedFlowTotalCount
164 8 NUM_IGNORED_PKT ignoredPacketTotalCount
165 8 NUM_IGNORED_OCTETS ignoredOctetTotalCount
166 8 NOTSENT_FLOWS notSentFlowTotalCount
167 8 NOTSENT_PKTS notSentPacketTotalCount
168 8 NOTSENT_OCTETS notSentOctetTotalCount
190 2 PKTLEN_IPV4 packetLengthIPv4
191 4 PKTLEN_IPV6 payloadLengthIPv6
207 1 HDRLEN_IPV4 headerLengthIPv4
208 8 IPV4_OPT ipv4Options
210 1 PADDING paddingOneOctet
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment