Rate This Document
Findability
Accuracy
Completeness
Readability

ovs-appctl hwoff/dump-hwoff-flows

Syntax

hwoff/dump-hwoff-flows [-m]|[ufid ufid]|[check]|[stop]|[-f file]|[-n]|[-h]

Function

Queries information about hardware flow tables.

Parameters

Parameter

Mandatory

Description

ufid hw_ufid

No

Queries information about hardware flow tables based on UFIDs. (The UFID is in the hexadecimal format 12345678–12345678.)

-n

No

Displays the total number of offloaded hardware flow tables.

-f file

No

(Recommended) Dumps flow tables to a specified file (the file path is an absolute path) when the number of flow tables exceeds 1000.

Before using this parameter, use the -n parameter to determine the total number of current hardware flow tables.

check

No

Queries the progress of dumping hardware flow tables to a file.

stop

No

Forcibly stops dumping flow tables to a file.

-h

No

Displays help information.

Example

  • Query the total number of hardware flow tables.
    1
    ovs-appctl hwoff/dump-hwoff-flows -n
    
  • Dump information about hardware flow tables in standard output mode (It is recommended that the number of flow tables be less than 1000.)
    1
    ovs-appctl hwoff/dump-hwoff-flows
    
    • Before running this command, run the ovs-appctl hwoff/dump-hwoff-flows -n command to check the total number of flow tables.
    • When the total number of flow tables exceeds 1000, run the ovs-appctl hwoff/dump-hwoff-flows -f Absolute_path_of_a_file command to dump the flow table information to the file. Otherwise, the command execution will be suspended for a long time. If this command is executed repeatedly, flow table information is repeatedly added to the file, and the file size keeps increasing. In this case, you need to manually clear the file.
    • The dumped hardware flow table information (the same as the information displayed by running the open-source dpctl/dump-flows command) contains the source IP address, destination IP address, source MAC address, destination MAC address, and quintuple information of the outbound interface.
  • Dump information about hardware flow tables to a specified file.
    1
    ovs-appctl hwoff/dump-hwoff-flows -f /root/test.log
    
  • Query information about hardware flow tables based on UFIDs.
    1
    ovs-appctl hwoff/dump-hwoff-flows ufid 12345678-12345678
    
  • Query the progress of dumping hardware flow tables to a file.
    1
    ovs-appctl hwoff/dump-hwoff-flows check
    
  • Forcibly stop dumping flow tables to a file.
    1
    ovs-appctl hwoff/dump-hwoff-flows stop