6 .TH ovs\-dpctl\-top "8" "@VERSION@" "Open vSwitch" "Open vSwitch Manual"
9 \fBovs\-dpctl\-top\fR \- Top like behavior for ovs\-dpctl dump\-flows
12 \fBovs\-dpctl\-top\fR [\-h] [\-v] [\-f FLOWFILES] [\-V] [\-s] [\-\-host HOST]
13 [\-a | \-\-accumulate] [\-\-accumulate\-decay ACCUMULATEDECAY] [\-d DELAY]
17 This program summarizes \fBovs\-dpctl\fR flow content by aggregating the number
18 of packets, total bytes and occurrence of the following fields:
24 \- Source and destination MAC addresses
28 \- Source and destination IPv4 addresses
30 \- Source and destination IPv6 addresses
32 \- UDP and TCP destination port
34 \- Tunnel source and destination addresses
36 .SS "Output shows four values:"
38 \- FIELDS: the flow fields for example in_port(1).
40 \- COUNT: the number of lines in the dump\-flow output contain the flow field.
42 \- PACKETS: the total number of packets containing the flow field.
44 \- BYTES: the total number of bytes containing the flow field. If units are
45 not present then values are in bytes.
47 \- AVERAGE: the average packets size (BYTES/PACKET).
51 While in top mode, the default behavior, the following single character commands
54 a \- toggles top in accumulate and live mode. Accumulate mode is described
57 s \- toggles which column is used to sort content in decreasing order. A
58 DESC title is placed over the column.
60 _ \- a space indicating to collect dump\-flow content again
62 h \- halt output. Any character will restart sampling
64 f \- cycle through flow fields
70 There are two supported modes: live and accumulate. The default is live.
71 The parameter \fB\-\-accumulate\fR or the 'a' character in top mode enables the
72 latter. In live mode, recent dump\-flow content is presented.
73 Where as accumulate mode keeps track of the prior historical
74 information until the flow is reset not when the flow is purged. Reset
75 flows are determined when the packet count for a flow has decreased from
76 its previous sample. There is one caveat, eventually the system will
77 run out of memory if, after the accumulate\-decay period any flows that
78 have not been refreshed are purged. The goal here is to free memory
79 of flows that are not active. Statistics are not decremented. Their purpose
80 is to reflect the overall history of the flow fields.
82 .SS "Debugging Errors"
84 Parsing errors are counted and displayed in the status line at the beginning
85 of the output. Use the \fB\-\-verbose\fR option with \fB\-\-script to see
86 what output was not parsed, like this:
88 $ ovs\-dpctl dump\-flows | ovs\-dpctl\-top \fB\-\-script\fR \fB\-\-verbose\fR
90 Error messages will identify content that failed to parse.
92 .SS "Access Remote Hosts"
94 The \fB\-\-host\fR must follow the format user@hostname. This script simply
95 calls \&'ssh user@Hostname' without checking for login credentials therefore
96 public keys should be installed on the system identified by hostname, such as:
98 $ ssh\-copy\-id user@hostname
100 Consult ssh\-copy\-id man pages for more details.
106 or to run as a script:
108 $ ovs\-dpctl dump\-flows > dump\-flows.log
110 $ ovs\-dpctl\-top \fB\-\-script\fR \fB\-\-flow\-file\fR dump\-flows.log
113 \fB\-h\fR, \fB\-\-help\fR
114 show this help message and exit.
116 \fB\-v\fR, \fB\-\-version\fR
117 show program's version number and exit.
119 \fB\-f\fR FLOWFILES, \fB\-\-flow\-file\fR FLOWFILES
120 file containing flows from ovs\-dpctl dump\-flow.
122 \fB\-V\fR, \fB\-\-verbose\fR
123 enable debug level verbosity.
125 \fB\-s\fR, \fB\-\-script\fR
126 Run from a script (no user interface).
129 Specify a user@host for retrieving flows see Accessing
130 Remote Hosts for more information.
132 \fB\-a\fR, \fB\-\-accumulate\fR
133 Accumulate dump\-flow content.
135 \fB\-\-accumulate\-decay\fR ACCUMULATEDECAY
136 Decay old accumulated flows. The default is 5 minutes. A value of 0 disables
139 \fB\-d\fR DELAY, \fB\-\-delay\fR DELAY
140 Delay in milliseconds to collect dump\-flow content (sample rate).