OpenFlow Agent with NetFlow Collection and Analytics Configuration: Example
The following example describes the NetFlow exporter map configuration for the OpenFlow logical switch.
Device> enable
Device# configure terminal
Device(config)# flow exporter-map fem
Device(config-fem)# destination 10.0.1.2
Device(config-fem)# version v9
Device(config-fem-ver)# commit
Device(config-fem-ver)# exit
The following example describes the NetFlow monitor map configuration for the OpenFlow logical switch.
Device(config)# flow monitor-map mmap
Device(config-fmm)# record ipv4
Device(config-fmm)# exporter fmap
Device(config-fmm)# cache entries 4096
Device(config-fmm)# commit
Device(config-fmm)# exit
The following example describes the NetFlow sampler map configuration for the OpenFlow logical switch.
Device(config)# sampler-map
Device(config-sm)# random 1 out-of 65535
Device(config-sm)# commit
Device(config-sm)# exit
The following example describes how the OpenFlow Agent logical switch is configured so that the NetFlow
collection and analytics are associated with it.
Device(config)# openflow switch 100 netflow
Device(logical-switch)# flow monitor mmap sampler smap
Device(logical-switch)# interface GigabitEthernet0/1/0/6
Router(logical-switch)# controller 10.0.1.2 port 6633
Device(logical-switch)# commit
Device(logical-switch)# end
The following example describes show command output for an OpenFlow Agent logical switch that is
configured with NetFlow collection and analytics.
Device# show openflow switch 100
Fri Jan 25 14:29:21.078 UTC
Logical Switch Context
Id: 100
Switch type: Netflow
Layer: NONE
Signal version: Openflow 1.0
Data plane: secure
Fallback: normal
Config state: no-shutdown
Working state: enabled
TLS version: NONE
TLS private key: none:none
TLS private key file: NONE
TLS certificate file: NONE
Controller: 10.0.1.2:6633, last alive ping: 2013-01-25 14:29:20
Netflow Monitor: mmap
Netflow Sampler: smap
Loopback i/f: <none>
Loopback addr: <none>
Interfaces:
GigabitEthernet0/1/0/6
Device# show openflow switch 100 flows
Fri Jan 25 14:29:24.787 UTC
Logical Openflow Switch [100]:
NXST_FLOW reply (xid=0x0):
Cisco ASR 9000 Series Aggregation Services Router System Management Configuration Guide, Release 5.1.x
298
Implementing Open Flow Agent
OpenFlow Agent with NetFlow Collection and Analytics Configuration: Example