NETFLOW-MIB

The Netflow MIB provides a simple and easy method to get NetFlow cache information, current NetFlow configuration and statistics. It will enable medium to small size enterprises to take advantage of NetFlow technology over SNMP at a reduced infrastructure cost. The MIB is created to provide Netflow information in these areas:

  1. Cache information and configuration.
  2. Collector information and configuration.
  3. Export Statistics.
  4. Version 9 Export Template information.
Terminology used

Flow
A flow is defined as a unidirectional sequence of 
		 packets with some common properties that pass 
		 through a network device.  These collected flows 
		 are exported to an external device, the NetFlow
		 collector.  Network flows are highly granular;
for example, flow records include details such 
		 as IP addresses, packet and byte counts,timestamps, 
		 Type of Service (ToS), application ports, 
		 input and output interfaces, etc.

Exporter A device (for example, a router) with NetFlow services enabled. The exporter monitors packets entering an observation point and creates flows out of these packets. The information from these flows are exported in the form of Flow Records to the collector.

Flow Record A Flow Record provides information about an IP Flow that exists on the Exporter. The Flow Records are commonly referred to as NetFlow Services data or NetFlow data.

Collector
The NetFlow Collector receives Flow Records from
one or more Exporters. It processes the received
export packet, i.e. parses, stores, display the 
		 Flow Record information. The flow records may be optionally
aggregated before being stored into the hard disk.

Template NetFlow Version 9 Export format is template based. Version 9 record format consists of a packet header followed by at least one or more template or data FlowSets. A template FlowSet (collection of one or more template) provides a description of the fields that will be present in future data FlowSets. Templates provide an extensible design to the record format, a feature that should allow future enhancements to NetFlow services without requiring concurrent changes to the basic flow-record format.

One additional record type is also a part of Version 9 specification: an options template. Rather than supplying information about IP flows, options are used to supply information about the NetFlow process configuration or NetFlow process specific data.

Source file
NETFLOW-MIB
Last revised
Identity
netflowMIB
Base OID
1.3.6.1.4.1.3320.9.226
Objects
6 scalars · 22 columns
Tables
6 tables
Net-SNMP examples using the bdcom MIB directory

These commands use the standard Observium installation path and load the selected MIB variant before the RFC and Net-SNMP directories.

Translate the module identity
/usr/bin/snmptranslate -Pud -Ir -On -m 'NETFLOW-MIB' -M '/opt/observium/mibs/bdcom:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'NETFLOW-MIB::netflowMIB'
Walk the MIB subtree
/usr/bin/snmpbulkwalk -v2c -c '<community>' -Pud -Ir -OQUs -m 'NETFLOW-MIB' -M '/opt/observium/mibs/bdcom:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'NETFLOW-MIB::netflowMIB'
Command help
Imported Objects
IF-MIB ifIndex
INET-ADDRESS-MIB InetAddress InetAddressType InetPortNumber
NMS-SMI nmsMgmt
SNMPv2-CONF MODULE-COMPLIANCE (no object page) OBJECT-GROUP (no object page)
SNMPv2-SMI Counter32 Counter64 Gauge32 Integer32 MODULE-IDENTITY (no object page) OBJECT-TYPE (no object page) Unsigned32
SNMPv2-TC RowStatus TEXTUAL-CONVENTION (no object page) TruthValue
.1.3.6.1.4.1.3320.9.226.1.1.1 · 1 columns
OID Tree

This table provides Netflow Enable information per interface.

netflowInterfaceEntry .1.3.6.1.4.1.3320.9.226.1.1.1.1
Column Syntax OID
netflowCacheNetflowEnableNetflowInterfaceDirectionTypesr/w.1.3.6.1.4.1.3320.9.226.1.1.1.1.1
.1.3.6.1.4.1.3320.9.226.1.1.2 · 7 columns
OID Tree

A table containing configuration and statistics per cache. Cache may be main cache or an aggregation cache.

netflowCacheEntry .1.3.6.1.4.1.3320.9.226.1.1.2.1
Column Syntax OID
netflowCacheTypeNetflowAggregationtypes.1.3.6.1.4.1.3320.9.226.1.1.2.1.1
netflowCacheEnableSNMPv2-TCTruthValue.1.3.6.1.4.1.3320.9.226.1.1.2.1.2
netflowCacheEntriesSNMPv2-SMIUnsigned32.1.3.6.1.4.1.3320.9.226.1.1.2.1.3
netflowUsedEntriesSNMPv2-SMIUnsigned32.1.3.6.1.4.1.3320.9.226.1.1.2.1.4
netflowUnUsedEntriesSNMPv2-SMIUnsigned32.1.3.6.1.4.1.3320.9.226.1.1.2.1.5
netflowActiveTimeOutminutesSNMPv2-SMIUnsigned32.1.3.6.1.4.1.3320.9.226.1.1.2.1.6
netflowInactiveTimeOutsecondsSNMPv2-SMIUnsigned32r/w.1.3.6.1.4.1.3320.9.226.1.1.2.1.7
.1.3.6.1.4.1.3320.9.226.1.2.1 · 1 columns
OID Tree

A table containing version information about export configuration per cache type.

