Skip to content
Ask AI

sFlow

URLGETPOSTPATCHPUTDELETE
/rest/v1/running/sflowYNYNN
/rest/v1/running/sflow/collector/{name}YYYNY
/rest/v1/running/sflow/session/{port}YYYNY
/rest/v1/rpc/show-sflow-interfaceNYNNN
PATCH HTTPS://{switch IP}/rest/v1/running/sflow
{
"enabled": "false",
"polling-interval": 20
}
POST HTTPS://{switch IP}/rest/v1/running/sflow/collector
{
"name": "test",
"ip": "160.160.160.1",
"port": 10,
"vrf": "mgmt",
"source": "175.0.0.1"
}
POST HTTPS://{switch IP}/rest/v1/running/sflow/session
{
"port": "Ethernet6",
"sampling-rate": 8888,
"enabled": "false"
}
POST HTTPS://{switch IP}/rest/v1/rpc/show-sflow-interface

Tree Diagrams

+--rw sflow
+--rw enabled?
+--rw polling-interval?
+--rw agent-id?
+--rw sampling-rate?

Table of Properties

NameRequiredType/RangeDescription
sflowMPath-only node, has no configurable value. Global sFlow configuration
enabledO”true""false”(sub-property of sflow) Global admin state of sFlow. Default value: “false”
polling-intervalO5..300(sub-property of sflow) Counter sampling polling interval. Default value: 20
agent-idOInterface name”Mgmt0”(sub-property of sflow) Sflow agent-id
sampling-rateO4096..1000000(sub-property of sflow) Global sampling rate (1/N packets). Default value: 10000

Tree Diagrams

+--rw sflow
+--rw session* [port]
| +--rw port
| +--rw enabled?
| +--rw sampling-rate?

Table of Properties

NameRequiredType/RangeDescription
sflowMPath-only node, has no configurable value. Global sFlow configuration
sessionM(sub-property of sflow) Path-only node, has no configurable value. Interface-level sFlow configuration
portMEthernet name(sub-property of session) port name
enabledO”true""false”(sub-property of session) Interface-level admin state of sFlow collector. Default value: “true”
sampling-rateO4096..1000000(sub-property of session) Sampling rate (1/N packets). Default value: 10000

Tree Diagrams

+--rw sflow
+--rw collector* [name]
+--rw name
+--rw ip
+--rw port?
+--rw vrf?
+--rw source?
+--rw source-interface?

Table of Properties

NameRequiredType/RangeDescription
sflowMPath-only node, has no configurable value. Global sFlow configuration
collectorM(sub-property of sflow) Path-only node, has no configurable value. Collector configuration
nameMstring(sub-property of collector) Collector name
ipMA.B.C.D
XX:XX:XX:XX:XX:XX:XX:XX
(sub-property of collector) Collector IP address
portO1..65535(sub-property of collector) Collector destination UDP port (default 6343). Default value: 6343
vrfO”mgmt""default” vrf name(sub-property of collector) Specify the Collector VRF.
sourceOA.B.C.D
XX:XX:XX:XX:XX:XX:XX:XX
(sub-property of collector) Source IP address for collector.Mutually exclusive with:
- source-interface
source-interfaceOInterface name “Mgmt0”(sub-property of collector) Source interface for collector.Mutually exclusive with:
- source

Tree Diagrams

+---x show-sflow-interface
+---w input
| +---w port?
+--ro output
+--ro port-config* [port]
+--ro port
+--ro enabled?
+--ro sampling-rate?

Table of Properties

NameRequiredType/RangeDescription
show-sflow-interfaceMPath-only node, has no configurable value. Display Sflow Interface information
portOEthernet name(sub-property of input) determining display specific interface information or all interface information
port-configRO(sub-property of output) Path-only node, has no configurable value. sFlow interface status entries
portROEthernet name(sub-property of port-config) Port name
enabledRO”true""false”(sub-property of port-config) Admin status
sampling-rateRO0..4294967295(sub-property of port-config) Configured sampling rate (1/N)