IPI-SFLOW
Configure enabled
Use this attribute to enable or disable Sampled Flow (sFlow) feature globally.
Attribute Name: enabled
Attribute Type: empty
Netconf edit-config payload
<sampling xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-sflow">
<sflow>
<config>
</enabled>
</config>
</sflow>
</sampling>
Command Syntax
feature sflow
Configure source address
The IP address associated with this agent. In the case of a multi-homed agent, this should be the loopback address of the agent. The sFlowAgent address must provide SNMP connectivity to the agent. The address should be an invariant that does not change as interfaces are reconfigured, enabled, disabled,added or removed. A manager should be able to use the sFlowAgentAddress as a unique key that will identify this agent over extended periods of time so that a history can be maintained.
Attribute Name: source-address
Attribute Type: inet:ipv4-address
Netconf edit-config payload
<sampling xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-sflow">
<sflow>
<config>
<source-address>A.B.C.D</source-address> <!-- operation="delete"-->
</config>
</sflow>
</sampling>
Command Syntax
sflow agent-ip A.B.C.D
Configure max datagram size
The maximum number of data bytes that can be sent in a single sample datagram. The manager should set this value to avoid fragmentation of the sFlow datagrams.
Attribute Name: max-datagram-size
Attribute Type: uint16
Attribute Range: 200-9000
Attribute Name: receiver-timeout
Attribute Type: uint32
Attribute Range: 0-2147483647
Netconf edit-config payload
<sampling xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-sflow">
<sflow>
<collectors>
<collector>
<port>1024</port>
<config>
<port>1024</port>
<address>A.B.C.D</address>
<receiver-timeout>0</receiver-timeout> <!-- operation="delete"-->
</config>
<address>A.B.C.D</address>
<max-datagram-size>200</max-datagram-size> <!-- operation="delete"-->
</collector>
</collectors>
</sflow>
</sampling>
Command Syntax
sflow collector A.B.C.D port <1024-65535> receiver-time-out <0-2147483647> max-datagram-size <200-9000>
Configure options
Set sFlow debug in config mode
Attribute Name: options
Attribute Type: bits (agent|sampling|polling|all)
Netconf edit-config payload
<sampling xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-sflow">
<sflow>
<debug>
<config>
<options>agent</options> <!-- operation="delete"-->
</config>
</debug>
</sflow>
</sampling>
Command Syntax
debug sflow (agent|sampling|polling|all)
debug sflow (agent|sampling|polling|all)
Attribute Name: terminal-debug-options
Attribute Type: bits (agent|sampling|polling|all)
Netconf RPC payload
<sflow-terminal-debug-on xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-sflow">
<terminal-debug-options>agent</terminal-debug-options>
</sflow-terminal-debug-on>
Command Syntax
debug sflow (agent|sampling|polling|all)
no debug sflow (agent|sampling|polling|all)
Attribute Name: terminal-debug-options
Attribute Type: bits (agent|sampling|polling|all)
Netconf RPC payload
<sflow-terminal-debug-off xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-sflow">
<terminal-debug-options>agent</terminal-debug-options>
</sflow-terminal-debug-off>
Command Syntax
no debug sflow (agent|sampling|polling|all)
Last modified date: 10/09/2023