netflowCollectorVersionInfoEntry .1.3.6.1.4.1.3320.9.226.1.2.1.1
Column Syntax OID
netflowExportVersionNetflowVersionTyper/w.1.3.6.1.4.1.3320.9.226.1.2.1.1.1

ScalarsnetflowCollectorInfo

netflowMIBObjects · .1.3.6.1.4.1.3320.9.226.1.2
Object Syntax OID
netflowMaxCollectorsSNMPv2-SMIUnsigned32.1.3.6.1.4.1.3320.9.226.1.2.2
.1.3.6.1.4.1.3320.9.226.1.2.3 · 4 columns
OID Tree

A control table to configure the collectors that the netflow packets are exported to. The number of entries that can be configured for the cache type is limited by the value of netflowMaxCollectors.

netflowCollectorEntry .1.3.6.1.4.1.3320.9.226.1.2.3.1
Column Syntax OID
netflowCollectorAddressTypeINET-ADDRESS-MIBInetAddressType.1.3.6.1.4.1.3320.9.226.1.2.3.1.1
netflowCollectorAddressINET-ADDRESS-MIBInetAddressr/w.1.3.6.1.4.1.3320.9.226.1.2.3.1.2
netflowCollectorPortINET-ADDRESS-MIBInetPortNumberr/w.1.3.6.1.4.1.3320.9.226.1.2.3.1.3
netflowCollectorStatusSNMPv2-TCRowStatusr/w.1.3.6.1.4.1.3320.9.226.1.2.3.1.4

ScalarsnetflowExportStatistics

netflowMIBObjects · .1.3.6.1.4.1.3320.9.226.1.3
Object Syntax OID
netflowOctetsExportSNMPv2-SMICounter32.1.3.6.1.4.1.3320.9.226.1.3.1
netflowRecordsExportedSNMPv2-SMICounter32.1.3.6.1.4.1.3320.9.226.1.3.2
netflowPktsExportedSNMPv2-SMICounter32.1.3.6.1.4.1.3320.9.226.1.3.3
netflowPktsFailedSNMPv2-SMICounter32.1.3.6.1.4.1.3320.9.226.1.3.4

ScalarsnetflowTemplateInfo

netflowMIBObjects · .1.3.6.1.4.1.3320.9.226.1.4
Object Syntax OID
netflowTemplateOptionsFlagSNMPv2-TCTruthValuer/w.1.3.6.1.4.1.3320.9.226.1.4.1
.1.3.6.1.4.1.3320.9.226.1.4.2 · 4 columns
OID Tree

A control table to provide statistics of version 9 Flow and Option templates.

netflowTemplateEntry .1.3.6.1.4.1.3320.9.226.1.4.2.1
Column Syntax OID
netflowTemplateTypeNetflowTemplateTypes.1.3.6.1.4.1.3320.9.226.1.4.2.1.1
netflowTemplateAddedSNMPv2-SMIUnsigned32.1.3.6.1.4.1.3320.9.226.1.4.2.1.2
netflowTemplateActiveSNMPv2-SMIUnsigned32.1.3.6.1.4.1.3320.9.226.1.4.2.1.3
netflowTemplateAgerPollsSNMPv2-SMIUnsigned32.1.3.6.1.4.1.3320.9.226.1.4.2.1.4
.1.3.6.1.4.1.3320.9.226.1.4.3 · 5 columns
OID Tree

A control table providing information about version 9.

netflowTemplateExportInfoEntry .1.3.6.1.4.1.3320.9.226.1.4.3.1
Column Syntax OID
netflowTemplateExportVer9EnableSNMPv2-TCTruthValue.1.3.6.1.4.1.3320.9.226.1.4.3.1.1
netflowTemplateExportVer9TplTimeoutminutesSNMPv2-SMIUnsigned32r/w.1.3.6.1.4.1.3320.9.226.1.4.3.1.2
netflowTemplateExportVer9OptTimeoutminutesSNMPv2-SMIUnsigned32r/w.1.3.6.1.4.1.3320.9.226.1.4.3.1.3
netflowTemplateExportVer9TplRefreshRatepacketsSNMPv2-SMIUnsigned32r/w.1.3.6.1.4.1.3320.9.226.1.4.3.1.4
netflowTemplateExportVer9OptRefreshRatepacketsSNMPv2-SMIUnsigned32r/w.1.3.6.1.4.1.3320.9.226.1.4.3.1.5

Type Definitions (4)

TypeSyntaxConstraints
NetflowAggregationtypes Enumeration 13 values
NetflowInterfaceDirectionTypes Enumeration 4 values
NetflowTemplateTypes Enumeration 2 values
NetflowVersionType Enumeration 3 values
Dependencies (8) 6 direct · 2 transitive Show tree and compile order Hide dependency details

Each imported module is resolved in the importing module's source directory first, then through the normal default-variant rules.

Dependency tree
Dependency-first compile order
  1. SNMPv2-SMIrfc
  2. SNMPv2-TCrfc
  3. IANAifType-MIBrfc
  4. SNMPv2-CONFrfc
  5. SNMPv2-MIBrfc
  6. IF-MIBrfc
  7. INET-ADDRESS-MIBrfc
  8. NMS-SMIbdcom
  9. NETFLOW-MIBbdcomselected