This section provides an example for configuring flow recognition on a media network.
To complete the configuration, you need the following data:
<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet 0/1/1 [~HUAWEI-GigabitEthernet0/1/1] flow-recognition inbound [*HUAWEI-GigabitEthernet0/1/1] commit
# Check the flow table information of flow recognition in a specified slot.
<HUAWEI> display flow-recognition cache slot 1 Information of flow-recognition cache on slot 1 ---------------------------------------------------------- Interface : GigabitEthernet0/1/1 Direction : inbound Protocol : 6 SrcMac : 00e0-fc12-3456 DstMac : 00e0-fc34-5678 SrcPort : 10 DstPort : 30 SrcAddr : 10.10.1.3 DstAddr : 10.10.10.2 FirstTimestamp : 2019-05-20 14:32:46 LastTimestamp : 2019-05-20 14:52:47 PacketsCount : 399564 BytesCount : 51144192 ----------------------------------------------------------
#
telemetry
#
sensor-group sensor1
sensor-path huawei-flow-recognition:flowrecognition/streaminfos/streaminfo condition express op-field systemCpuUsage op-type gt op-value 40
#
destination-group destination1
ipv4-address 10.1.1.2 port 10001 protocol grpc no-tls
#
subscription subscription1
sensor-group sensor1
destination-group destination1
#
#
interface GigabitEthernet 0/1/1
flow-recognition inbound
#