Cisco Nexus 7000 Series Reference Manual page 250

Nx-os system management command reference
Hide thumbs Also See for Nexus 7000 Series:
Table of Contents

Advertisement

ip flow monitor
This example shows how to enable two different flow monitors for monitoring input and output traffic
with a sampler on the flow monitor that is monitoring input traffic 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
switch(config-if)# ip flow monitor FLOW-MONITOR-2 output
This example shows how to enable two different flow monitors for monitoring input and output traffic
with a sampler on the flow monitor that is monitoring output traffic to limit the output packets that are
sampled:
switch(config)# interface ethernet0/0
switch(config-if)# ip flow monitor FLOW-MONITOR-2 input
switch(config-if)# ip flow monitor FLOW-MONITOR-2 output sampler SAMPLER-1
This example shows what happens when you try to add a sampler to a flow monitor that has already been
enabled on an interface without a sampler:
switch(config)# interface Ethernet0/0
switch(config-if)# ip flow monitor FLOW-MONITOR-1 input sampler SAMPLER-1
% Flow Monitor: Flow Monitor 'FLOW-MONITOR-1' is already on in full mode and cannot be
enabled with a sampler.
This example shows how to remove the flow monitor from the interface so that it can be enabled with
the sampler:
switch(config)# interface Ethernet0/0
switch(config-if)# no ip flow monitor FLOW-MONITOR-1 input
switch(config-if)# ip flow monitor FLOW-MONITOR-1 input sampler SAMPLER-1
This example shows how to remove a sampler from a flow monitor on an interface by entering the flow
monitor command again without the sampler sampler-name keyword and argument:
switch(config)# interface Ethernet0/0
switch(config-if)# ip flow monitor FLOW-MONITOR-1 input
% Flow Monitor: Flow Monitor 'FLOW-MONITOR-1' is already on in sampled mode and cannot be
enabled in full mode.
This example shows how to remove the flow monitor that was enabled with a sampler from the interface
so that it can be enabled without the sampler:
switch(config)# interface Ethernet0/0
switch(config-if)# no ip flow monitor FLOW-MONITOR-1 input sampler SAMPLER-1
switch(config-if)# ip flow monitor FLOW-MONITOR-1 input
Related Commands
Command
flow exporter
flow monitor
flow record
sampler
Cisco Nexus 7000 Series NX-OS System Management Command Reference
222
Description
Creates a flow exporter.
Creates a flow monitor.
Creates a flow record.
Creates a flow sampler.
I Commands
OL-25806-03

Advertisement

Table of Contents
loading

Table of Contents