
2-156
Cisco SCE 8000 CLI Command Reference
Chapter 2 CLI Command Reference
flow-capture
Tip You must use the traffic-rule command to define the recording rule. You cannot use the
flow-filter command.
3. Start the actual capture. The capture will not start if a valid recording rule has not been defined.
Use the flow-capture start command.
4. (Optional) Stop the capture.
Use the flow-capture stop command.
If you do not stop the flow capture, it will stop when the maximum duration or capacity has been
reached.
At any point, you can use the show interface linecard flow-capture command to display the flow-
capture status, including whether flow capture is currently recording or is stopped, the capacity already
used, and the number of packets recorded.
Authorization: admin
Examples The following examples show how to use this command. All examples show output for an SCE 8000
with two SCE 8000-SCM modules installed.
Example 1
The following example shows how to perform all the steps in a flow capture:
1. Define the limits (flow-capture controllers max-l4-payload-length and flow-capture controllers
time).
2. Define a counter to be assigned to the traffic rule. (Optional)
3. Define the recording traffic rule (traffic-rule with action flow-capture option).
4. Start the capture (flow-capture start).
(The show command shows that recording is in progress.)
5. Stop the capture (flow-capture stop).
SCE8000>enable 10
Password:<cisco>
SCE8000#configure
SCE8000(config)#interface linecard 0
SCE8000(config if)#flow-capture controllers max-l4-payload-length 200
SCE8000(config if)#flow-capture controllers time 45
SCE8000(config if)#traffic-counter name counter2 count-packets
SCE8000(config if)#traffic-rule name FlowCaptureRule IP-addresses subscriber-side all
network-side all protocol 250 direction both traffic-counter name counter2 action
flow-capture
SCE8000(config if)#end
SCE8000#flow-capture start format cap file-name-prefix
SCE8000#show interface linecard 0 flow-capture
Flow Capture Status (module #1):
--------------------------------
Flow capture status: RECORDING
Capturing type: ONLINE
Target file size (bytes): 26580
Time limit (sec): 45
Max L4 payload length (bytes): 200
Commenti su questo manuale