layer2-switched flow monitor
To associate a flow monitor and a sampler to the switch port input packets, use the later2-switched flow monitor command. To remove the association, use the no form of this command.
layer2-switched flow monitor flow-name input sampler sampler-name
no layer2-switched flow monitor flow-name input sampler sampler-name
Syntax Description
flow-name |
Name of the flow monitor to associate with the input packets. |
input |
Specifies that this association applies to input packets only. |
sampler sampler-name |
The sampler to associate with the input packets. |
Command Default
none.
Command Modes
Interface configuration mode (config-if)
Command History
Release |
Modification |
---|---|
7.0(0)N1(1) |
This command was introduced. |
Usage Guidelines
This command does not require a license.
You must have already created a flow monitor by using the flow monitor command before you can associate a flow monitor to the switch port input packets.
You must have already created a sampler by using the sampler command before you can associate a sampler to the switch port input packets
Examples
This example shows how to associate a flow monitor and a sampler to the switch port input packets:
switch(config)# interface ethernet 1/3
switch(config-if)# layer2-switched flow monitor test-flow-monitor input sampler test-sampler