I Commands
ip flow monitor
221
Cisco Nexus 7000 Series NX-OS System Management Command Reference
OL-25806-03
This command does not require a license.
Examples This example shows how to enable a flow monitor for monitoring input traffic:
switch(config)# vlan configuration 2
switch(config-vlan-config)# ip flow monitor FLOW-MONITOR-1 input
Note • VLAN configuration mode enables you to configure VLANs independently of their creation, which
is required for VTP client support.
• Egress NetFlow on VLAN is not supported
This example shows how to enable a flow monitor for monitoring output traffic:
switch(config)# interface ethernet0/0
switch(config-if)# ip flow monitor FLOW-MONITOR-1 output
This example shows how to enable the same flow monitor on the same interface for monitoring input and
output traffic:
switch(config)# interface ethernet0/0
switch(config-if)# ip flow monitor FLOW-MONITOR-1 input
switch(config-if)# ip flow monitor FLOW-MONITOR-1 output
This example shows how to enable two different flow monitors on the same interface for monitoring
input and output traffic:
switch(config)# interface ethernet0/0
switch(config-if)# ip flow monitor FLOW-MONITOR-1 input
switch(config-if)# ip flow monitor FLOW-MONITOR-2 output
This example shows how to enable the same flow monitor on two different interfaces for monitoring
input and output traffic:
switch(config)# interface ethernet0/0
switch(config-if)# ip flow monitor FLOW-MONITOR-1 input
switch(config)# interface ethernet1/0
switch(config-if)# ip flow monitor FLOW-MONITOR-1 output
This example shows how to enable two different flow monitors on two different interfaces for monitoring
input and output traffic:
switch(config)# interface ethernet0/0
switch(config-if)# ip flow monitor FLOW-MONITOR-1 input
switch(config)# interface ethernet1/0
switch(config-if)# ip flow monitor FLOW-MONITOR-2 output
This example shows how to enable a flow monitor for monitoring input traffic with a sampler to limit
the input packets that are sampled:
switch(config)# interface ethernet0/0
switch(config-if)# ip flow monitor FLOW-MONITOR-1 input sampler SAMPLER-1
This example shows how to enable a flow monitor for monitoring output traffic with a sampler to limit
the output packets that are sampled:
switch(config)# interface ethernet0/0
switch(config-if)# ip flow monitor FLOW-MONITOR-1 output sampler SAMPLER-1