1ovs-dpctl-top(8)              Open vSwitch Manual             ovs-dpctl-top(8)
2
3
4

NAME

6       ovs-dpctl-top - Top like behavior for ovs-dpctl dump-flows
7

SYNOPSIS

9       ovs-dpctl-top  [-h]  [-v]  [-f FLOWFILES] [-V] [-s] [--host HOST] [-a |
10       --accumulate] [--accumulate-decay ACCUMULATEDECAY] [-d DELAY]
11

DESCRIPTION

13       This program summarizes ovs-dpctl flow content by aggregating the  num‐
14       ber of packets, total bytes and occurrence of the following fields:
15
16              - Datapath in_port
17
18              - Ethernet type
19
20              - Source and destination MAC addresses
21
22              - IP protocol
23
24              - Source and destination IPv4 addresses
25
26              - Source and destination IPv6 addresses
27
28              - UDP and TCP destination port
29
30              - Tunnel source and destination addresses
31
32   Output shows four values:
33              - FIELDS: the flow fields for example in_port(1).
34
35              - COUNT: the number of lines in the dump-flow output contain the
36              flow field.
37
38              - PACKETS: the total  number  of  packets  containing  the  flow
39              field.
40
41              -  BYTES:  the  total number of bytes containing the flow field.
42              If units are not present then values are in bytes.
43
44              - AVERAGE: the average packets size (BYTES/PACKET).
45
46   Top Behavior
47       While in top mode, the default behavior, the following single character
48       commands are supported:
49
50              a - toggles top in accumulate and live mode.  Accumulate mode is
51              described below.
52
53              s - toggles which column is used to sort content  in  decreasing
54              order.  A DESC title is placed over the column.
55
56              _ - a space indicating to collect dump-flow content again
57
58              h - halt output.  Any character will restart sampling
59
60              f - cycle through flow fields
61
62              q - q for quit.
63
64   Accumulate Mode
65       There  are  two  supported  modes: live and accumulate.  The default is
66       live.  The parameter --accumulate  or the 'a'  character  in  top  mode
67       enables  the  latter.   In  live mode, recent dump-flow content is pre‐
68       sented.  Where as accumulate mode keeps track of the  prior  historical
69       information until the flow is reset not when the flow is purged.  Reset
70       flows are determined when the packet count for  a  flow  has  decreased
71       from  its  previous sample.  There is one caveat, eventually the system
72       will run out of memory if, after the accumulate-decay period any  flows
73       that have not been refreshed are purged.  The goal here is to free mem‐
74       ory of flows that are not  active.   Statistics  are  not  decremented.
75       Their purpose is to reflect the overall history of the flow fields.
76
77   Debugging Errors
78       Parsing  errors  are  counted  and  displayed in the status line at the
79       beginning of the output.  Use the --verbose option with --script to see
80       what output was not parsed, like this:
81
82       $ ovs-dpctl dump-flows | ovs-dpctl-top --script --verbose
83
84       Error messages will identify content that failed to parse.
85
86   Access Remote Hosts
87       The  --host  must  follow the format user@hostname.  This script simply
88       calls 'ssh user@Hostname' without checking for login credentials there‐
89       fore  public keys should be installed on the system identified by host‐
90       name, such as:
91
92       $ ssh-copy-id user@hostname
93
94       Consult ssh-copy-id man pages for more details.
95
96   Expected usage
97       $ ovs-dpctl-top
98
99       or to run as a script:
100
101       $ ovs-dpctl dump-flows > dump-flows.log
102
103       $ ovs-dpctl-top --script --flow-file dump-flows.log
104
105   OPTIONS
106       -h, --help
107              show this help message and exit.
108
109       -v, --version
110              show program's version number and exit.
111
112       -f FLOWFILES, --flow-file FLOWFILES
113              file containing flows from ovs-dpctl dump-flow.
114
115       -V, --verbose
116              enable debug level verbosity.
117
118       -s, --script
119              Run from a script (no user interface).
120
121       --host HOST
122              Specify a user@host for retrieving flows  see  Accessing  Remote
123              Hosts for more information.
124
125       -a, --accumulate
126              Accumulate dump-flow content.
127
128       --accumulate-decay ACCUMULATEDECAY
129              Decay  old accumulated flows.  The default is 5 minutes. A value
130              of 0 disables decay.
131
132       -d DELAY, --delay DELAY
133              Delay in  milliseconds  to  collect  dump-flow  content  (sample
134              rate).
135
136
137
138Open vSwitch                        2.10.1                    ovs-dpctl-top(8)
Impressum