From 707641f4dc947bce84eeff5499665e1cf76d7806 Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Tue, 14 Mar 2023 18:45:04 +0000 Subject: T5086: Add sFlow feature based on hsflowd Add sFlow feature based on hsflowd According to user reviews, it works more stable and more productive than pmacct I haven't deleted 'pmacct' 'system flow-accounting sflow' yet It could be migrated or deprecated later set system sflow agent-address '192.0.2.14' set system sflow interface 'eth0' set system sflow interface 'eth1' set system sflow polling '30' set system sflow sampling-rate '100' set system sflow server 192.0.2.1 port '6343' set system sflow server 192.0.2.11 port '6343' --- interface-definitions/system-sflow.xml.in | 103 ++++++++++++++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 interface-definitions/system-sflow.xml.in (limited to 'interface-definitions') diff --git a/interface-definitions/system-sflow.xml.in b/interface-definitions/system-sflow.xml.in new file mode 100644 index 000000000..a53c99937 --- /dev/null +++ b/interface-definitions/system-sflow.xml.in @@ -0,0 +1,103 @@ + + + + + + + + sFlow settings + 990 + + + + + sFlow agent IPv4 or IPv6 address + + auto + + + + ipv4 + sFlow IPv4 agent address + + + ipv6 + sFlow IPv6 agent address + + + + + + + + + + + IP address associated with this interface + + + + + txt + Interface name + + + #include + + + + #include + + + Schedule counter-polling in seconds + + u32:1-600 + Polling rate in seconds + + + + + + 30 + + + + sFlow sampling-rate + + u32:1-65535 + Sampling rate (1 in N packets) + + + + + + 1000 + + + + sFlow destination server + + ipv4 + IPv4 server to export sFlow + + + ipv6 + IPv6 server to export sFlow + + + + + + + + #include + + 6343 + + + + + + + + -- cgit v1.2.3